diff --git a/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto b/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto index fc92ff0b..3212d0ce 100644 --- a/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto +++ b/protos/google/cloud/aiplatform/v1/batch_prediction_job.proto @@ -159,10 +159,16 @@ message BatchPredictionJob { // Starting this job has no impact on any existing deployments of the Model // and their resources. // Exactly one of model and unmanaged_container_model must be set. + // + // The model resource name may contain version id or version alias to specify + // the version, if no version is specified, the default version will be used. string model = 3 [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/Model" }]; + // Output only. The version ID of the Model that produces the predictions via this job. + string model_version_id = 30 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Contains model information necessary to perform batch prediction without // requiring uploading to model registry. // Exactly one of model and unmanaged_container_model must be set. diff --git a/protos/google/cloud/aiplatform/v1/completion_stats.proto b/protos/google/cloud/aiplatform/v1/completion_stats.proto index 16310ef8..a1d7b323 100644 --- a/protos/google/cloud/aiplatform/v1/completion_stats.proto +++ b/protos/google/cloud/aiplatform/v1/completion_stats.proto @@ -41,4 +41,8 @@ message CompletionStats { // Set to -1 if the number is unknown (for example, the operation failed // before the total entity number could be collected). int64 incomplete_count = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The number of the successful forecast points that are generated by the + // forecasting model. This is ONLY used by the forecasting batch prediction. + int64 successful_forecast_point_count = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } diff --git a/protos/google/cloud/aiplatform/v1/dataset_service.proto b/protos/google/cloud/aiplatform/v1/dataset_service.proto index f9f82845..5425db5b 100644 --- a/protos/google/cloud/aiplatform/v1/dataset_service.proto +++ b/protos/google/cloud/aiplatform/v1/dataset_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1/annotation_spec.proto"; import "google/cloud/aiplatform/v1/data_item.proto"; import "google/cloud/aiplatform/v1/dataset.proto"; import "google/cloud/aiplatform/v1/operation.proto"; +import "google/cloud/aiplatform/v1/saved_query.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; @@ -126,6 +127,14 @@ service DatasetService { option (google.api.method_signature) = "parent"; } + // Lists SavedQueries in a Dataset. + rpc ListSavedQueries(ListSavedQueriesRequest) returns (ListSavedQueriesResponse) { + option (google.api.http) = { + get: "/v1/{parent=projects/*/locations/*/datasets/*}/savedQueries" + }; + option (google.api.method_signature) = "parent"; + } + // Gets an AnnotationSpec. rpc GetAnnotationSpec(GetAnnotationSpecRequest) returns (AnnotationSpec) { option (google.api.http) = { @@ -357,6 +366,44 @@ message ListDataItemsResponse { string next_page_token = 2; } +// Request message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. +message ListSavedQueriesRequest { + // Required. The resource name of the Dataset to list SavedQueries from. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // The standard list filter. + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + string order_by = 6; +} + +// Response message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1.DatasetService.ListSavedQueries]. +message ListSavedQueriesResponse { + // A list of SavedQueries that match the specified filter in the request. + repeated SavedQuery saved_queries = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + // Request message for [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1.DatasetService.GetAnnotationSpec]. message GetAnnotationSpecRequest { // Required. The name of the AnnotationSpec resource. diff --git a/protos/google/cloud/aiplatform/v1/endpoint.proto b/protos/google/cloud/aiplatform/v1/endpoint.proto index e8c5ff03..6d48f8f2 100644 --- a/protos/google/cloud/aiplatform/v1/endpoint.proto +++ b/protos/google/cloud/aiplatform/v1/endpoint.proto @@ -156,6 +156,9 @@ message DeployedModel { // Required. The resource name of the Model that this is the deployment of. Note that // the Model may be in a different location than the DeployedModel's Endpoint. + // + // The resource name may contain version id or version alias to specify the + // version, if no version is specified, the default version will be deployed. string model = 2 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -163,6 +166,9 @@ message DeployedModel { } ]; + // Output only. The version ID of the model that is deployed. + string model_version_id = 18 [(google.api.field_behavior) = OUTPUT_ONLY]; + // The display name of the DeployedModel. If not provided upon creation, // the Model's display_name is used. string display_name = 3; diff --git a/protos/google/cloud/aiplatform/v1/explanation.proto b/protos/google/cloud/aiplatform/v1/explanation.proto index 55fd8394..e0a41838 100644 --- a/protos/google/cloud/aiplatform/v1/explanation.proto +++ b/protos/google/cloud/aiplatform/v1/explanation.proto @@ -46,6 +46,12 @@ message Explanation { // the attributions are stored by [Attribution.output_index][google.cloud.aiplatform.v1.Attribution.output_index] in the same // order as they appear in the output_indices. repeated Attribution attributions = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. List of the nearest neighbors for example-based explanations. + // + // For models deployed with the examples explanations feature enabled, the + // attributions field is empty and instead the neighbors field is populated. + repeated Neighbor neighbors = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Aggregated explanation metrics for a Model over a set of instances. @@ -162,6 +168,15 @@ message Attribution { string output_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Neighbors for example-based explanations. +message Neighbor { + // Output only. The neighbor id. + string neighbor_id = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The neighbor distance. + double neighbor_distance = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Specification of Model explanation. message ExplanationSpec { // Required. Parameters that configure explaining of the Model's predictions. @@ -375,6 +390,9 @@ message ExplanationSpecOverride { // The metadata to be overridden. If not specified, no metadata is overridden. ExplanationMetadataOverride metadata = 2; + + // The example-based explanations parameter overrides. + ExamplesOverride examples_override = 3; } // The [ExplanationMetadata][google.cloud.aiplatform.v1.ExplanationMetadata] entries that can be overridden at @@ -399,3 +417,45 @@ message ExplanationMetadataOverride { // overridden. map inputs = 1 [(google.api.field_behavior) = REQUIRED]; } + +// Overrides for example-based explanations. +message ExamplesOverride { + // Data format enum. + enum DataFormat { + // Unspecified format. Must not be used. + DATA_FORMAT_UNSPECIFIED = 0; + + // Provided data is a set of model inputs. + INSTANCES = 1; + + // Provided data is a set of embeddings. + EMBEDDINGS = 2; + } + + // The number of neighbors to return. + int32 neighbor_count = 1; + + // The number of neighbors to return that have the same crowding tag. + int32 crowding_count = 2; + + // Restrict the resulting nearest neighbors to respect these constraints. + repeated ExamplesRestrictionsNamespace restrictions = 3; + + // If true, return the embeddings instead of neighbors. + bool return_embeddings = 4; + + // The format of the data being provided with each call. + DataFormat data_format = 5; +} + +// Restrictions namespace for example-based explanations overrides. +message ExamplesRestrictionsNamespace { + // The namespace name. + string namespace_name = 1; + + // The list of allowed tags. + repeated string allow = 2; + + // The list of deny tags. + repeated string deny = 3; +} diff --git a/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto b/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto index 44086044..915c4c3f 100644 --- a/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto +++ b/protos/google/cloud/aiplatform/v1/featurestore_online_service.proto @@ -171,7 +171,6 @@ message StreamingReadFeatureValuesRequest { } // Value for a feature. -// (-- NEXT ID: 15 --) message FeatureValue { // Metadata of feature value. message Metadata { diff --git a/protos/google/cloud/aiplatform/v1/featurestore_service.proto b/protos/google/cloud/aiplatform/v1/featurestore_service.proto index 706ee62d..9adfec3f 100644 --- a/protos/google/cloud/aiplatform/v1/featurestore_service.proto +++ b/protos/google/cloud/aiplatform/v1/featurestore_service.proto @@ -418,6 +418,7 @@ message UpdateFeaturestoreRequest { // // * `labels` // * `online_serving_config.fixed_node_count` + // * `online_serving_config.scaling` google.protobuf.FieldMask update_mask = 2; } diff --git a/protos/google/cloud/aiplatform/v1/model.proto b/protos/google/cloud/aiplatform/v1/model.proto index 32e617dd..ed0a0025 100644 --- a/protos/google/cloud/aiplatform/v1/model.proto +++ b/protos/google/cloud/aiplatform/v1/model.proto @@ -103,6 +103,32 @@ message Model { // The resource name of the Model. string name = 1; + // Output only. Immutable. The version ID of the model. + // A new version is committed when a new model version is uploaded or + // trained under an existing model id. It is an auto-incrementing decimal + // number in string representation. + string version_id = 28 [ + (google.api.field_behavior) = IMMUTABLE, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // User provided version aliases so that a model version can be referenced via + // alias (i.e. + // projects/{project}/locations/{location}/models/{model_id}@{version_alias} + // instead of auto-generated version id (i.e. + // projects/{project}/locations/{location}/models/{model_id}@{version_id}). + // The format is [a-z][a-zA-Z0-9-]{0,126}[a-z0-9] to distinguish from + // version_id. A default version alias will be created for the first version + // of the model, and there must be exactly one default version alias for a + // model. + repeated string version_aliases = 29; + + // Output only. Timestamp when this version was created. + google.protobuf.Timestamp version_create_time = 31 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when this version was most recently updated. + google.protobuf.Timestamp version_update_time = 32 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Required. The display name of the Model. // The name can be up to 128 characters long and can be consist of any UTF-8 // characters. @@ -111,6 +137,9 @@ message Model { // The description of the Model. string description = 3; + // The description of this version. + string version_description = 30; + // The schemata that describe formats of the Model's predictions and // explanations as given and returned via // [PredictionService.Predict][google.cloud.aiplatform.v1.PredictionService.Predict] and [PredictionService.Explain][google.cloud.aiplatform.v1.PredictionService.Explain]. diff --git a/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto b/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto index 822e5926..87252239 100644 --- a/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto +++ b/protos/google/cloud/aiplatform/v1/model_deployment_monitoring_job.proto @@ -266,6 +266,16 @@ message ModelDeploymentMonitoringScheduleConfig { // Required. The model monitoring job scheduling interval. It will be rounded up to next // full hour. This defines how often the monitoring jobs are triggered. google.protobuf.Duration monitor_interval = 1 [(google.api.field_behavior) = REQUIRED]; + + // The time window of the prediction data being included in each prediction + // dataset. This window specifies how long the data should be collected from + // historical model results for each run. If not set, + // [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used. + // e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the + // monitor_window is set to be 3600, then data from 2022-01-08 13:30:00 + // to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the + // monitoring statistics. + google.protobuf.Duration monitor_window = 2; } // Statistics and anomalies generated by Model Monitoring. diff --git a/protos/google/cloud/aiplatform/v1/model_monitoring.proto b/protos/google/cloud/aiplatform/v1/model_monitoring.proto index 2ac8b37d..8c806403 100644 --- a/protos/google/cloud/aiplatform/v1/model_monitoring.proto +++ b/protos/google/cloud/aiplatform/v1/model_monitoring.proto @@ -82,6 +82,11 @@ message ModelMonitoringObjectiveConfig { // against attribution score distance between the training and prediction // feature. map attribution_score_skew_thresholds = 2; + + // Skew anomaly detection threshold used by all features. + // When the per-feature thresholds are not set, this field can be used to + // specify a threshold for all features. + ThresholdConfig default_skew_threshold = 6; } // The config for Prediction data drift detection. @@ -95,6 +100,11 @@ message ModelMonitoringObjectiveConfig { // Key is the feature name and value is the threshold. The threshold here is // against attribution score distance between different time windows. map attribution_score_drift_thresholds = 2; + + // Drift anomaly detection threshold used by all features. + // When the per-feature thresholds are not set, this field can be used to + // specify a threshold for all features. + ThresholdConfig default_drift_threshold = 5; } // The config for integrating with Vertex Explainable AI. Only applicable if diff --git a/protos/google/cloud/aiplatform/v1/model_service.proto b/protos/google/cloud/aiplatform/v1/model_service.proto index 726d3ec2..baa693ba 100644 --- a/protos/google/cloud/aiplatform/v1/model_service.proto +++ b/protos/google/cloud/aiplatform/v1/model_service.proto @@ -70,6 +70,14 @@ service ModelService { option (google.api.method_signature) = "parent"; } + // Lists versions of the specified model. + rpc ListModelVersions(ListModelVersionsRequest) returns (ListModelVersionsResponse) { + option (google.api.http) = { + get: "/v1/{name=projects/*/locations/*/models/*}:listVersions" + }; + option (google.api.method_signature) = "name"; + } + // Updates a Model. rpc UpdateModel(UpdateModelRequest) returns (Model) { option (google.api.http) = { @@ -95,6 +103,31 @@ service ModelService { }; } + // Deletes a Model version. + // + // Model version can only be deleted if there are no [DeployedModels][] + // created from it. Deleting the only version in the Model is not allowed. Use + // [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead. + rpc DeleteModelVersion(DeleteModelVersionRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1/{name=projects/*/locations/*/models/*}:deleteVersion" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOperationMetadata" + }; + } + + // Merges a set of aliases for a Model version. + rpc MergeVersionAliases(MergeVersionAliasesRequest) returns (Model) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/models/*}:mergeVersionAliases" + body: "*" + }; + option (google.api.method_signature) = "name,version_aliases"; + } + // Exports a trained, exportable Model to a location specified by the // user. A Model is considered to be exportable if it has at least one // [supported export format][google.cloud.aiplatform.v1.Model.supported_export_formats]. @@ -119,6 +152,15 @@ service ModelService { option (google.api.method_signature) = "parent,model_evaluation"; } + // Imports a list of externally generated ModelEvaluationSlice. + rpc BatchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest) returns (BatchImportModelEvaluationSlicesResponse) { + option (google.api.http) = { + post: "/v1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport" + body: "*" + }; + option (google.api.method_signature) = "parent,model_evaluation_slices"; + } + // Gets a ModelEvaluation. rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) { option (google.api.http) = { @@ -163,6 +205,17 @@ message UploadModelRequest { } ]; + // Optional. The resource name of the model into which to upload the version. Only + // specify this field when uploading a new version. + string parent_model = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ID to use for the uploaded Model, which will become the final + // component of the model resource name. + // + // This value may be up to 63 characters, and valid characters are + // `[a-z0-9_-]`. The first character cannot be a number or hyphen. + string model_id = 5 [(google.api.field_behavior) = OPTIONAL]; + // Required. The Model to create. Model model = 2 [(google.api.field_behavior) = REQUIRED]; } @@ -180,12 +233,25 @@ message UploadModelResponse { string model = 1 [(google.api.resource_reference) = { type: "aiplatform.googleapis.com/Model" }]; + + // Output only. The version ID of the model that is uploaded. + string model_version_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Request message for [ModelService.GetModel][google.cloud.aiplatform.v1.ModelService.GetModel]. message GetModelRequest { // Required. The name of the Model resource. // Format: `projects/{project}/locations/{location}/models/{model}` + // + // In order to retrieve a specific version of the model, also provide + // the version ID or version alias. + // Example: `projects/{project}/locations/{location}/models/{model}@2` + // or + // `projects/{project}/locations/{location}/models/{model}@golden` + // If no version ID or alias is specified, the "default" version will be + // returned. The "default" version alias is created for the first version of + // the model, and can be moved to other versions later on. There will be + // exactly one default version. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -255,6 +321,53 @@ message ListModelsResponse { string next_page_token = 2; } +// Request message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions]. +message ListModelVersionsRequest { + // Required. The name of the model to list versions for. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // The standard list page size. + int32 page_size = 2; + + // The standard list page token. + // Typically obtained via + // [ListModelVersionsResponse.next_page_token][google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token] of the previous + // [ModelService.ListModelversions][] call. + string page_token = 3; + + // An expression for filtering the results of the request. For field names + // both snake_case and camelCase are supported. + // + // * `labels` supports general map functions that is: + // * `labels.key=value` - key:value equality + // * `labels.key:* or labels:key - key existence + // * A key including a space must be quoted. `labels."a key"`. + // + // Some examples: + // * `labels.myKey="myValue"` + string filter = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; +} + +// Response message for [ModelService.ListModelVersions][google.cloud.aiplatform.v1.ModelService.ListModelVersions] +message ListModelVersionsResponse { + // List of Model versions in the requested page. + // In the returned Model name field, version ID instead of regvision tag will + // be included. + repeated Model models = 1; + + // A token to retrieve the next page of results. + // Pass to [ListModelVersionsRequest.page_token][google.cloud.aiplatform.v1.ListModelVersionsRequest.page_token] to obtain that page. + string next_page_token = 2; +} + // Request message for [ModelService.UpdateModel][google.cloud.aiplatform.v1.ModelService.UpdateModel]. message UpdateModelRequest { // Required. The Model which replaces the resource on the server. @@ -294,6 +407,48 @@ message DeleteModelRequest { ]; } +// Request message for [ModelService.DeleteModelVersion][google.cloud.aiplatform.v1.ModelService.DeleteModelVersion]. +message DeleteModelVersionRequest { + // Required. The name of the model version to be deleted, with a version ID explicitly + // included. + // + // Example: `projects/{project}/locations/{location}/models/{model}@1234` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; +} + +// Request message for [ModelService.MergeVersionAliases][google.cloud.aiplatform.v1.ModelService.MergeVersionAliases]. +message MergeVersionAliasesRequest { + // Required. The name of the model version to merge aliases, with a version ID + // explicitly included. + // + // Example: `projects/{project}/locations/{location}/models/{model}@1234` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Model" + } + ]; + + // Required. The set of version aliases to merge. + // The alias should be at most 128 characters, and match + // `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. + // Add the `-` prefix to an alias means removing that alias from the version. + // `-` is NOT counted in the 128 characters. Example: `-golden` means removing + // the `golden` alias from the version. + // + // There is NO ordering in aliases, which means + // 1) The aliases returned from GetModel API might not have the exactly same + // order from this MergeVersionAliases API. 2) Adding and deleting the same + // alias in the request is not recommended, and the 2 operations will be + // cancelled out. + repeated string version_aliases = 2 [(google.api.field_behavior) = REQUIRED]; +} + // Request message for [ModelService.ExportModel][google.cloud.aiplatform.v1.ModelService.ExportModel]. message ExportModelRequest { // Output configuration for the Model export. @@ -322,6 +477,8 @@ message ExportModelRequest { } // Required. The resource name of the Model to export. + // The resource name may contain version id or version alias to specify the + // version, if no version is specified, the default version will be exported. string name = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -375,6 +532,28 @@ message ImportModelEvaluationRequest { ModelEvaluation model_evaluation = 2 [(google.api.field_behavior) = REQUIRED]; } +// Request message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices] +message BatchImportModelEvaluationSlicesRequest { + // Required. The name of the parent ModelEvaluation resource. + // Format: + // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelEvaluation" + } + ]; + + // Required. Model evaluation slice resource to be imported. + repeated ModelEvaluationSlice model_evaluation_slices = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices] +message BatchImportModelEvaluationSlicesResponse { + // Output only. List of imported [ModelEvaluationSlice.name][google.cloud.aiplatform.v1.ModelEvaluationSlice.name]. + repeated string imported_model_evaluation_slices = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Request message for [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1.ModelService.GetModelEvaluation]. message GetModelEvaluationRequest { // Required. The name of the ModelEvaluation resource. diff --git a/protos/google/cloud/aiplatform/v1/prediction_service.proto b/protos/google/cloud/aiplatform/v1/prediction_service.proto index e2ba4349..36096fd9 100644 --- a/protos/google/cloud/aiplatform/v1/prediction_service.proto +++ b/protos/google/cloud/aiplatform/v1/prediction_service.proto @@ -133,6 +133,10 @@ message PredictResponse { } ]; + // Output only. The version ID of the Model which is deployed as the DeployedModel that + // this prediction hits. + string model_version_id = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The [display name][google.cloud.aiplatform.v1.Model.display_name] of the Model which is deployed as // the DeployedModel that this prediction hits. string model_display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; diff --git a/protos/google/cloud/aiplatform/v1/saved_query.proto b/protos/google/cloud/aiplatform/v1/saved_query.proto new file mode 100644 index 00000000..3018d51d --- /dev/null +++ b/protos/google/cloud/aiplatform/v1/saved_query.proto @@ -0,0 +1,84 @@ +// Copyright 2022 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "SavedQueryProto"; +option java_package = "com.google.cloud.aiplatform.v1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1"; +option ruby_package = "Google::Cloud::AIPlatform::V1"; + +// A SavedQuery is a view of the dataset. It references a subset of annotations +// by problem type and filters. +message SavedQuery { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/SavedQuery" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}" + }; + + // Output only. Resource name of the SavedQuery. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-defined name of the SavedQuery. + // The name can be up to 128 characters long and can consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Some additional information about the SavedQuery. + google.protobuf.Value metadata = 12; + + // Output only. Timestamp when this SavedQuery was created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when SavedQuery was last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Filters on the Annotations in the dataset. + string annotation_filter = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Problem type of the SavedQuery. + // Allowed values: + // * IMAGE_CLASSIFICATION_SINGLE_LABEL + // * IMAGE_CLASSIFICATION_MULTI_LABEL + // * IMAGE_BOUNDING_POLY + // * IMAGE_BOUNDING_BOX + // * TEXT_CLASSIFICATION_SINGLE_LABEL + // * TEXT_CLASSIFICATION_MULTI_LABEL + // * TEXT_EXTRACTION + // * TEXT_SENTIMENT + // * VIDEO_CLASSIFICATION + // * VIDEO_OBJECT_TRACKING + string problem_type = 6 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Number of AnnotationSpecs in the context of the SavedQuery. + int32 annotation_spec_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Used to perform a consistent read-modify-write update. If not set, a blind + // "overwrite" update happens. + string etag = 8; + + // Output only. If the Annotations belonging to the SavedQuery can be used for AutoML + // training. + bool support_automl_training = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/protos/google/cloud/aiplatform/v1/training_pipeline.proto b/protos/google/cloud/aiplatform/v1/training_pipeline.proto index 0660f82e..a0de8cf4 100644 --- a/protos/google/cloud/aiplatform/v1/training_pipeline.proto +++ b/protos/google/cloud/aiplatform/v1/training_pipeline.proto @@ -96,6 +96,17 @@ message TrainingPipeline { // is. Model model_to_upload = 7; + // Optional. The ID to use for the uploaded Model, which will become the final + // component of the model resource name. + // + // This value may be up to 63 characters, and valid characters are + // `[a-z0-9_-]`. The first character cannot be a number or hyphen. + string model_id = 22 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. When specify this field, the `model_to_upload` will not be uploaded as a + // new model, instead, it will become a new version of this `parent_model`. + string parent_model = 21 [(google.api.field_behavior) = OPTIONAL]; + // Output only. The detailed state of the pipeline. PipelineState state = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -265,6 +276,20 @@ message InputDataConfig { // for training are filtered by both [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter] and // [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri]. string annotation_schema_uri = 9; + + // Only applicable to Datasets that have SavedQueries. + // + // The ID of a SavedQuery (annotation set) under the Dataset specified by + // [dataset_id][google.cloud.aiplatform.v1.InputDataConfig.dataset_id] used for filtering Annotations for training. + // + // Only Annotations that are associated with this SavedQuery are used in + // respectively training. When used in conjunction with + // [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by + // both [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1.InputDataConfig.annotations_filter]. + // + // Only one of [saved_query_id][google.cloud.aiplatform.v1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1.InputDataConfig.annotation_schema_uri] should be + // specified as both of them represent the same thing: problem type. + string saved_query_id = 7; } // Assigns the input data to training, validation, and test sets as per the diff --git a/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index 5c0ade66..50b05eda 100644 --- a/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; import "google/cloud/aiplatform/v1beta1/manual_batch_tuning_parameters.proto"; +import "google/cloud/aiplatform/v1beta1/model_monitoring.proto"; import "google/cloud/aiplatform/v1beta1/unmanaged_container_model.proto"; import "google/protobuf/struct.proto"; import "google/protobuf/timestamp.proto"; @@ -298,4 +299,9 @@ message BatchPredictionJob { // is set, then all resources created by the BatchPredictionJob will be // encrypted with the provided encryption key. EncryptionSpec encryption_spec = 24; + + // Model monitoring config will be used for analysis model behaviors, based on + // the input and output to the batch prediction job, as well as the provided + // training dataset. + ModelMonitoringConfig model_monitoring_config = 26; } diff --git a/protos/google/cloud/aiplatform/v1beta1/custom_job.proto b/protos/google/cloud/aiplatform/v1beta1/custom_job.proto index d2f1464d..544f495d 100644 --- a/protos/google/cloud/aiplatform/v1beta1/custom_job.proto +++ b/protos/google/cloud/aiplatform/v1beta1/custom_job.proto @@ -19,6 +19,7 @@ package google.cloud.aiplatform.v1beta1; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/encryption_spec.proto"; +import "google/cloud/aiplatform/v1beta1/env_var.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/job_state.proto"; import "google/cloud/aiplatform/v1beta1/machine_resources.proto"; @@ -232,6 +233,10 @@ message ContainerSpec { // The arguments to be passed when starting the container. repeated string args = 3; + + // Environment variables to be passed to the container. + // Maximum limit is 100. + repeated EnvVar env = 4; } // The spec of a Python packaged code. @@ -254,6 +259,10 @@ message PythonPackageSpec { // Command line arguments to be passed to the Python task. repeated string args = 4; + + // Environment variables to be passed to the python module. + // Maximum limit is 100. + repeated EnvVar env = 5; } // All parameters related to queuing and scheduling of custom jobs. diff --git a/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto b/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto index 92bb4628..096e3a86 100644 --- a/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto +++ b/protos/google/cloud/aiplatform/v1beta1/dataset_service.proto @@ -25,6 +25,7 @@ import "google/cloud/aiplatform/v1beta1/annotation_spec.proto"; import "google/cloud/aiplatform/v1beta1/data_item.proto"; import "google/cloud/aiplatform/v1beta1/dataset.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/cloud/aiplatform/v1beta1/saved_query.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/field_mask.proto"; @@ -126,6 +127,14 @@ service DatasetService { option (google.api.method_signature) = "parent"; } + // Lists SavedQueries in a Dataset. + rpc ListSavedQueries(ListSavedQueriesRequest) returns (ListSavedQueriesResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*/datasets/*}/savedQueries" + }; + option (google.api.method_signature) = "parent"; + } + // Gets an AnnotationSpec. rpc GetAnnotationSpec(GetAnnotationSpecRequest) returns (AnnotationSpec) { option (google.api.http) = { @@ -357,6 +366,44 @@ message ListDataItemsResponse { string next_page_token = 2; } +// Request message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. +message ListSavedQueriesRequest { + // Required. The resource name of the Dataset to list SavedQueries from. + // Format: + // `projects/{project}/locations/{location}/datasets/{dataset}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/Dataset" + } + ]; + + // The standard list filter. + string filter = 2; + + // The standard list page size. + int32 page_size = 3; + + // The standard list page token. + string page_token = 4; + + // Mask specifying which fields to read. + google.protobuf.FieldMask read_mask = 5; + + // A comma-separated list of fields to order by, sorted in ascending order. + // Use "desc" after a field name for descending. + string order_by = 6; +} + +// Response message for [DatasetService.ListSavedQueries][google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries]. +message ListSavedQueriesResponse { + // A list of SavedQueries that match the specified filter in the request. + repeated SavedQuery saved_queries = 1; + + // The standard List next-page token. + string next_page_token = 2; +} + // Request message for [DatasetService.GetAnnotationSpec][google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpec]. message GetAnnotationSpecRequest { // Required. The name of the AnnotationSpec resource. diff --git a/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto b/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto index 0ea0241b..7deb3593 100644 --- a/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto +++ b/protos/google/cloud/aiplatform/v1beta1/featurestore_service.proto @@ -418,6 +418,7 @@ message UpdateFeaturestoreRequest { // // * `labels` // * `online_serving_config.fixed_node_count` + // * `online_serving_config.scaling` google.protobuf.FieldMask update_mask = 2; } diff --git a/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto b/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto index 014f42f5..0446c1cc 100644 --- a/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto +++ b/protos/google/cloud/aiplatform/v1beta1/model_deployment_monitoring_job.proto @@ -266,6 +266,16 @@ message ModelDeploymentMonitoringScheduleConfig { // Required. The model monitoring job scheduling interval. It will be rounded up to next // full hour. This defines how often the monitoring jobs are triggered. google.protobuf.Duration monitor_interval = 1 [(google.api.field_behavior) = REQUIRED]; + + // The time window of the prediction data being included in each prediction + // dataset. This window specifies how long the data should be collected from + // historical model results for each run. If not set, + // [ModelDeploymentMonitoringScheduleConfig.monitor_interval][google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitor_interval] will be used. + // e.g. If currently the cutoff time is 2022-01-08 14:30:00 and the + // monitor_window is set to be 3600, then data from 2022-01-08 13:30:00 + // to 2022-01-08 14:30:00 will be retrieved and aggregated to calculate the + // monitoring statistics. + google.protobuf.Duration monitor_window = 2; } // Statistics and anomalies generated by Model Monitoring. diff --git a/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto b/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto index ed3d04a9..3456dc0a 100644 --- a/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto +++ b/protos/google/cloud/aiplatform/v1beta1/model_monitoring.proto @@ -27,6 +27,24 @@ option java_package = "com.google.cloud.aiplatform.v1beta1"; option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; +// Next ID: 5 +message ModelMonitoringConfig { + // Model monitoring objective config. + repeated ModelMonitoringObjectiveConfig objective_configs = 3; + + // Model monitoring alert config. + ModelMonitoringAlertConfig alert_config = 2; + + // YAML schema file uri in Cloud Storage describing the format of a single + // instance that you want Tensorflow Data Validation (TFDV) to analyze. + // + // If there are any data type differences between predict instance and TFDV + // instance, this field can be used to override the schema. + // For models trained with Vertex AI, this field must be set as all the + // fields in predict instance formatted as string. + string analysis_instance_schema_uri = 4; +} + // Next ID: 8 message ModelMonitoringObjectiveConfig { // Training Dataset information. @@ -82,6 +100,11 @@ message ModelMonitoringObjectiveConfig { // against attribution score distance between the training and prediction // feature. map attribution_score_skew_thresholds = 2; + + // Skew anomaly detection threshold used by all features. + // When the per-feature thresholds are not set, this field can be used to + // specify a threshold for all features. + ThresholdConfig default_skew_threshold = 6; } // The config for Prediction data drift detection. @@ -95,6 +118,11 @@ message ModelMonitoringObjectiveConfig { // Key is the feature name and value is the threshold. The threshold here is // against attribution score distance between different time windows. map attribution_score_drift_thresholds = 2; + + // Drift anomaly detection threshold used by all features. + // When the per-feature thresholds are not set, this field can be used to + // specify a threshold for all features. + ThresholdConfig default_drift_threshold = 5; } // The config for integrating with Vertex Explainable AI. Only applicable if diff --git a/protos/google/cloud/aiplatform/v1beta1/model_service.proto b/protos/google/cloud/aiplatform/v1beta1/model_service.proto index 177e39c7..37523dca 100644 --- a/protos/google/cloud/aiplatform/v1beta1/model_service.proto +++ b/protos/google/cloud/aiplatform/v1beta1/model_service.proto @@ -166,6 +166,15 @@ service ModelService { option (google.api.method_signature) = "parent,model_evaluation"; } + // Imports a list of externally generated ModelEvaluationSlice. + rpc BatchImportModelEvaluationSlices(BatchImportModelEvaluationSlicesRequest) returns (BatchImportModelEvaluationSlicesResponse) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport" + body: "*" + }; + option (google.api.method_signature) = "parent,model_evaluation_slices"; + } + // Gets a ModelEvaluation. rpc GetModelEvaluation(GetModelEvaluationRequest) returns (ModelEvaluation) { option (google.api.http) = { @@ -555,6 +564,28 @@ message ImportModelEvaluationRequest { ModelEvaluation model_evaluation = 2 [(google.api.field_behavior) = REQUIRED]; } +// Request message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices] +message BatchImportModelEvaluationSlicesRequest { + // Required. The name of the parent ModelEvaluation resource. + // Format: + // `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ModelEvaluation" + } + ]; + + // Required. Model evaluation slice resource to be imported. + repeated ModelEvaluationSlice model_evaluation_slices = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Response message for [ModelService.BatchImportModelEvaluationSlices][google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices] +message BatchImportModelEvaluationSlicesResponse { + // Output only. List of imported [ModelEvaluationSlice.name][google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.name]. + repeated string imported_model_evaluation_slices = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Request message for [ModelService.GetModelEvaluation][google.cloud.aiplatform.v1beta1.ModelService.GetModelEvaluation]. message GetModelEvaluationRequest { // Required. The name of the ModelEvaluation resource. diff --git a/protos/google/cloud/aiplatform/v1beta1/saved_query.proto b/protos/google/cloud/aiplatform/v1beta1/saved_query.proto new file mode 100644 index 00000000..a258efcd --- /dev/null +++ b/protos/google/cloud/aiplatform/v1beta1/saved_query.proto @@ -0,0 +1,84 @@ +// Copyright 2022 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 +// +// http://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. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "google.golang.org/genproto/googleapis/cloud/aiplatform/v1beta1;aiplatform"; +option java_multiple_files = true; +option java_outer_classname = "SavedQueryProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// A SavedQuery is a view of the dataset. It references a subset of annotations +// by problem type and filters. +message SavedQuery { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/SavedQuery" + pattern: "projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}" + }; + + // Output only. Resource name of the SavedQuery. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. The user-defined name of the SavedQuery. + // The name can be up to 128 characters long and can consist of any UTF-8 + // characters. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Some additional information about the SavedQuery. + google.protobuf.Value metadata = 12; + + // Output only. Timestamp when this SavedQuery was created. + google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when SavedQuery was last updated. + google.protobuf.Timestamp update_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Filters on the Annotations in the dataset. + string annotation_filter = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Problem type of the SavedQuery. + // Allowed values: + // * IMAGE_CLASSIFICATION_SINGLE_LABEL + // * IMAGE_CLASSIFICATION_MULTI_LABEL + // * IMAGE_BOUNDING_POLY + // * IMAGE_BOUNDING_BOX + // * TEXT_CLASSIFICATION_SINGLE_LABEL + // * TEXT_CLASSIFICATION_MULTI_LABEL + // * TEXT_EXTRACTION + // * TEXT_SENTIMENT + // * VIDEO_CLASSIFICATION + // * VIDEO_OBJECT_TRACKING + string problem_type = 6 [(google.api.field_behavior) = REQUIRED]; + + // Output only. Number of AnnotationSpecs in the context of the SavedQuery. + int32 annotation_spec_count = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Used to perform a consistent read-modify-write update. If not set, a blind + // "overwrite" update happens. + string etag = 8; + + // Output only. If the Annotations belonging to the SavedQuery can be used for AutoML + // training. + bool support_automl_training = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto b/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto index c4c9225e..138fbc3c 100644 --- a/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto +++ b/protos/google/cloud/aiplatform/v1beta1/training_pipeline.proto @@ -276,6 +276,20 @@ message InputDataConfig { // for training are filtered by both [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter] and // [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri]. string annotation_schema_uri = 9; + + // Only applicable to Datasets that have SavedQueries. + // + // The ID of a SavedQuery (annotation set) under the Dataset specified by + // [dataset_id][google.cloud.aiplatform.v1beta1.InputDataConfig.dataset_id] used for filtering Annotations for training. + // + // Only Annotations that are associated with this SavedQuery are used in + // respectively training. When used in conjunction with + // [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter], the Annotations used for training are filtered by + // both [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotations_filter][google.cloud.aiplatform.v1beta1.InputDataConfig.annotations_filter]. + // + // Only one of [saved_query_id][google.cloud.aiplatform.v1beta1.InputDataConfig.saved_query_id] and [annotation_schema_uri][google.cloud.aiplatform.v1beta1.InputDataConfig.annotation_schema_uri] should be + // specified as both of them represent the same thing: problem type. + string saved_query_id = 7; } // Assigns the input data to training, validation, and test sets as per the diff --git a/protos/protos.d.ts b/protos/protos.d.ts index f317e206..ab0f6ba5 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -568,6 +568,9 @@ export namespace google { /** BatchPredictionJob model */ model?: (string|null); + /** BatchPredictionJob modelVersionId */ + modelVersionId?: (string|null); + /** BatchPredictionJob unmanagedContainerModel */ unmanagedContainerModel?: (google.cloud.aiplatform.v1.IUnmanagedContainerModel|null); @@ -647,6 +650,9 @@ export namespace google { /** BatchPredictionJob model. */ public model: string; + /** BatchPredictionJob modelVersionId. */ + public modelVersionId: string; + /** BatchPredictionJob unmanagedContainerModel. */ public unmanagedContainerModel?: (google.cloud.aiplatform.v1.IUnmanagedContainerModel|null); @@ -1107,6 +1113,9 @@ export namespace google { /** CompletionStats incompleteCount */ incompleteCount?: (number|Long|string|null); + + /** CompletionStats successfulForecastPointCount */ + successfulForecastPointCount?: (number|Long|string|null); } /** Represents a CompletionStats. */ @@ -1127,6 +1136,9 @@ export namespace google { /** CompletionStats incompleteCount. */ public incompleteCount: (number|Long|string); + /** CompletionStats successfulForecastPointCount. */ + public successfulForecastPointCount: (number|Long|string); + /** * Creates a new CompletionStats instance using the specified properties. * @param [properties] Properties to set @@ -1293,6 +1305,9 @@ export namespace google { /** Explanation attributions */ attributions?: (google.cloud.aiplatform.v1.IAttribution[]|null); + + /** Explanation neighbors */ + neighbors?: (google.cloud.aiplatform.v1.INeighbor[]|null); } /** Represents an Explanation. */ @@ -1307,6 +1322,9 @@ export namespace google { /** Explanation attributions. */ public attributions: google.cloud.aiplatform.v1.IAttribution[]; + /** Explanation neighbors. */ + public neighbors: google.cloud.aiplatform.v1.INeighbor[]; + /** * Creates a new Explanation instance using the specified properties. * @param [properties] Properties to set @@ -1594,6 +1612,102 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a Neighbor. */ + interface INeighbor { + + /** Neighbor neighborId */ + neighborId?: (string|null); + + /** Neighbor neighborDistance */ + neighborDistance?: (number|null); + } + + /** Represents a Neighbor. */ + class Neighbor implements INeighbor { + + /** + * Constructs a new Neighbor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.INeighbor); + + /** Neighbor neighborId. */ + public neighborId: string; + + /** Neighbor neighborDistance. */ + public neighborDistance: number; + + /** + * Creates a new Neighbor instance using the specified properties. + * @param [properties] Properties to set + * @returns Neighbor instance + */ + public static create(properties?: google.cloud.aiplatform.v1.INeighbor): google.cloud.aiplatform.v1.Neighbor; + + /** + * Encodes the specified Neighbor message. Does not implicitly {@link google.cloud.aiplatform.v1.Neighbor.verify|verify} messages. + * @param message Neighbor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Neighbor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Neighbor.verify|verify} messages. + * @param message Neighbor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.INeighbor, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Neighbor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Neighbor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.Neighbor; + + /** + * Decodes a Neighbor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Neighbor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.Neighbor; + + /** + * Verifies a Neighbor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Neighbor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Neighbor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.Neighbor; + + /** + * Creates a plain object from a Neighbor message. Also converts values to other types if specified. + * @param message Neighbor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.Neighbor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Neighbor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an ExplanationSpec. */ interface IExplanationSpec { @@ -2493,6 +2607,9 @@ export namespace google { /** ExplanationSpecOverride metadata */ metadata?: (google.cloud.aiplatform.v1.IExplanationMetadataOverride|null); + + /** ExplanationSpecOverride examplesOverride */ + examplesOverride?: (google.cloud.aiplatform.v1.IExamplesOverride|null); } /** Represents an ExplanationSpecOverride. */ @@ -2510,6 +2627,9 @@ export namespace google { /** ExplanationSpecOverride metadata. */ public metadata?: (google.cloud.aiplatform.v1.IExplanationMetadataOverride|null); + /** ExplanationSpecOverride examplesOverride. */ + public examplesOverride?: (google.cloud.aiplatform.v1.IExamplesOverride|null); + /** * Creates a new ExplanationSpecOverride instance using the specified properties. * @param [properties] Properties to set @@ -2764,6 +2884,232 @@ export namespace google { } } + /** Properties of an ExamplesOverride. */ + interface IExamplesOverride { + + /** ExamplesOverride neighborCount */ + neighborCount?: (number|null); + + /** ExamplesOverride crowdingCount */ + crowdingCount?: (number|null); + + /** ExamplesOverride restrictions */ + restrictions?: (google.cloud.aiplatform.v1.IExamplesRestrictionsNamespace[]|null); + + /** ExamplesOverride returnEmbeddings */ + returnEmbeddings?: (boolean|null); + + /** ExamplesOverride dataFormat */ + dataFormat?: (google.cloud.aiplatform.v1.ExamplesOverride.DataFormat|keyof typeof google.cloud.aiplatform.v1.ExamplesOverride.DataFormat|null); + } + + /** Represents an ExamplesOverride. */ + class ExamplesOverride implements IExamplesOverride { + + /** + * Constructs a new ExamplesOverride. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExamplesOverride); + + /** ExamplesOverride neighborCount. */ + public neighborCount: number; + + /** ExamplesOverride crowdingCount. */ + public crowdingCount: number; + + /** ExamplesOverride restrictions. */ + public restrictions: google.cloud.aiplatform.v1.IExamplesRestrictionsNamespace[]; + + /** ExamplesOverride returnEmbeddings. */ + public returnEmbeddings: boolean; + + /** ExamplesOverride dataFormat. */ + public dataFormat: (google.cloud.aiplatform.v1.ExamplesOverride.DataFormat|keyof typeof google.cloud.aiplatform.v1.ExamplesOverride.DataFormat); + + /** + * Creates a new ExamplesOverride instance using the specified properties. + * @param [properties] Properties to set + * @returns ExamplesOverride instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExamplesOverride): google.cloud.aiplatform.v1.ExamplesOverride; + + /** + * Encodes the specified ExamplesOverride message. Does not implicitly {@link google.cloud.aiplatform.v1.ExamplesOverride.verify|verify} messages. + * @param message ExamplesOverride message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExamplesOverride, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExamplesOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExamplesOverride.verify|verify} messages. + * @param message ExamplesOverride message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExamplesOverride, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExamplesOverride message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExamplesOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExamplesOverride; + + /** + * Decodes an ExamplesOverride message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExamplesOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExamplesOverride; + + /** + * Verifies an ExamplesOverride message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExamplesOverride message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExamplesOverride + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExamplesOverride; + + /** + * Creates a plain object from an ExamplesOverride message. Also converts values to other types if specified. + * @param message ExamplesOverride + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExamplesOverride, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExamplesOverride to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ExamplesOverride { + + /** DataFormat enum. */ + enum DataFormat { + DATA_FORMAT_UNSPECIFIED = 0, + INSTANCES = 1, + EMBEDDINGS = 2 + } + } + + /** Properties of an ExamplesRestrictionsNamespace. */ + interface IExamplesRestrictionsNamespace { + + /** ExamplesRestrictionsNamespace namespaceName */ + namespaceName?: (string|null); + + /** ExamplesRestrictionsNamespace allow */ + allow?: (string[]|null); + + /** ExamplesRestrictionsNamespace deny */ + deny?: (string[]|null); + } + + /** Represents an ExamplesRestrictionsNamespace. */ + class ExamplesRestrictionsNamespace implements IExamplesRestrictionsNamespace { + + /** + * Constructs a new ExamplesRestrictionsNamespace. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IExamplesRestrictionsNamespace); + + /** ExamplesRestrictionsNamespace namespaceName. */ + public namespaceName: string; + + /** ExamplesRestrictionsNamespace allow. */ + public allow: string[]; + + /** ExamplesRestrictionsNamespace deny. */ + public deny: string[]; + + /** + * Creates a new ExamplesRestrictionsNamespace instance using the specified properties. + * @param [properties] Properties to set + * @returns ExamplesRestrictionsNamespace instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IExamplesRestrictionsNamespace): google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace; + + /** + * Encodes the specified ExamplesRestrictionsNamespace message. Does not implicitly {@link google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.verify|verify} messages. + * @param message ExamplesRestrictionsNamespace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IExamplesRestrictionsNamespace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExamplesRestrictionsNamespace message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.verify|verify} messages. + * @param message ExamplesRestrictionsNamespace message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IExamplesRestrictionsNamespace, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExamplesRestrictionsNamespace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace; + + /** + * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExamplesRestrictionsNamespace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace; + + /** + * Verifies an ExamplesRestrictionsNamespace message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExamplesRestrictionsNamespace message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExamplesRestrictionsNamespace + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace; + + /** + * Creates a plain object from an ExamplesRestrictionsNamespace message. Also converts values to other types if specified. + * @param message ExamplesRestrictionsNamespace + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExamplesRestrictionsNamespace to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an ExplanationMetadata. */ interface IExplanationMetadata { @@ -5231,12 +5577,27 @@ export namespace google { /** Model name */ name?: (string|null); + /** Model versionId */ + versionId?: (string|null); + + /** Model versionAliases */ + versionAliases?: (string[]|null); + + /** Model versionCreateTime */ + versionCreateTime?: (google.protobuf.ITimestamp|null); + + /** Model versionUpdateTime */ + versionUpdateTime?: (google.protobuf.ITimestamp|null); + /** Model displayName */ displayName?: (string|null); /** Model description */ description?: (string|null); + /** Model versionDescription */ + versionDescription?: (string|null); + /** Model predictSchemata */ predictSchemata?: (google.cloud.aiplatform.v1.IPredictSchemata|null); @@ -5301,12 +5662,27 @@ export namespace google { /** Model name. */ public name: string; + /** Model versionId. */ + public versionId: string; + + /** Model versionAliases. */ + public versionAliases: string[]; + + /** Model versionCreateTime. */ + public versionCreateTime?: (google.protobuf.ITimestamp|null); + + /** Model versionUpdateTime. */ + public versionUpdateTime?: (google.protobuf.ITimestamp|null); + /** Model displayName. */ public displayName: string; /** Model description. */ public description: string; + /** Model versionDescription. */ + public versionDescription: string; + /** Model predictSchemata. */ public predictSchemata?: (google.cloud.aiplatform.v1.IPredictSchemata|null); @@ -8044,6 +8420,20 @@ export namespace google { */ public listDataItems(request: google.cloud.aiplatform.v1.IListDataItemsRequest): Promise; + /** + * Calls ListSavedQueries. + * @param request ListSavedQueriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSavedQueriesResponse + */ + public listSavedQueries(request: google.cloud.aiplatform.v1.IListSavedQueriesRequest, callback: google.cloud.aiplatform.v1.DatasetService.ListSavedQueriesCallback): void; + + /** + * Calls ListSavedQueries. + * @param request ListSavedQueriesRequest message or plain object + * @returns Promise + */ + public listSavedQueries(request: google.cloud.aiplatform.v1.IListSavedQueriesRequest): Promise; + /** * Calls GetAnnotationSpec. * @param request GetAnnotationSpecRequest message or plain object @@ -8131,6 +8521,13 @@ export namespace google { */ type ListDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListDataItemsResponse) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.DatasetService#listSavedQueries}. + * @param error Error, if any + * @param [response] ListSavedQueriesResponse + */ + type ListSavedQueriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListSavedQueriesResponse) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1.DatasetService#getAnnotationSpec}. * @param error Error, if any @@ -9598,6 +9995,222 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a ListSavedQueriesRequest. */ + interface IListSavedQueriesRequest { + + /** ListSavedQueriesRequest parent */ + parent?: (string|null); + + /** ListSavedQueriesRequest filter */ + filter?: (string|null); + + /** ListSavedQueriesRequest pageSize */ + pageSize?: (number|null); + + /** ListSavedQueriesRequest pageToken */ + pageToken?: (string|null); + + /** ListSavedQueriesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + + /** ListSavedQueriesRequest orderBy */ + orderBy?: (string|null); + } + + /** Represents a ListSavedQueriesRequest. */ + class ListSavedQueriesRequest implements IListSavedQueriesRequest { + + /** + * Constructs a new ListSavedQueriesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListSavedQueriesRequest); + + /** ListSavedQueriesRequest parent. */ + public parent: string; + + /** ListSavedQueriesRequest filter. */ + public filter: string; + + /** ListSavedQueriesRequest pageSize. */ + public pageSize: number; + + /** ListSavedQueriesRequest pageToken. */ + public pageToken: string; + + /** ListSavedQueriesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListSavedQueriesRequest orderBy. */ + public orderBy: string; + + /** + * Creates a new ListSavedQueriesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSavedQueriesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListSavedQueriesRequest): google.cloud.aiplatform.v1.ListSavedQueriesRequest; + + /** + * Encodes the specified ListSavedQueriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSavedQueriesRequest.verify|verify} messages. + * @param message ListSavedQueriesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListSavedQueriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSavedQueriesRequest.verify|verify} messages. + * @param message ListSavedQueriesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSavedQueriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListSavedQueriesRequest; + + /** + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSavedQueriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListSavedQueriesRequest; + + /** + * Verifies a ListSavedQueriesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListSavedQueriesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSavedQueriesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListSavedQueriesRequest; + + /** + * Creates a plain object from a ListSavedQueriesRequest message. Also converts values to other types if specified. + * @param message ListSavedQueriesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListSavedQueriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSavedQueriesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListSavedQueriesResponse. */ + interface IListSavedQueriesResponse { + + /** ListSavedQueriesResponse savedQueries */ + savedQueries?: (google.cloud.aiplatform.v1.ISavedQuery[]|null); + + /** ListSavedQueriesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListSavedQueriesResponse. */ + class ListSavedQueriesResponse implements IListSavedQueriesResponse { + + /** + * Constructs a new ListSavedQueriesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListSavedQueriesResponse); + + /** ListSavedQueriesResponse savedQueries. */ + public savedQueries: google.cloud.aiplatform.v1.ISavedQuery[]; + + /** ListSavedQueriesResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListSavedQueriesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListSavedQueriesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListSavedQueriesResponse): google.cloud.aiplatform.v1.ListSavedQueriesResponse; + + /** + * Encodes the specified ListSavedQueriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSavedQueriesResponse.verify|verify} messages. + * @param message ListSavedQueriesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListSavedQueriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSavedQueriesResponse.verify|verify} messages. + * @param message ListSavedQueriesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListSavedQueriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListSavedQueriesResponse; + + /** + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListSavedQueriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListSavedQueriesResponse; + + /** + * Verifies a ListSavedQueriesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListSavedQueriesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListSavedQueriesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListSavedQueriesResponse; + + /** + * Creates a plain object from a ListSavedQueriesResponse message. Also converts values to other types if specified. + * @param message ListSavedQueriesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListSavedQueriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListSavedQueriesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a GetAnnotationSpecRequest. */ interface IGetAnnotationSpecRequest { @@ -10102,6 +10715,150 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a SavedQuery. */ + interface ISavedQuery { + + /** SavedQuery name */ + name?: (string|null); + + /** SavedQuery displayName */ + displayName?: (string|null); + + /** SavedQuery metadata */ + metadata?: (google.protobuf.IValue|null); + + /** SavedQuery createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** SavedQuery updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** SavedQuery annotationFilter */ + annotationFilter?: (string|null); + + /** SavedQuery problemType */ + problemType?: (string|null); + + /** SavedQuery annotationSpecCount */ + annotationSpecCount?: (number|null); + + /** SavedQuery etag */ + etag?: (string|null); + + /** SavedQuery supportAutomlTraining */ + supportAutomlTraining?: (boolean|null); + } + + /** Represents a SavedQuery. */ + class SavedQuery implements ISavedQuery { + + /** + * Constructs a new SavedQuery. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.ISavedQuery); + + /** SavedQuery name. */ + public name: string; + + /** SavedQuery displayName. */ + public displayName: string; + + /** SavedQuery metadata. */ + public metadata?: (google.protobuf.IValue|null); + + /** SavedQuery createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** SavedQuery updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** SavedQuery annotationFilter. */ + public annotationFilter: string; + + /** SavedQuery problemType. */ + public problemType: string; + + /** SavedQuery annotationSpecCount. */ + public annotationSpecCount: number; + + /** SavedQuery etag. */ + public etag: string; + + /** SavedQuery supportAutomlTraining. */ + public supportAutomlTraining: boolean; + + /** + * Creates a new SavedQuery instance using the specified properties. + * @param [properties] Properties to set + * @returns SavedQuery instance + */ + public static create(properties?: google.cloud.aiplatform.v1.ISavedQuery): google.cloud.aiplatform.v1.SavedQuery; + + /** + * Encodes the specified SavedQuery message. Does not implicitly {@link google.cloud.aiplatform.v1.SavedQuery.verify|verify} messages. + * @param message SavedQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified SavedQuery message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SavedQuery.verify|verify} messages. + * @param message SavedQuery message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a SavedQuery message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SavedQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.SavedQuery; + + /** + * Decodes a SavedQuery message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SavedQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.SavedQuery; + + /** + * Verifies a SavedQuery message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a SavedQuery message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SavedQuery + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.SavedQuery; + + /** + * Creates a plain object from a SavedQuery message. Also converts values to other types if specified. + * @param message SavedQuery + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.SavedQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this SavedQuery to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a DeployedIndexRef. */ interface IDeployedIndexRef { @@ -10381,6 +11138,9 @@ export namespace google { /** DeployedModel model */ model?: (string|null); + /** DeployedModel modelVersionId */ + modelVersionId?: (string|null); + /** DeployedModel displayName */ displayName?: (string|null); @@ -10424,6 +11184,9 @@ export namespace google { /** DeployedModel model. */ public model: string; + /** DeployedModel modelVersionId. */ + public modelVersionId: string; + /** DeployedModel displayName. */ public displayName: string; @@ -30651,6 +31414,9 @@ export namespace google { /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ monitorInterval?: (google.protobuf.IDuration|null); + + /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ + monitorWindow?: (google.protobuf.IDuration|null); } /** Represents a ModelDeploymentMonitoringScheduleConfig. */ @@ -30665,6 +31431,9 @@ export namespace google { /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ public monitorInterval?: (google.protobuf.IDuration|null); + /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ + public monitorWindow?: (google.protobuf.IDuration|null); + /** * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. * @param [properties] Properties to set @@ -31196,6 +31965,9 @@ export namespace google { /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ + defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); } /** Represents a TrainingPredictionSkewDetectionConfig. */ @@ -31213,6 +31985,9 @@ export namespace google { /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ + public defaultSkewThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + /** * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. * @param [properties] Properties to set @@ -31292,6 +32067,9 @@ export namespace google { /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }|null); + + /** PredictionDriftDetectionConfig defaultDriftThreshold */ + defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); } /** Represents a PredictionDriftDetectionConfig. */ @@ -31309,6 +32087,9 @@ export namespace google { /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1.IThresholdConfig }; + /** PredictionDriftDetectionConfig defaultDriftThreshold. */ + public defaultDriftThreshold?: (google.cloud.aiplatform.v1.IThresholdConfig|null); + /** * Creates a new PredictionDriftDetectionConfig instance using the specified properties. * @param [properties] Properties to set @@ -40239,6 +41020,20 @@ export namespace google { */ public listModels(request: google.cloud.aiplatform.v1.IListModelsRequest): Promise; + /** + * Calls ListModelVersions. + * @param request ListModelVersionsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelVersionsResponse + */ + public listModelVersions(request: google.cloud.aiplatform.v1.IListModelVersionsRequest, callback: google.cloud.aiplatform.v1.ModelService.ListModelVersionsCallback): void; + + /** + * Calls ListModelVersions. + * @param request ListModelVersionsRequest message or plain object + * @returns Promise + */ + public listModelVersions(request: google.cloud.aiplatform.v1.IListModelVersionsRequest): Promise; + /** * Calls UpdateModel. * @param request UpdateModelRequest message or plain object @@ -40267,6 +41062,34 @@ export namespace google { */ public deleteModel(request: google.cloud.aiplatform.v1.IDeleteModelRequest): Promise; + /** + * Calls DeleteModelVersion. + * @param request DeleteModelVersionRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteModelVersion(request: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, callback: google.cloud.aiplatform.v1.ModelService.DeleteModelVersionCallback): void; + + /** + * Calls DeleteModelVersion. + * @param request DeleteModelVersionRequest message or plain object + * @returns Promise + */ + public deleteModelVersion(request: google.cloud.aiplatform.v1.IDeleteModelVersionRequest): Promise; + + /** + * Calls MergeVersionAliases. + * @param request MergeVersionAliasesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Model + */ + public mergeVersionAliases(request: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, callback: google.cloud.aiplatform.v1.ModelService.MergeVersionAliasesCallback): void; + + /** + * Calls MergeVersionAliases. + * @param request MergeVersionAliasesRequest message or plain object + * @returns Promise + */ + public mergeVersionAliases(request: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest): Promise; + /** * Calls ExportModel. * @param request ExportModelRequest message or plain object @@ -40295,6 +41118,20 @@ export namespace google { */ public importModelEvaluation(request: google.cloud.aiplatform.v1.IImportModelEvaluationRequest): Promise; + /** + * Calls BatchImportModelEvaluationSlices. + * @param request BatchImportModelEvaluationSlicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + */ + public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlicesCallback): void; + + /** + * Calls BatchImportModelEvaluationSlices. + * @param request BatchImportModelEvaluationSlicesRequest message or plain object + * @returns Promise + */ + public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): Promise; + /** * Calls GetModelEvaluation. * @param request GetModelEvaluationRequest message or plain object @@ -40375,6 +41212,13 @@ export namespace google { */ type ListModelsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelsResponse) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#listModelVersions}. + * @param error Error, if any + * @param [response] ListModelVersionsResponse + */ + type ListModelVersionsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ListModelVersionsResponse) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#updateModel}. * @param error Error, if any @@ -40389,6 +41233,20 @@ export namespace google { */ type DeleteModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#deleteModelVersion}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteModelVersionCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#mergeVersionAliases}. + * @param error Error, if any + * @param [response] Model + */ + type MergeVersionAliasesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.Model) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#exportModel}. * @param error Error, if any @@ -40403,6 +41261,13 @@ export namespace google { */ type ImportModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.ModelEvaluation) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#batchImportModelEvaluationSlices}. + * @param error Error, if any + * @param [response] BatchImportModelEvaluationSlicesResponse + */ + type BatchImportModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#getModelEvaluation}. * @param error Error, if any @@ -40438,6 +41303,12 @@ export namespace google { /** UploadModelRequest parent */ parent?: (string|null); + /** UploadModelRequest parentModel */ + parentModel?: (string|null); + + /** UploadModelRequest modelId */ + modelId?: (string|null); + /** UploadModelRequest model */ model?: (google.cloud.aiplatform.v1.IModel|null); } @@ -40454,6 +41325,12 @@ export namespace google { /** UploadModelRequest parent. */ public parent: string; + /** UploadModelRequest parentModel. */ + public parentModel: string; + + /** UploadModelRequest modelId. */ + public modelId: string; + /** UploadModelRequest model. */ public model?: (google.cloud.aiplatform.v1.IModel|null); @@ -40623,6 +41500,9 @@ export namespace google { /** UploadModelResponse model */ model?: (string|null); + + /** UploadModelResponse modelVersionId */ + modelVersionId?: (string|null); } /** Represents an UploadModelResponse. */ @@ -40637,6 +41517,9 @@ export namespace google { /** UploadModelResponse model. */ public model: string; + /** UploadModelResponse modelVersionId. */ + public modelVersionId: string; + /** * Creates a new UploadModelResponse instance using the specified properties. * @param [properties] Properties to set @@ -41014,6 +41897,216 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a ListModelVersionsRequest. */ + interface IListModelVersionsRequest { + + /** ListModelVersionsRequest name */ + name?: (string|null); + + /** ListModelVersionsRequest pageSize */ + pageSize?: (number|null); + + /** ListModelVersionsRequest pageToken */ + pageToken?: (string|null); + + /** ListModelVersionsRequest filter */ + filter?: (string|null); + + /** ListModelVersionsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListModelVersionsRequest. */ + class ListModelVersionsRequest implements IListModelVersionsRequest { + + /** + * Constructs a new ListModelVersionsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListModelVersionsRequest); + + /** ListModelVersionsRequest name. */ + public name: string; + + /** ListModelVersionsRequest pageSize. */ + public pageSize: number; + + /** ListModelVersionsRequest pageToken. */ + public pageToken: string; + + /** ListModelVersionsRequest filter. */ + public filter: string; + + /** ListModelVersionsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** + * Creates a new ListModelVersionsRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListModelVersionsRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListModelVersionsRequest): google.cloud.aiplatform.v1.ListModelVersionsRequest; + + /** + * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * @param message ListModelVersionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * @param message ListModelVersionsRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelVersionsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListModelVersionsRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListModelVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelVersionsRequest; + + /** + * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListModelVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelVersionsRequest; + + /** + * Verifies a ListModelVersionsRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListModelVersionsRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelVersionsRequest; + + /** + * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. + * @param message ListModelVersionsRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListModelVersionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListModelVersionsRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListModelVersionsResponse. */ + interface IListModelVersionsResponse { + + /** ListModelVersionsResponse models */ + models?: (google.cloud.aiplatform.v1.IModel[]|null); + + /** ListModelVersionsResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListModelVersionsResponse. */ + class ListModelVersionsResponse implements IListModelVersionsResponse { + + /** + * Constructs a new ListModelVersionsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IListModelVersionsResponse); + + /** ListModelVersionsResponse models. */ + public models: google.cloud.aiplatform.v1.IModel[]; + + /** ListModelVersionsResponse nextPageToken. */ + public nextPageToken: string; + + /** + * Creates a new ListModelVersionsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListModelVersionsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IListModelVersionsResponse): google.cloud.aiplatform.v1.ListModelVersionsResponse; + + /** + * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. + * @param message ListModelVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. + * @param message ListModelVersionsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IListModelVersionsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ListModelVersionsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListModelVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.ListModelVersionsResponse; + + /** + * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListModelVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.ListModelVersionsResponse; + + /** + * Verifies a ListModelVersionsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListModelVersionsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.ListModelVersionsResponse; + + /** + * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. + * @param message ListModelVersionsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.ListModelVersionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ListModelVersionsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an UpdateModelRequest. */ interface IUpdateModelRequest { @@ -41200,6 +42293,192 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a DeleteModelVersionRequest. */ + interface IDeleteModelVersionRequest { + + /** DeleteModelVersionRequest name */ + name?: (string|null); + } + + /** Represents a DeleteModelVersionRequest. */ + class DeleteModelVersionRequest implements IDeleteModelVersionRequest { + + /** + * Constructs a new DeleteModelVersionRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IDeleteModelVersionRequest); + + /** DeleteModelVersionRequest name. */ + public name: string; + + /** + * Creates a new DeleteModelVersionRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteModelVersionRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IDeleteModelVersionRequest): google.cloud.aiplatform.v1.DeleteModelVersionRequest; + + /** + * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * @param message DeleteModelVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * @param message DeleteModelVersionRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IDeleteModelVersionRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteModelVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.DeleteModelVersionRequest; + + /** + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteModelVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.DeleteModelVersionRequest; + + /** + * Verifies a DeleteModelVersionRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteModelVersionRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.DeleteModelVersionRequest; + + /** + * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. + * @param message DeleteModelVersionRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.DeleteModelVersionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DeleteModelVersionRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MergeVersionAliasesRequest. */ + interface IMergeVersionAliasesRequest { + + /** MergeVersionAliasesRequest name */ + name?: (string|null); + + /** MergeVersionAliasesRequest versionAliases */ + versionAliases?: (string[]|null); + } + + /** Represents a MergeVersionAliasesRequest. */ + class MergeVersionAliasesRequest implements IMergeVersionAliasesRequest { + + /** + * Constructs a new MergeVersionAliasesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest); + + /** MergeVersionAliasesRequest name. */ + public name: string; + + /** MergeVersionAliasesRequest versionAliases. */ + public versionAliases: string[]; + + /** + * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns MergeVersionAliasesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + + /** + * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * @param message MergeVersionAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * @param message MergeVersionAliasesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MergeVersionAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MergeVersionAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + + /** + * Verifies a MergeVersionAliasesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MergeVersionAliasesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.MergeVersionAliasesRequest; + + /** + * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. + * @param message MergeVersionAliasesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.MergeVersionAliasesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this MergeVersionAliasesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of an ExportModelRequest. */ interface IExportModelRequest { @@ -41776,6 +43055,192 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a BatchImportModelEvaluationSlicesRequest. */ + interface IBatchImportModelEvaluationSlicesRequest { + + /** BatchImportModelEvaluationSlicesRequest parent */ + parent?: (string|null); + + /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices */ + modelEvaluationSlices?: (google.cloud.aiplatform.v1.IModelEvaluationSlice[]|null); + } + + /** Represents a BatchImportModelEvaluationSlicesRequest. */ + class BatchImportModelEvaluationSlicesRequest implements IBatchImportModelEvaluationSlicesRequest { + + /** + * Constructs a new BatchImportModelEvaluationSlicesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest); + + /** BatchImportModelEvaluationSlicesRequest parent. */ + public parent: string; + + /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. */ + public modelEvaluationSlices: google.cloud.aiplatform.v1.IModelEvaluationSlice[]; + + /** + * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportModelEvaluationSlicesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; + + /** + * Verifies a BatchImportModelEvaluationSlicesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportModelEvaluationSlicesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest; + + /** + * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @param message BatchImportModelEvaluationSlicesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchImportModelEvaluationSlicesResponse. */ + interface IBatchImportModelEvaluationSlicesResponse { + + /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices */ + importedModelEvaluationSlices?: (string[]|null); + } + + /** Represents a BatchImportModelEvaluationSlicesResponse. */ + class BatchImportModelEvaluationSlicesResponse implements IBatchImportModelEvaluationSlicesResponse { + + /** + * Constructs a new BatchImportModelEvaluationSlicesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse); + + /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. */ + public importedModelEvaluationSlices: string[]; + + /** + * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportModelEvaluationSlicesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; + + /** + * Verifies a BatchImportModelEvaluationSlicesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportModelEvaluationSlicesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse; + + /** + * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @param message BatchImportModelEvaluationSlicesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchImportModelEvaluationSlicesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a GetModelEvaluationRequest. */ interface IGetModelEvaluationRequest { @@ -45065,6 +46530,12 @@ export namespace google { /** TrainingPipeline modelToUpload */ modelToUpload?: (google.cloud.aiplatform.v1.IModel|null); + /** TrainingPipeline modelId */ + modelId?: (string|null); + + /** TrainingPipeline parentModel */ + parentModel?: (string|null); + /** TrainingPipeline state */ state?: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState|null); @@ -45120,6 +46591,12 @@ export namespace google { /** TrainingPipeline modelToUpload. */ public modelToUpload?: (google.cloud.aiplatform.v1.IModel|null); + /** TrainingPipeline modelId. */ + public modelId: string; + + /** TrainingPipeline parentModel. */ + public parentModel: string; + /** TrainingPipeline state. */ public state: (google.cloud.aiplatform.v1.PipelineState|keyof typeof google.cloud.aiplatform.v1.PipelineState); @@ -45247,6 +46724,9 @@ export namespace google { /** InputDataConfig annotationSchemaUri */ annotationSchemaUri?: (string|null); + + /** InputDataConfig savedQueryId */ + savedQueryId?: (string|null); } /** Represents an InputDataConfig. */ @@ -45288,6 +46768,9 @@ export namespace google { /** InputDataConfig annotationSchemaUri. */ public annotationSchemaUri: string; + /** InputDataConfig savedQueryId. */ + public savedQueryId: string; + /** InputDataConfig split. */ public split?: ("fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"); @@ -46076,6 +47559,9 @@ export namespace google { /** PredictResponse model */ model?: (string|null); + /** PredictResponse modelVersionId */ + modelVersionId?: (string|null); + /** PredictResponse modelDisplayName */ modelDisplayName?: (string|null); } @@ -46098,6 +47584,9 @@ export namespace google { /** PredictResponse model. */ public model: string; + /** PredictResponse modelVersionId. */ + public modelVersionId: string; + /** PredictResponse modelDisplayName. */ public modelDisplayName: string; @@ -62573,6 +64062,9 @@ export namespace google { /** BatchPredictionJob encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** BatchPredictionJob modelMonitoringConfig */ + modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); } /** Represents a BatchPredictionJob. */ @@ -62659,6 +64151,9 @@ export namespace google { /** BatchPredictionJob encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** BatchPredictionJob modelMonitoringConfig. */ + public modelMonitoringConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null); + /** * Creates a new BatchPredictionJob instance using the specified properties. * @param [properties] Properties to set @@ -67648,10248 +69143,10420 @@ export namespace google { public toJSON(): { [k: string]: any }; } - /** Properties of an UnmanagedContainerModel. */ - interface IUnmanagedContainerModel { + /** Properties of a ModelMonitoringConfig. */ + interface IModelMonitoringConfig { - /** UnmanagedContainerModel artifactUri */ - artifactUri?: (string|null); + /** ModelMonitoringConfig objectiveConfigs */ + objectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]|null); - /** UnmanagedContainerModel predictSchemata */ - predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** ModelMonitoringConfig alertConfig */ + alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - /** UnmanagedContainerModel containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + /** ModelMonitoringConfig analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); } - /** Represents an UnmanagedContainerModel. */ - class UnmanagedContainerModel implements IUnmanagedContainerModel { + /** Represents a ModelMonitoringConfig. */ + class ModelMonitoringConfig implements IModelMonitoringConfig { /** - * Constructs a new UnmanagedContainerModel. + * Constructs a new ModelMonitoringConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig); - /** UnmanagedContainerModel artifactUri. */ - public artifactUri: string; + /** ModelMonitoringConfig objectiveConfigs. */ + public objectiveConfigs: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig[]; - /** UnmanagedContainerModel predictSchemata. */ - public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + /** ModelMonitoringConfig alertConfig. */ + public alertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - /** UnmanagedContainerModel containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + /** ModelMonitoringConfig analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; /** - * Creates a new UnmanagedContainerModel instance using the specified properties. + * Creates a new ModelMonitoringConfig instance using the specified properties. * @param [properties] Properties to set - * @returns UnmanagedContainerModel instance + * @returns ModelMonitoringConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Encodes the specified UnmanagedContainerModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. - * @param message UnmanagedContainerModel message or plain object to encode + * Encodes the specified ModelMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. + * @param message ModelMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UnmanagedContainerModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. - * @param message UnmanagedContainerModel message or plain object to encode + * Encodes the specified ModelMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. + * @param message ModelMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UnmanagedContainerModel message from the specified reader or buffer. + * Decodes a ModelMonitoringConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UnmanagedContainerModel + * @returns ModelMonitoringConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Decodes an UnmanagedContainerModel message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UnmanagedContainerModel + * @returns ModelMonitoringConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Verifies an UnmanagedContainerModel message. + * Verifies a ModelMonitoringConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UnmanagedContainerModel message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UnmanagedContainerModel + * @returns ModelMonitoringConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringConfig; /** - * Creates a plain object from an UnmanagedContainerModel message. Also converts values to other types if specified. - * @param message UnmanagedContainerModel + * Creates a plain object from a ModelMonitoringConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UnmanagedContainerModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UnmanagedContainerModel to JSON. + * Converts this ModelMonitoringConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Model. */ - interface IModel { - - /** Model name */ - name?: (string|null); - - /** Model versionId */ - versionId?: (string|null); - - /** Model versionAliases */ - versionAliases?: (string[]|null); - - /** Model versionCreateTime */ - versionCreateTime?: (google.protobuf.ITimestamp|null); - - /** Model versionUpdateTime */ - versionUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Model displayName */ - displayName?: (string|null); - - /** Model description */ - description?: (string|null); - - /** Model versionDescription */ - versionDescription?: (string|null); - - /** Model predictSchemata */ - predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - - /** Model metadataSchemaUri */ - metadataSchemaUri?: (string|null); - - /** Model metadata */ - metadata?: (google.protobuf.IValue|null); - - /** Model supportedExportFormats */ - supportedExportFormats?: (google.cloud.aiplatform.v1beta1.Model.IExportFormat[]|null); - - /** Model trainingPipeline */ - trainingPipeline?: (string|null); - - /** Model containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); - - /** Model artifactUri */ - artifactUri?: (string|null); - - /** Model supportedDeploymentResourcesTypes */ - supportedDeploymentResourcesTypes?: (google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]|null); - - /** Model supportedInputStorageFormats */ - supportedInputStorageFormats?: (string[]|null); - - /** Model supportedOutputStorageFormats */ - supportedOutputStorageFormats?: (string[]|null); - - /** Model createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Model updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Model deployedModels */ - deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|null); + /** Properties of a ModelMonitoringObjectiveConfig. */ + interface IModelMonitoringObjectiveConfig { - /** Model explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + /** ModelMonitoringObjectiveConfig trainingDataset */ + trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - /** Model etag */ - etag?: (string|null); + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ + trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - /** Model labels */ - labels?: ({ [k: string]: string }|null); + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ + predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); - /** Model encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ModelMonitoringObjectiveConfig explanationConfig */ + explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); } - /** Represents a Model. */ - class Model implements IModel { + /** Represents a ModelMonitoringObjectiveConfig. */ + class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { /** - * Constructs a new Model. + * Constructs a new ModelMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModel); - - /** Model name. */ - public name: string; - - /** Model versionId. */ - public versionId: string; - - /** Model versionAliases. */ - public versionAliases: string[]; - - /** Model versionCreateTime. */ - public versionCreateTime?: (google.protobuf.ITimestamp|null); - - /** Model versionUpdateTime. */ - public versionUpdateTime?: (google.protobuf.ITimestamp|null); - - /** Model displayName. */ - public displayName: string; - - /** Model description. */ - public description: string; - - /** Model versionDescription. */ - public versionDescription: string; - - /** Model predictSchemata. */ - public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - - /** Model metadataSchemaUri. */ - public metadataSchemaUri: string; - - /** Model metadata. */ - public metadata?: (google.protobuf.IValue|null); - - /** Model supportedExportFormats. */ - public supportedExportFormats: google.cloud.aiplatform.v1beta1.Model.IExportFormat[]; - - /** Model trainingPipeline. */ - public trainingPipeline: string; - - /** Model containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); - - /** Model artifactUri. */ - public artifactUri: string; - - /** Model supportedDeploymentResourcesTypes. */ - public supportedDeploymentResourcesTypes: google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]; - - /** Model supportedInputStorageFormats. */ - public supportedInputStorageFormats: string[]; - - /** Model supportedOutputStorageFormats. */ - public supportedOutputStorageFormats: string[]; - - /** Model createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Model updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Model deployedModels. */ - public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig); - /** Model explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + /** ModelMonitoringObjectiveConfig trainingDataset. */ + public trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - /** Model etag. */ - public etag: string; + /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ + public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - /** Model labels. */ - public labels: { [k: string]: string }; + /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ + public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); - /** Model encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ModelMonitoringObjectiveConfig explanationConfig. */ + public explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); /** - * Creates a new Model instance using the specified properties. + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Model instance + * @returns ModelMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModel): google.cloud.aiplatform.v1beta1.Model; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Encodes the specified Model message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. - * @param message Model message or plain object to encode + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. - * @param message Model message or plain object to encode + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Model message from the specified reader or buffer. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Model + * @returns ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Model; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Decodes a Model message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Model + * @returns ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Model; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Verifies a Model message. + * Verifies a ModelMonitoringObjectiveConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Model message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Model + * @returns ModelMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; /** - * Creates a plain object from a Model message. Also converts values to other types if specified. - * @param message Model + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringObjectiveConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Model, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Model to JSON. + * Converts this ModelMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Model { + namespace ModelMonitoringObjectiveConfig { - /** Properties of an ExportFormat. */ - interface IExportFormat { + /** Properties of a TrainingDataset. */ + interface ITrainingDataset { - /** ExportFormat id */ - id?: (string|null); + /** TrainingDataset dataset */ + dataset?: (string|null); - /** ExportFormat exportableContents */ - exportableContents?: (google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]|null); + /** TrainingDataset gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + + /** TrainingDataset bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** TrainingDataset dataFormat */ + dataFormat?: (string|null); + + /** TrainingDataset targetField */ + targetField?: (string|null); + + /** TrainingDataset loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); } - /** Represents an ExportFormat. */ - class ExportFormat implements IExportFormat { + /** Represents a TrainingDataset. */ + class TrainingDataset implements ITrainingDataset { /** - * Constructs a new ExportFormat. + * Constructs a new TrainingDataset. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat); + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset); - /** ExportFormat id. */ - public id: string; + /** TrainingDataset dataset. */ + public dataset?: (string|null); - /** ExportFormat exportableContents. */ - public exportableContents: google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]; + /** TrainingDataset gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + + /** TrainingDataset bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + + /** TrainingDataset dataFormat. */ + public dataFormat: string; + + /** TrainingDataset targetField. */ + public targetField: string; + + /** TrainingDataset loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + + /** TrainingDataset dataSource. */ + public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); /** - * Creates a new ExportFormat instance using the specified properties. + * Creates a new TrainingDataset instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFormat instance + * @returns TrainingDataset instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; /** - * Encodes the specified ExportFormat message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. - * @param message ExportFormat message or plain object to encode + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFormat message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. - * @param message ExportFormat message or plain object to encode + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. + * @param message TrainingDataset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFormat message from the specified reader or buffer. + * Decodes a TrainingDataset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFormat + * @returns TrainingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; /** - * Decodes an ExportFormat message from the specified reader or buffer, length delimited. + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFormat + * @returns TrainingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; /** - * Verifies an ExportFormat message. + * Verifies a TrainingDataset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportFormat message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFormat + * @returns TrainingDataset */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model.ExportFormat; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; /** - * Creates a plain object from an ExportFormat message. Also converts values to other types if specified. - * @param message ExportFormat + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. + * @param message TrainingDataset * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Model.ExportFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFormat to JSON. + * Converts this TrainingDataset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ExportFormat { + /** Properties of a TrainingPredictionSkewDetectionConfig. */ + interface ITrainingPredictionSkewDetectionConfig { - /** ExportableContent enum. */ - enum ExportableContent { - EXPORTABLE_CONTENT_UNSPECIFIED = 0, - ARTIFACT = 1, - IMAGE = 2 - } - } + /** TrainingPredictionSkewDetectionConfig skewThresholds */ + skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - /** DeploymentResourcesType enum. */ - enum DeploymentResourcesType { - DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0, - DEDICATED_RESOURCES = 1, - AUTOMATIC_RESOURCES = 2 + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ + attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ + defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); } - } - /** Properties of a PredictSchemata. */ - interface IPredictSchemata { + /** Represents a TrainingPredictionSkewDetectionConfig. */ + class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { - /** PredictSchemata instanceSchemaUri */ - instanceSchemaUri?: (string|null); + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); - /** PredictSchemata parametersSchemaUri */ - parametersSchemaUri?: (string|null); + /** TrainingPredictionSkewDetectionConfig skewThresholds. */ + public skewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - /** PredictSchemata predictionSchemaUri */ - predictionSchemaUri?: (string|null); - } + /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ + public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - /** Represents a PredictSchemata. */ - class PredictSchemata implements IPredictSchemata { + /** TrainingPredictionSkewDetectionConfig defaultSkewThreshold. */ + public defaultSkewThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - /** - * Constructs a new PredictSchemata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata); + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns TrainingPredictionSkewDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** PredictSchemata instanceSchemaUri. */ - public instanceSchemaUri: string; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** PredictSchemata parametersSchemaUri. */ - public parametersSchemaUri: string; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** PredictSchemata predictionSchemaUri. */ - public predictionSchemaUri: string; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Creates a new PredictSchemata instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictSchemata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata): google.cloud.aiplatform.v1beta1.PredictSchemata; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Encodes the specified PredictSchemata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. - * @param message PredictSchemata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a TrainingPredictionSkewDetectionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified PredictSchemata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. - * @param message PredictSchemata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns TrainingPredictionSkewDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; - /** - * Decodes a PredictSchemata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictSchemata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictSchemata; + /** + * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. + * @param message TrainingPredictionSkewDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a PredictSchemata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictSchemata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictSchemata; + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Verifies a PredictSchemata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of a PredictionDriftDetectionConfig. */ + interface IPredictionDriftDetectionConfig { - /** - * Creates a PredictSchemata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictSchemata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictSchemata; + /** PredictionDriftDetectionConfig driftThresholds */ + driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - /** - * Creates a plain object from a PredictSchemata message. Also converts values to other types if specified. - * @param message PredictSchemata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PredictSchemata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ + attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - /** - * Converts this PredictSchemata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** PredictionDriftDetectionConfig defaultDriftThreshold */ + defaultDriftThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + } - /** Properties of a ModelContainerSpec. */ - interface IModelContainerSpec { + /** Represents a PredictionDriftDetectionConfig. */ + class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { - /** ModelContainerSpec imageUri */ - imageUri?: (string|null); + /** + * Constructs a new PredictionDriftDetectionConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); - /** ModelContainerSpec command */ - command?: (string[]|null); + /** PredictionDriftDetectionConfig driftThresholds. */ + public driftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - /** ModelContainerSpec args */ - args?: (string[]|null); + /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ + public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; - /** ModelContainerSpec env */ - env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); + /** PredictionDriftDetectionConfig defaultDriftThreshold. */ + public defaultDriftThreshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - /** ModelContainerSpec ports */ - ports?: (google.cloud.aiplatform.v1beta1.IPort[]|null); + /** + * Creates a new PredictionDriftDetectionConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictionDriftDetectionConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** ModelContainerSpec predictRoute */ - predictRoute?: (string|null); + /** + * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** ModelContainerSpec healthRoute */ - healthRoute?: (string|null); - } + /** + * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @param message PredictionDriftDetectionConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ModelContainerSpec. */ - class ModelContainerSpec implements IModelContainerSpec { + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PredictionDriftDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** - * Constructs a new ModelContainerSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec); + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PredictionDriftDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** ModelContainerSpec imageUri. */ - public imageUri: string; + /** + * Verifies a PredictionDriftDetectionConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ModelContainerSpec command. */ - public command: string[]; + /** + * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PredictionDriftDetectionConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; - /** ModelContainerSpec args. */ - public args: string[]; + /** + * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. + * @param message PredictionDriftDetectionConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ModelContainerSpec env. */ - public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; + /** + * Converts this PredictionDriftDetectionConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ModelContainerSpec ports. */ - public ports: google.cloud.aiplatform.v1beta1.IPort[]; + /** Properties of an ExplanationConfig. */ + interface IExplanationConfig { - /** ModelContainerSpec predictRoute. */ - public predictRoute: string; + /** ExplanationConfig enableFeatureAttributes */ + enableFeatureAttributes?: (boolean|null); - /** ModelContainerSpec healthRoute. */ - public healthRoute: string; + /** ExplanationConfig explanationBaseline */ + explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + } - /** - * Creates a new ModelContainerSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ModelContainerSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + /** Represents an ExplanationConfig. */ + class ExplanationConfig implements IExplanationConfig { - /** - * Encodes the specified ModelContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. - * @param message ModelContainerSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Constructs a new ExplanationConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig); - /** - * Encodes the specified ModelContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. - * @param message ModelContainerSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** ExplanationConfig enableFeatureAttributes. */ + public enableFeatureAttributes: boolean; - /** - * Decodes a ModelContainerSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ModelContainerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + /** ExplanationConfig explanationBaseline. */ + public explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); - /** - * Decodes a ModelContainerSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ModelContainerSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + /** + * Creates a new ExplanationConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** - * Verifies a ModelContainerSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a ModelContainerSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ModelContainerSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelContainerSpec; + /** + * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @param message ExplanationConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a ModelContainerSpec message. Also converts values to other types if specified. - * @param message ModelContainerSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an ExplanationConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; - /** - * Converts this ModelContainerSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; + + /** + * Verifies an ExplanationConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; + + /** + * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * @param message ExplanationConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExplanationConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ExplanationConfig { + + /** Properties of an ExplanationBaseline. */ + interface IExplanationBaseline { + + /** ExplanationBaseline gcs */ + gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ExplanationBaseline bigquery */ + bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** ExplanationBaseline predictionFormat */ + predictionFormat?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); + } + + /** Represents an ExplanationBaseline. */ + class ExplanationBaseline implements IExplanationBaseline { + + /** + * Constructs a new ExplanationBaseline. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); + + /** ExplanationBaseline gcs. */ + public gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ExplanationBaseline bigquery. */ + public bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + + /** ExplanationBaseline predictionFormat. */ + public predictionFormat: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); + + /** ExplanationBaseline destination. */ + public destination?: ("gcs"|"bigquery"); + + /** + * Creates a new ExplanationBaseline instance using the specified properties. + * @param [properties] Properties to set + * @returns ExplanationBaseline instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @param message ExplanationBaseline message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Verifies an ExplanationBaseline message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExplanationBaseline + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + + /** + * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. + * @param message ExplanationBaseline + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ExplanationBaseline to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ExplanationBaseline { + + /** PredictionFormat enum. */ + enum PredictionFormat { + PREDICTION_FORMAT_UNSPECIFIED = 0, + JSONL = 2, + BIGQUERY = 3 + } + } + } } - /** Properties of a Port. */ - interface IPort { + /** Properties of a ModelMonitoringAlertConfig. */ + interface IModelMonitoringAlertConfig { - /** Port containerPort */ - containerPort?: (number|null); + /** ModelMonitoringAlertConfig emailAlertConfig */ + emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging */ + enableLogging?: (boolean|null); } - /** Represents a Port. */ - class Port implements IPort { + /** Represents a ModelMonitoringAlertConfig. */ + class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { /** - * Constructs a new Port. + * Constructs a new ModelMonitoringAlertConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPort); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig); - /** Port containerPort. */ - public containerPort: number; + /** ModelMonitoringAlertConfig emailAlertConfig. */ + public emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + + /** ModelMonitoringAlertConfig enableLogging. */ + public enableLogging: boolean; + + /** ModelMonitoringAlertConfig alert. */ + public alert?: "emailAlertConfig"; /** - * Creates a new Port instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @param [properties] Properties to set - * @returns Port instance + * @returns ModelMonitoringAlertConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPort): google.cloud.aiplatform.v1beta1.Port; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Encodes the specified Port message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. - * @param message Port message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Port message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. - * @param message Port message or plain object to encode + * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. + * @param message ModelMonitoringAlertConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Port message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Port + * @returns ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Port; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Decodes a Port message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Port + * @returns ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Port; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Verifies a Port message. + * Verifies a ModelMonitoringAlertConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Port message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Port + * @returns ModelMonitoringAlertConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Port; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; /** - * Creates a plain object from a Port message. Also converts values to other types if specified. - * @param message Port + * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. + * @param message ModelMonitoringAlertConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Port, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Port to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployedModelRef. */ - interface IDeployedModelRef { - - /** DeployedModelRef endpoint */ - endpoint?: (string|null); + namespace ModelMonitoringAlertConfig { - /** DeployedModelRef deployedModelId */ - deployedModelId?: (string|null); + /** Properties of an EmailAlertConfig. */ + interface IEmailAlertConfig { + + /** EmailAlertConfig userEmails */ + userEmails?: (string[]|null); + } + + /** Represents an EmailAlertConfig. */ + class EmailAlertConfig implements IEmailAlertConfig { + + /** + * Constructs a new EmailAlertConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig); + + /** EmailAlertConfig userEmails. */ + public userEmails: string[]; + + /** + * Creates a new EmailAlertConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns EmailAlertConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @param message EmailAlertConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EmailAlertConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EmailAlertConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Verifies an EmailAlertConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EmailAlertConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; + + /** + * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * @param message EmailAlertConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this EmailAlertConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a DeployedModelRef. */ - class DeployedModelRef implements IDeployedModelRef { + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { + + /** ThresholdConfig value */ + value?: (number|null); + } + + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { /** - * Constructs a new DeployedModelRef. + * Constructs a new ThresholdConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef); + constructor(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig); - /** DeployedModelRef endpoint. */ - public endpoint: string; + /** ThresholdConfig value. */ + public value?: (number|null); - /** DeployedModelRef deployedModelId. */ - public deployedModelId: string; + /** ThresholdConfig threshold. */ + public threshold?: "value"; /** - * Creates a new DeployedModelRef instance using the specified properties. + * Creates a new ThresholdConfig instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedModelRef instance + * @returns ThresholdConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef): google.cloud.aiplatform.v1beta1.DeployedModelRef; + public static create(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Encodes the specified DeployedModelRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. - * @param message DeployedModelRef message or plain object to encode + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedModelRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. - * @param message DeployedModelRef message or plain object to encode + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedModelRef message from the specified reader or buffer. + * Decodes a ThresholdConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedModelRef + * @returns ThresholdConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedModelRef; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Decodes a DeployedModelRef message from the specified reader or buffer, length delimited. + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedModelRef + * @returns ThresholdConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedModelRef; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Verifies a DeployedModelRef message. + * Verifies a ThresholdConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployedModelRef message from a plain object. Also converts values to their respective internal types. + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedModelRef + * @returns ThresholdConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModelRef; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ThresholdConfig; /** - * Creates a plain object from a DeployedModelRef message. Also converts values to other types if specified. - * @param message DeployedModelRef + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @param message ThresholdConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModelRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedModelRef to JSON. + * Converts this ThresholdConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EnvVar. */ - interface IEnvVar { - - /** EnvVar name */ - name?: (string|null); + /** Properties of a SamplingStrategy. */ + interface ISamplingStrategy { - /** EnvVar value */ - value?: (string|null); + /** SamplingStrategy randomSampleConfig */ + randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); } - /** Represents an EnvVar. */ - class EnvVar implements IEnvVar { + /** Represents a SamplingStrategy. */ + class SamplingStrategy implements ISamplingStrategy { /** - * Constructs a new EnvVar. + * Constructs a new SamplingStrategy. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEnvVar); - - /** EnvVar name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy); - /** EnvVar value. */ - public value: string; + /** SamplingStrategy randomSampleConfig. */ + public randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); /** - * Creates a new EnvVar instance using the specified properties. + * Creates a new SamplingStrategy instance using the specified properties. * @param [properties] Properties to set - * @returns EnvVar instance + * @returns SamplingStrategy instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEnvVar): google.cloud.aiplatform.v1beta1.EnvVar; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Encodes the specified EnvVar message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. - * @param message EnvVar message or plain object to encode + * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EnvVar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. - * @param message EnvVar message or plain object to encode + * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. + * @param message SamplingStrategy message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EnvVar message from the specified reader or buffer. + * Decodes a SamplingStrategy message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EnvVar + * @returns SamplingStrategy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EnvVar; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Decodes an EnvVar message from the specified reader or buffer, length delimited. + * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EnvVar + * @returns SamplingStrategy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EnvVar; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Verifies an EnvVar message. + * Verifies a SamplingStrategy message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EnvVar message from a plain object. Also converts values to their respective internal types. + * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EnvVar + * @returns SamplingStrategy */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EnvVar; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy; /** - * Creates a plain object from an EnvVar message. Also converts values to other types if specified. - * @param message EnvVar + * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. + * @param message SamplingStrategy * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.EnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EnvVar to JSON. + * Converts this SamplingStrategy to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Context. */ - interface IContext { - - /** Context name */ - name?: (string|null); + namespace SamplingStrategy { - /** Context displayName */ - displayName?: (string|null); + /** Properties of a RandomSampleConfig. */ + interface IRandomSampleConfig { - /** Context etag */ - etag?: (string|null); + /** RandomSampleConfig sampleRate */ + sampleRate?: (number|null); + } - /** Context labels */ - labels?: ({ [k: string]: string }|null); + /** Represents a RandomSampleConfig. */ + class RandomSampleConfig implements IRandomSampleConfig { - /** Context createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new RandomSampleConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig); - /** Context updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** RandomSampleConfig sampleRate. */ + public sampleRate: number; - /** Context parentContexts */ - parentContexts?: (string[]|null); + /** + * Creates a new RandomSampleConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns RandomSampleConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; - /** Context schemaTitle */ - schemaTitle?: (string|null); + /** + * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Context schemaVersion */ - schemaVersion?: (string|null); + /** + * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @param message RandomSampleConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; - /** Context metadata */ - metadata?: (google.protobuf.IStruct|null); + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; - /** Context description */ - description?: (string|null); - } + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; - /** Represents a Context. */ - class Context implements IContext { + /** + * Verifies a RandomSampleConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new Context. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IContext); + /** + * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RandomSampleConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; - /** Context name. */ - public name: string; + /** + * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * @param message RandomSampleConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Context displayName. */ - public displayName: string; + /** + * Converts this RandomSampleConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } - /** Context etag. */ - public etag: string; + /** Properties of an UnmanagedContainerModel. */ + interface IUnmanagedContainerModel { - /** Context labels. */ - public labels: { [k: string]: string }; + /** UnmanagedContainerModel artifactUri */ + artifactUri?: (string|null); - /** Context createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** UnmanagedContainerModel predictSchemata */ + predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - /** Context updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** UnmanagedContainerModel containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + } - /** Context parentContexts. */ - public parentContexts: string[]; + /** Represents an UnmanagedContainerModel. */ + class UnmanagedContainerModel implements IUnmanagedContainerModel { - /** Context schemaTitle. */ - public schemaTitle: string; + /** + * Constructs a new UnmanagedContainerModel. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel); - /** Context schemaVersion. */ - public schemaVersion: string; + /** UnmanagedContainerModel artifactUri. */ + public artifactUri: string; - /** Context metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** UnmanagedContainerModel predictSchemata. */ + public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - /** Context description. */ - public description: string; + /** UnmanagedContainerModel containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); /** - * Creates a new Context instance using the specified properties. + * Creates a new UnmanagedContainerModel instance using the specified properties. * @param [properties] Properties to set - * @returns Context instance + * @returns UnmanagedContainerModel instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IContext): google.cloud.aiplatform.v1beta1.Context; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. - * @param message Context message or plain object to encode + * Encodes the specified UnmanagedContainerModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. + * @param message UnmanagedContainerModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. - * @param message Context message or plain object to encode + * Encodes the specified UnmanagedContainerModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. + * @param message UnmanagedContainerModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Context message from the specified reader or buffer. + * Decodes an UnmanagedContainerModel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Context + * @returns UnmanagedContainerModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Context; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Decodes a Context message from the specified reader or buffer, length delimited. + * Decodes an UnmanagedContainerModel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Context + * @returns UnmanagedContainerModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Context; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Verifies a Context message. + * Verifies an UnmanagedContainerModel message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Context message from a plain object. Also converts values to their respective internal types. + * Creates an UnmanagedContainerModel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Context + * @returns UnmanagedContainerModel */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Context; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UnmanagedContainerModel; /** - * Creates a plain object from a Context message. Also converts values to other types if specified. - * @param message Context + * Creates a plain object from an UnmanagedContainerModel message. Also converts values to other types if specified. + * @param message UnmanagedContainerModel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Context, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UnmanagedContainerModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Context to JSON. + * Converts this UnmanagedContainerModel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CustomJob. */ - interface ICustomJob { + /** Properties of a Model. */ + interface IModel { - /** CustomJob name */ + /** Model name */ name?: (string|null); - /** CustomJob displayName */ - displayName?: (string|null); + /** Model versionId */ + versionId?: (string|null); - /** CustomJob jobSpec */ - jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + /** Model versionAliases */ + versionAliases?: (string[]|null); - /** CustomJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); + /** Model versionCreateTime */ + versionCreateTime?: (google.protobuf.ITimestamp|null); - /** CustomJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Model versionUpdateTime */ + versionUpdateTime?: (google.protobuf.ITimestamp|null); - /** CustomJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Model displayName */ + displayName?: (string|null); - /** CustomJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** Model description */ + description?: (string|null); - /** CustomJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Model versionDescription */ + versionDescription?: (string|null); - /** CustomJob error */ - error?: (google.rpc.IStatus|null); + /** Model predictSchemata */ + predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); - /** CustomJob labels */ - labels?: ({ [k: string]: string }|null); + /** Model metadataSchemaUri */ + metadataSchemaUri?: (string|null); - /** CustomJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** Model metadata */ + metadata?: (google.protobuf.IValue|null); - /** CustomJob webAccessUris */ - webAccessUris?: ({ [k: string]: string }|null); - } + /** Model supportedExportFormats */ + supportedExportFormats?: (google.cloud.aiplatform.v1beta1.Model.IExportFormat[]|null); - /** Represents a CustomJob. */ - class CustomJob implements ICustomJob { + /** Model trainingPipeline */ + trainingPipeline?: (string|null); - /** - * Constructs a new CustomJob. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJob); + /** Model containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); - /** CustomJob name. */ - public name: string; + /** Model artifactUri */ + artifactUri?: (string|null); - /** CustomJob displayName. */ - public displayName: string; + /** Model supportedDeploymentResourcesTypes */ + supportedDeploymentResourcesTypes?: (google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]|null); - /** CustomJob jobSpec. */ - public jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); + /** Model supportedInputStorageFormats */ + supportedInputStorageFormats?: (string[]|null); - /** CustomJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); + /** Model supportedOutputStorageFormats */ + supportedOutputStorageFormats?: (string[]|null); - /** CustomJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Model createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** CustomJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** Model updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** CustomJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** Model deployedModels */ + deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModelRef[]|null); - /** CustomJob updateTime. */ + /** Model explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** Model etag */ + etag?: (string|null); + + /** Model labels */ + labels?: ({ [k: string]: string }|null); + + /** Model encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + } + + /** Represents a Model. */ + class Model implements IModel { + + /** + * Constructs a new Model. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModel); + + /** Model name. */ + public name: string; + + /** Model versionId. */ + public versionId: string; + + /** Model versionAliases. */ + public versionAliases: string[]; + + /** Model versionCreateTime. */ + public versionCreateTime?: (google.protobuf.ITimestamp|null); + + /** Model versionUpdateTime. */ + public versionUpdateTime?: (google.protobuf.ITimestamp|null); + + /** Model displayName. */ + public displayName: string; + + /** Model description. */ + public description: string; + + /** Model versionDescription. */ + public versionDescription: string; + + /** Model predictSchemata. */ + public predictSchemata?: (google.cloud.aiplatform.v1beta1.IPredictSchemata|null); + + /** Model metadataSchemaUri. */ + public metadataSchemaUri: string; + + /** Model metadata. */ + public metadata?: (google.protobuf.IValue|null); + + /** Model supportedExportFormats. */ + public supportedExportFormats: google.cloud.aiplatform.v1beta1.Model.IExportFormat[]; + + /** Model trainingPipeline. */ + public trainingPipeline: string; + + /** Model containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IModelContainerSpec|null); + + /** Model artifactUri. */ + public artifactUri: string; + + /** Model supportedDeploymentResourcesTypes. */ + public supportedDeploymentResourcesTypes: google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[]; + + /** Model supportedInputStorageFormats. */ + public supportedInputStorageFormats: string[]; + + /** Model supportedOutputStorageFormats. */ + public supportedOutputStorageFormats: string[]; + + /** Model createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Model updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); - /** CustomJob error. */ - public error?: (google.rpc.IStatus|null); + /** Model deployedModels. */ + public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModelRef[]; - /** CustomJob labels. */ + /** Model explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** Model etag. */ + public etag: string; + + /** Model labels. */ public labels: { [k: string]: string }; - /** CustomJob encryptionSpec. */ + /** Model encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** CustomJob webAccessUris. */ - public webAccessUris: { [k: string]: string }; - /** - * Creates a new CustomJob instance using the specified properties. + * Creates a new Model instance using the specified properties. * @param [properties] Properties to set - * @returns CustomJob instance + * @returns Model instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJob): google.cloud.aiplatform.v1beta1.CustomJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModel): google.cloud.aiplatform.v1beta1.Model; /** - * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. - * @param message CustomJob message or plain object to encode + * Encodes the specified Model message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. + * @param message Model message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. - * @param message CustomJob message or plain object to encode + * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. + * @param message Model message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomJob message from the specified reader or buffer. + * Decodes a Model message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomJob + * @returns Model * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CustomJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Model; /** - * Decodes a CustomJob message from the specified reader or buffer, length delimited. + * Decodes a Model message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomJob + * @returns Model * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CustomJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Model; /** - * Verifies a CustomJob message. + * Verifies a Model message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CustomJob message from a plain object. Also converts values to their respective internal types. + * Creates a Model message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomJob + * @returns Model */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model; /** - * Creates a plain object from a CustomJob message. Also converts values to other types if specified. - * @param message CustomJob + * Creates a plain object from a Model message. Also converts values to other types if specified. + * @param message Model * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Model, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomJob to JSON. + * Converts this Model to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CustomJobSpec. */ - interface ICustomJobSpec { + namespace Model { - /** CustomJobSpec workerPoolSpecs */ - workerPoolSpecs?: (google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]|null); + /** Properties of an ExportFormat. */ + interface IExportFormat { - /** CustomJobSpec scheduling */ - scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); + /** ExportFormat id */ + id?: (string|null); - /** CustomJobSpec serviceAccount */ - serviceAccount?: (string|null); + /** ExportFormat exportableContents */ + exportableContents?: (google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]|null); + } - /** CustomJobSpec network */ - network?: (string|null); + /** Represents an ExportFormat. */ + class ExportFormat implements IExportFormat { - /** CustomJobSpec reservedIpRanges */ - reservedIpRanges?: (string[]|null); + /** + * Constructs a new ExportFormat. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat); - /** CustomJobSpec baseOutputDirectory */ - baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** ExportFormat id. */ + public id: string; - /** CustomJobSpec tensorboard */ - tensorboard?: (string|null); + /** ExportFormat exportableContents. */ + public exportableContents: google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[]; - /** CustomJobSpec enableWebAccess */ - enableWebAccess?: (boolean|null); - } + /** + * Creates a new ExportFormat instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFormat instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Model.IExportFormat): google.cloud.aiplatform.v1beta1.Model.ExportFormat; - /** Represents a CustomJobSpec. */ - class CustomJobSpec implements ICustomJobSpec { + /** + * Encodes the specified ExportFormat message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. + * @param message ExportFormat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new CustomJobSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec); + /** + * Encodes the specified ExportFormat message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. + * @param message ExportFormat message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Model.IExportFormat, writer?: $protobuf.Writer): $protobuf.Writer; - /** CustomJobSpec workerPoolSpecs. */ - public workerPoolSpecs: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]; + /** + * Decodes an ExportFormat message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportFormat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Model.ExportFormat; - /** CustomJobSpec scheduling. */ - public scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); + /** + * Decodes an ExportFormat message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportFormat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Model.ExportFormat; - /** CustomJobSpec serviceAccount. */ - public serviceAccount: string; + /** + * Verifies an ExportFormat message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** CustomJobSpec network. */ - public network: string; + /** + * Creates an ExportFormat message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportFormat + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Model.ExportFormat; - /** CustomJobSpec reservedIpRanges. */ - public reservedIpRanges: string[]; + /** + * Creates a plain object from an ExportFormat message. Also converts values to other types if specified. + * @param message ExportFormat + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Model.ExportFormat, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CustomJobSpec baseOutputDirectory. */ - public baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** + * Converts this ExportFormat to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CustomJobSpec tensorboard. */ - public tensorboard: string; + namespace ExportFormat { - /** CustomJobSpec enableWebAccess. */ - public enableWebAccess: boolean; + /** ExportableContent enum. */ + enum ExportableContent { + EXPORTABLE_CONTENT_UNSPECIFIED = 0, + ARTIFACT = 1, + IMAGE = 2 + } + } + + /** DeploymentResourcesType enum. */ + enum DeploymentResourcesType { + DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED = 0, + DEDICATED_RESOURCES = 1, + AUTOMATIC_RESOURCES = 2 + } + } + + /** Properties of a PredictSchemata. */ + interface IPredictSchemata { + + /** PredictSchemata instanceSchemaUri */ + instanceSchemaUri?: (string|null); + + /** PredictSchemata parametersSchemaUri */ + parametersSchemaUri?: (string|null); + + /** PredictSchemata predictionSchemaUri */ + predictionSchemaUri?: (string|null); + } + + /** Represents a PredictSchemata. */ + class PredictSchemata implements IPredictSchemata { /** - * Creates a new CustomJobSpec instance using the specified properties. + * Constructs a new PredictSchemata. * @param [properties] Properties to set - * @returns CustomJobSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec): google.cloud.aiplatform.v1beta1.CustomJobSpec; + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata); + + /** PredictSchemata instanceSchemaUri. */ + public instanceSchemaUri: string; + + /** PredictSchemata parametersSchemaUri. */ + public parametersSchemaUri: string; + + /** PredictSchemata predictionSchemaUri. */ + public predictionSchemaUri: string; /** - * Encodes the specified CustomJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. - * @param message CustomJobSpec message or plain object to encode + * Creates a new PredictSchemata instance using the specified properties. + * @param [properties] Properties to set + * @returns PredictSchemata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictSchemata): google.cloud.aiplatform.v1beta1.PredictSchemata; + + /** + * Encodes the specified PredictSchemata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. + * @param message PredictSchemata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CustomJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. - * @param message CustomJobSpec message or plain object to encode + * Encodes the specified PredictSchemata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. + * @param message PredictSchemata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictSchemata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CustomJobSpec message from the specified reader or buffer. + * Decodes a PredictSchemata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CustomJobSpec + * @returns PredictSchemata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CustomJobSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Decodes a CustomJobSpec message from the specified reader or buffer, length delimited. + * Decodes a PredictSchemata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CustomJobSpec + * @returns PredictSchemata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CustomJobSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Verifies a CustomJobSpec message. + * Verifies a PredictSchemata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CustomJobSpec message from a plain object. Also converts values to their respective internal types. + * Creates a PredictSchemata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CustomJobSpec + * @returns PredictSchemata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJobSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictSchemata; /** - * Creates a plain object from a CustomJobSpec message. Also converts values to other types if specified. - * @param message CustomJobSpec + * Creates a plain object from a PredictSchemata message. Also converts values to other types if specified. + * @param message PredictSchemata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PredictSchemata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CustomJobSpec to JSON. + * Converts this PredictSchemata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a WorkerPoolSpec. */ - interface IWorkerPoolSpec { + /** Properties of a ModelContainerSpec. */ + interface IModelContainerSpec { - /** WorkerPoolSpec containerSpec */ - containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); + /** ModelContainerSpec imageUri */ + imageUri?: (string|null); - /** WorkerPoolSpec pythonPackageSpec */ - pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); + /** ModelContainerSpec command */ + command?: (string[]|null); - /** WorkerPoolSpec machineSpec */ - machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + /** ModelContainerSpec args */ + args?: (string[]|null); - /** WorkerPoolSpec replicaCount */ - replicaCount?: (number|Long|string|null); + /** ModelContainerSpec env */ + env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); - /** WorkerPoolSpec nfsMounts */ - nfsMounts?: (google.cloud.aiplatform.v1beta1.INfsMount[]|null); + /** ModelContainerSpec ports */ + ports?: (google.cloud.aiplatform.v1beta1.IPort[]|null); - /** WorkerPoolSpec diskSpec */ - diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + /** ModelContainerSpec predictRoute */ + predictRoute?: (string|null); + + /** ModelContainerSpec healthRoute */ + healthRoute?: (string|null); } - /** Represents a WorkerPoolSpec. */ - class WorkerPoolSpec implements IWorkerPoolSpec { + /** Represents a ModelContainerSpec. */ + class ModelContainerSpec implements IModelContainerSpec { /** - * Constructs a new WorkerPoolSpec. + * Constructs a new ModelContainerSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec); - /** WorkerPoolSpec containerSpec. */ - public containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); + /** ModelContainerSpec imageUri. */ + public imageUri: string; - /** WorkerPoolSpec pythonPackageSpec. */ - public pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); + /** ModelContainerSpec command. */ + public command: string[]; - /** WorkerPoolSpec machineSpec. */ - public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + /** ModelContainerSpec args. */ + public args: string[]; - /** WorkerPoolSpec replicaCount. */ - public replicaCount: (number|Long|string); + /** ModelContainerSpec env. */ + public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; - /** WorkerPoolSpec nfsMounts. */ - public nfsMounts: google.cloud.aiplatform.v1beta1.INfsMount[]; + /** ModelContainerSpec ports. */ + public ports: google.cloud.aiplatform.v1beta1.IPort[]; - /** WorkerPoolSpec diskSpec. */ - public diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + /** ModelContainerSpec predictRoute. */ + public predictRoute: string; - /** WorkerPoolSpec task. */ - public task?: ("containerSpec"|"pythonPackageSpec"); + /** ModelContainerSpec healthRoute. */ + public healthRoute: string; /** - * Creates a new WorkerPoolSpec instance using the specified properties. + * Creates a new ModelContainerSpec instance using the specified properties. * @param [properties] Properties to set - * @returns WorkerPoolSpec instance + * @returns ModelContainerSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelContainerSpec): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Encodes the specified WorkerPoolSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. - * @param message WorkerPoolSpec message or plain object to encode + * Encodes the specified ModelContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. + * @param message ModelContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified WorkerPoolSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. - * @param message WorkerPoolSpec message or plain object to encode + * Encodes the specified ModelContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. + * @param message ModelContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a WorkerPoolSpec message from the specified reader or buffer. + * Decodes a ModelContainerSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns WorkerPoolSpec + * @returns ModelContainerSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Decodes a WorkerPoolSpec message from the specified reader or buffer, length delimited. + * Decodes a ModelContainerSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns WorkerPoolSpec + * @returns ModelContainerSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Verifies a WorkerPoolSpec message. + * Verifies a ModelContainerSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a WorkerPoolSpec message from a plain object. Also converts values to their respective internal types. + * Creates a ModelContainerSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns WorkerPoolSpec + * @returns ModelContainerSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelContainerSpec; /** - * Creates a plain object from a WorkerPoolSpec message. Also converts values to other types if specified. - * @param message WorkerPoolSpec + * Creates a plain object from a ModelContainerSpec message. Also converts values to other types if specified. + * @param message ModelContainerSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.WorkerPoolSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this WorkerPoolSpec to JSON. + * Converts this ModelContainerSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ContainerSpec. */ - interface IContainerSpec { - - /** ContainerSpec imageUri */ - imageUri?: (string|null); - - /** ContainerSpec command */ - command?: (string[]|null); + /** Properties of a Port. */ + interface IPort { - /** ContainerSpec args */ - args?: (string[]|null); + /** Port containerPort */ + containerPort?: (number|null); } - /** Represents a ContainerSpec. */ - class ContainerSpec implements IContainerSpec { + /** Represents a Port. */ + class Port implements IPort { /** - * Constructs a new ContainerSpec. + * Constructs a new Port. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPort); - /** ContainerSpec imageUri. */ - public imageUri: string; - - /** ContainerSpec command. */ - public command: string[]; - - /** ContainerSpec args. */ - public args: string[]; + /** Port containerPort. */ + public containerPort: number; /** - * Creates a new ContainerSpec instance using the specified properties. + * Creates a new Port instance using the specified properties. * @param [properties] Properties to set - * @returns ContainerSpec instance + * @returns Port instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec): google.cloud.aiplatform.v1beta1.ContainerSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPort): google.cloud.aiplatform.v1beta1.Port; /** - * Encodes the specified ContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. - * @param message ContainerSpec message or plain object to encode + * Encodes the specified Port message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. + * @param message Port message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. - * @param message ContainerSpec message or plain object to encode + * Encodes the specified Port message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. + * @param message Port message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPort, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ContainerSpec message from the specified reader or buffer. + * Decodes a Port message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ContainerSpec + * @returns Port * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ContainerSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Port; /** - * Decodes a ContainerSpec message from the specified reader or buffer, length delimited. + * Decodes a Port message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ContainerSpec + * @returns Port * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ContainerSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Port; /** - * Verifies a ContainerSpec message. + * Verifies a Port message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ContainerSpec message from a plain object. Also converts values to their respective internal types. + * Creates a Port message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ContainerSpec + * @returns Port */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Port; /** - * Creates a plain object from a ContainerSpec message. Also converts values to other types if specified. - * @param message ContainerSpec + * Creates a plain object from a Port message. Also converts values to other types if specified. + * @param message Port * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Port, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ContainerSpec to JSON. + * Converts this Port to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PythonPackageSpec. */ - interface IPythonPackageSpec { - - /** PythonPackageSpec executorImageUri */ - executorImageUri?: (string|null); - - /** PythonPackageSpec packageUris */ - packageUris?: (string[]|null); + /** Properties of a DeployedModelRef. */ + interface IDeployedModelRef { - /** PythonPackageSpec pythonModule */ - pythonModule?: (string|null); + /** DeployedModelRef endpoint */ + endpoint?: (string|null); - /** PythonPackageSpec args */ - args?: (string[]|null); + /** DeployedModelRef deployedModelId */ + deployedModelId?: (string|null); } - /** Represents a PythonPackageSpec. */ - class PythonPackageSpec implements IPythonPackageSpec { + /** Represents a DeployedModelRef. */ + class DeployedModelRef implements IDeployedModelRef { /** - * Constructs a new PythonPackageSpec. + * Constructs a new DeployedModelRef. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec); - - /** PythonPackageSpec executorImageUri. */ - public executorImageUri: string; - - /** PythonPackageSpec packageUris. */ - public packageUris: string[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef); - /** PythonPackageSpec pythonModule. */ - public pythonModule: string; + /** DeployedModelRef endpoint. */ + public endpoint: string; - /** PythonPackageSpec args. */ - public args: string[]; + /** DeployedModelRef deployedModelId. */ + public deployedModelId: string; /** - * Creates a new PythonPackageSpec instance using the specified properties. + * Creates a new DeployedModelRef instance using the specified properties. * @param [properties] Properties to set - * @returns PythonPackageSpec instance + * @returns DeployedModelRef instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModelRef): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Encodes the specified PythonPackageSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. - * @param message PythonPackageSpec message or plain object to encode + * Encodes the specified DeployedModelRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. + * @param message DeployedModelRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PythonPackageSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. - * @param message PythonPackageSpec message or plain object to encode + * Encodes the specified DeployedModelRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. + * @param message DeployedModelRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModelRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PythonPackageSpec message from the specified reader or buffer. + * Decodes a DeployedModelRef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PythonPackageSpec + * @returns DeployedModelRef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Decodes a PythonPackageSpec message from the specified reader or buffer, length delimited. + * Decodes a DeployedModelRef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PythonPackageSpec + * @returns DeployedModelRef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Verifies a PythonPackageSpec message. + * Verifies a DeployedModelRef message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PythonPackageSpec message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedModelRef message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PythonPackageSpec + * @returns DeployedModelRef */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PythonPackageSpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModelRef; /** - * Creates a plain object from a PythonPackageSpec message. Also converts values to other types if specified. - * @param message PythonPackageSpec + * Creates a plain object from a DeployedModelRef message. Also converts values to other types if specified. + * @param message DeployedModelRef * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PythonPackageSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModelRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PythonPackageSpec to JSON. + * Converts this DeployedModelRef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Scheduling. */ - interface IScheduling { + /** Properties of an EnvVar. */ + interface IEnvVar { - /** Scheduling timeout */ - timeout?: (google.protobuf.IDuration|null); + /** EnvVar name */ + name?: (string|null); - /** Scheduling restartJobOnWorkerRestart */ - restartJobOnWorkerRestart?: (boolean|null); + /** EnvVar value */ + value?: (string|null); } - /** Represents a Scheduling. */ - class Scheduling implements IScheduling { + /** Represents an EnvVar. */ + class EnvVar implements IEnvVar { /** - * Constructs a new Scheduling. + * Constructs a new EnvVar. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IScheduling); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEnvVar); - /** Scheduling timeout. */ - public timeout?: (google.protobuf.IDuration|null); + /** EnvVar name. */ + public name: string; - /** Scheduling restartJobOnWorkerRestart. */ - public restartJobOnWorkerRestart: boolean; + /** EnvVar value. */ + public value: string; /** - * Creates a new Scheduling instance using the specified properties. + * Creates a new EnvVar instance using the specified properties. * @param [properties] Properties to set - * @returns Scheduling instance + * @returns EnvVar instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IScheduling): google.cloud.aiplatform.v1beta1.Scheduling; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEnvVar): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Encodes the specified Scheduling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. - * @param message Scheduling message or plain object to encode + * Encodes the specified EnvVar message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. + * @param message EnvVar message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Scheduling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. - * @param message Scheduling message or plain object to encode + * Encodes the specified EnvVar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. + * @param message EnvVar message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEnvVar, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Scheduling message from the specified reader or buffer. + * Decodes an EnvVar message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Scheduling + * @returns EnvVar * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Scheduling; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Decodes a Scheduling message from the specified reader or buffer, length delimited. + * Decodes an EnvVar message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Scheduling + * @returns EnvVar * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Scheduling; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Verifies a Scheduling message. + * Verifies an EnvVar message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Scheduling message from a plain object. Also converts values to their respective internal types. + * Creates an EnvVar message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Scheduling + * @returns EnvVar */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Scheduling; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EnvVar; /** - * Creates a plain object from a Scheduling message. Also converts values to other types if specified. - * @param message Scheduling + * Creates a plain object from an EnvVar message. Also converts values to other types if specified. + * @param message EnvVar * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Scheduling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EnvVar, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Scheduling to JSON. + * Converts this EnvVar to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DataItem. */ - interface IDataItem { + /** Properties of a Context. */ + interface IContext { - /** DataItem name */ + /** Context name */ name?: (string|null); - /** DataItem createTime */ + /** Context displayName */ + displayName?: (string|null); + + /** Context etag */ + etag?: (string|null); + + /** Context labels */ + labels?: ({ [k: string]: string }|null); + + /** Context createTime */ createTime?: (google.protobuf.ITimestamp|null); - /** DataItem updateTime */ + /** Context updateTime */ updateTime?: (google.protobuf.ITimestamp|null); - /** DataItem labels */ - labels?: ({ [k: string]: string }|null); + /** Context parentContexts */ + parentContexts?: (string[]|null); - /** DataItem payload */ - payload?: (google.protobuf.IValue|null); + /** Context schemaTitle */ + schemaTitle?: (string|null); - /** DataItem etag */ - etag?: (string|null); + /** Context schemaVersion */ + schemaVersion?: (string|null); + + /** Context metadata */ + metadata?: (google.protobuf.IStruct|null); + + /** Context description */ + description?: (string|null); } - /** Represents a DataItem. */ - class DataItem implements IDataItem { + /** Represents a Context. */ + class Context implements IContext { /** - * Constructs a new DataItem. + * Constructs a new Context. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItem); + constructor(properties?: google.cloud.aiplatform.v1beta1.IContext); - /** DataItem name. */ + /** Context name. */ public name: string; - /** DataItem createTime. */ + /** Context displayName. */ + public displayName: string; + + /** Context etag. */ + public etag: string; + + /** Context labels. */ + public labels: { [k: string]: string }; + + /** Context createTime. */ public createTime?: (google.protobuf.ITimestamp|null); - /** DataItem updateTime. */ + /** Context updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); - /** DataItem labels. */ - public labels: { [k: string]: string }; + /** Context parentContexts. */ + public parentContexts: string[]; - /** DataItem payload. */ - public payload?: (google.protobuf.IValue|null); + /** Context schemaTitle. */ + public schemaTitle: string; - /** DataItem etag. */ - public etag: string; + /** Context schemaVersion. */ + public schemaVersion: string; + + /** Context metadata. */ + public metadata?: (google.protobuf.IStruct|null); + + /** Context description. */ + public description: string; /** - * Creates a new DataItem instance using the specified properties. + * Creates a new Context instance using the specified properties. * @param [properties] Properties to set - * @returns DataItem instance + * @returns Context instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItem): google.cloud.aiplatform.v1beta1.DataItem; + public static create(properties?: google.cloud.aiplatform.v1beta1.IContext): google.cloud.aiplatform.v1beta1.Context; /** - * Encodes the specified DataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. - * @param message DataItem message or plain object to encode + * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. + * @param message Context message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. - * @param message DataItem message or plain object to encode + * Encodes the specified Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. + * @param message Context message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContext, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataItem message from the specified reader or buffer. + * Decodes a Context message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataItem + * @returns Context * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataItem; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Context; /** - * Decodes a DataItem message from the specified reader or buffer, length delimited. + * Decodes a Context message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataItem + * @returns Context * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataItem; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Context; /** - * Verifies a DataItem message. + * Verifies a Context message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DataItem message from a plain object. Also converts values to their respective internal types. + * Creates a Context message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataItem + * @returns Context */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItem; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Context; /** - * Creates a plain object from a DataItem message. Also converts values to other types if specified. - * @param message DataItem + * Creates a plain object from a Context message. Also converts values to other types if specified. + * @param message Context * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Context, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataItem to JSON. + * Converts this Context to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DataLabelingJob. */ - interface IDataLabelingJob { + /** Properties of a CustomJob. */ + interface ICustomJob { - /** DataLabelingJob name */ + /** CustomJob name */ name?: (string|null); - /** DataLabelingJob displayName */ + /** CustomJob displayName */ displayName?: (string|null); - /** DataLabelingJob datasets */ - datasets?: (string[]|null); - - /** DataLabelingJob annotationLabels */ - annotationLabels?: ({ [k: string]: string }|null); - - /** DataLabelingJob labelerCount */ - labelerCount?: (number|null); - - /** DataLabelingJob instructionUri */ - instructionUri?: (string|null); - - /** DataLabelingJob inputsSchemaUri */ - inputsSchemaUri?: (string|null); - - /** DataLabelingJob inputs */ - inputs?: (google.protobuf.IValue|null); + /** CustomJob jobSpec */ + jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** DataLabelingJob state */ + /** CustomJob state */ state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** DataLabelingJob labelingProgress */ - labelingProgress?: (number|null); + /** CustomJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** DataLabelingJob currentSpend */ - currentSpend?: (google.type.IMoney|null); + /** CustomJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** DataLabelingJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** CustomJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** DataLabelingJob updateTime */ + /** CustomJob updateTime */ updateTime?: (google.protobuf.ITimestamp|null); - /** DataLabelingJob error */ + /** CustomJob error */ error?: (google.rpc.IStatus|null); - /** DataLabelingJob labels */ + /** CustomJob labels */ labels?: ({ [k: string]: string }|null); - /** DataLabelingJob specialistPools */ - specialistPools?: (string[]|null); - - /** DataLabelingJob encryptionSpec */ + /** CustomJob encryptionSpec */ encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** DataLabelingJob activeLearningConfig */ - activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + /** CustomJob webAccessUris */ + webAccessUris?: ({ [k: string]: string }|null); } - /** Represents a DataLabelingJob. */ - class DataLabelingJob implements IDataLabelingJob { + /** Represents a CustomJob. */ + class CustomJob implements ICustomJob { /** - * Constructs a new DataLabelingJob. + * Constructs a new CustomJob. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJob); - /** DataLabelingJob name. */ + /** CustomJob name. */ public name: string; - /** DataLabelingJob displayName. */ + /** CustomJob displayName. */ public displayName: string; - /** DataLabelingJob datasets. */ - public datasets: string[]; - - /** DataLabelingJob annotationLabels. */ - public annotationLabels: { [k: string]: string }; - - /** DataLabelingJob labelerCount. */ - public labelerCount: number; - - /** DataLabelingJob instructionUri. */ - public instructionUri: string; - - /** DataLabelingJob inputsSchemaUri. */ - public inputsSchemaUri: string; - - /** DataLabelingJob inputs. */ - public inputs?: (google.protobuf.IValue|null); + /** CustomJob jobSpec. */ + public jobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** DataLabelingJob state. */ + /** CustomJob state. */ public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** DataLabelingJob labelingProgress. */ - public labelingProgress: number; + /** CustomJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** DataLabelingJob currentSpend. */ - public currentSpend?: (google.type.IMoney|null); + /** CustomJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** DataLabelingJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** CustomJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** DataLabelingJob updateTime. */ + /** CustomJob updateTime. */ public updateTime?: (google.protobuf.ITimestamp|null); - /** DataLabelingJob error. */ + /** CustomJob error. */ public error?: (google.rpc.IStatus|null); - /** DataLabelingJob labels. */ + /** CustomJob labels. */ public labels: { [k: string]: string }; - /** DataLabelingJob specialistPools. */ - public specialistPools: string[]; - - /** DataLabelingJob encryptionSpec. */ + /** CustomJob encryptionSpec. */ public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** DataLabelingJob activeLearningConfig. */ - public activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + /** CustomJob webAccessUris. */ + public webAccessUris: { [k: string]: string }; /** - * Creates a new DataLabelingJob instance using the specified properties. + * Creates a new CustomJob instance using the specified properties. * @param [properties] Properties to set - * @returns DataLabelingJob instance + * @returns CustomJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob): google.cloud.aiplatform.v1beta1.DataLabelingJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJob): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Encodes the specified DataLabelingJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. - * @param message DataLabelingJob message or plain object to encode + * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. + * @param message CustomJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DataLabelingJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. - * @param message DataLabelingJob message or plain object to encode + * Encodes the specified CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. + * @param message CustomJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DataLabelingJob message from the specified reader or buffer. + * Decodes a CustomJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DataLabelingJob + * @returns CustomJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataLabelingJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Decodes a DataLabelingJob message from the specified reader or buffer, length delimited. + * Decodes a CustomJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DataLabelingJob + * @returns CustomJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataLabelingJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Verifies a DataLabelingJob message. + * Verifies a CustomJob message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DataLabelingJob message from a plain object. Also converts values to their respective internal types. + * Creates a CustomJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DataLabelingJob + * @returns CustomJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataLabelingJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJob; /** - * Creates a plain object from a DataLabelingJob message. Also converts values to other types if specified. - * @param message DataLabelingJob + * Creates a plain object from a CustomJob message. Also converts values to other types if specified. + * @param message CustomJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DataLabelingJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DataLabelingJob to JSON. + * Converts this CustomJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ActiveLearningConfig. */ - interface IActiveLearningConfig { + /** Properties of a CustomJobSpec. */ + interface ICustomJobSpec { - /** ActiveLearningConfig maxDataItemCount */ - maxDataItemCount?: (number|Long|string|null); + /** CustomJobSpec workerPoolSpecs */ + workerPoolSpecs?: (google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]|null); - /** ActiveLearningConfig maxDataItemPercentage */ - maxDataItemPercentage?: (number|null); + /** CustomJobSpec scheduling */ + scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); - /** ActiveLearningConfig sampleConfig */ - sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); + /** CustomJobSpec serviceAccount */ + serviceAccount?: (string|null); - /** ActiveLearningConfig trainingConfig */ - trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + /** CustomJobSpec network */ + network?: (string|null); + + /** CustomJobSpec reservedIpRanges */ + reservedIpRanges?: (string[]|null); + + /** CustomJobSpec baseOutputDirectory */ + baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** CustomJobSpec tensorboard */ + tensorboard?: (string|null); + + /** CustomJobSpec enableWebAccess */ + enableWebAccess?: (boolean|null); } - /** Represents an ActiveLearningConfig. */ - class ActiveLearningConfig implements IActiveLearningConfig { + /** Represents a CustomJobSpec. */ + class CustomJobSpec implements ICustomJobSpec { /** - * Constructs a new ActiveLearningConfig. + * Constructs a new CustomJobSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec); - /** ActiveLearningConfig maxDataItemCount. */ - public maxDataItemCount?: (number|Long|string|null); + /** CustomJobSpec workerPoolSpecs. */ + public workerPoolSpecs: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec[]; - /** ActiveLearningConfig maxDataItemPercentage. */ - public maxDataItemPercentage?: (number|null); + /** CustomJobSpec scheduling. */ + public scheduling?: (google.cloud.aiplatform.v1beta1.IScheduling|null); - /** ActiveLearningConfig sampleConfig. */ - public sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); + /** CustomJobSpec serviceAccount. */ + public serviceAccount: string; - /** ActiveLearningConfig trainingConfig. */ - public trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + /** CustomJobSpec network. */ + public network: string; - /** ActiveLearningConfig humanLabelingBudget. */ - public humanLabelingBudget?: ("maxDataItemCount"|"maxDataItemPercentage"); + /** CustomJobSpec reservedIpRanges. */ + public reservedIpRanges: string[]; + + /** CustomJobSpec baseOutputDirectory. */ + public baseOutputDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** CustomJobSpec tensorboard. */ + public tensorboard: string; + + /** CustomJobSpec enableWebAccess. */ + public enableWebAccess: boolean; /** - * Creates a new ActiveLearningConfig instance using the specified properties. + * Creates a new CustomJobSpec instance using the specified properties. * @param [properties] Properties to set - * @returns ActiveLearningConfig instance + * @returns CustomJobSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICustomJobSpec): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Encodes the specified ActiveLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. - * @param message ActiveLearningConfig message or plain object to encode + * Encodes the specified CustomJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. + * @param message CustomJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ActiveLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. - * @param message ActiveLearningConfig message or plain object to encode + * Encodes the specified CustomJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. + * @param message CustomJobSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICustomJobSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ActiveLearningConfig message from the specified reader or buffer. + * Decodes a CustomJobSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ActiveLearningConfig + * @returns CustomJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Decodes an ActiveLearningConfig message from the specified reader or buffer, length delimited. + * Decodes a CustomJobSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ActiveLearningConfig + * @returns CustomJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Verifies an ActiveLearningConfig message. + * Verifies a CustomJobSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ActiveLearningConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CustomJobSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ActiveLearningConfig + * @returns CustomJobSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CustomJobSpec; /** - * Creates a plain object from an ActiveLearningConfig message. Also converts values to other types if specified. - * @param message ActiveLearningConfig + * Creates a plain object from a CustomJobSpec message. Also converts values to other types if specified. + * @param message CustomJobSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ActiveLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CustomJobSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ActiveLearningConfig to JSON. + * Converts this CustomJobSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SampleConfig. */ - interface ISampleConfig { + /** Properties of a WorkerPoolSpec. */ + interface IWorkerPoolSpec { - /** SampleConfig initialBatchSamplePercentage */ - initialBatchSamplePercentage?: (number|null); + /** WorkerPoolSpec containerSpec */ + containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - /** SampleConfig followingBatchSamplePercentage */ - followingBatchSamplePercentage?: (number|null); + /** WorkerPoolSpec pythonPackageSpec */ + pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); - /** SampleConfig sampleStrategy */ - sampleStrategy?: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|null); + /** WorkerPoolSpec machineSpec */ + machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); + + /** WorkerPoolSpec replicaCount */ + replicaCount?: (number|Long|string|null); + + /** WorkerPoolSpec nfsMounts */ + nfsMounts?: (google.cloud.aiplatform.v1beta1.INfsMount[]|null); + + /** WorkerPoolSpec diskSpec */ + diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); } - /** Represents a SampleConfig. */ - class SampleConfig implements ISampleConfig { + /** Represents a WorkerPoolSpec. */ + class WorkerPoolSpec implements IWorkerPoolSpec { /** - * Constructs a new SampleConfig. + * Constructs a new WorkerPoolSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec); - /** SampleConfig initialBatchSamplePercentage. */ - public initialBatchSamplePercentage?: (number|null); + /** WorkerPoolSpec containerSpec. */ + public containerSpec?: (google.cloud.aiplatform.v1beta1.IContainerSpec|null); - /** SampleConfig followingBatchSamplePercentage. */ - public followingBatchSamplePercentage?: (number|null); + /** WorkerPoolSpec pythonPackageSpec. */ + public pythonPackageSpec?: (google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null); - /** SampleConfig sampleStrategy. */ - public sampleStrategy: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy); + /** WorkerPoolSpec machineSpec. */ + public machineSpec?: (google.cloud.aiplatform.v1beta1.IMachineSpec|null); - /** SampleConfig initialBatchSampleSize. */ - public initialBatchSampleSize?: "initialBatchSamplePercentage"; + /** WorkerPoolSpec replicaCount. */ + public replicaCount: (number|Long|string); - /** SampleConfig followingBatchSampleSize. */ - public followingBatchSampleSize?: "followingBatchSamplePercentage"; + /** WorkerPoolSpec nfsMounts. */ + public nfsMounts: google.cloud.aiplatform.v1beta1.INfsMount[]; + + /** WorkerPoolSpec diskSpec. */ + public diskSpec?: (google.cloud.aiplatform.v1beta1.IDiskSpec|null); + + /** WorkerPoolSpec task. */ + public task?: ("containerSpec"|"pythonPackageSpec"); /** - * Creates a new SampleConfig instance using the specified properties. + * Creates a new WorkerPoolSpec instance using the specified properties. * @param [properties] Properties to set - * @returns SampleConfig instance + * @returns WorkerPoolSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig): google.cloud.aiplatform.v1beta1.SampleConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Encodes the specified SampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. - * @param message SampleConfig message or plain object to encode + * Encodes the specified WorkerPoolSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. + * @param message WorkerPoolSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. - * @param message SampleConfig message or plain object to encode + * Encodes the specified WorkerPoolSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. + * @param message WorkerPoolSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IWorkerPoolSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SampleConfig message from the specified reader or buffer. + * Decodes a WorkerPoolSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SampleConfig + * @returns WorkerPoolSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SampleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Decodes a SampleConfig message from the specified reader or buffer, length delimited. + * Decodes a WorkerPoolSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SampleConfig + * @returns WorkerPoolSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SampleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Verifies a SampleConfig message. + * Verifies a WorkerPoolSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SampleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a WorkerPoolSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SampleConfig + * @returns WorkerPoolSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.WorkerPoolSpec; /** - * Creates a plain object from a SampleConfig message. Also converts values to other types if specified. - * @param message SampleConfig + * Creates a plain object from a WorkerPoolSpec message. Also converts values to other types if specified. + * @param message WorkerPoolSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.WorkerPoolSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SampleConfig to JSON. + * Converts this WorkerPoolSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SampleConfig { + /** Properties of a ContainerSpec. */ + interface IContainerSpec { - /** SampleStrategy enum. */ - enum SampleStrategy { - SAMPLE_STRATEGY_UNSPECIFIED = 0, - UNCERTAINTY = 1 - } - } + /** ContainerSpec imageUri */ + imageUri?: (string|null); - /** Properties of a TrainingConfig. */ - interface ITrainingConfig { + /** ContainerSpec command */ + command?: (string[]|null); - /** TrainingConfig timeoutTrainingMilliHours */ - timeoutTrainingMilliHours?: (number|Long|string|null); + /** ContainerSpec args */ + args?: (string[]|null); + + /** ContainerSpec env */ + env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); } - /** Represents a TrainingConfig. */ - class TrainingConfig implements ITrainingConfig { + /** Represents a ContainerSpec. */ + class ContainerSpec implements IContainerSpec { /** - * Constructs a new TrainingConfig. + * Constructs a new ContainerSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec); - /** TrainingConfig timeoutTrainingMilliHours. */ - public timeoutTrainingMilliHours: (number|Long|string); + /** ContainerSpec imageUri. */ + public imageUri: string; + + /** ContainerSpec command. */ + public command: string[]; + + /** ContainerSpec args. */ + public args: string[]; + + /** ContainerSpec env. */ + public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; /** - * Creates a new TrainingConfig instance using the specified properties. + * Creates a new ContainerSpec instance using the specified properties. * @param [properties] Properties to set - * @returns TrainingConfig instance + * @returns ContainerSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig): google.cloud.aiplatform.v1beta1.TrainingConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IContainerSpec): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Encodes the specified TrainingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. - * @param message TrainingConfig message or plain object to encode + * Encodes the specified ContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. + * @param message ContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified TrainingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. - * @param message TrainingConfig message or plain object to encode + * Encodes the specified ContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. + * @param message ContainerSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IContainerSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a TrainingConfig message from the specified reader or buffer. + * Decodes a ContainerSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns TrainingConfig + * @returns ContainerSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TrainingConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Decodes a TrainingConfig message from the specified reader or buffer, length delimited. + * Decodes a ContainerSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns TrainingConfig + * @returns ContainerSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TrainingConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Verifies a TrainingConfig message. + * Verifies a ContainerSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a TrainingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ContainerSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns TrainingConfig + * @returns ContainerSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ContainerSpec; /** - * Creates a plain object from a TrainingConfig message. Also converts values to other types if specified. - * @param message TrainingConfig + * Creates a plain object from a ContainerSpec message. Also converts values to other types if specified. + * @param message ContainerSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.TrainingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ContainerSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this TrainingConfig to JSON. + * Converts this ContainerSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Dataset. */ - interface IDataset { - - /** Dataset name */ - name?: (string|null); - - /** Dataset displayName */ - displayName?: (string|null); - - /** Dataset description */ - description?: (string|null); - - /** Dataset metadataSchemaUri */ - metadataSchemaUri?: (string|null); - - /** Dataset metadata */ - metadata?: (google.protobuf.IValue|null); + /** Properties of a PythonPackageSpec. */ + interface IPythonPackageSpec { - /** Dataset createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec executorImageUri */ + executorImageUri?: (string|null); - /** Dataset updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec packageUris */ + packageUris?: (string[]|null); - /** Dataset etag */ - etag?: (string|null); + /** PythonPackageSpec pythonModule */ + pythonModule?: (string|null); - /** Dataset labels */ - labels?: ({ [k: string]: string }|null); + /** PythonPackageSpec args */ + args?: (string[]|null); - /** Dataset encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** PythonPackageSpec env */ + env?: (google.cloud.aiplatform.v1beta1.IEnvVar[]|null); } - /** Represents a Dataset. */ - class Dataset implements IDataset { + /** Represents a PythonPackageSpec. */ + class PythonPackageSpec implements IPythonPackageSpec { /** - * Constructs a new Dataset. + * Constructs a new PythonPackageSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDataset); - - /** Dataset name. */ - public name: string; - - /** Dataset displayName. */ - public displayName: string; - - /** Dataset description. */ - public description: string; - - /** Dataset metadataSchemaUri. */ - public metadataSchemaUri: string; - - /** Dataset metadata. */ - public metadata?: (google.protobuf.IValue|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec); - /** Dataset createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec executorImageUri. */ + public executorImageUri: string; - /** Dataset updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** PythonPackageSpec packageUris. */ + public packageUris: string[]; - /** Dataset etag. */ - public etag: string; + /** PythonPackageSpec pythonModule. */ + public pythonModule: string; - /** Dataset labels. */ - public labels: { [k: string]: string }; + /** PythonPackageSpec args. */ + public args: string[]; - /** Dataset encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** PythonPackageSpec env. */ + public env: google.cloud.aiplatform.v1beta1.IEnvVar[]; /** - * Creates a new Dataset instance using the specified properties. + * Creates a new PythonPackageSpec instance using the specified properties. * @param [properties] Properties to set - * @returns Dataset instance + * @returns PythonPackageSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDataset): google.cloud.aiplatform.v1beta1.Dataset; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPythonPackageSpec): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. - * @param message Dataset message or plain object to encode + * Encodes the specified PythonPackageSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. + * @param message PythonPackageSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. - * @param message Dataset message or plain object to encode + * Encodes the specified PythonPackageSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. + * @param message PythonPackageSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPythonPackageSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Dataset message from the specified reader or buffer. + * Decodes a PythonPackageSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Dataset + * @returns PythonPackageSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Dataset; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Decodes a Dataset message from the specified reader or buffer, length delimited. + * Decodes a PythonPackageSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Dataset + * @returns PythonPackageSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Dataset; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Verifies a Dataset message. + * Verifies a PythonPackageSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Dataset message from a plain object. Also converts values to their respective internal types. + * Creates a PythonPackageSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Dataset + * @returns PythonPackageSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Dataset; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PythonPackageSpec; /** - * Creates a plain object from a Dataset message. Also converts values to other types if specified. - * @param message Dataset + * Creates a plain object from a PythonPackageSpec message. Also converts values to other types if specified. + * @param message PythonPackageSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PythonPackageSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Dataset to JSON. + * Converts this PythonPackageSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportDataConfig. */ - interface IImportDataConfig { - - /** ImportDataConfig gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** Properties of a Scheduling. */ + interface IScheduling { - /** ImportDataConfig dataItemLabels */ - dataItemLabels?: ({ [k: string]: string }|null); + /** Scheduling timeout */ + timeout?: (google.protobuf.IDuration|null); - /** ImportDataConfig importSchemaUri */ - importSchemaUri?: (string|null); + /** Scheduling restartJobOnWorkerRestart */ + restartJobOnWorkerRestart?: (boolean|null); } - /** Represents an ImportDataConfig. */ - class ImportDataConfig implements IImportDataConfig { + /** Represents a Scheduling. */ + class Scheduling implements IScheduling { /** - * Constructs a new ImportDataConfig. + * Constructs a new Scheduling. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig); - - /** ImportDataConfig gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - - /** ImportDataConfig dataItemLabels. */ - public dataItemLabels: { [k: string]: string }; + constructor(properties?: google.cloud.aiplatform.v1beta1.IScheduling); - /** ImportDataConfig importSchemaUri. */ - public importSchemaUri: string; + /** Scheduling timeout. */ + public timeout?: (google.protobuf.IDuration|null); - /** ImportDataConfig source. */ - public source?: "gcsSource"; + /** Scheduling restartJobOnWorkerRestart. */ + public restartJobOnWorkerRestart: boolean; /** - * Creates a new ImportDataConfig instance using the specified properties. + * Creates a new Scheduling instance using the specified properties. * @param [properties] Properties to set - * @returns ImportDataConfig instance + * @returns Scheduling instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig): google.cloud.aiplatform.v1beta1.ImportDataConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IScheduling): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Encodes the specified ImportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. - * @param message ImportDataConfig message or plain object to encode + * Encodes the specified Scheduling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. + * @param message Scheduling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. - * @param message ImportDataConfig message or plain object to encode + * Encodes the specified Scheduling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. + * @param message Scheduling message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IScheduling, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportDataConfig message from the specified reader or buffer. + * Decodes a Scheduling message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportDataConfig + * @returns Scheduling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Decodes an ImportDataConfig message from the specified reader or buffer, length delimited. + * Decodes a Scheduling message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportDataConfig + * @returns Scheduling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Verifies an ImportDataConfig message. + * Verifies a Scheduling message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Scheduling message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportDataConfig + * @returns Scheduling */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Scheduling; /** - * Creates a plain object from an ImportDataConfig message. Also converts values to other types if specified. - * @param message ImportDataConfig + * Creates a plain object from a Scheduling message. Also converts values to other types if specified. + * @param message Scheduling * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Scheduling, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportDataConfig to JSON. + * Converts this Scheduling to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportDataConfig. */ - interface IExportDataConfig { + /** Properties of a DataItem. */ + interface IDataItem { - /** ExportDataConfig gcsDestination */ - gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** DataItem name */ + name?: (string|null); - /** ExportDataConfig annotationsFilter */ - annotationsFilter?: (string|null); + /** DataItem createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** DataItem updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** DataItem labels */ + labels?: ({ [k: string]: string }|null); + + /** DataItem payload */ + payload?: (google.protobuf.IValue|null); + + /** DataItem etag */ + etag?: (string|null); } - /** Represents an ExportDataConfig. */ - class ExportDataConfig implements IExportDataConfig { + /** Represents a DataItem. */ + class DataItem implements IDataItem { /** - * Constructs a new ExportDataConfig. + * Constructs a new DataItem. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataItem); - /** ExportDataConfig gcsDestination. */ - public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** DataItem name. */ + public name: string; - /** ExportDataConfig annotationsFilter. */ - public annotationsFilter: string; + /** DataItem createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** ExportDataConfig destination. */ - public destination?: "gcsDestination"; + /** DataItem updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** DataItem labels. */ + public labels: { [k: string]: string }; + + /** DataItem payload. */ + public payload?: (google.protobuf.IValue|null); + + /** DataItem etag. */ + public etag: string; /** - * Creates a new ExportDataConfig instance using the specified properties. + * Creates a new DataItem instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataConfig instance + * @returns DataItem instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig): google.cloud.aiplatform.v1beta1.ExportDataConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataItem): google.cloud.aiplatform.v1beta1.DataItem; /** - * Encodes the specified ExportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. - * @param message ExportDataConfig message or plain object to encode + * Encodes the specified DataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. + * @param message DataItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. - * @param message ExportDataConfig message or plain object to encode + * Encodes the specified DataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. + * @param message DataItem message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataItem, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataConfig message from the specified reader or buffer. + * Decodes a DataItem message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataConfig + * @returns DataItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataItem; /** - * Decodes an ExportDataConfig message from the specified reader or buffer, length delimited. + * Decodes a DataItem message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataConfig + * @returns DataItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataItem; /** - * Verifies an ExportDataConfig message. + * Verifies a DataItem message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DataItem message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataConfig + * @returns DataItem */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataItem; /** - * Creates a plain object from an ExportDataConfig message. Also converts values to other types if specified. - * @param message ExportDataConfig + * Creates a plain object from a DataItem message. Also converts values to other types if specified. + * @param message DataItem * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DataItem, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataConfig to JSON. + * Converts this DataItem to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a DatasetService */ - class DatasetService extends $protobuf.rpc.Service { - - /** - * Constructs a new DatasetService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new DatasetService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DatasetService; + /** Properties of a DataLabelingJob. */ + interface IDataLabelingJob { - /** - * Calls CreateDataset. - * @param request CreateDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetCallback): void; + /** DataLabelingJob name */ + name?: (string|null); - /** - * Calls CreateDataset. - * @param request CreateDatasetRequest message or plain object - * @returns Promise - */ - public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): Promise; + /** DataLabelingJob displayName */ + displayName?: (string|null); - /** - * Calls GetDataset. - * @param request GetDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Dataset - */ - public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetCallback): void; + /** DataLabelingJob datasets */ + datasets?: (string[]|null); - /** - * Calls GetDataset. - * @param request GetDatasetRequest message or plain object - * @returns Promise - */ - public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): Promise; + /** DataLabelingJob annotationLabels */ + annotationLabels?: ({ [k: string]: string }|null); - /** - * Calls UpdateDataset. - * @param request UpdateDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Dataset - */ - public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.UpdateDatasetCallback): void; + /** DataLabelingJob labelerCount */ + labelerCount?: (number|null); - /** - * Calls UpdateDataset. - * @param request UpdateDatasetRequest message or plain object - * @returns Promise - */ - public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): Promise; + /** DataLabelingJob instructionUri */ + instructionUri?: (string|null); - /** - * Calls ListDatasets. - * @param request ListDatasetsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDatasetsResponse - */ - public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetsCallback): void; + /** DataLabelingJob inputsSchemaUri */ + inputsSchemaUri?: (string|null); - /** - * Calls ListDatasets. - * @param request ListDatasetsRequest message or plain object - * @returns Promise - */ - public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): Promise; + /** DataLabelingJob inputs */ + inputs?: (google.protobuf.IValue|null); - /** - * Calls DeleteDataset. - * @param request DeleteDatasetRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetCallback): void; + /** DataLabelingJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** - * Calls DeleteDataset. - * @param request DeleteDatasetRequest message or plain object - * @returns Promise - */ - public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): Promise; + /** DataLabelingJob labelingProgress */ + labelingProgress?: (number|null); - /** - * Calls ImportData. - * @param request ImportDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ImportDataCallback): void; + /** DataLabelingJob currentSpend */ + currentSpend?: (google.type.IMoney|null); - /** - * Calls ImportData. - * @param request ImportDataRequest message or plain object - * @returns Promise - */ - public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest): Promise; + /** DataLabelingJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Calls ExportData. - * @param request ExportDataRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ExportDataCallback): void; + /** DataLabelingJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Calls ExportData. - * @param request ExportDataRequest message or plain object - * @returns Promise - */ - public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest): Promise; + /** DataLabelingJob error */ + error?: (google.rpc.IStatus|null); - /** - * Calls ListDataItems. - * @param request ListDataItemsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDataItemsResponse - */ - public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDataItemsCallback): void; + /** DataLabelingJob labels */ + labels?: ({ [k: string]: string }|null); - /** - * Calls ListDataItems. - * @param request ListDataItemsRequest message or plain object - * @returns Promise - */ - public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): Promise; + /** DataLabelingJob specialistPools */ + specialistPools?: (string[]|null); - /** - * Calls GetAnnotationSpec. - * @param request GetAnnotationSpecRequest message or plain object - * @param callback Node-style callback called with the error, if any, and AnnotationSpec - */ - public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpecCallback): void; + /** DataLabelingJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** - * Calls GetAnnotationSpec. - * @param request GetAnnotationSpecRequest message or plain object - * @returns Promise - */ - public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): Promise; + /** DataLabelingJob activeLearningConfig */ + activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); + } - /** - * Calls ListAnnotations. - * @param request ListAnnotationsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListAnnotationsResponse - */ - public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotationsCallback): void; + /** Represents a DataLabelingJob. */ + class DataLabelingJob implements IDataLabelingJob { /** - * Calls ListAnnotations. - * @param request ListAnnotationsRequest message or plain object - * @returns Promise + * Constructs a new DataLabelingJob. + * @param [properties] Properties to set */ - public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): Promise; - } + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob); - namespace DatasetService { + /** DataLabelingJob name. */ + public name: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#createDataset}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** DataLabelingJob displayName. */ + public displayName: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#getDataset}. - * @param error Error, if any - * @param [response] Dataset - */ - type GetDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; + /** DataLabelingJob datasets. */ + public datasets: string[]; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#updateDataset}. - * @param error Error, if any - * @param [response] Dataset - */ - type UpdateDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; + /** DataLabelingJob annotationLabels. */ + public annotationLabels: { [k: string]: string }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listDatasets}. - * @param error Error, if any - * @param [response] ListDatasetsResponse - */ - type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDatasetsResponse) => void; + /** DataLabelingJob labelerCount. */ + public labelerCount: number; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#deleteDataset}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** DataLabelingJob instructionUri. */ + public instructionUri: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#importData}. - * @param error Error, if any - * @param [response] Operation - */ - type ImportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** DataLabelingJob inputsSchemaUri. */ + public inputsSchemaUri: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#exportData}. - * @param error Error, if any - * @param [response] Operation - */ - type ExportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** DataLabelingJob inputs. */ + public inputs?: (google.protobuf.IValue|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listDataItems}. - * @param error Error, if any - * @param [response] ListDataItemsResponse - */ - type ListDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataItemsResponse) => void; + /** DataLabelingJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#getAnnotationSpec}. - * @param error Error, if any - * @param [response] AnnotationSpec - */ - type GetAnnotationSpecCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AnnotationSpec) => void; + /** DataLabelingJob labelingProgress. */ + public labelingProgress: number; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listAnnotations}. - * @param error Error, if any - * @param [response] ListAnnotationsResponse - */ - type ListAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) => void; - } + /** DataLabelingJob currentSpend. */ + public currentSpend?: (google.type.IMoney|null); - /** Properties of a CreateDatasetRequest. */ - interface ICreateDatasetRequest { + /** DataLabelingJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** CreateDatasetRequest parent */ - parent?: (string|null); + /** DataLabelingJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** CreateDatasetRequest dataset */ - dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); - } + /** DataLabelingJob error. */ + public error?: (google.rpc.IStatus|null); - /** Represents a CreateDatasetRequest. */ - class CreateDatasetRequest implements ICreateDatasetRequest { + /** DataLabelingJob labels. */ + public labels: { [k: string]: string }; - /** - * Constructs a new CreateDatasetRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest); + /** DataLabelingJob specialistPools. */ + public specialistPools: string[]; - /** CreateDatasetRequest parent. */ - public parent: string; + /** DataLabelingJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** CreateDatasetRequest dataset. */ - public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** DataLabelingJob activeLearningConfig. */ + public activeLearningConfig?: (google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null); /** - * Creates a new CreateDatasetRequest instance using the specified properties. + * Creates a new DataLabelingJob instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDatasetRequest instance + * @returns DataLabelingJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataLabelingJob): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. - * @param message CreateDatasetRequest message or plain object to encode + * Encodes the specified DataLabelingJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. + * @param message DataLabelingJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. - * @param message CreateDatasetRequest message or plain object to encode + * Encodes the specified DataLabelingJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. + * @param message DataLabelingJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataLabelingJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDatasetRequest message from the specified reader or buffer. + * Decodes a DataLabelingJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDatasetRequest + * @returns DataLabelingJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a DataLabelingJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDatasetRequest + * @returns DataLabelingJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Verifies a CreateDatasetRequest message. + * Verifies a DataLabelingJob message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DataLabelingJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDatasetRequest + * @returns DataLabelingJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DataLabelingJob; /** - * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. - * @param message CreateDatasetRequest + * Creates a plain object from a DataLabelingJob message. Also converts values to other types if specified. + * @param message DataLabelingJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DataLabelingJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDatasetRequest to JSON. + * Converts this DataLabelingJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateDatasetOperationMetadata. */ - interface ICreateDatasetOperationMetadata { + /** Properties of an ActiveLearningConfig. */ + interface IActiveLearningConfig { - /** CreateDatasetOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ActiveLearningConfig maxDataItemCount */ + maxDataItemCount?: (number|Long|string|null); + + /** ActiveLearningConfig maxDataItemPercentage */ + maxDataItemPercentage?: (number|null); + + /** ActiveLearningConfig sampleConfig */ + sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); + + /** ActiveLearningConfig trainingConfig */ + trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); } - /** Represents a CreateDatasetOperationMetadata. */ - class CreateDatasetOperationMetadata implements ICreateDatasetOperationMetadata { + /** Represents an ActiveLearningConfig. */ + class ActiveLearningConfig implements IActiveLearningConfig { /** - * Constructs a new CreateDatasetOperationMetadata. + * Constructs a new ActiveLearningConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig); - /** CreateDatasetOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ActiveLearningConfig maxDataItemCount. */ + public maxDataItemCount?: (number|Long|string|null); + + /** ActiveLearningConfig maxDataItemPercentage. */ + public maxDataItemPercentage?: (number|null); + + /** ActiveLearningConfig sampleConfig. */ + public sampleConfig?: (google.cloud.aiplatform.v1beta1.ISampleConfig|null); + + /** ActiveLearningConfig trainingConfig. */ + public trainingConfig?: (google.cloud.aiplatform.v1beta1.ITrainingConfig|null); + + /** ActiveLearningConfig humanLabelingBudget. */ + public humanLabelingBudget?: ("maxDataItemCount"|"maxDataItemPercentage"); /** - * Creates a new CreateDatasetOperationMetadata instance using the specified properties. + * Creates a new ActiveLearningConfig instance using the specified properties. * @param [properties] Properties to set - * @returns CreateDatasetOperationMetadata instance + * @returns ActiveLearningConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IActiveLearningConfig): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; /** - * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. - * @param message CreateDatasetOperationMetadata message or plain object to encode + * Encodes the specified ActiveLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. + * @param message ActiveLearningConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. - * @param message CreateDatasetOperationMetadata message or plain object to encode + * Encodes the specified ActiveLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. + * @param message ActiveLearningConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IActiveLearningConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer. + * Decodes an ActiveLearningConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateDatasetOperationMetadata + * @returns ActiveLearningConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; /** - * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an ActiveLearningConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateDatasetOperationMetadata + * @returns ActiveLearningConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; /** - * Verifies a CreateDatasetOperationMetadata message. + * Verifies an ActiveLearningConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ActiveLearningConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateDatasetOperationMetadata + * @returns ActiveLearningConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ActiveLearningConfig; /** - * Creates a plain object from a CreateDatasetOperationMetadata message. Also converts values to other types if specified. - * @param message CreateDatasetOperationMetadata + * Creates a plain object from an ActiveLearningConfig message. Also converts values to other types if specified. + * @param message ActiveLearningConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ActiveLearningConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateDatasetOperationMetadata to JSON. + * Converts this ActiveLearningConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetDatasetRequest. */ - interface IGetDatasetRequest { + /** Properties of a SampleConfig. */ + interface ISampleConfig { - /** GetDatasetRequest name */ - name?: (string|null); + /** SampleConfig initialBatchSamplePercentage */ + initialBatchSamplePercentage?: (number|null); - /** GetDatasetRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** SampleConfig followingBatchSamplePercentage */ + followingBatchSamplePercentage?: (number|null); + + /** SampleConfig sampleStrategy */ + sampleStrategy?: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|null); } - /** Represents a GetDatasetRequest. */ - class GetDatasetRequest implements IGetDatasetRequest { + /** Represents a SampleConfig. */ + class SampleConfig implements ISampleConfig { /** - * Constructs a new GetDatasetRequest. + * Constructs a new SampleConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig); - /** GetDatasetRequest name. */ - public name: string; + /** SampleConfig initialBatchSamplePercentage. */ + public initialBatchSamplePercentage?: (number|null); - /** GetDatasetRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** SampleConfig followingBatchSamplePercentage. */ + public followingBatchSamplePercentage?: (number|null); + + /** SampleConfig sampleStrategy. */ + public sampleStrategy: (google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|keyof typeof google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy); + + /** SampleConfig initialBatchSampleSize. */ + public initialBatchSampleSize?: "initialBatchSamplePercentage"; + + /** SampleConfig followingBatchSampleSize. */ + public followingBatchSampleSize?: "followingBatchSamplePercentage"; /** - * Creates a new GetDatasetRequest instance using the specified properties. + * Creates a new SampleConfig instance using the specified properties. * @param [properties] Properties to set - * @returns GetDatasetRequest instance + * @returns SampleConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): google.cloud.aiplatform.v1beta1.GetDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISampleConfig): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. - * @param message GetDatasetRequest message or plain object to encode + * Encodes the specified SampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. + * @param message SampleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. - * @param message GetDatasetRequest message or plain object to encode + * Encodes the specified SampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. + * @param message SampleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetDatasetRequest message from the specified reader or buffer. + * Decodes a SampleConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetDatasetRequest + * @returns SampleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a SampleConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetDatasetRequest + * @returns SampleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Verifies a GetDatasetRequest message. + * Verifies a SampleConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SampleConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetDatasetRequest + * @returns SampleConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SampleConfig; /** - * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. - * @param message GetDatasetRequest + * Creates a plain object from a SampleConfig message. Also converts values to other types if specified. + * @param message SampleConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetDatasetRequest to JSON. + * Converts this SampleConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateDatasetRequest. */ - interface IUpdateDatasetRequest { + namespace SampleConfig { - /** UpdateDatasetRequest dataset */ - dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + /** SampleStrategy enum. */ + enum SampleStrategy { + SAMPLE_STRATEGY_UNSPECIFIED = 0, + UNCERTAINTY = 1 + } + } - /** UpdateDatasetRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of a TrainingConfig. */ + interface ITrainingConfig { + + /** TrainingConfig timeoutTrainingMilliHours */ + timeoutTrainingMilliHours?: (number|Long|string|null); } - /** Represents an UpdateDatasetRequest. */ - class UpdateDatasetRequest implements IUpdateDatasetRequest { + /** Represents a TrainingConfig. */ + class TrainingConfig implements ITrainingConfig { /** - * Constructs a new UpdateDatasetRequest. + * Constructs a new TrainingConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest); - - /** UpdateDatasetRequest dataset. */ - public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig); - /** UpdateDatasetRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** TrainingConfig timeoutTrainingMilliHours. */ + public timeoutTrainingMilliHours: (number|Long|string); /** - * Creates a new UpdateDatasetRequest instance using the specified properties. + * Creates a new TrainingConfig instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateDatasetRequest instance + * @returns TrainingConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITrainingConfig): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. - * @param message UpdateDatasetRequest message or plain object to encode + * Encodes the specified TrainingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. + * @param message TrainingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. - * @param message UpdateDatasetRequest message or plain object to encode + * Encodes the specified TrainingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. + * @param message TrainingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrainingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateDatasetRequest message from the specified reader or buffer. + * Decodes a TrainingConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateDatasetRequest + * @returns TrainingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Decodes an UpdateDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a TrainingConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateDatasetRequest + * @returns TrainingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Verifies an UpdateDatasetRequest message. + * Verifies a TrainingConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateDatasetRequest + * @returns TrainingConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.TrainingConfig; /** - * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified. - * @param message UpdateDatasetRequest + * Creates a plain object from a TrainingConfig message. Also converts values to other types if specified. + * @param message TrainingConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.TrainingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateDatasetRequest to JSON. + * Converts this TrainingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDatasetsRequest. */ - interface IListDatasetsRequest { + /** Properties of a Dataset. */ + interface IDataset { - /** ListDatasetsRequest parent */ - parent?: (string|null); + /** Dataset name */ + name?: (string|null); - /** ListDatasetsRequest filter */ - filter?: (string|null); + /** Dataset displayName */ + displayName?: (string|null); - /** ListDatasetsRequest pageSize */ - pageSize?: (number|null); + /** Dataset description */ + description?: (string|null); - /** ListDatasetsRequest pageToken */ - pageToken?: (string|null); + /** Dataset metadataSchemaUri */ + metadataSchemaUri?: (string|null); - /** ListDatasetsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Dataset metadata */ + metadata?: (google.protobuf.IValue|null); - /** ListDatasetsRequest orderBy */ - orderBy?: (string|null); + /** Dataset createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Dataset updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Dataset etag */ + etag?: (string|null); + + /** Dataset labels */ + labels?: ({ [k: string]: string }|null); + + /** Dataset encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); } - /** Represents a ListDatasetsRequest. */ - class ListDatasetsRequest implements IListDatasetsRequest { + /** Represents a Dataset. */ + class Dataset implements IDataset { /** - * Constructs a new ListDatasetsRequest. + * Constructs a new Dataset. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDataset); - /** ListDatasetsRequest parent. */ - public parent: string; + /** Dataset name. */ + public name: string; - /** ListDatasetsRequest filter. */ - public filter: string; + /** Dataset displayName. */ + public displayName: string; - /** ListDatasetsRequest pageSize. */ - public pageSize: number; + /** Dataset description. */ + public description: string; - /** ListDatasetsRequest pageToken. */ - public pageToken: string; + /** Dataset metadataSchemaUri. */ + public metadataSchemaUri: string; - /** ListDatasetsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** Dataset metadata. */ + public metadata?: (google.protobuf.IValue|null); - /** ListDatasetsRequest orderBy. */ - public orderBy: string; + /** Dataset createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Dataset updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Dataset etag. */ + public etag: string; + + /** Dataset labels. */ + public labels: { [k: string]: string }; + + /** Dataset encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); /** - * Creates a new ListDatasetsRequest instance using the specified properties. + * Creates a new Dataset instance using the specified properties. * @param [properties] Properties to set - * @returns ListDatasetsRequest instance + * @returns Dataset instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDataset): google.cloud.aiplatform.v1beta1.Dataset; /** - * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. - * @param message ListDatasetsRequest message or plain object to encode + * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. + * @param message Dataset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. - * @param message ListDatasetsRequest message or plain object to encode + * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. + * @param message Dataset message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDataset, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDatasetsRequest message from the specified reader or buffer. + * Decodes a Dataset message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDatasetsRequest + * @returns Dataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Dataset; /** - * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited. + * Decodes a Dataset message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDatasetsRequest + * @returns Dataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Dataset; /** - * Verifies a ListDatasetsRequest message. + * Verifies a Dataset message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDatasetsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Dataset message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDatasetsRequest + * @returns Dataset */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Dataset; /** - * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified. - * @param message ListDatasetsRequest + * Creates a plain object from a Dataset message. Also converts values to other types if specified. + * @param message Dataset * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Dataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDatasetsRequest to JSON. + * Converts this Dataset to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDatasetsResponse. */ - interface IListDatasetsResponse { + /** Properties of an ImportDataConfig. */ + interface IImportDataConfig { - /** ListDatasetsResponse datasets */ - datasets?: (google.cloud.aiplatform.v1beta1.IDataset[]|null); + /** ImportDataConfig gcsSource */ + gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** ListDatasetsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ImportDataConfig dataItemLabels */ + dataItemLabels?: ({ [k: string]: string }|null); + + /** ImportDataConfig importSchemaUri */ + importSchemaUri?: (string|null); } - /** Represents a ListDatasetsResponse. */ - class ListDatasetsResponse implements IListDatasetsResponse { + /** Represents an ImportDataConfig. */ + class ImportDataConfig implements IImportDataConfig { /** - * Constructs a new ListDatasetsResponse. + * Constructs a new ImportDataConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig); - /** ListDatasetsResponse datasets. */ - public datasets: google.cloud.aiplatform.v1beta1.IDataset[]; + /** ImportDataConfig gcsSource. */ + public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); - /** ListDatasetsResponse nextPageToken. */ - public nextPageToken: string; + /** ImportDataConfig dataItemLabels. */ + public dataItemLabels: { [k: string]: string }; + + /** ImportDataConfig importSchemaUri. */ + public importSchemaUri: string; + + /** ImportDataConfig source. */ + public source?: "gcsSource"; /** - * Creates a new ListDatasetsResponse instance using the specified properties. + * Creates a new ImportDataConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ListDatasetsResponse instance + * @returns ImportDataConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataConfig): google.cloud.aiplatform.v1beta1.ImportDataConfig; /** - * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. - * @param message ListDatasetsResponse message or plain object to encode + * Encodes the specified ImportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. + * @param message ImportDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. - * @param message ListDatasetsResponse message or plain object to encode + * Encodes the specified ImportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. + * @param message ImportDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDatasetsResponse message from the specified reader or buffer. + * Decodes an ImportDataConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDatasetsResponse + * @returns ImportDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataConfig; /** - * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportDataConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDatasetsResponse + * @returns ImportDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataConfig; /** - * Verifies a ListDatasetsResponse message. + * Verifies an ImportDataConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDatasetsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDatasetsResponse + * @returns ImportDataConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataConfig; /** - * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. - * @param message ListDatasetsResponse + * Creates a plain object from an ImportDataConfig message. Also converts values to other types if specified. + * @param message ImportDataConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDatasetsResponse to JSON. + * Converts this ImportDataConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteDatasetRequest. */ - interface IDeleteDatasetRequest { + /** Properties of an ExportDataConfig. */ + interface IExportDataConfig { - /** DeleteDatasetRequest name */ - name?: (string|null); + /** ExportDataConfig gcsDestination */ + gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ExportDataConfig annotationsFilter */ + annotationsFilter?: (string|null); } - /** Represents a DeleteDatasetRequest. */ - class DeleteDatasetRequest implements IDeleteDatasetRequest { + /** Represents an ExportDataConfig. */ + class ExportDataConfig implements IExportDataConfig { /** - * Constructs a new DeleteDatasetRequest. + * Constructs a new ExportDataConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig); - /** DeleteDatasetRequest name. */ - public name: string; + /** ExportDataConfig gcsDestination. */ + public gcsDestination?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + + /** ExportDataConfig annotationsFilter. */ + public annotationsFilter: string; + + /** ExportDataConfig destination. */ + public destination?: "gcsDestination"; /** - * Creates a new DeleteDatasetRequest instance using the specified properties. + * Creates a new ExportDataConfig instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDatasetRequest instance + * @returns ExportDataConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataConfig): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. - * @param message DeleteDatasetRequest message or plain object to encode + * Encodes the specified ExportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. + * @param message ExportDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. - * @param message DeleteDatasetRequest message or plain object to encode + * Encodes the specified ExportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. + * @param message ExportDataConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDatasetRequest message from the specified reader or buffer. + * Decodes an ExportDataConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDatasetRequest + * @returns ExportDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportDataConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDatasetRequest + * @returns ExportDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Verifies a DeleteDatasetRequest message. + * Verifies an ExportDataConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDatasetRequest + * @returns ExportDataConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataConfig; /** - * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. - * @param message DeleteDatasetRequest + * Creates a plain object from an ExportDataConfig message. Also converts values to other types if specified. + * @param message ExportDataConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDatasetRequest to JSON. + * Converts this ExportDataConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportDataRequest. */ - interface IImportDataRequest { - - /** ImportDataRequest name */ - name?: (string|null); - - /** ImportDataRequest importConfigs */ - importConfigs?: (google.cloud.aiplatform.v1beta1.IImportDataConfig[]|null); - } - - /** Represents an ImportDataRequest. */ - class ImportDataRequest implements IImportDataRequest { + /** Represents a DatasetService */ + class DatasetService extends $protobuf.rpc.Service { /** - * Constructs a new ImportDataRequest. - * @param [properties] Properties to set + * Constructs a new DatasetService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest); - - /** ImportDataRequest name. */ - public name: string; - - /** ImportDataRequest importConfigs. */ - public importConfigs: google.cloud.aiplatform.v1beta1.IImportDataConfig[]; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new ImportDataRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportDataRequest instance + * Creates new DatasetService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DatasetService; /** - * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. - * @param message ImportDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateDataset. + * @param request CreateDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetCallback): void; /** - * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. - * @param message ImportDataRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateDataset. + * @param request CreateDatasetRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createDataset(request: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): Promise; /** - * Decodes an ImportDataRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetDataset. + * @param request GetDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Dataset */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetCallback): void; /** - * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportDataRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetDataset. + * @param request GetDatasetRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public getDataset(request: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): Promise; /** - * Verifies an ImportDataRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls UpdateDataset. + * @param request UpdateDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Dataset */ - public static verify(message: { [k: string]: any }): (string|null); + public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.UpdateDatasetCallback): void; /** - * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportDataRequest + * Calls UpdateDataset. + * @param request UpdateDatasetRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataRequest; + public updateDataset(request: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): Promise; /** - * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified. - * @param message ImportDataRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ListDatasets. + * @param request ListDatasetsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDatasetsResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetsCallback): void; /** - * Converts this ImportDataRequest to JSON. - * @returns JSON object + * Calls ListDatasets. + * @param request ListDatasetsRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } + public listDatasets(request: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): Promise; - /** Properties of an ImportDataResponse. */ - interface IImportDataResponse { - } + /** + * Calls DeleteDataset. + * @param request DeleteDatasetRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetCallback): void; - /** Represents an ImportDataResponse. */ - class ImportDataResponse implements IImportDataResponse { + /** + * Calls DeleteDataset. + * @param request DeleteDatasetRequest message or plain object + * @returns Promise + */ + public deleteDataset(request: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): Promise; /** - * Constructs a new ImportDataResponse. - * @param [properties] Properties to set + * Calls ImportData. + * @param request ImportDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse); + public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ImportDataCallback): void; /** - * Creates a new ImportDataResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportDataResponse instance + * Calls ImportData. + * @param request ImportDataRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse): google.cloud.aiplatform.v1beta1.ImportDataResponse; + public importData(request: google.cloud.aiplatform.v1beta1.IImportDataRequest): Promise; /** - * Encodes the specified ImportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. - * @param message ImportDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ExportData. + * @param request ExportDataRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ExportDataCallback): void; /** - * Encodes the specified ImportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. - * @param message ImportDataResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ExportData. + * @param request ExportDataRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public exportData(request: google.cloud.aiplatform.v1beta1.IExportDataRequest): Promise; /** - * Decodes an ImportDataResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListDataItems. + * @param request ListDataItemsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataItemsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataResponse; + public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListDataItemsCallback): void; /** - * Decodes an ImportDataResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportDataResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls ListDataItems. + * @param request ListDataItemsRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataResponse; + public listDataItems(request: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): Promise; /** - * Verifies an ImportDataResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListSavedQueries. + * @param request ListSavedQueriesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListSavedQueriesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listSavedQueries(request: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueriesCallback): void; /** - * Creates an ImportDataResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportDataResponse + * Calls ListSavedQueries. + * @param request ListSavedQueriesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataResponse; + public listSavedQueries(request: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest): Promise; /** - * Creates a plain object from an ImportDataResponse message. Also converts values to other types if specified. - * @param message ImportDataResponse - * @param [options] Conversion options - * @returns Plain object + * Calls GetAnnotationSpec. + * @param request GetAnnotationSpecRequest message or plain object + * @param callback Node-style callback called with the error, if any, and AnnotationSpec */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpecCallback): void; /** - * Converts this ImportDataResponse to JSON. - * @returns JSON object + * Calls GetAnnotationSpec. + * @param request GetAnnotationSpecRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } + public getAnnotationSpec(request: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): Promise; - /** Properties of an ImportDataOperationMetadata. */ - interface IImportDataOperationMetadata { + /** + * Calls ListAnnotations. + * @param request ListAnnotationsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListAnnotationsResponse + */ + public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, callback: google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotationsCallback): void; - /** ImportDataOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Calls ListAnnotations. + * @param request ListAnnotationsRequest message or plain object + * @returns Promise + */ + public listAnnotations(request: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): Promise; } - /** Represents an ImportDataOperationMetadata. */ - class ImportDataOperationMetadata implements IImportDataOperationMetadata { + namespace DatasetService { /** - * Constructs a new ImportDataOperationMetadata. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#createDataset}. + * @param error Error, if any + * @param [response] Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata); + type CreateDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** ImportDataOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#getDataset}. + * @param error Error, if any + * @param [response] Dataset + */ + type GetDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; /** - * Creates a new ImportDataOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportDataOperationMetadata instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#updateDataset}. + * @param error Error, if any + * @param [response] Dataset */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; + type UpdateDatasetCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Dataset) => void; /** - * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. - * @param message ImportDataOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listDatasets}. + * @param error Error, if any + * @param [response] ListDatasetsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + type ListDatasetsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDatasetsResponse) => void; /** - * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. - * @param message ImportDataOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#deleteDataset}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteDatasetCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes an ImportDataOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportDataOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#importData}. + * @param error Error, if any + * @param [response] Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; + type ImportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportDataOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#exportData}. + * @param error Error, if any + * @param [response] Operation */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; + type ExportDataCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Verifies an ImportDataOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listDataItems}. + * @param error Error, if any + * @param [response] ListDataItemsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + type ListDataItemsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataItemsResponse) => void; /** - * Creates an ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportDataOperationMetadata + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listSavedQueries}. + * @param error Error, if any + * @param [response] ListSavedQueriesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; + type ListSavedQueriesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) => void; /** - * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified. - * @param message ImportDataOperationMetadata - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#getAnnotationSpec}. + * @param error Error, if any + * @param [response] AnnotationSpec */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type GetAnnotationSpecCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.AnnotationSpec) => void; /** - * Converts this ImportDataOperationMetadata to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listAnnotations}. + * @param error Error, if any + * @param [response] ListAnnotationsResponse */ - public toJSON(): { [k: string]: any }; + type ListAnnotationsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) => void; } - /** Properties of an ExportDataRequest. */ - interface IExportDataRequest { + /** Properties of a CreateDatasetRequest. */ + interface ICreateDatasetRequest { - /** ExportDataRequest name */ - name?: (string|null); + /** CreateDatasetRequest parent */ + parent?: (string|null); - /** ExportDataRequest exportConfig */ - exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); + /** CreateDatasetRequest dataset */ + dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); } - /** Represents an ExportDataRequest. */ - class ExportDataRequest implements IExportDataRequest { + /** Represents a CreateDatasetRequest. */ + class CreateDatasetRequest implements ICreateDatasetRequest { /** - * Constructs a new ExportDataRequest. + * Constructs a new CreateDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest); - /** ExportDataRequest name. */ - public name: string; + /** CreateDatasetRequest parent. */ + public parent: string; - /** ExportDataRequest exportConfig. */ - public exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); + /** CreateDatasetRequest dataset. */ + public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); /** - * Creates a new ExportDataRequest instance using the specified properties. + * Creates a new CreateDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataRequest instance + * @returns CreateDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest): google.cloud.aiplatform.v1beta1.ExportDataRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. - * @param message ExportDataRequest message or plain object to encode + * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. + * @param message CreateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. - * @param message ExportDataRequest message or plain object to encode + * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. + * @param message CreateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataRequest message from the specified reader or buffer. + * Decodes a CreateDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataRequest + * @returns CreateDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataRequest + * @returns CreateDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Verifies an ExportDataRequest message. + * Verifies a CreateDatasetRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataRequest + * @returns CreateDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetRequest; /** - * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified. - * @param message ExportDataRequest + * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. + * @param message CreateDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataRequest to JSON. + * Converts this CreateDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportDataResponse. */ - interface IExportDataResponse { + /** Properties of a CreateDatasetOperationMetadata. */ + interface ICreateDatasetOperationMetadata { - /** ExportDataResponse exportedFiles */ - exportedFiles?: (string[]|null); + /** CreateDatasetOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an ExportDataResponse. */ - class ExportDataResponse implements IExportDataResponse { + /** Represents a CreateDatasetOperationMetadata. */ + class CreateDatasetOperationMetadata implements ICreateDatasetOperationMetadata { /** - * Constructs a new ExportDataResponse. + * Constructs a new CreateDatasetOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata); - /** ExportDataResponse exportedFiles. */ - public exportedFiles: string[]; + /** CreateDatasetOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ExportDataResponse instance using the specified properties. + * Creates a new CreateDatasetOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataResponse instance + * @returns CreateDatasetOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse): google.cloud.aiplatform.v1beta1.ExportDataResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Encodes the specified ExportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. - * @param message ExportDataResponse message or plain object to encode + * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. + * @param message CreateDatasetOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. - * @param message ExportDataResponse message or plain object to encode + * Encodes the specified CreateDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. + * @param message CreateDatasetOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataResponse message from the specified reader or buffer. + * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataResponse + * @returns CreateDatasetOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Decodes an ExportDataResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataResponse + * @returns CreateDatasetOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Verifies an ExportDataResponse message. + * Verifies a CreateDatasetOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataResponse + * @returns CreateDatasetOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata; /** - * Creates a plain object from an ExportDataResponse message. Also converts values to other types if specified. - * @param message ExportDataResponse + * Creates a plain object from a CreateDatasetOperationMetadata message. Also converts values to other types if specified. + * @param message CreateDatasetOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataResponse to JSON. + * Converts this CreateDatasetOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportDataOperationMetadata. */ - interface IExportDataOperationMetadata { + /** Properties of a GetDatasetRequest. */ + interface IGetDatasetRequest { - /** ExportDataOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetDatasetRequest name */ + name?: (string|null); - /** ExportDataOperationMetadata gcsOutputDirectory */ - gcsOutputDirectory?: (string|null); + /** GetDatasetRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an ExportDataOperationMetadata. */ - class ExportDataOperationMetadata implements IExportDataOperationMetadata { + /** Represents a GetDatasetRequest. */ + class GetDatasetRequest implements IGetDatasetRequest { /** - * Constructs a new ExportDataOperationMetadata. + * Constructs a new GetDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest); - /** ExportDataOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetDatasetRequest name. */ + public name: string; - /** ExportDataOperationMetadata gcsOutputDirectory. */ - public gcsOutputDirectory: string; + /** GetDatasetRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ExportDataOperationMetadata instance using the specified properties. + * Creates a new GetDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportDataOperationMetadata instance + * @returns GetDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDatasetRequest): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. - * @param message ExportDataOperationMetadata message or plain object to encode + * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. + * @param message GetDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. - * @param message ExportDataOperationMetadata message or plain object to encode + * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. + * @param message GetDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportDataOperationMetadata message from the specified reader or buffer. + * Decodes a GetDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportDataOperationMetadata + * @returns GetDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportDataOperationMetadata + * @returns GetDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Verifies an ExportDataOperationMetadata message. + * Verifies a GetDatasetRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportDataOperationMetadata + * @returns GetDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDatasetRequest; /** - * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. - * @param message ExportDataOperationMetadata + * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. + * @param message GetDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportDataOperationMetadata to JSON. + * Converts this GetDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDataItemsRequest. */ - interface IListDataItemsRequest { - - /** ListDataItemsRequest parent */ - parent?: (string|null); - - /** ListDataItemsRequest filter */ - filter?: (string|null); - - /** ListDataItemsRequest pageSize */ - pageSize?: (number|null); - - /** ListDataItemsRequest pageToken */ - pageToken?: (string|null); + /** Properties of an UpdateDatasetRequest. */ + interface IUpdateDatasetRequest { - /** ListDataItemsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** UpdateDatasetRequest dataset */ + dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); - /** ListDataItemsRequest orderBy */ - orderBy?: (string|null); + /** UpdateDatasetRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListDataItemsRequest. */ - class ListDataItemsRequest implements IListDataItemsRequest { + /** Represents an UpdateDatasetRequest. */ + class UpdateDatasetRequest implements IUpdateDatasetRequest { /** - * Constructs a new ListDataItemsRequest. + * Constructs a new UpdateDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest); - - /** ListDataItemsRequest parent. */ - public parent: string; - - /** ListDataItemsRequest filter. */ - public filter: string; - - /** ListDataItemsRequest pageSize. */ - public pageSize: number; - - /** ListDataItemsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest); - /** ListDataItemsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** UpdateDatasetRequest dataset. */ + public dataset?: (google.cloud.aiplatform.v1beta1.IDataset|null); - /** ListDataItemsRequest orderBy. */ - public orderBy: string; + /** UpdateDatasetRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListDataItemsRequest instance using the specified properties. + * Creates a new UpdateDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataItemsRequest instance + * @returns UpdateDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. - * @param message ListDataItemsRequest message or plain object to encode + * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. + * @param message UpdateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. - * @param message ListDataItemsRequest message or plain object to encode + * Encodes the specified UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. + * @param message UpdateDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataItemsRequest message from the specified reader or buffer. + * Decodes an UpdateDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataItemsRequest + * @returns UpdateDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Decodes a ListDataItemsRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataItemsRequest + * @returns UpdateDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Verifies a ListDataItemsRequest message. + * Verifies an UpdateDatasetRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDataItemsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataItemsRequest + * @returns UpdateDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateDatasetRequest; /** - * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified. - * @param message ListDataItemsRequest + * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified. + * @param message UpdateDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataItemsRequest to JSON. + * Converts this UpdateDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListDataItemsResponse. */ - interface IListDataItemsResponse { + /** Properties of a ListDatasetsRequest. */ + interface IListDatasetsRequest { - /** ListDataItemsResponse dataItems */ - dataItems?: (google.cloud.aiplatform.v1beta1.IDataItem[]|null); + /** ListDatasetsRequest parent */ + parent?: (string|null); - /** ListDataItemsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ListDatasetsRequest filter */ + filter?: (string|null); + + /** ListDatasetsRequest pageSize */ + pageSize?: (number|null); + + /** ListDatasetsRequest pageToken */ + pageToken?: (string|null); + + /** ListDatasetsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + + /** ListDatasetsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a ListDataItemsResponse. */ - class ListDataItemsResponse implements IListDataItemsResponse { + /** Represents a ListDatasetsRequest. */ + class ListDatasetsRequest implements IListDatasetsRequest { /** - * Constructs a new ListDataItemsResponse. + * Constructs a new ListDatasetsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest); - /** ListDataItemsResponse dataItems. */ - public dataItems: google.cloud.aiplatform.v1beta1.IDataItem[]; + /** ListDatasetsRequest parent. */ + public parent: string; - /** ListDataItemsResponse nextPageToken. */ - public nextPageToken: string; + /** ListDatasetsRequest filter. */ + public filter: string; + + /** ListDatasetsRequest pageSize. */ + public pageSize: number; + + /** ListDatasetsRequest pageToken. */ + public pageToken: string; + + /** ListDatasetsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListDatasetsRequest orderBy. */ + public orderBy: string; /** - * Creates a new ListDataItemsResponse instance using the specified properties. + * Creates a new ListDatasetsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataItemsResponse instance + * @returns ListDatasetsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsRequest): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. - * @param message ListDataItemsResponse message or plain object to encode + * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. + * @param message ListDatasetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. - * @param message ListDataItemsResponse message or plain object to encode + * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. + * @param message ListDatasetsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataItemsResponse message from the specified reader or buffer. + * Decodes a ListDatasetsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataItemsResponse + * @returns ListDatasetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Decodes a ListDataItemsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataItemsResponse + * @returns ListDatasetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Verifies a ListDataItemsResponse message. + * Verifies a ListDatasetsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDataItemsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDatasetsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataItemsResponse + * @returns ListDatasetsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsRequest; /** - * Creates a plain object from a ListDataItemsResponse message. Also converts values to other types if specified. - * @param message ListDataItemsResponse + * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified. + * @param message ListDatasetsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataItemsResponse to JSON. + * Converts this ListDatasetsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetAnnotationSpecRequest. */ - interface IGetAnnotationSpecRequest { + /** Properties of a ListDatasetsResponse. */ + interface IListDatasetsResponse { - /** GetAnnotationSpecRequest name */ - name?: (string|null); + /** ListDatasetsResponse datasets */ + datasets?: (google.cloud.aiplatform.v1beta1.IDataset[]|null); - /** GetAnnotationSpecRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ListDatasetsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a GetAnnotationSpecRequest. */ - class GetAnnotationSpecRequest implements IGetAnnotationSpecRequest { + /** Represents a ListDatasetsResponse. */ + class ListDatasetsResponse implements IListDatasetsResponse { /** - * Constructs a new GetAnnotationSpecRequest. + * Constructs a new ListDatasetsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse); - /** GetAnnotationSpecRequest name. */ - public name: string; + /** ListDatasetsResponse datasets. */ + public datasets: google.cloud.aiplatform.v1beta1.IDataset[]; - /** GetAnnotationSpecRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ListDatasetsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new GetAnnotationSpecRequest instance using the specified properties. + * Creates a new ListDatasetsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetAnnotationSpecRequest instance + * @returns ListDatasetsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDatasetsResponse): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. - * @param message GetAnnotationSpecRequest message or plain object to encode + * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. + * @param message ListDatasetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. - * @param message GetAnnotationSpecRequest message or plain object to encode + * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. + * @param message ListDatasetsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDatasetsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. + * Decodes a ListDatasetsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetAnnotationSpecRequest + * @returns ListDatasetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetAnnotationSpecRequest + * @returns ListDatasetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Verifies a GetAnnotationSpecRequest message. + * Verifies a ListDatasetsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDatasetsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetAnnotationSpecRequest + * @returns ListDatasetsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDatasetsResponse; /** - * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified. - * @param message GetAnnotationSpecRequest + * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. + * @param message ListDatasetsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDatasetsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetAnnotationSpecRequest to JSON. + * Converts this ListDatasetsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListAnnotationsRequest. */ - interface IListAnnotationsRequest { - - /** ListAnnotationsRequest parent */ - parent?: (string|null); - - /** ListAnnotationsRequest filter */ - filter?: (string|null); - - /** ListAnnotationsRequest pageSize */ - pageSize?: (number|null); - - /** ListAnnotationsRequest pageToken */ - pageToken?: (string|null); - - /** ListAnnotationsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** Properties of a DeleteDatasetRequest. */ + interface IDeleteDatasetRequest { - /** ListAnnotationsRequest orderBy */ - orderBy?: (string|null); + /** DeleteDatasetRequest name */ + name?: (string|null); } - /** Represents a ListAnnotationsRequest. */ - class ListAnnotationsRequest implements IListAnnotationsRequest { + /** Represents a DeleteDatasetRequest. */ + class DeleteDatasetRequest implements IDeleteDatasetRequest { /** - * Constructs a new ListAnnotationsRequest. + * Constructs a new DeleteDatasetRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest); - - /** ListAnnotationsRequest parent. */ - public parent: string; - - /** ListAnnotationsRequest filter. */ - public filter: string; - - /** ListAnnotationsRequest pageSize. */ - public pageSize: number; - - /** ListAnnotationsRequest pageToken. */ - public pageToken: string; - - /** ListAnnotationsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest); - /** ListAnnotationsRequest orderBy. */ - public orderBy: string; + /** DeleteDatasetRequest name. */ + public name: string; /** - * Creates a new ListAnnotationsRequest instance using the specified properties. + * Creates a new DeleteDatasetRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAnnotationsRequest instance + * @returns DeleteDatasetRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. - * @param message ListAnnotationsRequest message or plain object to encode + * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. + * @param message DeleteDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. - * @param message ListAnnotationsRequest message or plain object to encode + * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. + * @param message DeleteDatasetRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer. + * Decodes a DeleteDatasetRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAnnotationsRequest + * @returns DeleteDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAnnotationsRequest + * @returns DeleteDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Verifies a ListAnnotationsRequest message. + * Verifies a DeleteDatasetRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListAnnotationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAnnotationsRequest + * @returns DeleteDatasetRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDatasetRequest; /** - * Creates a plain object from a ListAnnotationsRequest message. Also converts values to other types if specified. - * @param message ListAnnotationsRequest + * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. + * @param message DeleteDatasetRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDatasetRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAnnotationsRequest to JSON. + * Converts this DeleteDatasetRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListAnnotationsResponse. */ - interface IListAnnotationsResponse { + /** Properties of an ImportDataRequest. */ + interface IImportDataRequest { - /** ListAnnotationsResponse annotations */ - annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); + /** ImportDataRequest name */ + name?: (string|null); - /** ListAnnotationsResponse nextPageToken */ - nextPageToken?: (string|null); + /** ImportDataRequest importConfigs */ + importConfigs?: (google.cloud.aiplatform.v1beta1.IImportDataConfig[]|null); } - /** Represents a ListAnnotationsResponse. */ - class ListAnnotationsResponse implements IListAnnotationsResponse { + /** Represents an ImportDataRequest. */ + class ImportDataRequest implements IImportDataRequest { /** - * Constructs a new ListAnnotationsResponse. + * Constructs a new ImportDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest); - /** ListAnnotationsResponse annotations. */ - public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; + /** ImportDataRequest name. */ + public name: string; - /** ListAnnotationsResponse nextPageToken. */ - public nextPageToken: string; + /** ImportDataRequest importConfigs. */ + public importConfigs: google.cloud.aiplatform.v1beta1.IImportDataConfig[]; /** - * Creates a new ListAnnotationsResponse instance using the specified properties. + * Creates a new ImportDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListAnnotationsResponse instance + * @returns ImportDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataRequest): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Encodes the specified ListAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. - * @param message ListAnnotationsResponse message or plain object to encode + * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. + * @param message ImportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. - * @param message ListAnnotationsResponse message or plain object to encode + * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. + * @param message ImportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListAnnotationsResponse message from the specified reader or buffer. + * Decodes an ImportDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListAnnotationsResponse + * @returns ImportDataRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Decodes a ListAnnotationsResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListAnnotationsResponse + * @returns ImportDataRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Verifies a ListAnnotationsResponse message. + * Verifies an ImportDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListAnnotationsResponse + * @returns ImportDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataRequest; /** - * Creates a plain object from a ListAnnotationsResponse message. Also converts values to other types if specified. - * @param message ListAnnotationsResponse + * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified. + * @param message ImportDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListAnnotationsResponse to JSON. + * Converts this ImportDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GenericOperationMetadata. */ - interface IGenericOperationMetadata { - - /** GenericOperationMetadata partialFailures */ - partialFailures?: (google.rpc.IStatus[]|null); - - /** GenericOperationMetadata createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** GenericOperationMetadata updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Properties of an ImportDataResponse. */ + interface IImportDataResponse { } - /** Represents a GenericOperationMetadata. */ - class GenericOperationMetadata implements IGenericOperationMetadata { + /** Represents an ImportDataResponse. */ + class ImportDataResponse implements IImportDataResponse { /** - * Constructs a new GenericOperationMetadata. + * Constructs a new ImportDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata); - - /** GenericOperationMetadata partialFailures. */ - public partialFailures: google.rpc.IStatus[]; - - /** GenericOperationMetadata createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** GenericOperationMetadata updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse); /** - * Creates a new GenericOperationMetadata instance using the specified properties. + * Creates a new ImportDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GenericOperationMetadata instance + * @returns ImportDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataResponse): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Encodes the specified GenericOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. - * @param message GenericOperationMetadata message or plain object to encode + * Encodes the specified ImportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. + * @param message ImportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GenericOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. - * @param message GenericOperationMetadata message or plain object to encode + * Encodes the specified ImportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. + * @param message ImportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer. + * Decodes an ImportDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GenericOperationMetadata + * @returns ImportDataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an ImportDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GenericOperationMetadata + * @returns ImportDataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Verifies a GenericOperationMetadata message. + * Verifies an ImportDataResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GenericOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GenericOperationMetadata + * @returns ImportDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataResponse; /** - * Creates a plain object from a GenericOperationMetadata message. Also converts values to other types if specified. - * @param message GenericOperationMetadata + * Creates a plain object from an ImportDataResponse message. Also converts values to other types if specified. + * @param message ImportDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GenericOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GenericOperationMetadata to JSON. + * Converts this ImportDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteOperationMetadata. */ - interface IDeleteOperationMetadata { + /** Properties of an ImportDataOperationMetadata. */ + interface IImportDataOperationMetadata { - /** DeleteOperationMetadata genericMetadata */ + /** ImportDataOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a DeleteOperationMetadata. */ - class DeleteOperationMetadata implements IDeleteOperationMetadata { + /** Represents an ImportDataOperationMetadata. */ + class ImportDataOperationMetadata implements IImportDataOperationMetadata { /** - * Constructs a new DeleteOperationMetadata. + * Constructs a new ImportDataOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata); - /** DeleteOperationMetadata genericMetadata. */ + /** ImportDataOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeleteOperationMetadata instance using the specified properties. + * Creates a new ImportDataOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteOperationMetadata instance + * @returns ImportDataOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. - * @param message DeleteOperationMetadata message or plain object to encode + * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. + * @param message ImportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. - * @param message DeleteOperationMetadata message or plain object to encode + * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. + * @param message ImportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteOperationMetadata message from the specified reader or buffer. + * Decodes an ImportDataOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteOperationMetadata + * @returns ImportDataOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteOperationMetadata + * @returns ImportDataOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Verifies a DeleteOperationMetadata message. + * Verifies an ImportDataOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteOperationMetadata + * @returns ImportDataOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata; /** - * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified. - * @param message DeleteOperationMetadata + * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified. + * @param message ImportDataOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteOperationMetadata to JSON. + * Converts this ImportDataOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployedIndexRef. */ - interface IDeployedIndexRef { + /** Properties of an ExportDataRequest. */ + interface IExportDataRequest { - /** DeployedIndexRef indexEndpoint */ - indexEndpoint?: (string|null); + /** ExportDataRequest name */ + name?: (string|null); - /** DeployedIndexRef deployedIndexId */ - deployedIndexId?: (string|null); + /** ExportDataRequest exportConfig */ + exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); } - /** Represents a DeployedIndexRef. */ - class DeployedIndexRef implements IDeployedIndexRef { + /** Represents an ExportDataRequest. */ + class ExportDataRequest implements IExportDataRequest { /** - * Constructs a new DeployedIndexRef. + * Constructs a new ExportDataRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest); - /** DeployedIndexRef indexEndpoint. */ - public indexEndpoint: string; + /** ExportDataRequest name. */ + public name: string; - /** DeployedIndexRef deployedIndexId. */ - public deployedIndexId: string; + /** ExportDataRequest exportConfig. */ + public exportConfig?: (google.cloud.aiplatform.v1beta1.IExportDataConfig|null); /** - * Creates a new DeployedIndexRef instance using the specified properties. + * Creates a new ExportDataRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndexRef instance + * @returns ExportDataRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef): google.cloud.aiplatform.v1beta1.DeployedIndexRef; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataRequest): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Encodes the specified DeployedIndexRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. - * @param message DeployedIndexRef message or plain object to encode + * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. + * @param message ExportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedIndexRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. - * @param message DeployedIndexRef message or plain object to encode + * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. + * @param message ExportDataRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer. + * Decodes an ExportDataRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedIndexRef + * @returns ExportDataRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexRef; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer, length delimited. + * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedIndexRef + * @returns ExportDataRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexRef; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Verifies a DeployedIndexRef message. + * Verifies an ExportDataRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployedIndexRef message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedIndexRef + * @returns ExportDataRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexRef; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataRequest; /** - * Creates a plain object from a DeployedIndexRef message. Also converts values to other types if specified. - * @param message DeployedIndexRef + * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified. + * @param message ExportDataRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndexRef to JSON. + * Converts this ExportDataRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Endpoint. */ - interface IEndpoint { - - /** Endpoint name */ - name?: (string|null); - - /** Endpoint displayName */ - displayName?: (string|null); - - /** Endpoint description */ - description?: (string|null); - - /** Endpoint deployedModels */ - deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModel[]|null); - - /** Endpoint trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); - - /** Endpoint etag */ - etag?: (string|null); - - /** Endpoint labels */ - labels?: ({ [k: string]: string }|null); - - /** Endpoint createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Endpoint updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Endpoint encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** Endpoint network */ - network?: (string|null); - - /** Endpoint enablePrivateServiceConnect */ - enablePrivateServiceConnect?: (boolean|null); - - /** Endpoint modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (string|null); + /** Properties of an ExportDataResponse. */ + interface IExportDataResponse { - /** Endpoint predictRequestResponseLoggingConfig */ - predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); + /** ExportDataResponse exportedFiles */ + exportedFiles?: (string[]|null); } - /** Represents an Endpoint. */ - class Endpoint implements IEndpoint { + /** Represents an ExportDataResponse. */ + class ExportDataResponse implements IExportDataResponse { /** - * Constructs a new Endpoint. + * Constructs a new ExportDataResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEndpoint); - - /** Endpoint name. */ - public name: string; - - /** Endpoint displayName. */ - public displayName: string; - - /** Endpoint description. */ - public description: string; - - /** Endpoint deployedModels. */ - public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModel[]; - - /** Endpoint trafficSplit. */ - public trafficSplit: { [k: string]: number }; - - /** Endpoint etag. */ - public etag: string; - - /** Endpoint labels. */ - public labels: { [k: string]: string }; - - /** Endpoint createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Endpoint updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Endpoint encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** Endpoint network. */ - public network: string; - - /** Endpoint enablePrivateServiceConnect. */ - public enablePrivateServiceConnect: boolean; - - /** Endpoint modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse); - /** Endpoint predictRequestResponseLoggingConfig. */ - public predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); + /** ExportDataResponse exportedFiles. */ + public exportedFiles: string[]; /** - * Creates a new Endpoint instance using the specified properties. + * Creates a new ExportDataResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Endpoint instance + * @returns ExportDataResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEndpoint): google.cloud.aiplatform.v1beta1.Endpoint; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataResponse): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. - * @param message Endpoint message or plain object to encode + * Encodes the specified ExportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. + * @param message ExportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. - * @param message Endpoint message or plain object to encode + * Encodes the specified ExportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. + * @param message ExportDataResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Endpoint message from the specified reader or buffer. + * Decodes an ExportDataResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Endpoint + * @returns ExportDataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Endpoint; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Decodes an Endpoint message from the specified reader or buffer, length delimited. + * Decodes an ExportDataResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Endpoint + * @returns ExportDataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Endpoint; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Verifies an Endpoint message. + * Verifies an ExportDataResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Endpoint message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Endpoint + * @returns ExportDataResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Endpoint; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataResponse; /** - * Creates a plain object from an Endpoint message. Also converts values to other types if specified. - * @param message Endpoint + * Creates a plain object from an ExportDataResponse message. Also converts values to other types if specified. + * @param message ExportDataResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Endpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Endpoint to JSON. + * Converts this ExportDataResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployedModel. */ - interface IDeployedModel { - - /** DeployedModel dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - - /** DeployedModel automaticResources */ - automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - - /** DeployedModel id */ - id?: (string|null); - - /** DeployedModel model */ - model?: (string|null); - - /** DeployedModel modelVersionId */ - modelVersionId?: (string|null); - - /** DeployedModel displayName */ - displayName?: (string|null); - - /** DeployedModel createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** DeployedModel explanationSpec */ - explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** DeployedModel serviceAccount */ - serviceAccount?: (string|null); - - /** DeployedModel enableContainerLogging */ - enableContainerLogging?: (boolean|null); + /** Properties of an ExportDataOperationMetadata. */ + interface IExportDataOperationMetadata { - /** DeployedModel enableAccessLogging */ - enableAccessLogging?: (boolean|null); + /** ExportDataOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** DeployedModel privateEndpoints */ - privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); + /** ExportDataOperationMetadata gcsOutputDirectory */ + gcsOutputDirectory?: (string|null); } - /** Represents a DeployedModel. */ - class DeployedModel implements IDeployedModel { + /** Represents an ExportDataOperationMetadata. */ + class ExportDataOperationMetadata implements IExportDataOperationMetadata { /** - * Constructs a new DeployedModel. + * Constructs a new ExportDataOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel); - - /** DeployedModel dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - - /** DeployedModel automaticResources. */ - public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - - /** DeployedModel id. */ - public id: string; - - /** DeployedModel model. */ - public model: string; - - /** DeployedModel modelVersionId. */ - public modelVersionId: string; - - /** DeployedModel displayName. */ - public displayName: string; - - /** DeployedModel createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** DeployedModel explanationSpec. */ - public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); - - /** DeployedModel serviceAccount. */ - public serviceAccount: string; - - /** DeployedModel enableContainerLogging. */ - public enableContainerLogging: boolean; - - /** DeployedModel enableAccessLogging. */ - public enableAccessLogging: boolean; + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata); - /** DeployedModel privateEndpoints. */ - public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); + /** ExportDataOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** DeployedModel predictionResources. */ - public predictionResources?: ("dedicatedResources"|"automaticResources"); + /** ExportDataOperationMetadata gcsOutputDirectory. */ + public gcsOutputDirectory: string; /** - * Creates a new DeployedModel instance using the specified properties. + * Creates a new ExportDataOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedModel instance + * @returns ExportDataOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel): google.cloud.aiplatform.v1beta1.DeployedModel; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Encodes the specified DeployedModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. - * @param message DeployedModel message or plain object to encode + * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. + * @param message ExportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. - * @param message DeployedModel message or plain object to encode + * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. + * @param message ExportDataOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedModel message from the specified reader or buffer. + * Decodes an ExportDataOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedModel + * @returns ExportDataOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedModel; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Decodes a DeployedModel message from the specified reader or buffer, length delimited. + * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedModel + * @returns ExportDataOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedModel; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Verifies a DeployedModel message. + * Verifies an ExportDataOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployedModel message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedModel + * @returns ExportDataOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModel; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata; /** - * Creates a plain object from a DeployedModel message. Also converts values to other types if specified. - * @param message DeployedModel + * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. + * @param message ExportDataOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedModel to JSON. + * Converts this ExportDataOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PrivateEndpoints. */ - interface IPrivateEndpoints { + /** Properties of a ListDataItemsRequest. */ + interface IListDataItemsRequest { - /** PrivateEndpoints predictHttpUri */ - predictHttpUri?: (string|null); + /** ListDataItemsRequest parent */ + parent?: (string|null); - /** PrivateEndpoints explainHttpUri */ - explainHttpUri?: (string|null); + /** ListDataItemsRequest filter */ + filter?: (string|null); - /** PrivateEndpoints healthHttpUri */ - healthHttpUri?: (string|null); + /** ListDataItemsRequest pageSize */ + pageSize?: (number|null); - /** PrivateEndpoints serviceAttachment */ - serviceAttachment?: (string|null); + /** ListDataItemsRequest pageToken */ + pageToken?: (string|null); + + /** ListDataItemsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + + /** ListDataItemsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a PrivateEndpoints. */ - class PrivateEndpoints implements IPrivateEndpoints { + /** Represents a ListDataItemsRequest. */ + class ListDataItemsRequest implements IListDataItemsRequest { /** - * Constructs a new PrivateEndpoints. + * Constructs a new ListDataItemsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest); - /** PrivateEndpoints predictHttpUri. */ - public predictHttpUri: string; + /** ListDataItemsRequest parent. */ + public parent: string; - /** PrivateEndpoints explainHttpUri. */ - public explainHttpUri: string; + /** ListDataItemsRequest filter. */ + public filter: string; - /** PrivateEndpoints healthHttpUri. */ - public healthHttpUri: string; + /** ListDataItemsRequest pageSize. */ + public pageSize: number; - /** PrivateEndpoints serviceAttachment. */ - public serviceAttachment: string; + /** ListDataItemsRequest pageToken. */ + public pageToken: string; + + /** ListDataItemsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListDataItemsRequest orderBy. */ + public orderBy: string; /** - * Creates a new PrivateEndpoints instance using the specified properties. + * Creates a new ListDataItemsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PrivateEndpoints instance + * @returns ListDataItemsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints): google.cloud.aiplatform.v1beta1.PrivateEndpoints; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsRequest): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Encodes the specified PrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. - * @param message PrivateEndpoints message or plain object to encode + * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. + * @param message ListDataItemsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. - * @param message PrivateEndpoints message or plain object to encode + * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. + * @param message ListDataItemsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PrivateEndpoints message from the specified reader or buffer. + * Decodes a ListDataItemsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PrivateEndpoints + * @returns ListDataItemsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PrivateEndpoints; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Decodes a PrivateEndpoints message from the specified reader or buffer, length delimited. + * Decodes a ListDataItemsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PrivateEndpoints + * @returns ListDataItemsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PrivateEndpoints; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Verifies a PrivateEndpoints message. + * Verifies a ListDataItemsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataItemsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PrivateEndpoints + * @returns ListDataItemsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PrivateEndpoints; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsRequest; /** - * Creates a plain object from a PrivateEndpoints message. Also converts values to other types if specified. - * @param message PrivateEndpoints + * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified. + * @param message ListDataItemsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PrivateEndpoints to JSON. + * Converts this ListDataItemsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PredictRequestResponseLoggingConfig. */ - interface IPredictRequestResponseLoggingConfig { - - /** PredictRequestResponseLoggingConfig enabled */ - enabled?: (boolean|null); + /** Properties of a ListDataItemsResponse. */ + interface IListDataItemsResponse { - /** PredictRequestResponseLoggingConfig samplingRate */ - samplingRate?: (number|null); + /** ListDataItemsResponse dataItems */ + dataItems?: (google.cloud.aiplatform.v1beta1.IDataItem[]|null); - /** PredictRequestResponseLoggingConfig bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** ListDataItemsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a PredictRequestResponseLoggingConfig. */ - class PredictRequestResponseLoggingConfig implements IPredictRequestResponseLoggingConfig { + /** Represents a ListDataItemsResponse. */ + class ListDataItemsResponse implements IListDataItemsResponse { /** - * Constructs a new PredictRequestResponseLoggingConfig. + * Constructs a new ListDataItemsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig); - - /** PredictRequestResponseLoggingConfig enabled. */ - public enabled: boolean; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse); - /** PredictRequestResponseLoggingConfig samplingRate. */ - public samplingRate: number; + /** ListDataItemsResponse dataItems. */ + public dataItems: google.cloud.aiplatform.v1beta1.IDataItem[]; - /** PredictRequestResponseLoggingConfig bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** ListDataItemsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new PredictRequestResponseLoggingConfig instance using the specified properties. + * Creates a new ListDataItemsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns PredictRequestResponseLoggingConfig instance + * @returns ListDataItemsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataItemsResponse): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Encodes the specified PredictRequestResponseLoggingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. - * @param message PredictRequestResponseLoggingConfig message or plain object to encode + * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. + * @param message ListDataItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PredictRequestResponseLoggingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. - * @param message PredictRequestResponseLoggingConfig message or plain object to encode + * Encodes the specified ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. + * @param message ListDataItemsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataItemsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer. + * Decodes a ListDataItemsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PredictRequestResponseLoggingConfig + * @returns ListDataItemsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer, length delimited. + * Decodes a ListDataItemsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PredictRequestResponseLoggingConfig + * @returns ListDataItemsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Verifies a PredictRequestResponseLoggingConfig message. + * Verifies a ListDataItemsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PredictRequestResponseLoggingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataItemsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PredictRequestResponseLoggingConfig + * @returns ListDataItemsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataItemsResponse; /** - * Creates a plain object from a PredictRequestResponseLoggingConfig message. Also converts values to other types if specified. - * @param message PredictRequestResponseLoggingConfig + * Creates a plain object from a ListDataItemsResponse message. Also converts values to other types if specified. + * @param message ListDataItemsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataItemsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PredictRequestResponseLoggingConfig to JSON. + * Converts this ListDataItemsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents an EndpointService */ - class EndpointService extends $protobuf.rpc.Service { - - /** - * Constructs a new EndpointService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new EndpointService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EndpointService; - - /** - * Calls CreateEndpoint. - * @param request CreateEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpointCallback): void; - - /** - * Calls CreateEndpoint. - * @param request CreateEndpointRequest message or plain object - * @returns Promise - */ - public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): Promise; - - /** - * Calls GetEndpoint. - * @param request GetEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Endpoint - */ - public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.GetEndpointCallback): void; - - /** - * Calls GetEndpoint. - * @param request GetEndpointRequest message or plain object - * @returns Promise - */ - public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): Promise; - - /** - * Calls ListEndpoints. - * @param request ListEndpointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEndpointsResponse - */ - public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.ListEndpointsCallback): void; - - /** - * Calls ListEndpoints. - * @param request ListEndpointsRequest message or plain object - * @returns Promise - */ - public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): Promise; - - /** - * Calls UpdateEndpoint. - * @param request UpdateEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Endpoint - */ - public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointCallback): void; - - /** - * Calls UpdateEndpoint. - * @param request UpdateEndpointRequest message or plain object - * @returns Promise - */ - public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): Promise; + /** Properties of a ListSavedQueriesRequest. */ + interface IListSavedQueriesRequest { - /** - * Calls DeleteEndpoint. - * @param request DeleteEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpointCallback): void; + /** ListSavedQueriesRequest parent */ + parent?: (string|null); - /** - * Calls DeleteEndpoint. - * @param request DeleteEndpointRequest message or plain object - * @returns Promise - */ - public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): Promise; + /** ListSavedQueriesRequest filter */ + filter?: (string|null); - /** - * Calls DeployModel. - * @param request DeployModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeployModelCallback): void; + /** ListSavedQueriesRequest pageSize */ + pageSize?: (number|null); - /** - * Calls DeployModel. - * @param request DeployModelRequest message or plain object - * @returns Promise - */ - public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest): Promise; + /** ListSavedQueriesRequest pageToken */ + pageToken?: (string|null); - /** - * Calls UndeployModel. - * @param request UndeployModelRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UndeployModelCallback): void; + /** ListSavedQueriesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** - * Calls UndeployModel. - * @param request UndeployModelRequest message or plain object - * @returns Promise - */ - public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): Promise; + /** ListSavedQueriesRequest orderBy */ + orderBy?: (string|null); } - namespace EndpointService { - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#createEndpoint}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#getEndpoint}. - * @param error Error, if any - * @param [response] Endpoint - */ - type GetEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#listEndpoints}. - * @param error Error, if any - * @param [response] ListEndpointsResponse - */ - type ListEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEndpointsResponse) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#updateEndpoint}. - * @param error Error, if any - * @param [response] Endpoint - */ - type UpdateEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#deleteEndpoint}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#deployModel}. - * @param error Error, if any - * @param [response] Operation - */ - type DeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Represents a ListSavedQueriesRequest. */ + class ListSavedQueriesRequest implements IListSavedQueriesRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#undeployModel}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new ListSavedQueriesRequest. + * @param [properties] Properties to set */ - type UndeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - } - - /** Properties of a CreateEndpointRequest. */ - interface ICreateEndpointRequest { - - /** CreateEndpointRequest parent */ - parent?: (string|null); - - /** CreateEndpointRequest endpoint */ - endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest); - /** CreateEndpointRequest endpointId */ - endpointId?: (string|null); - } + /** ListSavedQueriesRequest parent. */ + public parent: string; - /** Represents a CreateEndpointRequest. */ - class CreateEndpointRequest implements ICreateEndpointRequest { + /** ListSavedQueriesRequest filter. */ + public filter: string; - /** - * Constructs a new CreateEndpointRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest); + /** ListSavedQueriesRequest pageSize. */ + public pageSize: number; - /** CreateEndpointRequest parent. */ - public parent: string; + /** ListSavedQueriesRequest pageToken. */ + public pageToken: string; - /** CreateEndpointRequest endpoint. */ - public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** ListSavedQueriesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** CreateEndpointRequest endpointId. */ - public endpointId: string; + /** ListSavedQueriesRequest orderBy. */ + public orderBy: string; /** - * Creates a new CreateEndpointRequest instance using the specified properties. + * Creates a new ListSavedQueriesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEndpointRequest instance + * @returns ListSavedQueriesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Encodes the specified CreateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. - * @param message CreateEndpointRequest message or plain object to encode + * Encodes the specified ListSavedQueriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. + * @param message ListSavedQueriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. - * @param message CreateEndpointRequest message or plain object to encode + * Encodes the specified ListSavedQueriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. + * @param message ListSavedQueriesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEndpointRequest message from the specified reader or buffer. + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEndpointRequest + * @returns ListSavedQueriesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Decodes a CreateEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEndpointRequest + * @returns ListSavedQueriesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Verifies a CreateEndpointRequest message. + * Verifies a ListSavedQueriesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListSavedQueriesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEndpointRequest + * @returns ListSavedQueriesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest; /** - * Creates a plain object from a CreateEndpointRequest message. Also converts values to other types if specified. - * @param message CreateEndpointRequest + * Creates a plain object from a ListSavedQueriesRequest message. Also converts values to other types if specified. + * @param message ListSavedQueriesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEndpointRequest to JSON. + * Converts this ListSavedQueriesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateEndpointOperationMetadata. */ - interface ICreateEndpointOperationMetadata { + /** Properties of a ListSavedQueriesResponse. */ + interface IListSavedQueriesResponse { - /** CreateEndpointOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListSavedQueriesResponse savedQueries */ + savedQueries?: (google.cloud.aiplatform.v1beta1.ISavedQuery[]|null); + + /** ListSavedQueriesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateEndpointOperationMetadata. */ - class CreateEndpointOperationMetadata implements ICreateEndpointOperationMetadata { + /** Represents a ListSavedQueriesResponse. */ + class ListSavedQueriesResponse implements IListSavedQueriesResponse { /** - * Constructs a new CreateEndpointOperationMetadata. + * Constructs a new ListSavedQueriesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse); - /** CreateEndpointOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListSavedQueriesResponse savedQueries. */ + public savedQueries: google.cloud.aiplatform.v1beta1.ISavedQuery[]; + + /** ListSavedQueriesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateEndpointOperationMetadata instance using the specified properties. + * Creates a new ListSavedQueriesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEndpointOperationMetadata instance + * @returns ListSavedQueriesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; /** - * Encodes the specified CreateEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. - * @param message CreateEndpointOperationMetadata message or plain object to encode + * Encodes the specified ListSavedQueriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. + * @param message ListSavedQueriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. - * @param message CreateEndpointOperationMetadata message or plain object to encode + * Encodes the specified ListSavedQueriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. + * @param message ListSavedQueriesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer. + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEndpointOperationMetadata + * @returns ListSavedQueriesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; /** - * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEndpointOperationMetadata + * @returns ListSavedQueriesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; /** - * Verifies a CreateEndpointOperationMetadata message. + * Verifies a ListSavedQueriesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListSavedQueriesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEndpointOperationMetadata + * @returns ListSavedQueriesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse; /** - * Creates a plain object from a CreateEndpointOperationMetadata message. Also converts values to other types if specified. - * @param message CreateEndpointOperationMetadata + * Creates a plain object from a ListSavedQueriesResponse message. Also converts values to other types if specified. + * @param message ListSavedQueriesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEndpointOperationMetadata to JSON. + * Converts this ListSavedQueriesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetEndpointRequest. */ - interface IGetEndpointRequest { + /** Properties of a GetAnnotationSpecRequest. */ + interface IGetAnnotationSpecRequest { - /** GetEndpointRequest name */ + /** GetAnnotationSpecRequest name */ name?: (string|null); + + /** GetAnnotationSpecRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a GetEndpointRequest. */ - class GetEndpointRequest implements IGetEndpointRequest { + /** Represents a GetAnnotationSpecRequest. */ + class GetAnnotationSpecRequest implements IGetAnnotationSpecRequest { /** - * Constructs a new GetEndpointRequest. + * Constructs a new GetAnnotationSpecRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest); - /** GetEndpointRequest name. */ + /** GetAnnotationSpecRequest name. */ public name: string; + /** GetAnnotationSpecRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + /** - * Creates a new GetEndpointRequest instance using the specified properties. + * Creates a new GetAnnotationSpecRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetEndpointRequest instance + * @returns GetAnnotationSpecRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): google.cloud.aiplatform.v1beta1.GetEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. - * @param message GetEndpointRequest message or plain object to encode + * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. + * @param message GetAnnotationSpecRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. - * @param message GetEndpointRequest message or plain object to encode + * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. + * @param message GetAnnotationSpecRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer. + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEndpointRequest + * @returns GetAnnotationSpecRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEndpointRequest + * @returns GetAnnotationSpecRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Verifies a GetEndpointRequest message. + * Verifies a GetAnnotationSpecRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEndpointRequest + * @returns GetAnnotationSpecRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest; /** - * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified. - * @param message GetEndpointRequest + * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified. + * @param message GetAnnotationSpecRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEndpointRequest to JSON. + * Converts this GetAnnotationSpecRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEndpointsRequest. */ - interface IListEndpointsRequest { + /** Properties of a ListAnnotationsRequest. */ + interface IListAnnotationsRequest { - /** ListEndpointsRequest parent */ + /** ListAnnotationsRequest parent */ parent?: (string|null); - /** ListEndpointsRequest filter */ + /** ListAnnotationsRequest filter */ filter?: (string|null); - /** ListEndpointsRequest pageSize */ + /** ListAnnotationsRequest pageSize */ pageSize?: (number|null); - /** ListEndpointsRequest pageToken */ + /** ListAnnotationsRequest pageToken */ pageToken?: (string|null); - /** ListEndpointsRequest readMask */ + /** ListAnnotationsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); + + /** ListAnnotationsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a ListEndpointsRequest. */ - class ListEndpointsRequest implements IListEndpointsRequest { + /** Represents a ListAnnotationsRequest. */ + class ListAnnotationsRequest implements IListAnnotationsRequest { /** - * Constructs a new ListEndpointsRequest. + * Constructs a new ListAnnotationsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest); - /** ListEndpointsRequest parent. */ + /** ListAnnotationsRequest parent. */ public parent: string; - /** ListEndpointsRequest filter. */ + /** ListAnnotationsRequest filter. */ public filter: string; - /** ListEndpointsRequest pageSize. */ + /** ListAnnotationsRequest pageSize. */ public pageSize: number; - /** ListEndpointsRequest pageToken. */ + /** ListAnnotationsRequest pageToken. */ public pageToken: string; - /** ListEndpointsRequest readMask. */ + /** ListAnnotationsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); + /** ListAnnotationsRequest orderBy. */ + public orderBy: string; + /** - * Creates a new ListEndpointsRequest instance using the specified properties. + * Creates a new ListAnnotationsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEndpointsRequest instance + * @returns ListAnnotationsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. - * @param message ListEndpointsRequest message or plain object to encode + * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. + * @param message ListAnnotationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. - * @param message ListEndpointsRequest message or plain object to encode + * Encodes the specified ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. + * @param message ListAnnotationsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer. + * Decodes a ListAnnotationsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEndpointsRequest + * @returns ListAnnotationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAnnotationsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEndpointsRequest + * @returns ListAnnotationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Verifies a ListEndpointsRequest message. + * Verifies a ListAnnotationsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAnnotationsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEndpointsRequest + * @returns ListAnnotationsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsRequest; /** - * Creates a plain object from a ListEndpointsRequest message. Also converts values to other types if specified. - * @param message ListEndpointsRequest + * Creates a plain object from a ListAnnotationsRequest message. Also converts values to other types if specified. + * @param message ListAnnotationsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEndpointsRequest to JSON. + * Converts this ListAnnotationsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEndpointsResponse. */ - interface IListEndpointsResponse { + /** Properties of a ListAnnotationsResponse. */ + interface IListAnnotationsResponse { - /** ListEndpointsResponse endpoints */ - endpoints?: (google.cloud.aiplatform.v1beta1.IEndpoint[]|null); + /** ListAnnotationsResponse annotations */ + annotations?: (google.cloud.aiplatform.v1beta1.IAnnotation[]|null); - /** ListEndpointsResponse nextPageToken */ + /** ListAnnotationsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListEndpointsResponse. */ - class ListEndpointsResponse implements IListEndpointsResponse { + /** Represents a ListAnnotationsResponse. */ + class ListAnnotationsResponse implements IListAnnotationsResponse { /** - * Constructs a new ListEndpointsResponse. + * Constructs a new ListAnnotationsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse); - /** ListEndpointsResponse endpoints. */ - public endpoints: google.cloud.aiplatform.v1beta1.IEndpoint[]; + /** ListAnnotationsResponse annotations. */ + public annotations: google.cloud.aiplatform.v1beta1.IAnnotation[]; - /** ListEndpointsResponse nextPageToken. */ + /** ListAnnotationsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListEndpointsResponse instance using the specified properties. + * Creates a new ListAnnotationsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListEndpointsResponse instance + * @returns ListAnnotationsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. - * @param message ListEndpointsResponse message or plain object to encode + * Encodes the specified ListAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. + * @param message ListAnnotationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. - * @param message ListEndpointsResponse message or plain object to encode + * Encodes the specified ListAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. + * @param message ListAnnotationsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListAnnotationsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEndpointsResponse message from the specified reader or buffer. + * Decodes a ListAnnotationsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEndpointsResponse + * @returns ListAnnotationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListAnnotationsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEndpointsResponse + * @returns ListAnnotationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Verifies a ListEndpointsResponse message. + * Verifies a ListAnnotationsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListAnnotationsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEndpointsResponse + * @returns ListAnnotationsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListAnnotationsResponse; /** - * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified. - * @param message ListEndpointsResponse + * Creates a plain object from a ListAnnotationsResponse message. Also converts values to other types if specified. + * @param message ListAnnotationsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListAnnotationsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEndpointsResponse to JSON. + * Converts this ListAnnotationsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateEndpointRequest. */ - interface IUpdateEndpointRequest { + /** Properties of a GenericOperationMetadata. */ + interface IGenericOperationMetadata { - /** UpdateEndpointRequest endpoint */ - endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** GenericOperationMetadata partialFailures */ + partialFailures?: (google.rpc.IStatus[]|null); - /** UpdateEndpointRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** GenericOperationMetadata createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** GenericOperationMetadata updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); } - /** Represents an UpdateEndpointRequest. */ - class UpdateEndpointRequest implements IUpdateEndpointRequest { + /** Represents a GenericOperationMetadata. */ + class GenericOperationMetadata implements IGenericOperationMetadata { /** - * Constructs a new UpdateEndpointRequest. + * Constructs a new GenericOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata); - /** UpdateEndpointRequest endpoint. */ - public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); + /** GenericOperationMetadata partialFailures. */ + public partialFailures: google.rpc.IStatus[]; - /** UpdateEndpointRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** GenericOperationMetadata createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** GenericOperationMetadata updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new UpdateEndpointRequest instance using the specified properties. + * Creates a new GenericOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEndpointRequest instance + * @returns GenericOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Encodes the specified UpdateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. - * @param message UpdateEndpointRequest message or plain object to encode + * Encodes the specified GenericOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. + * @param message GenericOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. - * @param message UpdateEndpointRequest message or plain object to encode + * Encodes the specified GenericOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. + * @param message GenericOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGenericOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEndpointRequest message from the specified reader or buffer. + * Decodes a GenericOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEndpointRequest + * @returns GenericOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Decodes an UpdateEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a GenericOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEndpointRequest + * @returns GenericOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Verifies an UpdateEndpointRequest message. + * Verifies a GenericOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GenericOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEndpointRequest + * @returns GenericOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GenericOperationMetadata; /** - * Creates a plain object from an UpdateEndpointRequest message. Also converts values to other types if specified. - * @param message UpdateEndpointRequest + * Creates a plain object from a GenericOperationMetadata message. Also converts values to other types if specified. + * @param message GenericOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GenericOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEndpointRequest to JSON. + * Converts this GenericOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteEndpointRequest. */ - interface IDeleteEndpointRequest { + /** Properties of a DeleteOperationMetadata. */ + interface IDeleteOperationMetadata { - /** DeleteEndpointRequest name */ - name?: (string|null); + /** DeleteOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a DeleteEndpointRequest. */ - class DeleteEndpointRequest implements IDeleteEndpointRequest { + /** Represents a DeleteOperationMetadata. */ + class DeleteOperationMetadata implements IDeleteOperationMetadata { /** - * Constructs a new DeleteEndpointRequest. + * Constructs a new DeleteOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata); - /** DeleteEndpointRequest name. */ - public name: string; + /** DeleteOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new DeleteEndpointRequest instance using the specified properties. + * Creates a new DeleteOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteEndpointRequest instance + * @returns DeleteOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Encodes the specified DeleteEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. - * @param message DeleteEndpointRequest message or plain object to encode + * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. + * @param message DeleteOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. - * @param message DeleteEndpointRequest message or plain object to encode + * Encodes the specified DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. + * @param message DeleteOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteEndpointRequest message from the specified reader or buffer. + * Decodes a DeleteOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteEndpointRequest + * @returns DeleteOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Decodes a DeleteEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteEndpointRequest + * @returns DeleteOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Verifies a DeleteEndpointRequest message. + * Verifies a DeleteOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteEndpointRequest + * @returns DeleteOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteOperationMetadata; /** - * Creates a plain object from a DeleteEndpointRequest message. Also converts values to other types if specified. - * @param message DeleteEndpointRequest + * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified. + * @param message DeleteOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteEndpointRequest to JSON. + * Converts this DeleteOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployModelRequest. */ - interface IDeployModelRequest { + /** Properties of a SavedQuery. */ + interface ISavedQuery { - /** DeployModelRequest endpoint */ - endpoint?: (string|null); + /** SavedQuery name */ + name?: (string|null); - /** DeployModelRequest deployedModel */ - deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** SavedQuery displayName */ + displayName?: (string|null); - /** DeployModelRequest trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); + /** SavedQuery metadata */ + metadata?: (google.protobuf.IValue|null); + + /** SavedQuery createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** SavedQuery updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** SavedQuery annotationFilter */ + annotationFilter?: (string|null); + + /** SavedQuery problemType */ + problemType?: (string|null); + + /** SavedQuery annotationSpecCount */ + annotationSpecCount?: (number|null); + + /** SavedQuery etag */ + etag?: (string|null); + + /** SavedQuery supportAutomlTraining */ + supportAutomlTraining?: (boolean|null); } - /** Represents a DeployModelRequest. */ - class DeployModelRequest implements IDeployModelRequest { + /** Represents a SavedQuery. */ + class SavedQuery implements ISavedQuery { /** - * Constructs a new DeployModelRequest. + * Constructs a new SavedQuery. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISavedQuery); - /** DeployModelRequest endpoint. */ - public endpoint: string; + /** SavedQuery name. */ + public name: string; - /** DeployModelRequest deployedModel. */ - public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** SavedQuery displayName. */ + public displayName: string; - /** DeployModelRequest trafficSplit. */ - public trafficSplit: { [k: string]: number }; + /** SavedQuery metadata. */ + public metadata?: (google.protobuf.IValue|null); + + /** SavedQuery createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** SavedQuery updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** SavedQuery annotationFilter. */ + public annotationFilter: string; + + /** SavedQuery problemType. */ + public problemType: string; + + /** SavedQuery annotationSpecCount. */ + public annotationSpecCount: number; + + /** SavedQuery etag. */ + public etag: string; + + /** SavedQuery supportAutomlTraining. */ + public supportAutomlTraining: boolean; /** - * Creates a new DeployModelRequest instance using the specified properties. + * Creates a new SavedQuery instance using the specified properties. * @param [properties] Properties to set - * @returns DeployModelRequest instance + * @returns SavedQuery instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest): google.cloud.aiplatform.v1beta1.DeployModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISavedQuery): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. - * @param message DeployModelRequest message or plain object to encode + * Encodes the specified SavedQuery message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. + * @param message SavedQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. - * @param message DeployModelRequest message or plain object to encode + * Encodes the specified SavedQuery message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. + * @param message SavedQuery message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISavedQuery, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployModelRequest message from the specified reader or buffer. + * Decodes a SavedQuery message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployModelRequest + * @returns SavedQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited. + * Decodes a SavedQuery message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployModelRequest + * @returns SavedQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Verifies a DeployModelRequest message. + * Verifies a SavedQuery message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SavedQuery message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployModelRequest + * @returns SavedQuery */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SavedQuery; /** - * Creates a plain object from a DeployModelRequest message. Also converts values to other types if specified. - * @param message DeployModelRequest + * Creates a plain object from a SavedQuery message. Also converts values to other types if specified. + * @param message SavedQuery * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SavedQuery, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployModelRequest to JSON. + * Converts this SavedQuery to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployModelResponse. */ - interface IDeployModelResponse { + /** Properties of a DeployedIndexRef. */ + interface IDeployedIndexRef { - /** DeployModelResponse deployedModel */ - deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** DeployedIndexRef indexEndpoint */ + indexEndpoint?: (string|null); + + /** DeployedIndexRef deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a DeployModelResponse. */ - class DeployModelResponse implements IDeployModelResponse { + /** Represents a DeployedIndexRef. */ + class DeployedIndexRef implements IDeployedIndexRef { /** - * Constructs a new DeployModelResponse. + * Constructs a new DeployedIndexRef. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef); - /** DeployModelResponse deployedModel. */ - public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + /** DeployedIndexRef indexEndpoint. */ + public indexEndpoint: string; + + /** DeployedIndexRef deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new DeployModelResponse instance using the specified properties. + * Creates a new DeployedIndexRef instance using the specified properties. * @param [properties] Properties to set - * @returns DeployModelResponse instance + * @returns DeployedIndexRef instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse): google.cloud.aiplatform.v1beta1.DeployModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexRef): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Encodes the specified DeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. - * @param message DeployModelResponse message or plain object to encode + * Encodes the specified DeployedIndexRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. + * @param message DeployedIndexRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. - * @param message DeployModelResponse message or plain object to encode + * Encodes the specified DeployedIndexRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. + * @param message DeployedIndexRef message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexRef, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployModelResponse message from the specified reader or buffer. + * Decodes a DeployedIndexRef message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployModelResponse + * @returns DeployedIndexRef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Decodes a DeployModelResponse message from the specified reader or buffer, length delimited. + * Decodes a DeployedIndexRef message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployModelResponse + * @returns DeployedIndexRef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Verifies a DeployModelResponse message. + * Verifies a DeployedIndexRef message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedIndexRef message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployModelResponse + * @returns DeployedIndexRef */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexRef; /** - * Creates a plain object from a DeployModelResponse message. Also converts values to other types if specified. - * @param message DeployModelResponse + * Creates a plain object from a DeployedIndexRef message. Also converts values to other types if specified. + * @param message DeployedIndexRef * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexRef, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployModelResponse to JSON. + * Converts this DeployedIndexRef to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployModelOperationMetadata. */ - interface IDeployModelOperationMetadata { + /** Properties of an Endpoint. */ + interface IEndpoint { - /** DeployModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Endpoint name */ + name?: (string|null); + + /** Endpoint displayName */ + displayName?: (string|null); + + /** Endpoint description */ + description?: (string|null); + + /** Endpoint deployedModels */ + deployedModels?: (google.cloud.aiplatform.v1beta1.IDeployedModel[]|null); + + /** Endpoint trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); + + /** Endpoint etag */ + etag?: (string|null); + + /** Endpoint labels */ + labels?: ({ [k: string]: string }|null); + + /** Endpoint createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Endpoint network */ + network?: (string|null); + + /** Endpoint enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); + + /** Endpoint modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (string|null); + + /** Endpoint predictRequestResponseLoggingConfig */ + predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); } - /** Represents a DeployModelOperationMetadata. */ - class DeployModelOperationMetadata implements IDeployModelOperationMetadata { + /** Represents an Endpoint. */ + class Endpoint implements IEndpoint { /** - * Constructs a new DeployModelOperationMetadata. + * Constructs a new Endpoint. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEndpoint); - /** DeployModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Endpoint name. */ + public name: string; + + /** Endpoint displayName. */ + public displayName: string; + + /** Endpoint description. */ + public description: string; + + /** Endpoint deployedModels. */ + public deployedModels: google.cloud.aiplatform.v1beta1.IDeployedModel[]; + + /** Endpoint trafficSplit. */ + public trafficSplit: { [k: string]: number }; + + /** Endpoint etag. */ + public etag: string; + + /** Endpoint labels. */ + public labels: { [k: string]: string }; + + /** Endpoint createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Endpoint encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + + /** Endpoint network. */ + public network: string; + + /** Endpoint enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; + + /** Endpoint modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob: string; + + /** Endpoint predictRequestResponseLoggingConfig. */ + public predictRequestResponseLoggingConfig?: (google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null); /** - * Creates a new DeployModelOperationMetadata instance using the specified properties. + * Creates a new Endpoint instance using the specified properties. * @param [properties] Properties to set - * @returns DeployModelOperationMetadata instance + * @returns Endpoint instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEndpoint): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. - * @param message DeployModelOperationMetadata message or plain object to encode + * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. + * @param message Endpoint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. - * @param message DeployModelOperationMetadata message or plain object to encode + * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. + * @param message Endpoint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployModelOperationMetadata message from the specified reader or buffer. + * Decodes an Endpoint message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployModelOperationMetadata + * @returns Endpoint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an Endpoint message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployModelOperationMetadata + * @returns Endpoint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Verifies a DeployModelOperationMetadata message. + * Verifies an Endpoint message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an Endpoint message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployModelOperationMetadata + * @returns Endpoint */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Endpoint; /** - * Creates a plain object from a DeployModelOperationMetadata message. Also converts values to other types if specified. - * @param message DeployModelOperationMetadata + * Creates a plain object from an Endpoint message. Also converts values to other types if specified. + * @param message Endpoint * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Endpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployModelOperationMetadata to JSON. + * Converts this Endpoint to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UndeployModelRequest. */ - interface IUndeployModelRequest { + /** Properties of a DeployedModel. */ + interface IDeployedModel { - /** UndeployModelRequest endpoint */ - endpoint?: (string|null); + /** DeployedModel dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** UndeployModelRequest deployedModelId */ - deployedModelId?: (string|null); + /** DeployedModel automaticResources */ + automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** UndeployModelRequest trafficSplit */ - trafficSplit?: ({ [k: string]: number }|null); + /** DeployedModel id */ + id?: (string|null); + + /** DeployedModel model */ + model?: (string|null); + + /** DeployedModel modelVersionId */ + modelVersionId?: (string|null); + + /** DeployedModel displayName */ + displayName?: (string|null); + + /** DeployedModel createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** DeployedModel explanationSpec */ + explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** DeployedModel serviceAccount */ + serviceAccount?: (string|null); + + /** DeployedModel enableContainerLogging */ + enableContainerLogging?: (boolean|null); + + /** DeployedModel enableAccessLogging */ + enableAccessLogging?: (boolean|null); + + /** DeployedModel privateEndpoints */ + privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); } - /** Represents an UndeployModelRequest. */ - class UndeployModelRequest implements IUndeployModelRequest { + /** Represents a DeployedModel. */ + class DeployedModel implements IDeployedModel { /** - * Constructs a new UndeployModelRequest. + * Constructs a new DeployedModel. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel); - /** UndeployModelRequest endpoint. */ - public endpoint: string; + /** DeployedModel dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); - /** UndeployModelRequest deployedModelId. */ - public deployedModelId: string; + /** DeployedModel automaticResources. */ + public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - /** UndeployModelRequest trafficSplit. */ - public trafficSplit: { [k: string]: number }; + /** DeployedModel id. */ + public id: string; + + /** DeployedModel model. */ + public model: string; + + /** DeployedModel modelVersionId. */ + public modelVersionId: string; + + /** DeployedModel displayName. */ + public displayName: string; + + /** DeployedModel createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** DeployedModel explanationSpec. */ + public explanationSpec?: (google.cloud.aiplatform.v1beta1.IExplanationSpec|null); + + /** DeployedModel serviceAccount. */ + public serviceAccount: string; + + /** DeployedModel enableContainerLogging. */ + public enableContainerLogging: boolean; + + /** DeployedModel enableAccessLogging. */ + public enableAccessLogging: boolean; + + /** DeployedModel privateEndpoints. */ + public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null); + + /** DeployedModel predictionResources. */ + public predictionResources?: ("dedicatedResources"|"automaticResources"); /** - * Creates a new UndeployModelRequest instance using the specified properties. + * Creates a new DeployedModel instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelRequest instance + * @returns DeployedModel instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): google.cloud.aiplatform.v1beta1.UndeployModelRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedModel): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. - * @param message UndeployModelRequest message or plain object to encode + * Encodes the specified DeployedModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. + * @param message DeployedModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. - * @param message UndeployModelRequest message or plain object to encode + * Encodes the specified DeployedModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. + * @param message DeployedModel message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedModel, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelRequest message from the specified reader or buffer. + * Decodes a DeployedModel message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployModelRequest + * @returns DeployedModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployedModel message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployModelRequest + * @returns DeployedModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Verifies an UndeployModelRequest message. + * Verifies a DeployedModel message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UndeployModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedModel message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployModelRequest + * @returns DeployedModel */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedModel; /** - * Creates a plain object from an UndeployModelRequest message. Also converts values to other types if specified. - * @param message UndeployModelRequest + * Creates a plain object from a DeployedModel message. Also converts values to other types if specified. + * @param message DeployedModel * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedModel, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelRequest to JSON. + * Converts this DeployedModel to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UndeployModelResponse. */ - interface IUndeployModelResponse { + /** Properties of a PrivateEndpoints. */ + interface IPrivateEndpoints { + + /** PrivateEndpoints predictHttpUri */ + predictHttpUri?: (string|null); + + /** PrivateEndpoints explainHttpUri */ + explainHttpUri?: (string|null); + + /** PrivateEndpoints healthHttpUri */ + healthHttpUri?: (string|null); + + /** PrivateEndpoints serviceAttachment */ + serviceAttachment?: (string|null); } - /** Represents an UndeployModelResponse. */ - class UndeployModelResponse implements IUndeployModelResponse { + /** Represents a PrivateEndpoints. */ + class PrivateEndpoints implements IPrivateEndpoints { /** - * Constructs a new UndeployModelResponse. + * Constructs a new PrivateEndpoints. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints); + + /** PrivateEndpoints predictHttpUri. */ + public predictHttpUri: string; + + /** PrivateEndpoints explainHttpUri. */ + public explainHttpUri: string; + + /** PrivateEndpoints healthHttpUri. */ + public healthHttpUri: string; + + /** PrivateEndpoints serviceAttachment. */ + public serviceAttachment: string; /** - * Creates a new UndeployModelResponse instance using the specified properties. + * Creates a new PrivateEndpoints instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelResponse instance + * @returns PrivateEndpoints instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse): google.cloud.aiplatform.v1beta1.UndeployModelResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPrivateEndpoints): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Encodes the specified UndeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. - * @param message UndeployModelResponse message or plain object to encode + * Encodes the specified PrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. + * @param message PrivateEndpoints message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. - * @param message UndeployModelResponse message or plain object to encode + * Encodes the specified PrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. + * @param message PrivateEndpoints message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelResponse message from the specified reader or buffer. + * Decodes a PrivateEndpoints message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployModelResponse + * @returns PrivateEndpoints * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Decodes an UndeployModelResponse message from the specified reader or buffer, length delimited. + * Decodes a PrivateEndpoints message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployModelResponse + * @returns PrivateEndpoints * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Verifies an UndeployModelResponse message. + * Verifies a PrivateEndpoints message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UndeployModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a PrivateEndpoints message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployModelResponse + * @returns PrivateEndpoints */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PrivateEndpoints; /** - * Creates a plain object from an UndeployModelResponse message. Also converts values to other types if specified. - * @param message UndeployModelResponse + * Creates a plain object from a PrivateEndpoints message. Also converts values to other types if specified. + * @param message PrivateEndpoints * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelResponse to JSON. + * Converts this PrivateEndpoints to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UndeployModelOperationMetadata. */ - interface IUndeployModelOperationMetadata { + /** Properties of a PredictRequestResponseLoggingConfig. */ + interface IPredictRequestResponseLoggingConfig { - /** UndeployModelOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** PredictRequestResponseLoggingConfig enabled */ + enabled?: (boolean|null); + + /** PredictRequestResponseLoggingConfig samplingRate */ + samplingRate?: (number|null); + + /** PredictRequestResponseLoggingConfig bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); } - /** Represents an UndeployModelOperationMetadata. */ - class UndeployModelOperationMetadata implements IUndeployModelOperationMetadata { + /** Represents a PredictRequestResponseLoggingConfig. */ + class PredictRequestResponseLoggingConfig implements IPredictRequestResponseLoggingConfig { /** - * Constructs a new UndeployModelOperationMetadata. + * Constructs a new PredictRequestResponseLoggingConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig); - /** UndeployModelOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** PredictRequestResponseLoggingConfig enabled. */ + public enabled: boolean; + + /** PredictRequestResponseLoggingConfig samplingRate. */ + public samplingRate: number; + + /** PredictRequestResponseLoggingConfig bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); /** - * Creates a new UndeployModelOperationMetadata instance using the specified properties. + * Creates a new PredictRequestResponseLoggingConfig instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployModelOperationMetadata instance + * @returns PredictRequestResponseLoggingConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. - * @param message UndeployModelOperationMetadata message or plain object to encode + * Encodes the specified PredictRequestResponseLoggingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. + * @param message PredictRequestResponseLoggingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. - * @param message UndeployModelOperationMetadata message or plain object to encode + * Encodes the specified PredictRequestResponseLoggingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. + * @param message PredictRequestResponseLoggingConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer. + * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployModelOperationMetadata + * @returns PredictRequestResponseLoggingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployModelOperationMetadata + * @returns PredictRequestResponseLoggingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Verifies an UndeployModelOperationMetadata message. + * Verifies a PredictRequestResponseLoggingConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PredictRequestResponseLoggingConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployModelOperationMetadata + * @returns PredictRequestResponseLoggingConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig; /** - * Creates a plain object from an UndeployModelOperationMetadata message. Also converts values to other types if specified. - * @param message UndeployModelOperationMetadata + * Creates a plain object from a PredictRequestResponseLoggingConfig message. Also converts values to other types if specified. + * @param message PredictRequestResponseLoggingConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployModelOperationMetadata to JSON. + * Converts this PredictRequestResponseLoggingConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EntityType. */ - interface IEntityType { - - /** EntityType name */ - name?: (string|null); - - /** EntityType description */ - description?: (string|null); + /** Represents an EndpointService */ + class EndpointService extends $protobuf.rpc.Service { - /** EntityType createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new EndpointService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** EntityType updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Creates new EndpointService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): EndpointService; - /** EntityType labels */ - labels?: ({ [k: string]: string }|null); + /** + * Calls CreateEndpoint. + * @param request CreateEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpointCallback): void; - /** EntityType etag */ - etag?: (string|null); + /** + * Calls CreateEndpoint. + * @param request CreateEndpointRequest message or plain object + * @returns Promise + */ + public createEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): Promise; - /** EntityType monitoringConfig */ - monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); - } + /** + * Calls GetEndpoint. + * @param request GetEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Endpoint + */ + public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.GetEndpointCallback): void; - /** Represents an EntityType. */ - class EntityType implements IEntityType { + /** + * Calls GetEndpoint. + * @param request GetEndpointRequest message or plain object + * @returns Promise + */ + public getEndpoint(request: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): Promise; /** - * Constructs a new EntityType. - * @param [properties] Properties to set + * Calls ListEndpoints. + * @param request ListEndpointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEndpointsResponse */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityType); + public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.ListEndpointsCallback): void; - /** EntityType name. */ - public name: string; + /** + * Calls ListEndpoints. + * @param request ListEndpointsRequest message or plain object + * @returns Promise + */ + public listEndpoints(request: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): Promise; - /** EntityType description. */ - public description: string; + /** + * Calls UpdateEndpoint. + * @param request UpdateEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Endpoint + */ + public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointCallback): void; - /** EntityType createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Calls UpdateEndpoint. + * @param request UpdateEndpointRequest message or plain object + * @returns Promise + */ + public updateEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): Promise; - /** EntityType updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Calls DeleteEndpoint. + * @param request DeleteEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpointCallback): void; - /** EntityType labels. */ - public labels: { [k: string]: string }; + /** + * Calls DeleteEndpoint. + * @param request DeleteEndpointRequest message or plain object + * @returns Promise + */ + public deleteEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): Promise; - /** EntityType etag. */ - public etag: string; + /** + * Calls DeployModel. + * @param request DeployModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.DeployModelCallback): void; - /** EntityType monitoringConfig. */ - public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + /** + * Calls DeployModel. + * @param request DeployModelRequest message or plain object + * @returns Promise + */ + public deployModel(request: google.cloud.aiplatform.v1beta1.IDeployModelRequest): Promise; /** - * Creates a new EntityType instance using the specified properties. - * @param [properties] Properties to set - * @returns EntityType instance + * Calls UndeployModel. + * @param request UndeployModelRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityType): google.cloud.aiplatform.v1beta1.EntityType; + public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, callback: google.cloud.aiplatform.v1beta1.EndpointService.UndeployModelCallback): void; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UndeployModel. + * @param request UndeployModelRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + public undeployModel(request: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): Promise; + } + + namespace EndpointService { /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. - * @param message EntityType message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#createEndpoint}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes an EntityType message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EntityType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#getEndpoint}. + * @param error Error, if any + * @param [response] Endpoint */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EntityType; + type GetEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EntityType - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#listEndpoints}. + * @param error Error, if any + * @param [response] ListEndpointsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EntityType; + type ListEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEndpointsResponse) => void; /** - * Verifies an EntityType message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#updateEndpoint}. + * @param error Error, if any + * @param [response] Endpoint */ - public static verify(message: { [k: string]: any }): (string|null); + type UpdateEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Endpoint) => void; /** - * Creates an EntityType message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EntityType + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#deleteEndpoint}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityType; + type DeleteEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. - * @param message EntityType - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#deployModel}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this EntityType to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#undeployModel}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type UndeployModelCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of a FeaturestoreMonitoringConfig. */ - interface IFeaturestoreMonitoringConfig { - - /** FeaturestoreMonitoringConfig snapshotAnalysis */ - snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); + /** Properties of a CreateEndpointRequest. */ + interface ICreateEndpointRequest { - /** FeaturestoreMonitoringConfig importFeaturesAnalysis */ - importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); + /** CreateEndpointRequest parent */ + parent?: (string|null); - /** FeaturestoreMonitoringConfig numericalThresholdConfig */ - numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** CreateEndpointRequest endpoint */ + endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); - /** FeaturestoreMonitoringConfig categoricalThresholdConfig */ - categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** CreateEndpointRequest endpointId */ + endpointId?: (string|null); } - /** Represents a FeaturestoreMonitoringConfig. */ - class FeaturestoreMonitoringConfig implements IFeaturestoreMonitoringConfig { + /** Represents a CreateEndpointRequest. */ + class CreateEndpointRequest implements ICreateEndpointRequest { /** - * Constructs a new FeaturestoreMonitoringConfig. + * Constructs a new CreateEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig); - - /** FeaturestoreMonitoringConfig snapshotAnalysis. */ - public snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest); - /** FeaturestoreMonitoringConfig importFeaturesAnalysis. */ - public importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); + /** CreateEndpointRequest parent. */ + public parent: string; - /** FeaturestoreMonitoringConfig numericalThresholdConfig. */ - public numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** CreateEndpointRequest endpoint. */ + public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); - /** FeaturestoreMonitoringConfig categoricalThresholdConfig. */ - public categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + /** CreateEndpointRequest endpointId. */ + public endpointId: string; /** - * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. + * Creates a new CreateEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeaturestoreMonitoringConfig instance + * @returns CreateEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. - * @param message FeaturestoreMonitoringConfig message or plain object to encode + * Encodes the specified CreateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. + * @param message CreateEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. - * @param message FeaturestoreMonitoringConfig message or plain object to encode + * Encodes the specified CreateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. + * @param message CreateEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. + * Decodes a CreateEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeaturestoreMonitoringConfig + * @returns CreateEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. + * Decodes a CreateEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeaturestoreMonitoringConfig + * @returns CreateEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Verifies a FeaturestoreMonitoringConfig message. + * Verifies a CreateEndpointRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeaturestoreMonitoringConfig + * @returns CreateEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointRequest; /** - * Creates a plain object from a FeaturestoreMonitoringConfig message. Also converts values to other types if specified. - * @param message FeaturestoreMonitoringConfig + * Creates a plain object from a CreateEndpointRequest message. Also converts values to other types if specified. + * @param message CreateEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeaturestoreMonitoringConfig to JSON. + * Converts this CreateEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FeaturestoreMonitoringConfig { - - /** Properties of a SnapshotAnalysis. */ - interface ISnapshotAnalysis { - - /** SnapshotAnalysis disabled */ - disabled?: (boolean|null); - - /** SnapshotAnalysis monitoringInterval */ - monitoringInterval?: (google.protobuf.IDuration|null); - - /** SnapshotAnalysis monitoringIntervalDays */ - monitoringIntervalDays?: (number|null); - - /** SnapshotAnalysis stalenessDays */ - stalenessDays?: (number|null); - } - - /** Represents a SnapshotAnalysis. */ - class SnapshotAnalysis implements ISnapshotAnalysis { - - /** - * Constructs a new SnapshotAnalysis. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis); - - /** SnapshotAnalysis disabled. */ - public disabled: boolean; - - /** SnapshotAnalysis monitoringInterval. */ - public monitoringInterval?: (google.protobuf.IDuration|null); - - /** SnapshotAnalysis monitoringIntervalDays. */ - public monitoringIntervalDays: number; - - /** SnapshotAnalysis stalenessDays. */ - public stalenessDays: number; - - /** - * Creates a new SnapshotAnalysis instance using the specified properties. - * @param [properties] Properties to set - * @returns SnapshotAnalysis instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Encodes the specified SnapshotAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. - * @param message SnapshotAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified SnapshotAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. - * @param message SnapshotAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a SnapshotAnalysis message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SnapshotAnalysis - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Decodes a SnapshotAnalysis message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnapshotAnalysis - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Verifies a SnapshotAnalysis message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a SnapshotAnalysis message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SnapshotAnalysis - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; - - /** - * Creates a plain object from a SnapshotAnalysis message. Also converts values to other types if specified. - * @param message SnapshotAnalysis - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this SnapshotAnalysis to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an ImportFeaturesAnalysis. */ - interface IImportFeaturesAnalysis { - - /** ImportFeaturesAnalysis state */ - state?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|null); - - /** ImportFeaturesAnalysis anomalyDetectionBaseline */ - anomalyDetectionBaseline?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|null); - } - - /** Represents an ImportFeaturesAnalysis. */ - class ImportFeaturesAnalysis implements IImportFeaturesAnalysis { - - /** - * Constructs a new ImportFeaturesAnalysis. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis); - - /** ImportFeaturesAnalysis state. */ - public state: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State); - - /** ImportFeaturesAnalysis anomalyDetectionBaseline. */ - public anomalyDetectionBaseline: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline); - - /** - * Creates a new ImportFeaturesAnalysis instance using the specified properties. - * @param [properties] Properties to set - * @returns ImportFeaturesAnalysis instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Encodes the specified ImportFeaturesAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. - * @param message ImportFeaturesAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ImportFeaturesAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. - * @param message ImportFeaturesAnalysis message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ImportFeaturesAnalysis - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ImportFeaturesAnalysis - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Verifies an ImportFeaturesAnalysis message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an ImportFeaturesAnalysis message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ImportFeaturesAnalysis - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; - - /** - * Creates a plain object from an ImportFeaturesAnalysis message. Also converts values to other types if specified. - * @param message ImportFeaturesAnalysis - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ImportFeaturesAnalysis to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace ImportFeaturesAnalysis { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - DEFAULT = 1, - ENABLED = 2, - DISABLED = 3 - } - - /** Baseline enum. */ - enum Baseline { - BASELINE_UNSPECIFIED = 0, - LATEST_STATS = 1, - MOST_RECENT_SNAPSHOT_STATS = 2, - PREVIOUS_IMPORT_FEATURES_STATS = 3 - } - } - - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { - - /** ThresholdConfig value */ - value?: (number|null); - } + /** Properties of a CreateEndpointOperationMetadata. */ + interface ICreateEndpointOperationMetadata { - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { + /** CreateEndpointOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** - * Constructs a new ThresholdConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig); + /** Represents a CreateEndpointOperationMetadata. */ + class CreateEndpointOperationMetadata implements ICreateEndpointOperationMetadata { - /** ThresholdConfig value. */ - public value?: (number|null); + /** + * Constructs a new CreateEndpointOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata); - /** ThresholdConfig threshold. */ - public threshold?: "value"; + /** CreateEndpointOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Creates a new ThresholdConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ThresholdConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; + /** + * Creates a new CreateEndpointOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEndpointOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; - /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. + * @param message CreateEndpointOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CreateEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. + * @param message CreateEndpointOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ThresholdConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ThresholdConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; + /** + * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateEndpointOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; - /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ThresholdConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; + /** + * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateEndpointOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; - /** - * Verifies a ThresholdConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a CreateEndpointOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ThresholdConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; + /** + * Creates a CreateEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateEndpointOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata; - /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @param message ThresholdConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CreateEndpointOperationMetadata message. Also converts values to other types if specified. + * @param message CreateEndpointOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ThresholdConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this CreateEndpointOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of an Event. */ - interface IEvent { - - /** Event artifact */ - artifact?: (string|null); - - /** Event execution */ - execution?: (string|null); - - /** Event eventTime */ - eventTime?: (google.protobuf.ITimestamp|null); - - /** Event type */ - type?: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type|null); + /** Properties of a GetEndpointRequest. */ + interface IGetEndpointRequest { - /** Event labels */ - labels?: ({ [k: string]: string }|null); + /** GetEndpointRequest name */ + name?: (string|null); } - /** Represents an Event. */ - class Event implements IEvent { + /** Represents a GetEndpointRequest. */ + class GetEndpointRequest implements IGetEndpointRequest { /** - * Constructs a new Event. + * Constructs a new GetEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IEvent); - - /** Event artifact. */ - public artifact: string; - - /** Event execution. */ - public execution: string; - - /** Event eventTime. */ - public eventTime?: (google.protobuf.ITimestamp|null); - - /** Event type. */ - public type: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest); - /** Event labels. */ - public labels: { [k: string]: string }; + /** GetEndpointRequest name. */ + public name: string; /** - * Creates a new Event instance using the specified properties. + * Creates a new GetEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Event instance + * @returns GetEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IEvent): google.cloud.aiplatform.v1beta1.Event; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEndpointRequest): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. + * @param message GetEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. - * @param message Event message or plain object to encode + * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. + * @param message GetEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes a GetEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Event + * @returns GetEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Event; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Event + * @returns GetEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Event; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Verifies an Event message. + * Verifies a GetEndpointRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Event message from a plain object. Also converts values to their respective internal types. + * Creates a GetEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Event + * @returns GetEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Event; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEndpointRequest; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. - * @param message Event + * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified. + * @param message GetEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Event to JSON. + * Converts this GetEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Event { + /** Properties of a ListEndpointsRequest. */ + interface IListEndpointsRequest { - /** Type enum. */ - enum Type { - TYPE_UNSPECIFIED = 0, - INPUT = 1, - OUTPUT = 2 - } - } + /** ListEndpointsRequest parent */ + parent?: (string|null); - /** Properties of an Execution. */ - interface IExecution { + /** ListEndpointsRequest filter */ + filter?: (string|null); - /** Execution name */ - name?: (string|null); - - /** Execution displayName */ - displayName?: (string|null); - - /** Execution state */ - state?: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State|null); - - /** Execution etag */ - etag?: (string|null); - - /** Execution labels */ - labels?: ({ [k: string]: string }|null); - - /** Execution createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Execution updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Execution schemaTitle */ - schemaTitle?: (string|null); - - /** Execution schemaVersion */ - schemaVersion?: (string|null); + /** ListEndpointsRequest pageSize */ + pageSize?: (number|null); - /** Execution metadata */ - metadata?: (google.protobuf.IStruct|null); + /** ListEndpointsRequest pageToken */ + pageToken?: (string|null); - /** Execution description */ - description?: (string|null); + /** ListEndpointsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an Execution. */ - class Execution implements IExecution { + /** Represents a ListEndpointsRequest. */ + class ListEndpointsRequest implements IListEndpointsRequest { /** - * Constructs a new Execution. + * Constructs a new ListEndpointsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExecution); - - /** Execution name. */ - public name: string; - - /** Execution displayName. */ - public displayName: string; - - /** Execution state. */ - public state: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State); - - /** Execution etag. */ - public etag: string; - - /** Execution labels. */ - public labels: { [k: string]: string }; - - /** Execution createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest); - /** Execution updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** ListEndpointsRequest parent. */ + public parent: string; - /** Execution schemaTitle. */ - public schemaTitle: string; + /** ListEndpointsRequest filter. */ + public filter: string; - /** Execution schemaVersion. */ - public schemaVersion: string; + /** ListEndpointsRequest pageSize. */ + public pageSize: number; - /** Execution metadata. */ - public metadata?: (google.protobuf.IStruct|null); + /** ListEndpointsRequest pageToken. */ + public pageToken: string; - /** Execution description. */ - public description: string; + /** ListEndpointsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new Execution instance using the specified properties. + * Creates a new ListEndpointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Execution instance + * @returns ListEndpointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExecution): google.cloud.aiplatform.v1beta1.Execution; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsRequest): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. - * @param message Execution message or plain object to encode + * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. + * @param message ListEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. - * @param message Execution message or plain object to encode + * Encodes the specified ListEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. + * @param message ListEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Execution message from the specified reader or buffer. + * Decodes a ListEndpointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Execution + * @returns ListEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Execution; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Decodes an Execution message from the specified reader or buffer, length delimited. + * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Execution + * @returns ListEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Execution; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Verifies an Execution message. + * Verifies a ListEndpointsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Execution message from a plain object. Also converts values to their respective internal types. + * Creates a ListEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Execution + * @returns ListEndpointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Execution; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsRequest; /** - * Creates a plain object from an Execution message. Also converts values to other types if specified. - * @param message Execution + * Creates a plain object from a ListEndpointsRequest message. Also converts values to other types if specified. + * @param message ListEndpointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Execution, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Execution to JSON. + * Converts this ListEndpointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Execution { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - NEW = 1, - RUNNING = 2, - COMPLETE = 3, - FAILED = 4, - CACHED = 5, - CANCELLED = 6 - } - } - - /** Properties of a Feature. */ - interface IFeature { - - /** Feature name */ - name?: (string|null); - - /** Feature description */ - description?: (string|null); - - /** Feature valueType */ - valueType?: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType|null); - - /** Feature createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Feature updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** Feature labels */ - labels?: ({ [k: string]: string }|null); - - /** Feature etag */ - etag?: (string|null); - - /** Feature monitoringConfig */ - monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); - - /** Feature disableMonitoring */ - disableMonitoring?: (boolean|null); + /** Properties of a ListEndpointsResponse. */ + interface IListEndpointsResponse { - /** Feature monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); + /** ListEndpointsResponse endpoints */ + endpoints?: (google.cloud.aiplatform.v1beta1.IEndpoint[]|null); - /** Feature monitoringStatsAnomalies */ - monitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]|null); + /** ListEndpointsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a Feature. */ - class Feature implements IFeature { + /** Represents a ListEndpointsResponse. */ + class ListEndpointsResponse implements IListEndpointsResponse { /** - * Constructs a new Feature. + * Constructs a new ListEndpointsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeature); - - /** Feature name. */ - public name: string; - - /** Feature description. */ - public description: string; - - /** Feature valueType. */ - public valueType: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType); - - /** Feature createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Feature updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** Feature labels. */ - public labels: { [k: string]: string }; - - /** Feature etag. */ - public etag: string; - - /** Feature monitoringConfig. */ - public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); - - /** Feature disableMonitoring. */ - public disableMonitoring: boolean; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse); - /** Feature monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; + /** ListEndpointsResponse endpoints. */ + public endpoints: google.cloud.aiplatform.v1beta1.IEndpoint[]; - /** Feature monitoringStatsAnomalies. */ - public monitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]; + /** ListEndpointsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new Feature instance using the specified properties. + * Creates a new ListEndpointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns Feature instance + * @returns ListEndpointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeature): google.cloud.aiplatform.v1beta1.Feature; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEndpointsResponse): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. - * @param message Feature message or plain object to encode + * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. + * @param message ListEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. - * @param message Feature message or plain object to encode + * Encodes the specified ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. + * @param message ListEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Feature message from the specified reader or buffer. + * Decodes a ListEndpointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Feature + * @returns ListEndpointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Feature; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Decodes a Feature message from the specified reader or buffer, length delimited. + * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Feature + * @returns ListEndpointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Feature; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Verifies a Feature message. + * Verifies a ListEndpointsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Feature message from a plain object. Also converts values to their respective internal types. + * Creates a ListEndpointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Feature + * @returns ListEndpointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEndpointsResponse; /** - * Creates a plain object from a Feature message. Also converts values to other types if specified. - * @param message Feature + * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified. + * @param message ListEndpointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Feature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Feature to JSON. + * Converts this ListEndpointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Feature { - - /** Properties of a MonitoringStatsAnomaly. */ - interface IMonitoringStatsAnomaly { - - /** MonitoringStatsAnomaly objective */ - objective?: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|null); - - /** MonitoringStatsAnomaly featureStatsAnomaly */ - featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - } - - /** Represents a MonitoringStatsAnomaly. */ - class MonitoringStatsAnomaly implements IMonitoringStatsAnomaly { - - /** - * Constructs a new MonitoringStatsAnomaly. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly); - - /** MonitoringStatsAnomaly objective. */ - public objective: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective); - - /** MonitoringStatsAnomaly featureStatsAnomaly. */ - public featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - - /** - * Creates a new MonitoringStatsAnomaly instance using the specified properties. - * @param [properties] Properties to set - * @returns MonitoringStatsAnomaly instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - - /** - * Encodes the specified MonitoringStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. - * @param message MonitoringStatsAnomaly message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MonitoringStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. - * @param message MonitoringStatsAnomaly message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MonitoringStatsAnomaly - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - - /** - * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MonitoringStatsAnomaly - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - - /** - * Verifies a MonitoringStatsAnomaly message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MonitoringStatsAnomaly message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MonitoringStatsAnomaly - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; - - /** - * Creates a plain object from a MonitoringStatsAnomaly message. Also converts values to other types if specified. - * @param message MonitoringStatsAnomaly - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MonitoringStatsAnomaly to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace MonitoringStatsAnomaly { - - /** Objective enum. */ - enum Objective { - OBJECTIVE_UNSPECIFIED = 0, - IMPORT_FEATURE_ANALYSIS = 1, - SNAPSHOT_ANALYSIS = 2 - } - } - - /** ValueType enum. */ - enum ValueType { - VALUE_TYPE_UNSPECIFIED = 0, - BOOL = 1, - BOOL_ARRAY = 2, - DOUBLE = 3, - DOUBLE_ARRAY = 4, - INT64 = 9, - INT64_ARRAY = 10, - STRING = 11, - STRING_ARRAY = 12, - BYTES = 13 - } - } - - /** Properties of a FeatureStatsAnomaly. */ - interface IFeatureStatsAnomaly { - - /** FeatureStatsAnomaly score */ - score?: (number|null); - - /** FeatureStatsAnomaly statsUri */ - statsUri?: (string|null); - - /** FeatureStatsAnomaly anomalyUri */ - anomalyUri?: (string|null); - - /** FeatureStatsAnomaly distributionDeviation */ - distributionDeviation?: (number|null); - - /** FeatureStatsAnomaly anomalyDetectionThreshold */ - anomalyDetectionThreshold?: (number|null); + /** Properties of an UpdateEndpointRequest. */ + interface IUpdateEndpointRequest { - /** FeatureStatsAnomaly startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** UpdateEndpointRequest endpoint */ + endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); - /** FeatureStatsAnomaly endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** UpdateEndpointRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a FeatureStatsAnomaly. */ - class FeatureStatsAnomaly implements IFeatureStatsAnomaly { + /** Represents an UpdateEndpointRequest. */ + class UpdateEndpointRequest implements IUpdateEndpointRequest { /** - * Constructs a new FeatureStatsAnomaly. + * Constructs a new UpdateEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly); - - /** FeatureStatsAnomaly score. */ - public score: number; - - /** FeatureStatsAnomaly statsUri. */ - public statsUri: string; - - /** FeatureStatsAnomaly anomalyUri. */ - public anomalyUri: string; - - /** FeatureStatsAnomaly distributionDeviation. */ - public distributionDeviation: number; - - /** FeatureStatsAnomaly anomalyDetectionThreshold. */ - public anomalyDetectionThreshold: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest); - /** FeatureStatsAnomaly startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** UpdateEndpointRequest endpoint. */ + public endpoint?: (google.cloud.aiplatform.v1beta1.IEndpoint|null); - /** FeatureStatsAnomaly endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** UpdateEndpointRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new FeatureStatsAnomaly instance using the specified properties. + * Creates a new UpdateEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureStatsAnomaly instance + * @returns UpdateEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. - * @param message FeatureStatsAnomaly message or plain object to encode + * Encodes the specified UpdateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. + * @param message UpdateEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. - * @param message FeatureStatsAnomaly message or plain object to encode + * Encodes the specified UpdateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. + * @param message UpdateEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. + * Decodes an UpdateEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureStatsAnomaly + * @returns UpdateEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. + * Decodes an UpdateEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureStatsAnomaly + * @returns UpdateEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Verifies a FeatureStatsAnomaly message. + * Verifies an UpdateEndpointRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureStatsAnomaly + * @returns UpdateEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEndpointRequest; /** - * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. - * @param message FeatureStatsAnomaly + * Creates a plain object from an UpdateEndpointRequest message. Also converts values to other types if specified. + * @param message UpdateEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureStatsAnomaly to JSON. + * Converts this UpdateEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IdMatcher. */ - interface IIdMatcher { + /** Properties of a DeleteEndpointRequest. */ + interface IDeleteEndpointRequest { - /** IdMatcher ids */ - ids?: (string[]|null); + /** DeleteEndpointRequest name */ + name?: (string|null); } - /** Represents an IdMatcher. */ - class IdMatcher implements IIdMatcher { + /** Represents a DeleteEndpointRequest. */ + class DeleteEndpointRequest implements IDeleteEndpointRequest { /** - * Constructs a new IdMatcher. + * Constructs a new DeleteEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest); - /** IdMatcher ids. */ - public ids: string[]; + /** DeleteEndpointRequest name. */ + public name: string; /** - * Creates a new IdMatcher instance using the specified properties. + * Creates a new DeleteEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns IdMatcher instance + * @returns DeleteEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher): google.cloud.aiplatform.v1beta1.IdMatcher; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. - * @param message IdMatcher message or plain object to encode + * Encodes the specified DeleteEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. + * @param message DeleteEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. - * @param message IdMatcher message or plain object to encode + * Encodes the specified DeleteEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. + * @param message DeleteEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IdMatcher message from the specified reader or buffer. + * Decodes a DeleteEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IdMatcher + * @returns DeleteEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IdMatcher; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Decodes an IdMatcher message from the specified reader or buffer, length delimited. + * Decodes a DeleteEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IdMatcher + * @returns DeleteEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IdMatcher; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Verifies an IdMatcher message. + * Verifies a DeleteEndpointRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IdMatcher + * @returns DeleteEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IdMatcher; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEndpointRequest; /** - * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. - * @param message IdMatcher + * Creates a plain object from a DeleteEndpointRequest message. Also converts values to other types if specified. + * @param message DeleteEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IdMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IdMatcher to JSON. + * Converts this DeleteEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FeatureSelector. */ - interface IFeatureSelector { + /** Properties of a DeployModelRequest. */ + interface IDeployModelRequest { - /** FeatureSelector idMatcher */ - idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); + /** DeployModelRequest endpoint */ + endpoint?: (string|null); + + /** DeployModelRequest deployedModel */ + deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + + /** DeployModelRequest trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); } - /** Represents a FeatureSelector. */ - class FeatureSelector implements IFeatureSelector { + /** Represents a DeployModelRequest. */ + class DeployModelRequest implements IDeployModelRequest { /** - * Constructs a new FeatureSelector. + * Constructs a new DeployModelRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest); - /** FeatureSelector idMatcher. */ - public idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); + /** DeployModelRequest endpoint. */ + public endpoint: string; + + /** DeployModelRequest deployedModel. */ + public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + + /** DeployModelRequest trafficSplit. */ + public trafficSplit: { [k: string]: number }; /** - * Creates a new FeatureSelector instance using the specified properties. + * Creates a new DeployModelRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureSelector instance + * @returns DeployModelRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector): google.cloud.aiplatform.v1beta1.FeatureSelector; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelRequest): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. - * @param message FeatureSelector message or plain object to encode + * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. + * @param message DeployModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. - * @param message FeatureSelector message or plain object to encode + * Encodes the specified DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. + * @param message DeployModelRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureSelector message from the specified reader or buffer. + * Decodes a DeployModelRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureSelector + * @returns DeployModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureSelector; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. + * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureSelector + * @returns DeployModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureSelector; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Verifies a FeatureSelector message. + * Verifies a DeployModelRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureSelector + * @returns DeployModelRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureSelector; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelRequest; /** - * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. - * @param message FeatureSelector + * Creates a plain object from a DeployModelRequest message. Also converts values to other types if specified. + * @param message DeployModelRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureSelector to JSON. + * Converts this DeployModelRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Featurestore. */ - interface IFeaturestore { + /** Properties of a DeployModelResponse. */ + interface IDeployModelResponse { - /** Featurestore name */ - name?: (string|null); + /** DeployModelResponse deployedModel */ + deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); + } - /** Featurestore createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Represents a DeployModelResponse. */ + class DeployModelResponse implements IDeployModelResponse { - /** Featurestore updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new DeployModelResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse); - /** Featurestore etag */ - etag?: (string|null); + /** DeployModelResponse deployedModel. */ + public deployedModel?: (google.cloud.aiplatform.v1beta1.IDeployedModel|null); - /** Featurestore labels */ - labels?: ({ [k: string]: string }|null); + /** + * Creates a new DeployModelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns DeployModelResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelResponse): google.cloud.aiplatform.v1beta1.DeployModelResponse; - /** Featurestore onlineServingConfig */ - onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); + /** + * Encodes the specified DeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. + * @param message DeployModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Featurestore state */ - state?: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State|null); + /** + * Encodes the specified DeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. + * @param message DeployModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** Featurestore encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - } + /** + * Decodes a DeployModelResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeployModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelResponse; - /** Represents a Featurestore. */ - class Featurestore implements IFeaturestore { + /** + * Decodes a DeployModelResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeployModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelResponse; /** - * Constructs a new Featurestore. - * @param [properties] Properties to set + * Verifies a DeployModelResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore); + public static verify(message: { [k: string]: any }): (string|null); - /** Featurestore name. */ - public name: string; + /** + * Creates a DeployModelResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeployModelResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelResponse; - /** Featurestore createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** + * Creates a plain object from a DeployModelResponse message. Also converts values to other types if specified. + * @param message DeployModelResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Featurestore updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Converts this DeployModelResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Featurestore etag. */ - public etag: string; + /** Properties of a DeployModelOperationMetadata. */ + interface IDeployModelOperationMetadata { - /** Featurestore labels. */ - public labels: { [k: string]: string }; + /** DeployModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** Featurestore onlineServingConfig. */ - public onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); + /** Represents a DeployModelOperationMetadata. */ + class DeployModelOperationMetadata implements IDeployModelOperationMetadata { - /** Featurestore state. */ - public state: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State); + /** + * Constructs a new DeployModelOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata); - /** Featurestore encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** DeployModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new Featurestore instance using the specified properties. + * Creates a new DeployModelOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns Featurestore instance + * @returns DeployModelOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore): google.cloud.aiplatform.v1beta1.Featurestore; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. - * @param message Featurestore message or plain object to encode + * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. + * @param message DeployModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. - * @param message Featurestore message or plain object to encode + * Encodes the specified DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. + * @param message DeployModelOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Featurestore message from the specified reader or buffer. + * Decodes a DeployModelOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Featurestore + * @returns DeployModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Featurestore; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Decodes a Featurestore message from the specified reader or buffer, length delimited. + * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Featurestore + * @returns DeployModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Featurestore; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Verifies a Featurestore message. + * Verifies a DeployModelOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Featurestore message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Featurestore + * @returns DeployModelOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata; /** - * Creates a plain object from a Featurestore message. Also converts values to other types if specified. - * @param message Featurestore + * Creates a plain object from a DeployModelOperationMetadata message. Also converts values to other types if specified. + * @param message DeployModelOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Featurestore to JSON. + * Converts this DeployModelOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Featurestore { - - /** Properties of an OnlineServingConfig. */ - interface IOnlineServingConfig { - - /** OnlineServingConfig fixedNodeCount */ - fixedNodeCount?: (number|null); + /** Properties of an UndeployModelRequest. */ + interface IUndeployModelRequest { - /** OnlineServingConfig scaling */ - scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); - } + /** UndeployModelRequest endpoint */ + endpoint?: (string|null); - /** Represents an OnlineServingConfig. */ - class OnlineServingConfig implements IOnlineServingConfig { + /** UndeployModelRequest deployedModelId */ + deployedModelId?: (string|null); - /** - * Constructs a new OnlineServingConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig); + /** UndeployModelRequest trafficSplit */ + trafficSplit?: ({ [k: string]: number }|null); + } - /** OnlineServingConfig fixedNodeCount. */ - public fixedNodeCount: number; + /** Represents an UndeployModelRequest. */ + class UndeployModelRequest implements IUndeployModelRequest { - /** OnlineServingConfig scaling. */ - public scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); + /** + * Constructs a new UndeployModelRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest); - /** - * Creates a new OnlineServingConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns OnlineServingConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + /** UndeployModelRequest endpoint. */ + public endpoint: string; - /** - * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. - * @param message OnlineServingConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** UndeployModelRequest deployedModelId. */ + public deployedModelId: string; - /** - * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. - * @param message OnlineServingConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** UndeployModelRequest trafficSplit. */ + public trafficSplit: { [k: string]: number }; - /** - * Decodes an OnlineServingConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns OnlineServingConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + /** + * Creates a new UndeployModelRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UndeployModelRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelRequest): google.cloud.aiplatform.v1beta1.UndeployModelRequest; - /** - * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns OnlineServingConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + /** + * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. + * @param message UndeployModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies an OnlineServingConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. + * @param message UndeployModelRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates an OnlineServingConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns OnlineServingConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + /** + * Decodes an UndeployModelRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UndeployModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelRequest; - /** - * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. - * @param message OnlineServingConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UndeployModelRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelRequest; - /** - * Converts this OnlineServingConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Verifies an UndeployModelRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - namespace OnlineServingConfig { + /** + * Creates an UndeployModelRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UndeployModelRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelRequest; - /** Properties of a Scaling. */ - interface IScaling { + /** + * Creates a plain object from an UndeployModelRequest message. Also converts values to other types if specified. + * @param message UndeployModelRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Scaling minNodeCount */ - minNodeCount?: (number|null); + /** + * Converts this UndeployModelRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Scaling maxNodeCount */ - maxNodeCount?: (number|null); - } + /** Properties of an UndeployModelResponse. */ + interface IUndeployModelResponse { + } - /** Represents a Scaling. */ - class Scaling implements IScaling { + /** Represents an UndeployModelResponse. */ + class UndeployModelResponse implements IUndeployModelResponse { - /** - * Constructs a new Scaling. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling); + /** + * Constructs a new UndeployModelResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse); - /** Scaling minNodeCount. */ - public minNodeCount: number; + /** + * Creates a new UndeployModelResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns UndeployModelResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelResponse): google.cloud.aiplatform.v1beta1.UndeployModelResponse; - /** Scaling maxNodeCount. */ - public maxNodeCount: number; + /** + * Encodes the specified UndeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. + * @param message UndeployModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new Scaling instance using the specified properties. - * @param [properties] Properties to set - * @returns Scaling instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; - - /** - * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. - * @param message Scaling message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified UndeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. + * @param message UndeployModelResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. - * @param message Scaling message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes an UndeployModelResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UndeployModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelResponse; - /** - * Decodes a Scaling message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Scaling - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + /** + * Decodes an UndeployModelResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UndeployModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelResponse; - /** - * Decodes a Scaling message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Scaling - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + /** + * Verifies an UndeployModelResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a Scaling message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates an UndeployModelResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UndeployModelResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelResponse; - /** - * Creates a Scaling message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Scaling - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + /** + * Creates a plain object from an UndeployModelResponse message. Also converts values to other types if specified. + * @param message UndeployModelResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a Scaling message. Also converts values to other types if specified. - * @param message Scaling - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this UndeployModelResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this Scaling to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** Properties of an UndeployModelOperationMetadata. */ + interface IUndeployModelOperationMetadata { - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - STABLE = 1, - UPDATING = 2 - } + /** UndeployModelOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a FeaturestoreOnlineServingService */ - class FeaturestoreOnlineServingService extends $protobuf.rpc.Service { + /** Represents an UndeployModelOperationMetadata. */ + class UndeployModelOperationMetadata implements IUndeployModelOperationMetadata { /** - * Constructs a new FeaturestoreOnlineServingService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited + * Constructs a new UndeployModelOperationMetadata. + * @param [properties] Properties to set */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata); + + /** UndeployModelOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. + * Creates a new UndeployModelOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UndeployModelOperationMetadata instance */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreOnlineServingService; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Calls ReadFeatureValues. - * @param request ReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. + * @param message UndeployModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ReadFeatureValues. - * @param request ReadFeatureValuesRequest message or plain object - * @returns Promise + * Encodes the specified UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. + * @param message UndeployModelOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls StreamingReadFeatureValues. - * @param request StreamingReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UndeployModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Calls StreamingReadFeatureValues. - * @param request StreamingReadFeatureValuesRequest message or plain object - * @returns Promise + * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UndeployModelOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): Promise; - } + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; - namespace FeaturestoreOnlineServingService { + /** + * Verifies an UndeployModelOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#readFeatureValues}. - * @param error Error, if any - * @param [response] ReadFeatureValuesResponse + * Creates an UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UndeployModelOperationMetadata */ - type ReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#streamingReadFeatureValues}. - * @param error Error, if any - * @param [response] ReadFeatureValuesResponse + * Creates a plain object from an UndeployModelOperationMetadata message. Also converts values to other types if specified. + * @param message UndeployModelOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - type StreamingReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this UndeployModelOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a ReadFeatureValuesRequest. */ - interface IReadFeatureValuesRequest { + /** Properties of an EntityType. */ + interface IEntityType { - /** ReadFeatureValuesRequest entityType */ - entityType?: (string|null); + /** EntityType name */ + name?: (string|null); - /** ReadFeatureValuesRequest entityId */ - entityId?: (string|null); + /** EntityType description */ + description?: (string|null); - /** ReadFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** EntityType createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** EntityType updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** EntityType labels */ + labels?: ({ [k: string]: string }|null); + + /** EntityType etag */ + etag?: (string|null); + + /** EntityType monitoringConfig */ + monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); } - /** Represents a ReadFeatureValuesRequest. */ - class ReadFeatureValuesRequest implements IReadFeatureValuesRequest { + /** Represents an EntityType. */ + class EntityType implements IEntityType { /** - * Constructs a new ReadFeatureValuesRequest. + * Constructs a new EntityType. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEntityType); - /** ReadFeatureValuesRequest entityType. */ - public entityType: string; + /** EntityType name. */ + public name: string; - /** ReadFeatureValuesRequest entityId. */ - public entityId: string; + /** EntityType description. */ + public description: string; - /** ReadFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** EntityType createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** EntityType updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** EntityType labels. */ + public labels: { [k: string]: string }; + + /** EntityType etag. */ + public etag: string; + + /** EntityType monitoringConfig. */ + public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); /** - * Creates a new ReadFeatureValuesRequest instance using the specified properties. + * Creates a new EntityType instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFeatureValuesRequest instance + * @returns EntityType instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEntityType): google.cloud.aiplatform.v1beta1.EntityType; /** - * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. - * @param message ReadFeatureValuesRequest message or plain object to encode + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. - * @param message ReadFeatureValuesRequest message or plain object to encode + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. + * @param message EntityType message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEntityType, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFeatureValuesRequest + * @returns EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.EntityType; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes an EntityType message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFeatureValuesRequest + * @returns EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.EntityType; /** - * Verifies a ReadFeatureValuesRequest message. + * Verifies an EntityType message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an EntityType message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFeatureValuesRequest + * @returns EntityType */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.EntityType; /** - * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ReadFeatureValuesRequest + * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * @param message EntityType * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.EntityType, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFeatureValuesRequest to JSON. + * Converts this EntityType to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ReadFeatureValuesResponse. */ - interface IReadFeatureValuesResponse { + /** Properties of a FeaturestoreMonitoringConfig. */ + interface IFeaturestoreMonitoringConfig { - /** ReadFeatureValuesResponse header */ - header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + /** FeaturestoreMonitoringConfig snapshotAnalysis */ + snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - /** ReadFeatureValuesResponse entityView */ - entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); + /** FeaturestoreMonitoringConfig importFeaturesAnalysis */ + importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); + + /** FeaturestoreMonitoringConfig numericalThresholdConfig */ + numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + + /** FeaturestoreMonitoringConfig categoricalThresholdConfig */ + categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); } - /** Represents a ReadFeatureValuesResponse. */ - class ReadFeatureValuesResponse implements IReadFeatureValuesResponse { + /** Represents a FeaturestoreMonitoringConfig. */ + class FeaturestoreMonitoringConfig implements IFeaturestoreMonitoringConfig { /** - * Constructs a new ReadFeatureValuesResponse. + * Constructs a new FeaturestoreMonitoringConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig); - /** ReadFeatureValuesResponse header. */ - public header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); + /** FeaturestoreMonitoringConfig snapshotAnalysis. */ + public snapshotAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null); - /** ReadFeatureValuesResponse entityView. */ - public entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); + /** FeaturestoreMonitoringConfig importFeaturesAnalysis. */ + public importFeaturesAnalysis?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null); + + /** FeaturestoreMonitoringConfig numericalThresholdConfig. */ + public numericalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); + + /** FeaturestoreMonitoringConfig categoricalThresholdConfig. */ + public categoricalThresholdConfig?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null); /** - * Creates a new ReadFeatureValuesResponse instance using the specified properties. + * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ReadFeatureValuesResponse instance + * @returns FeaturestoreMonitoringConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. - * @param message ReadFeatureValuesResponse message or plain object to encode + * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. + * @param message FeaturestoreMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. - * @param message ReadFeatureValuesResponse message or plain object to encode + * Encodes the specified FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. + * @param message FeaturestoreMonitoringConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ReadFeatureValuesResponse + * @returns FeaturestoreMonitoringConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ReadFeatureValuesResponse + * @returns FeaturestoreMonitoringConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Verifies a ReadFeatureValuesResponse message. + * Verifies a FeaturestoreMonitoringConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ReadFeatureValuesResponse + * @returns FeaturestoreMonitoringConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig; /** - * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ReadFeatureValuesResponse + * Creates a plain object from a FeaturestoreMonitoringConfig message. Also converts values to other types if specified. + * @param message FeaturestoreMonitoringConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ReadFeatureValuesResponse to JSON. + * Converts this FeaturestoreMonitoringConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ReadFeatureValuesResponse { + namespace FeaturestoreMonitoringConfig { - /** Properties of a FeatureDescriptor. */ - interface IFeatureDescriptor { + /** Properties of a SnapshotAnalysis. */ + interface ISnapshotAnalysis { - /** FeatureDescriptor id */ - id?: (string|null); + /** SnapshotAnalysis disabled */ + disabled?: (boolean|null); + + /** SnapshotAnalysis monitoringInterval */ + monitoringInterval?: (google.protobuf.IDuration|null); + + /** SnapshotAnalysis monitoringIntervalDays */ + monitoringIntervalDays?: (number|null); + + /** SnapshotAnalysis stalenessDays */ + stalenessDays?: (number|null); } - /** Represents a FeatureDescriptor. */ - class FeatureDescriptor implements IFeatureDescriptor { + /** Represents a SnapshotAnalysis. */ + class SnapshotAnalysis implements ISnapshotAnalysis { /** - * Constructs a new FeatureDescriptor. + * Constructs a new SnapshotAnalysis. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor); + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis); - /** FeatureDescriptor id. */ - public id: string; + /** SnapshotAnalysis disabled. */ + public disabled: boolean; + + /** SnapshotAnalysis monitoringInterval. */ + public monitoringInterval?: (google.protobuf.IDuration|null); + + /** SnapshotAnalysis monitoringIntervalDays. */ + public monitoringIntervalDays: number; + + /** SnapshotAnalysis stalenessDays. */ + public stalenessDays: number; /** - * Creates a new FeatureDescriptor instance using the specified properties. + * Creates a new SnapshotAnalysis instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureDescriptor instance + * @returns SnapshotAnalysis instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; /** - * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. - * @param message FeatureDescriptor message or plain object to encode + * Encodes the specified SnapshotAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. + * @param message SnapshotAnalysis message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. - * @param message FeatureDescriptor message or plain object to encode + * Encodes the specified SnapshotAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. + * @param message SnapshotAnalysis message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureDescriptor message from the specified reader or buffer. + * Decodes a SnapshotAnalysis message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureDescriptor + * @returns SnapshotAnalysis * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; /** - * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. + * Decodes a SnapshotAnalysis message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureDescriptor + * @returns SnapshotAnalysis * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; /** - * Verifies a FeatureDescriptor message. + * Verifies a SnapshotAnalysis message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FeatureDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotAnalysis message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureDescriptor + * @returns SnapshotAnalysis */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis; /** - * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. - * @param message FeatureDescriptor + * Creates a plain object from a SnapshotAnalysis message. Also converts values to other types if specified. + * @param message SnapshotAnalysis * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureDescriptor to JSON. + * Converts this SnapshotAnalysis to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Header. */ - interface IHeader { + /** Properties of an ImportFeaturesAnalysis. */ + interface IImportFeaturesAnalysis { - /** Header entityType */ - entityType?: (string|null); + /** ImportFeaturesAnalysis state */ + state?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|null); - /** Header featureDescriptors */ - featureDescriptors?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]|null); + /** ImportFeaturesAnalysis anomalyDetectionBaseline */ + anomalyDetectionBaseline?: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|null); } - /** Represents a Header. */ - class Header implements IHeader { + /** Represents an ImportFeaturesAnalysis. */ + class ImportFeaturesAnalysis implements IImportFeaturesAnalysis { /** - * Constructs a new Header. + * Constructs a new ImportFeaturesAnalysis. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader); + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis); - /** Header entityType. */ - public entityType: string; + /** ImportFeaturesAnalysis state. */ + public state: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State); - /** Header featureDescriptors. */ - public featureDescriptors: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]; + /** ImportFeaturesAnalysis anomalyDetectionBaseline. */ + public anomalyDetectionBaseline: (google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|keyof typeof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline); /** - * Creates a new Header instance using the specified properties. + * Creates a new ImportFeaturesAnalysis instance using the specified properties. * @param [properties] Properties to set - * @returns Header instance + * @returns ImportFeaturesAnalysis instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; /** - * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified ImportFeaturesAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. + * @param message ImportFeaturesAnalysis message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @param message Header message or plain object to encode + * Encodes the specified ImportFeaturesAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. + * @param message ImportFeaturesAnalysis message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Header message from the specified reader or buffer. + * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Header + * @returns ImportFeaturesAnalysis * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; /** - * Decodes a Header message from the specified reader or buffer, length delimited. + * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Header + * @returns ImportFeaturesAnalysis * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; /** - * Verifies a Header message. + * Verifies an ImportFeaturesAnalysis message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeaturesAnalysis message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Header + * @returns ImportFeaturesAnalysis */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis; /** - * Creates a plain object from a Header message. Also converts values to other types if specified. - * @param message Header + * Creates a plain object from an ImportFeaturesAnalysis message. Also converts values to other types if specified. + * @param message ImportFeaturesAnalysis * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Header to JSON. + * Converts this ImportFeaturesAnalysis to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an EntityView. */ - interface IEntityView { + namespace ImportFeaturesAnalysis { - /** EntityView entityId */ - entityId?: (string|null); + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + DEFAULT = 1, + ENABLED = 2, + DISABLED = 3 + } - /** EntityView data */ - data?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]|null); + /** Baseline enum. */ + enum Baseline { + BASELINE_UNSPECIFIED = 0, + LATEST_STATS = 1, + MOST_RECENT_SNAPSHOT_STATS = 2, + PREVIOUS_IMPORT_FEATURES_STATS = 3 + } } - /** Represents an EntityView. */ - class EntityView implements IEntityView { + /** Properties of a ThresholdConfig. */ + interface IThresholdConfig { + + /** ThresholdConfig value */ + value?: (number|null); + } + + /** Represents a ThresholdConfig. */ + class ThresholdConfig implements IThresholdConfig { /** - * Constructs a new EntityView. + * Constructs a new ThresholdConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView); + constructor(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig); - /** EntityView entityId. */ - public entityId: string; + /** ThresholdConfig value. */ + public value?: (number|null); - /** EntityView data. */ - public data: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]; + /** ThresholdConfig threshold. */ + public threshold?: "value"; /** - * Creates a new EntityView instance using the specified properties. + * Creates a new ThresholdConfig instance using the specified properties. * @param [properties] Properties to set - * @returns EntityView instance + * @returns ThresholdConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static create(properties?: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; /** - * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @param message EntityView message or plain object to encode + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @param message EntityView message or plain object to encode + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. + * @param message ThresholdConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an EntityView message from the specified reader or buffer. + * Decodes a ThresholdConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns EntityView + * @returns ThresholdConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; /** - * Decodes an EntityView message from the specified reader or buffer, length delimited. + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns EntityView + * @returns ThresholdConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; /** - * Verifies an EntityView message. + * Verifies a ThresholdConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an EntityView message from a plain object. Also converts values to their respective internal types. + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns EntityView + * @returns ThresholdConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig; /** - * Creates a plain object from an EntityView message. Also converts values to other types if specified. - * @param message EntityView + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @param message ThresholdConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this EntityView to JSON. + * Converts this ThresholdConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + } - namespace EntityView { - - /** Properties of a Data. */ - interface IData { - - /** Data value */ - value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); - - /** Data values */ - values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); - } - - /** Represents a Data. */ - class Data implements IData { - - /** - * Constructs a new Data. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData); - - /** Data value. */ - public value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); - - /** Data values. */ - public values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); - - /** Data data. */ - public data?: ("value"|"values"); - - /** - * Creates a new Data instance using the specified properties. - * @param [properties] Properties to set - * @returns Data instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @param message Data message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Data message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Decodes a Data message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Verifies a Data message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Data message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Data - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - - /** - * Creates a plain object from a Data message. Also converts values to other types if specified. - * @param message Data - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of an Event. */ + interface IEvent { - /** - * Converts this Data to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - } + /** Event artifact */ + artifact?: (string|null); - /** Properties of a StreamingReadFeatureValuesRequest. */ - interface IStreamingReadFeatureValuesRequest { + /** Event execution */ + execution?: (string|null); - /** StreamingReadFeatureValuesRequest entityType */ - entityType?: (string|null); + /** Event eventTime */ + eventTime?: (google.protobuf.ITimestamp|null); - /** StreamingReadFeatureValuesRequest entityIds */ - entityIds?: (string[]|null); + /** Event type */ + type?: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type|null); - /** StreamingReadFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** Event labels */ + labels?: ({ [k: string]: string }|null); } - /** Represents a StreamingReadFeatureValuesRequest. */ - class StreamingReadFeatureValuesRequest implements IStreamingReadFeatureValuesRequest { + /** Represents an Event. */ + class Event implements IEvent { /** - * Constructs a new StreamingReadFeatureValuesRequest. + * Constructs a new Event. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IEvent); - /** StreamingReadFeatureValuesRequest entityType. */ - public entityType: string; + /** Event artifact. */ + public artifact: string; - /** StreamingReadFeatureValuesRequest entityIds. */ - public entityIds: string[]; + /** Event execution. */ + public execution: string; - /** StreamingReadFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** Event eventTime. */ + public eventTime?: (google.protobuf.ITimestamp|null); + + /** Event type. */ + public type: (google.cloud.aiplatform.v1beta1.Event.Type|keyof typeof google.cloud.aiplatform.v1beta1.Event.Type); + + /** Event labels. */ + public labels: { [k: string]: string }; /** - * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. + * Creates a new Event instance using the specified properties. * @param [properties] Properties to set - * @returns StreamingReadFeatureValuesRequest instance + * @returns Event instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IEvent): google.cloud.aiplatform.v1beta1.Event; /** - * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. - * @param message StreamingReadFeatureValuesRequest message or plain object to encode + * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. + * @param message Event message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. - * @param message StreamingReadFeatureValuesRequest message or plain object to encode + * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. + * @param message Event message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IEvent, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes an Event message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StreamingReadFeatureValuesRequest + * @returns Event * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Event; /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes an Event message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StreamingReadFeatureValuesRequest + * @returns Event * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Event; /** - * Verifies a StreamingReadFeatureValuesRequest message. + * Verifies an Event message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Event message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StreamingReadFeatureValuesRequest + * @returns Event */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Event; /** - * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message StreamingReadFeatureValuesRequest + * Creates a plain object from an Event message. Also converts values to other types if specified. + * @param message Event * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Event, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StreamingReadFeatureValuesRequest to JSON. + * Converts this Event to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FeatureValue. */ - interface IFeatureValue { + namespace Event { - /** FeatureValue boolValue */ - boolValue?: (boolean|null); + /** Type enum. */ + enum Type { + TYPE_UNSPECIFIED = 0, + INPUT = 1, + OUTPUT = 2 + } + } - /** FeatureValue doubleValue */ - doubleValue?: (number|null); + /** Properties of an Execution. */ + interface IExecution { - /** FeatureValue int64Value */ - int64Value?: (number|Long|string|null); + /** Execution name */ + name?: (string|null); - /** FeatureValue stringValue */ - stringValue?: (string|null); + /** Execution displayName */ + displayName?: (string|null); - /** FeatureValue boolArrayValue */ - boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); + /** Execution state */ + state?: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State|null); - /** FeatureValue doubleArrayValue */ - doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); + /** Execution etag */ + etag?: (string|null); - /** FeatureValue int64ArrayValue */ - int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); + /** Execution labels */ + labels?: ({ [k: string]: string }|null); - /** FeatureValue stringArrayValue */ - stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + /** Execution createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** FeatureValue bytesValue */ - bytesValue?: (Uint8Array|string|null); + /** Execution updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** FeatureValue metadata */ - metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); + /** Execution schemaTitle */ + schemaTitle?: (string|null); + + /** Execution schemaVersion */ + schemaVersion?: (string|null); + + /** Execution metadata */ + metadata?: (google.protobuf.IStruct|null); + + /** Execution description */ + description?: (string|null); } - /** Represents a FeatureValue. */ - class FeatureValue implements IFeatureValue { + /** Represents an Execution. */ + class Execution implements IExecution { /** - * Constructs a new FeatureValue. + * Constructs a new Execution. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExecution); - /** FeatureValue boolValue. */ - public boolValue?: (boolean|null); + /** Execution name. */ + public name: string; - /** FeatureValue doubleValue. */ - public doubleValue?: (number|null); + /** Execution displayName. */ + public displayName: string; - /** FeatureValue int64Value. */ - public int64Value?: (number|Long|string|null); + /** Execution state. */ + public state: (google.cloud.aiplatform.v1beta1.Execution.State|keyof typeof google.cloud.aiplatform.v1beta1.Execution.State); - /** FeatureValue stringValue. */ - public stringValue?: (string|null); + /** Execution etag. */ + public etag: string; - /** FeatureValue boolArrayValue. */ - public boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); + /** Execution labels. */ + public labels: { [k: string]: string }; - /** FeatureValue doubleArrayValue. */ - public doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); + /** Execution createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** FeatureValue int64ArrayValue. */ - public int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); + /** Execution updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** FeatureValue stringArrayValue. */ - public stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + /** Execution schemaTitle. */ + public schemaTitle: string; - /** FeatureValue bytesValue. */ - public bytesValue?: (Uint8Array|string|null); + /** Execution schemaVersion. */ + public schemaVersion: string; - /** FeatureValue metadata. */ - public metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); + /** Execution metadata. */ + public metadata?: (google.protobuf.IStruct|null); - /** FeatureValue value. */ - public value?: ("boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"); + /** Execution description. */ + public description: string; /** - * Creates a new FeatureValue instance using the specified properties. + * Creates a new Execution instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValue instance + * @returns Execution instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue): google.cloud.aiplatform.v1beta1.FeatureValue; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExecution): google.cloud.aiplatform.v1beta1.Execution; /** - * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. - * @param message FeatureValue message or plain object to encode + * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. + * @param message Execution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. - * @param message FeatureValue message or plain object to encode + * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. + * @param message Execution message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExecution, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValue message from the specified reader or buffer. + * Decodes an Execution message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureValue + * @returns Execution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValue; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Execution; /** - * Decodes a FeatureValue message from the specified reader or buffer, length delimited. + * Decodes an Execution message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValue + * @returns Execution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValue; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Execution; /** - * Verifies a FeatureValue message. + * Verifies an Execution message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FeatureValue message from a plain object. Also converts values to their respective internal types. + * Creates an Execution message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureValue + * @returns Execution */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Execution; /** - * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. - * @param message FeatureValue + * Creates a plain object from an Execution message. Also converts values to other types if specified. + * @param message Execution * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Execution, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValue to JSON. + * Converts this Execution to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace FeatureValue { + namespace Execution { - /** Properties of a Metadata. */ - interface IMetadata { + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + NEW = 1, + RUNNING = 2, + COMPLETE = 3, + FAILED = 4, + CACHED = 5, + CANCELLED = 6 + } + } - /** Metadata generateTime */ - generateTime?: (google.protobuf.ITimestamp|null); + /** Properties of a Feature. */ + interface IFeature { + + /** Feature name */ + name?: (string|null); + + /** Feature description */ + description?: (string|null); + + /** Feature valueType */ + valueType?: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType|null); + + /** Feature createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Feature updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** Feature labels */ + labels?: ({ [k: string]: string }|null); + + /** Feature etag */ + etag?: (string|null); + + /** Feature monitoringConfig */ + monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + + /** Feature disableMonitoring */ + disableMonitoring?: (boolean|null); + + /** Feature monitoringStats */ + monitoringStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); + + /** Feature monitoringStatsAnomalies */ + monitoringStatsAnomalies?: (google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]|null); + } + + /** Represents a Feature. */ + class Feature implements IFeature { + + /** + * Constructs a new Feature. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeature); + + /** Feature name. */ + public name: string; + + /** Feature description. */ + public description: string; + + /** Feature valueType. */ + public valueType: (google.cloud.aiplatform.v1beta1.Feature.ValueType|keyof typeof google.cloud.aiplatform.v1beta1.Feature.ValueType); + + /** Feature createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Feature updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** Feature labels. */ + public labels: { [k: string]: string }; + + /** Feature etag. */ + public etag: string; + + /** Feature monitoringConfig. */ + public monitoringConfig?: (google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null); + + /** Feature disableMonitoring. */ + public disableMonitoring: boolean; + + /** Feature monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; + + /** Feature monitoringStatsAnomalies. */ + public monitoringStatsAnomalies: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly[]; + + /** + * Creates a new Feature instance using the specified properties. + * @param [properties] Properties to set + * @returns Feature instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeature): google.cloud.aiplatform.v1beta1.Feature; + + /** + * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. + * @param message Feature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. + * @param message Feature message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeature, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Feature message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Feature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Feature; + + /** + * Decodes a Feature message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Feature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Feature; + + /** + * Verifies a Feature message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Feature message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Feature + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature; + + /** + * Creates a plain object from a Feature message. Also converts values to other types if specified. + * @param message Feature + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Feature, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Feature to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace Feature { + + /** Properties of a MonitoringStatsAnomaly. */ + interface IMonitoringStatsAnomaly { + + /** MonitoringStatsAnomaly objective */ + objective?: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|null); + + /** MonitoringStatsAnomaly featureStatsAnomaly */ + featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); } - /** Represents a Metadata. */ - class Metadata implements IMetadata { + /** Represents a MonitoringStatsAnomaly. */ + class MonitoringStatsAnomaly implements IMonitoringStatsAnomaly { /** - * Constructs a new Metadata. + * Constructs a new MonitoringStatsAnomaly. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly); - /** Metadata generateTime. */ - public generateTime?: (google.protobuf.ITimestamp|null); + /** MonitoringStatsAnomaly objective. */ + public objective: (google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|keyof typeof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective); + + /** MonitoringStatsAnomaly featureStatsAnomaly. */ + public featureStatsAnomaly?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); /** - * Creates a new Metadata instance using the specified properties. + * Creates a new MonitoringStatsAnomaly instance using the specified properties. * @param [properties] Properties to set - * @returns Metadata instance + * @returns MonitoringStatsAnomaly instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; /** - * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode + * Encodes the specified MonitoringStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. + * @param message MonitoringStatsAnomaly message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. - * @param message Metadata message or plain object to encode + * Encodes the specified MonitoringStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. + * @param message MonitoringStatsAnomaly message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Metadata message from the specified reader or buffer. + * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Metadata + * @returns MonitoringStatsAnomaly * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. + * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Metadata + * @returns MonitoringStatsAnomaly * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; /** - * Verifies a Metadata message. + * Verifies a MonitoringStatsAnomaly message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Metadata message from a plain object. Also converts values to their respective internal types. + * Creates a MonitoringStatsAnomaly message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Metadata + * @returns MonitoringStatsAnomaly */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly; /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @param message Metadata + * Creates a plain object from a MonitoringStatsAnomaly message. Also converts values to other types if specified. + * @param message MonitoringStatsAnomaly * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Metadata to JSON. + * Converts this MonitoringStatsAnomaly to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } + + namespace MonitoringStatsAnomaly { + + /** Objective enum. */ + enum Objective { + OBJECTIVE_UNSPECIFIED = 0, + IMPORT_FEATURE_ANALYSIS = 1, + SNAPSHOT_ANALYSIS = 2 + } + } + + /** ValueType enum. */ + enum ValueType { + VALUE_TYPE_UNSPECIFIED = 0, + BOOL = 1, + BOOL_ARRAY = 2, + DOUBLE = 3, + DOUBLE_ARRAY = 4, + INT64 = 9, + INT64_ARRAY = 10, + STRING = 11, + STRING_ARRAY = 12, + BYTES = 13 + } } - /** Properties of a FeatureValueList. */ - interface IFeatureValueList { + /** Properties of a FeatureStatsAnomaly. */ + interface IFeatureStatsAnomaly { - /** FeatureValueList values */ - values?: (google.cloud.aiplatform.v1beta1.IFeatureValue[]|null); + /** FeatureStatsAnomaly score */ + score?: (number|null); + + /** FeatureStatsAnomaly statsUri */ + statsUri?: (string|null); + + /** FeatureStatsAnomaly anomalyUri */ + anomalyUri?: (string|null); + + /** FeatureStatsAnomaly distributionDeviation */ + distributionDeviation?: (number|null); + + /** FeatureStatsAnomaly anomalyDetectionThreshold */ + anomalyDetectionThreshold?: (number|null); + + /** FeatureStatsAnomaly startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** FeatureStatsAnomaly endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a FeatureValueList. */ - class FeatureValueList implements IFeatureValueList { + /** Represents a FeatureStatsAnomaly. */ + class FeatureStatsAnomaly implements IFeatureStatsAnomaly { /** - * Constructs a new FeatureValueList. + * Constructs a new FeatureStatsAnomaly. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly); - /** FeatureValueList values. */ - public values: google.cloud.aiplatform.v1beta1.IFeatureValue[]; + /** FeatureStatsAnomaly score. */ + public score: number; + + /** FeatureStatsAnomaly statsUri. */ + public statsUri: string; + + /** FeatureStatsAnomaly anomalyUri. */ + public anomalyUri: string; + + /** FeatureStatsAnomaly distributionDeviation. */ + public distributionDeviation: number; + + /** FeatureStatsAnomaly anomalyDetectionThreshold. */ + public anomalyDetectionThreshold: number; + + /** FeatureStatsAnomaly startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** FeatureStatsAnomaly endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new FeatureValueList instance using the specified properties. + * Creates a new FeatureStatsAnomaly instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValueList instance + * @returns FeatureStatsAnomaly instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList): google.cloud.aiplatform.v1beta1.FeatureValueList; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. - * @param message FeatureValueList message or plain object to encode + * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * @param message FeatureStatsAnomaly message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. - * @param message FeatureValueList message or plain object to encode + * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * @param message FeatureStatsAnomaly message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValueList message from the specified reader or buffer. + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureValueList + * @returns FeatureStatsAnomaly * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValueList; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValueList + * @returns FeatureStatsAnomaly * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValueList; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Verifies a FeatureValueList message. + * Verifies a FeatureStatsAnomaly message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureValueList + * @returns FeatureStatsAnomaly */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueList; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly; /** - * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. - * @param message FeatureValueList + * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. + * @param message FeatureStatsAnomaly * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueList, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValueList to JSON. + * Converts this FeatureStatsAnomaly to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BoolArray. */ - interface IBoolArray { + /** Properties of an IdMatcher. */ + interface IIdMatcher { - /** BoolArray values */ - values?: (boolean[]|null); + /** IdMatcher ids */ + ids?: (string[]|null); } - /** Represents a BoolArray. */ - class BoolArray implements IBoolArray { + /** Represents an IdMatcher. */ + class IdMatcher implements IIdMatcher { /** - * Constructs a new BoolArray. + * Constructs a new IdMatcher. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBoolArray); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher); - /** BoolArray values. */ - public values: boolean[]; + /** IdMatcher ids. */ + public ids: string[]; /** - * Creates a new BoolArray instance using the specified properties. + * Creates a new IdMatcher instance using the specified properties. * @param [properties] Properties to set - * @returns BoolArray instance + * @returns IdMatcher instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBoolArray): google.cloud.aiplatform.v1beta1.BoolArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIdMatcher): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. - * @param message BoolArray message or plain object to encode + * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. + * @param message IdMatcher message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. - * @param message BoolArray message or plain object to encode + * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. + * @param message IdMatcher message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIdMatcher, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BoolArray message from the specified reader or buffer. + * Decodes an IdMatcher message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BoolArray + * @returns IdMatcher * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BoolArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Decodes a BoolArray message from the specified reader or buffer, length delimited. + * Decodes an IdMatcher message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BoolArray + * @returns IdMatcher * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BoolArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Verifies a BoolArray message. + * Verifies an IdMatcher message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BoolArray message from a plain object. Also converts values to their respective internal types. + * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BoolArray + * @returns IdMatcher */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BoolArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IdMatcher; /** - * Creates a plain object from a BoolArray message. Also converts values to other types if specified. - * @param message BoolArray + * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. + * @param message IdMatcher * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BoolArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.IdMatcher, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BoolArray to JSON. + * Converts this IdMatcher to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DoubleArray. */ - interface IDoubleArray { + /** Properties of a FeatureSelector. */ + interface IFeatureSelector { - /** DoubleArray values */ - values?: (number[]|null); + /** FeatureSelector idMatcher */ + idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); } - /** Represents a DoubleArray. */ - class DoubleArray implements IDoubleArray { + /** Represents a FeatureSelector. */ + class FeatureSelector implements IFeatureSelector { /** - * Constructs a new DoubleArray. + * Constructs a new FeatureSelector. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector); - /** DoubleArray values. */ - public values: number[]; + /** FeatureSelector idMatcher. */ + public idMatcher?: (google.cloud.aiplatform.v1beta1.IIdMatcher|null); /** - * Creates a new DoubleArray instance using the specified properties. + * Creates a new FeatureSelector instance using the specified properties. * @param [properties] Properties to set - * @returns DoubleArray instance + * @returns FeatureSelector instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray): google.cloud.aiplatform.v1beta1.DoubleArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureSelector): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. - * @param message DoubleArray message or plain object to encode + * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. + * @param message FeatureSelector message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. - * @param message DoubleArray message or plain object to encode + * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. + * @param message FeatureSelector message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureSelector, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DoubleArray message from the specified reader or buffer. + * Decodes a FeatureSelector message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DoubleArray + * @returns FeatureSelector * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DoubleArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Decodes a DoubleArray message from the specified reader or buffer, length delimited. + * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DoubleArray + * @returns FeatureSelector * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DoubleArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Verifies a DoubleArray message. + * Verifies a FeatureSelector message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DoubleArray message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DoubleArray + * @returns FeatureSelector */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DoubleArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureSelector; /** - * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. - * @param message DoubleArray + * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. + * @param message FeatureSelector * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DoubleArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureSelector, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DoubleArray to JSON. + * Converts this FeatureSelector to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an Int64Array. */ - interface IInt64Array { - - /** Int64Array values */ - values?: ((number|Long|string)[]|null); - } + /** Properties of a Featurestore. */ + interface IFeaturestore { - /** Represents an Int64Array. */ - class Int64Array implements IInt64Array { + /** Featurestore name */ + name?: (string|null); - /** - * Constructs a new Int64Array. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IInt64Array); + /** Featurestore createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** Int64Array values. */ - public values: (number|Long|string)[]; + /** Featurestore updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new Int64Array instance using the specified properties. - * @param [properties] Properties to set - * @returns Int64Array instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IInt64Array): google.cloud.aiplatform.v1beta1.Int64Array; + /** Featurestore etag */ + etag?: (string|null); - /** - * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. - * @param message Int64Array message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; + /** Featurestore labels */ + labels?: ({ [k: string]: string }|null); - /** - * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. - * @param message Int64Array message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; + /** Featurestore onlineServingConfig */ + onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); - /** - * Decodes an Int64Array message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Int64Array - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Int64Array; + /** Featurestore state */ + state?: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State|null); - /** - * Decodes an Int64Array message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Int64Array - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Int64Array; + /** Featurestore encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + } - /** - * Verifies an Int64Array message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Represents a Featurestore. */ + class Featurestore implements IFeaturestore { /** - * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Int64Array + * Constructs a new Featurestore. + * @param [properties] Properties to set */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Int64Array; + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore); - /** - * Creates a plain object from an Int64Array message. Also converts values to other types if specified. - * @param message Int64Array - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Int64Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Featurestore name. */ + public name: string; - /** - * Converts this Int64Array to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Featurestore createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Properties of a StringArray. */ - interface IStringArray { + /** Featurestore updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** StringArray values */ - values?: (string[]|null); - } + /** Featurestore etag. */ + public etag: string; - /** Represents a StringArray. */ - class StringArray implements IStringArray { + /** Featurestore labels. */ + public labels: { [k: string]: string }; - /** - * Constructs a new StringArray. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStringArray); + /** Featurestore onlineServingConfig. */ + public onlineServingConfig?: (google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null); - /** StringArray values. */ - public values: string[]; + /** Featurestore state. */ + public state: (google.cloud.aiplatform.v1beta1.Featurestore.State|keyof typeof google.cloud.aiplatform.v1beta1.Featurestore.State); + + /** Featurestore encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); /** - * Creates a new StringArray instance using the specified properties. + * Creates a new Featurestore instance using the specified properties. * @param [properties] Properties to set - * @returns StringArray instance + * @returns Featurestore instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStringArray): google.cloud.aiplatform.v1beta1.StringArray; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeaturestore): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. - * @param message StringArray message or plain object to encode + * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. + * @param message Featurestore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. - * @param message StringArray message or plain object to encode + * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. + * @param message Featurestore message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeaturestore, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StringArray message from the specified reader or buffer. + * Decodes a Featurestore message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StringArray + * @returns Featurestore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StringArray; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Decodes a StringArray message from the specified reader or buffer, length delimited. + * Decodes a Featurestore message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StringArray + * @returns Featurestore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StringArray; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Verifies a StringArray message. + * Verifies a Featurestore message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StringArray message from a plain object. Also converts values to their respective internal types. + * Creates a Featurestore message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StringArray + * @returns Featurestore */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StringArray; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore; /** - * Creates a plain object from a StringArray message. Also converts values to other types if specified. - * @param message StringArray + * Creates a plain object from a Featurestore message. Also converts values to other types if specified. + * @param message Featurestore * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StringArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StringArray to JSON. + * Converts this Featurestore to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents a FeaturestoreService */ - class FeaturestoreService extends $protobuf.rpc.Service { + namespace Featurestore { + + /** Properties of an OnlineServingConfig. */ + interface IOnlineServingConfig { + + /** OnlineServingConfig fixedNodeCount */ + fixedNodeCount?: (number|null); + + /** OnlineServingConfig scaling */ + scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); + } + + /** Represents an OnlineServingConfig. */ + class OnlineServingConfig implements IOnlineServingConfig { + + /** + * Constructs a new OnlineServingConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig); + + /** OnlineServingConfig fixedNodeCount. */ + public fixedNodeCount: number; + + /** OnlineServingConfig scaling. */ + public scaling?: (google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null); + + /** + * Creates a new OnlineServingConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns OnlineServingConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + + /** + * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @param message OnlineServingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @param message OnlineServingConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns OnlineServingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns OnlineServingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + + /** + * Verifies an OnlineServingConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an OnlineServingConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns OnlineServingConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig; + + /** + * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. + * @param message OnlineServingConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this OnlineServingConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace OnlineServingConfig { + + /** Properties of a Scaling. */ + interface IScaling { + + /** Scaling minNodeCount */ + minNodeCount?: (number|null); + + /** Scaling maxNodeCount */ + maxNodeCount?: (number|null); + } + + /** Represents a Scaling. */ + class Scaling implements IScaling { + + /** + * Constructs a new Scaling. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling); + + /** Scaling minNodeCount. */ + public minNodeCount: number; + + /** Scaling maxNodeCount. */ + public maxNodeCount: number; + + /** + * Creates a new Scaling instance using the specified properties. + * @param [properties] Properties to set + * @returns Scaling instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + + /** + * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @param message Scaling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @param message Scaling message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Scaling message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Scaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + + /** + * Decodes a Scaling message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Scaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + + /** + * Verifies a Scaling message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Scaling message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Scaling + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling; + + /** + * Creates a plain object from a Scaling message. Also converts values to other types if specified. + * @param message Scaling + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Scaling to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + STABLE = 1, + UPDATING = 2 + } + } + + /** Represents a FeaturestoreOnlineServingService */ + class FeaturestoreOnlineServingService extends $protobuf.rpc.Service { /** - * Constructs a new FeaturestoreService service. + * Constructs a new FeaturestoreOnlineServingService service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -77897,10787 +79564,10991 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new FeaturestoreService service using the specified rpc implementation. + * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreService; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreOnlineServingService; /** - * Calls CreateFeaturestore. - * @param request CreateFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Calls ReadFeatureValues. + * @param request ReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse */ - public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestoreCallback): void; + public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback): void; /** - * Calls CreateFeaturestore. - * @param request CreateFeaturestoreRequest message or plain object + * Calls ReadFeatureValues. + * @param request ReadFeatureValuesRequest message or plain object * @returns Promise */ - public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): Promise; + public readFeatureValues(request: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): Promise; /** - * Calls GetFeaturestore. - * @param request GetFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Featurestore + * Calls StreamingReadFeatureValues. + * @param request StreamingReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse */ - public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestoreCallback): void; + public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback): void; /** - * Calls GetFeaturestore. - * @param request GetFeaturestoreRequest message or plain object + * Calls StreamingReadFeatureValues. + * @param request StreamingReadFeatureValuesRequest message or plain object * @returns Promise */ - public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): Promise; + public streamingReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): Promise; + } + + namespace FeaturestoreOnlineServingService { /** - * Calls ListFeaturestores. - * @param request ListFeaturestoresRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFeaturestoresResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#readFeatureValues}. + * @param error Error, if any + * @param [response] ReadFeatureValuesResponse */ - public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestoresCallback): void; + type ReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; /** - * Calls ListFeaturestores. - * @param request ListFeaturestoresRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#streamingReadFeatureValues}. + * @param error Error, if any + * @param [response] ReadFeatureValuesResponse */ - public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): Promise; + type StreamingReadFeatureValuesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) => void; + } + + /** Properties of a ReadFeatureValuesRequest. */ + interface IReadFeatureValuesRequest { + + /** ReadFeatureValuesRequest entityType */ + entityType?: (string|null); + + /** ReadFeatureValuesRequest entityId */ + entityId?: (string|null); + + /** ReadFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + } + + /** Represents a ReadFeatureValuesRequest. */ + class ReadFeatureValuesRequest implements IReadFeatureValuesRequest { /** - * Calls UpdateFeaturestore. - * @param request UpdateFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Constructs a new ReadFeatureValuesRequest. + * @param [properties] Properties to set */ - public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestoreCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest); + + /** ReadFeatureValuesRequest entityType. */ + public entityType: string; + + /** ReadFeatureValuesRequest entityId. */ + public entityId: string; + + /** ReadFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); /** - * Calls UpdateFeaturestore. - * @param request UpdateFeaturestoreRequest message or plain object - * @returns Promise + * Creates a new ReadFeatureValuesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadFeatureValuesRequest instance */ - public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Calls DeleteFeaturestore. - * @param request DeleteFeaturestoreRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. + * @param message ReadFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestoreCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteFeaturestore. - * @param request DeleteFeaturestoreRequest message or plain object - * @returns Promise + * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. + * @param message ReadFeatureValuesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityTypeCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Calls CreateEntityType. - * @param request CreateEntityTypeRequest message or plain object - * @returns Promise + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadFeatureValuesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType + * Verifies a ReadFeatureValuesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityTypeCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetEntityType. - * @param request GetEntityTypeRequest message or plain object - * @returns Promise + * Creates a ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadFeatureValuesRequest */ - public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ReadFeatureValuesRequest + * @param [options] Conversion options + * @returns Plain object */ - public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypesCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListEntityTypes. - * @param request ListEntityTypesRequest message or plain object - * @returns Promise + * Converts this ReadFeatureValuesRequest to JSON. + * @returns JSON object */ - public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): Promise; + public toJSON(): { [k: string]: any }; + } - /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and EntityType - */ - public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityTypeCallback): void; + /** Properties of a ReadFeatureValuesResponse. */ + interface IReadFeatureValuesResponse { - /** - * Calls UpdateEntityType. - * @param request UpdateEntityTypeRequest message or plain object - * @returns Promise - */ - public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): Promise; + /** ReadFeatureValuesResponse header */ + header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); - /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteEntityTypeCallback): void; + /** ReadFeatureValuesResponse entityView */ + entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); + } - /** - * Calls DeleteEntityType. - * @param request DeleteEntityTypeRequest message or plain object - * @returns Promise - */ - public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): Promise; + /** Represents a ReadFeatureValuesResponse. */ + class ReadFeatureValuesResponse implements IReadFeatureValuesResponse { /** - * Calls CreateFeature. - * @param request CreateFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Constructs a new ReadFeatureValuesResponse. + * @param [properties] Properties to set */ - public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeatureCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse); - /** - * Calls CreateFeature. - * @param request CreateFeatureRequest message or plain object - * @returns Promise - */ - public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): Promise; + /** ReadFeatureValuesResponse header. */ + public header?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null); - /** - * Calls BatchCreateFeatures. - * @param request BatchCreateFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeaturesCallback): void; + /** ReadFeatureValuesResponse entityView. */ + public entityView?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null); /** - * Calls BatchCreateFeatures. - * @param request BatchCreateFeaturesRequest message or plain object - * @returns Promise + * Creates a new ReadFeatureValuesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ReadFeatureValuesResponse instance */ - public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): Promise; + public static create(properties?: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Calls GetFeature. - * @param request GetFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Feature + * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. + * @param message ReadFeatureValuesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeatureCallback): void; + public static encode(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetFeature. - * @param request GetFeatureRequest message or plain object - * @returns Promise + * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. + * @param message ReadFeatureValuesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): Promise; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls ListFeatures. - * @param request ListFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListFeaturesResponse + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ReadFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturesCallback): void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Calls ListFeatures. - * @param request ListFeaturesRequest message or plain object - * @returns Promise + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ReadFeatureValuesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): Promise; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Calls UpdateFeature. - * @param request UpdateFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Feature + * Verifies a ReadFeatureValuesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeatureCallback): void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateFeature. - * @param request UpdateFeatureRequest message or plain object - * @returns Promise + * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ReadFeatureValuesResponse */ - public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): Promise; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse; /** - * Calls DeleteFeature. - * @param request DeleteFeatureRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ReadFeatureValuesResponse + * @param [options] Conversion options + * @returns Plain object */ - public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureCallback): void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteFeature. - * @param request DeleteFeatureRequest message or plain object - * @returns Promise + * Converts this ReadFeatureValuesResponse to JSON. + * @returns JSON object */ - public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): Promise; + public toJSON(): { [k: string]: any }; + } - /** - * Calls ImportFeatureValues. - * @param request ImportFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValuesCallback): void; + namespace ReadFeatureValuesResponse { - /** - * Calls ImportFeatureValues. - * @param request ImportFeatureValuesRequest message or plain object - * @returns Promise - */ - public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): Promise; + /** Properties of a FeatureDescriptor. */ + interface IFeatureDescriptor { - /** - * Calls BatchReadFeatureValues. - * @param request BatchReadFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValuesCallback): void; + /** FeatureDescriptor id */ + id?: (string|null); + } - /** - * Calls BatchReadFeatureValues. - * @param request BatchReadFeatureValuesRequest message or plain object - * @returns Promise - */ - public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): Promise; + /** Represents a FeatureDescriptor. */ + class FeatureDescriptor implements IFeatureDescriptor { - /** - * Calls ExportFeatureValues. - * @param request ExportFeatureValuesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValuesCallback): void; + /** + * Constructs a new FeatureDescriptor. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor); - /** - * Calls ExportFeatureValues. - * @param request ExportFeatureValuesRequest message or plain object - * @returns Promise - */ - public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): Promise; + /** FeatureDescriptor id. */ + public id: string; - /** - * Calls SearchFeatures. - * @param request SearchFeaturesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchFeaturesResponse - */ - public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeaturesCallback): void; + /** + * Creates a new FeatureDescriptor instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureDescriptor instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; - /** - * Calls SearchFeatures. - * @param request SearchFeaturesRequest message or plain object - * @returns Promise - */ - public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): Promise; - } + /** + * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @param message FeatureDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; - namespace FeaturestoreService { + /** + * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @param message FeatureDescriptor message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createFeaturestore}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getFeaturestore}. - * @param error Error, if any - * @param [response] Featurestore - */ - type GetFeaturestoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Featurestore) => void; + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listFeaturestores}. - * @param error Error, if any - * @param [response] ListFeaturestoresResponse - */ - type ListFeaturestoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) => void; + /** + * Verifies a FeatureDescriptor message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateFeaturestore}. - * @param error Error, if any - * @param [response] Operation - */ - type UpdateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Creates a FeatureDescriptor message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureDescriptor + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteFeaturestore}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. + * @param message FeatureDescriptor + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createEntityType}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Converts this FeatureDescriptor to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getEntityType}. - * @param error Error, if any - * @param [response] EntityType - */ - type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; + /** Properties of a Header. */ + interface IHeader { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listEntityTypes}. - * @param error Error, if any - * @param [response] ListEntityTypesResponse - */ - type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) => void; + /** Header entityType */ + entityType?: (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateEntityType}. - * @param error Error, if any - * @param [response] EntityType - */ - type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; + /** Header featureDescriptors */ + featureDescriptors?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]|null); + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteEntityType}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Represents a Header. */ + class Header implements IHeader { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createFeature}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Constructs a new Header. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#batchCreateFeatures}. - * @param error Error, if any - * @param [response] Operation - */ - type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Header entityType. */ + public entityType: string; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getFeature}. - * @param error Error, if any - * @param [response] Feature - */ - type GetFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; + /** Header featureDescriptors. */ + public featureDescriptors: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor[]; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listFeatures}. - * @param error Error, if any - * @param [response] ListFeaturesResponse - */ - type ListFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturesResponse) => void; + /** + * Creates a new Header instance using the specified properties. + * @param [properties] Properties to set + * @returns Header instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateFeature}. - * @param error Error, if any - * @param [response] Feature - */ - type UpdateFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; + /** + * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteFeature}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @param message Header message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#importFeatureValues}. - * @param error Error, if any - * @param [response] Operation - */ - type ImportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Decodes a Header message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#batchReadFeatureValues}. - * @param error Error, if any - * @param [response] Operation - */ - type BatchReadFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#exportFeatureValues}. - * @param error Error, if any - * @param [response] Operation - */ - type ExportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Verifies a Header message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#searchFeatures}. - * @param error Error, if any - * @param [response] SearchFeaturesResponse - */ - type SearchFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) => void; - } + /** + * Creates a Header message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Header + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header; - /** Properties of a CreateFeaturestoreRequest. */ - interface ICreateFeaturestoreRequest { + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @param message Header + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CreateFeaturestoreRequest parent */ - parent?: (string|null); + /** + * Converts this Header to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** CreateFeaturestoreRequest featurestore */ - featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** Properties of an EntityView. */ + interface IEntityView { - /** CreateFeaturestoreRequest featurestoreId */ - featurestoreId?: (string|null); - } + /** EntityView entityId */ + entityId?: (string|null); - /** Represents a CreateFeaturestoreRequest. */ - class CreateFeaturestoreRequest implements ICreateFeaturestoreRequest { + /** EntityView data */ + data?: (google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]|null); + } - /** - * Constructs a new CreateFeaturestoreRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest); + /** Represents an EntityView. */ + class EntityView implements IEntityView { - /** CreateFeaturestoreRequest parent. */ - public parent: string; + /** + * Constructs a new EntityView. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView); - /** CreateFeaturestoreRequest featurestore. */ - public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** EntityView entityId. */ + public entityId: string; - /** CreateFeaturestoreRequest featurestoreId. */ - public featurestoreId: string; + /** EntityView data. */ + public data: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData[]; - /** - * Creates a new CreateFeaturestoreRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateFeaturestoreRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; + /** + * Creates a new EntityView instance using the specified properties. + * @param [properties] Properties to set + * @returns EntityView instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; - /** - * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. - * @param message CreateFeaturestoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @param message EntityView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. - * @param message CreateFeaturestoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @param message EntityView message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateFeaturestoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; + /** + * Decodes an EntityView message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EntityView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; - /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateFeaturestoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; + /** + * Decodes an EntityView message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EntityView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; - /** - * Verifies a CreateFeaturestoreRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies an EntityView message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateFeaturestoreRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; + /** + * Creates an EntityView message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EntityView + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView; - /** - * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. - * @param message CreateFeaturestoreRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an EntityView message. Also converts values to other types if specified. + * @param message EntityView + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this CreateFeaturestoreRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this EntityView to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Properties of a GetFeaturestoreRequest. */ - interface IGetFeaturestoreRequest { + namespace EntityView { - /** GetFeaturestoreRequest name */ - name?: (string|null); - } + /** Properties of a Data. */ + interface IData { - /** Represents a GetFeaturestoreRequest. */ - class GetFeaturestoreRequest implements IGetFeaturestoreRequest { + /** Data value */ + value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); - /** - * Constructs a new GetFeaturestoreRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest); + /** Data values */ + values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); + } - /** GetFeaturestoreRequest name. */ - public name: string; + /** Represents a Data. */ + class Data implements IData { - /** - * Creates a new GetFeaturestoreRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetFeaturestoreRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; + /** + * Constructs a new Data. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData); - /** - * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. - * @param message GetFeaturestoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Data value. */ + public value?: (google.cloud.aiplatform.v1beta1.IFeatureValue|null); - /** - * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. - * @param message GetFeaturestoreRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** Data values. */ + public values?: (google.cloud.aiplatform.v1beta1.IFeatureValueList|null); - /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetFeaturestoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; + /** Data data. */ + public data?: ("value"|"values"); - /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetFeaturestoreRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; + /** + * Creates a new Data instance using the specified properties. + * @param [properties] Properties to set + * @returns Data instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - /** - * Verifies a GetFeaturestoreRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @param message Data message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetFeaturestoreRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; + /** + * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @param message Data message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. - * @param message GetFeaturestoreRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Decodes a Data message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Data + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - /** - * Converts this GetFeaturestoreRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a Data message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Data + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - /** Properties of a ListFeaturestoresRequest. */ - interface IListFeaturestoresRequest { + /** + * Verifies a Data message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ListFeaturestoresRequest parent */ - parent?: (string|null); + /** + * Creates a Data message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Data + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data; - /** ListFeaturestoresRequest filter */ - filter?: (string|null); + /** + * Creates a plain object from a Data message. Also converts values to other types if specified. + * @param message Data + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ListFeaturestoresRequest pageSize */ - pageSize?: (number|null); + /** + * Converts this Data to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + } - /** ListFeaturestoresRequest pageToken */ - pageToken?: (string|null); + /** Properties of a StreamingReadFeatureValuesRequest. */ + interface IStreamingReadFeatureValuesRequest { - /** ListFeaturestoresRequest orderBy */ - orderBy?: (string|null); + /** StreamingReadFeatureValuesRequest entityType */ + entityType?: (string|null); - /** ListFeaturestoresRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** StreamingReadFeatureValuesRequest entityIds */ + entityIds?: (string[]|null); + + /** StreamingReadFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); } - /** Represents a ListFeaturestoresRequest. */ - class ListFeaturestoresRequest implements IListFeaturestoresRequest { + /** Represents a StreamingReadFeatureValuesRequest. */ + class StreamingReadFeatureValuesRequest implements IStreamingReadFeatureValuesRequest { /** - * Constructs a new ListFeaturestoresRequest. + * Constructs a new StreamingReadFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest); - - /** ListFeaturestoresRequest parent. */ - public parent: string; - - /** ListFeaturestoresRequest filter. */ - public filter: string; - - /** ListFeaturestoresRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest); - /** ListFeaturestoresRequest pageToken. */ - public pageToken: string; + /** StreamingReadFeatureValuesRequest entityType. */ + public entityType: string; - /** ListFeaturestoresRequest orderBy. */ - public orderBy: string; + /** StreamingReadFeatureValuesRequest entityIds. */ + public entityIds: string[]; - /** ListFeaturestoresRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** StreamingReadFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); /** - * Creates a new ListFeaturestoresRequest instance using the specified properties. + * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturestoresRequest instance + * @returns StreamingReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. - * @param message ListFeaturestoresRequest message or plain object to encode + * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * @param message StreamingReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. - * @param message ListFeaturestoresRequest message or plain object to encode + * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * @param message StreamingReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturestoresRequest + * @returns StreamingReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturestoresRequest + * @returns StreamingReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Verifies a ListFeaturestoresRequest message. + * Verifies a StreamingReadFeatureValuesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturestoresRequest + * @returns StreamingReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest; /** - * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. - * @param message ListFeaturestoresRequest + * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message StreamingReadFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturestoresRequest to JSON. + * Converts this StreamingReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListFeaturestoresResponse. */ - interface IListFeaturestoresResponse { + /** Properties of a FeatureValue. */ + interface IFeatureValue { - /** ListFeaturestoresResponse featurestores */ - featurestores?: (google.cloud.aiplatform.v1beta1.IFeaturestore[]|null); + /** FeatureValue boolValue */ + boolValue?: (boolean|null); - /** ListFeaturestoresResponse nextPageToken */ - nextPageToken?: (string|null); + /** FeatureValue doubleValue */ + doubleValue?: (number|null); + + /** FeatureValue int64Value */ + int64Value?: (number|Long|string|null); + + /** FeatureValue stringValue */ + stringValue?: (string|null); + + /** FeatureValue boolArrayValue */ + boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); + + /** FeatureValue doubleArrayValue */ + doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); + + /** FeatureValue int64ArrayValue */ + int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); + + /** FeatureValue stringArrayValue */ + stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + + /** FeatureValue bytesValue */ + bytesValue?: (Uint8Array|string|null); + + /** FeatureValue metadata */ + metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); } - /** Represents a ListFeaturestoresResponse. */ - class ListFeaturestoresResponse implements IListFeaturestoresResponse { + /** Represents a FeatureValue. */ + class FeatureValue implements IFeatureValue { /** - * Constructs a new ListFeaturestoresResponse. + * Constructs a new FeatureValue. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue); - /** ListFeaturestoresResponse featurestores. */ - public featurestores: google.cloud.aiplatform.v1beta1.IFeaturestore[]; + /** FeatureValue boolValue. */ + public boolValue?: (boolean|null); - /** ListFeaturestoresResponse nextPageToken. */ - public nextPageToken: string; + /** FeatureValue doubleValue. */ + public doubleValue?: (number|null); + + /** FeatureValue int64Value. */ + public int64Value?: (number|Long|string|null); + + /** FeatureValue stringValue. */ + public stringValue?: (string|null); + + /** FeatureValue boolArrayValue. */ + public boolArrayValue?: (google.cloud.aiplatform.v1beta1.IBoolArray|null); + + /** FeatureValue doubleArrayValue. */ + public doubleArrayValue?: (google.cloud.aiplatform.v1beta1.IDoubleArray|null); + + /** FeatureValue int64ArrayValue. */ + public int64ArrayValue?: (google.cloud.aiplatform.v1beta1.IInt64Array|null); + + /** FeatureValue stringArrayValue. */ + public stringArrayValue?: (google.cloud.aiplatform.v1beta1.IStringArray|null); + + /** FeatureValue bytesValue. */ + public bytesValue?: (Uint8Array|string|null); + + /** FeatureValue metadata. */ + public metadata?: (google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null); + + /** FeatureValue value. */ + public value?: ("boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"); /** - * Creates a new ListFeaturestoresResponse instance using the specified properties. + * Creates a new FeatureValue instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturestoresResponse instance + * @returns FeatureValue instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValue): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. - * @param message ListFeaturestoresResponse message or plain object to encode + * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. + * @param message FeatureValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. - * @param message ListFeaturestoresResponse message or plain object to encode + * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. + * @param message FeatureValue message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValue, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. + * Decodes a FeatureValue message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturestoresResponse + * @returns FeatureValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. + * Decodes a FeatureValue message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturestoresResponse + * @returns FeatureValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Verifies a ListFeaturestoresResponse message. + * Verifies a FeatureValue message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValue message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturestoresResponse + * @returns FeatureValue */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue; /** - * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. - * @param message ListFeaturestoresResponse + * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. + * @param message FeatureValue * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturestoresResponse to JSON. + * Converts this FeatureValue to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateFeaturestoreRequest. */ - interface IUpdateFeaturestoreRequest { + namespace FeatureValue { - /** UpdateFeaturestoreRequest featurestore */ - featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + /** Properties of a Metadata. */ + interface IMetadata { - /** UpdateFeaturestoreRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Metadata generateTime */ + generateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents a Metadata. */ + class Metadata implements IMetadata { + + /** + * Constructs a new Metadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata); + + /** Metadata generateTime. */ + public generateTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new Metadata instance using the specified properties. + * @param [properties] Properties to set + * @returns Metadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. + * @param message Metadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + + /** + * Decodes a Metadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + + /** + * Verifies a Metadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Metadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValue.Metadata; + + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @param message Metadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValue.Metadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents an UpdateFeaturestoreRequest. */ - class UpdateFeaturestoreRequest implements IUpdateFeaturestoreRequest { + /** Properties of a FeatureValueList. */ + interface IFeatureValueList { + + /** FeatureValueList values */ + values?: (google.cloud.aiplatform.v1beta1.IFeatureValue[]|null); + } + + /** Represents a FeatureValueList. */ + class FeatureValueList implements IFeatureValueList { /** - * Constructs a new UpdateFeaturestoreRequest. + * Constructs a new FeatureValueList. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest); - - /** UpdateFeaturestoreRequest featurestore. */ - public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList); - /** UpdateFeaturestoreRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** FeatureValueList values. */ + public values: google.cloud.aiplatform.v1beta1.IFeatureValue[]; /** - * Creates a new UpdateFeaturestoreRequest instance using the specified properties. + * Creates a new FeatureValueList instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFeaturestoreRequest instance + * @returns FeatureValueList instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueList): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. - * @param message UpdateFeaturestoreRequest message or plain object to encode + * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. + * @param message FeatureValueList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. - * @param message UpdateFeaturestoreRequest message or plain object to encode + * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. + * @param message FeatureValueList message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueList, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a FeatureValueList message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFeaturestoreRequest + * @returns FeatureValueList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFeaturestoreRequest + * @returns FeatureValueList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Verifies an UpdateFeaturestoreRequest message. + * Verifies a FeatureValueList message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFeaturestoreRequest + * @returns FeatureValueList */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueList; /** - * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. - * @param message UpdateFeaturestoreRequest + * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. + * @param message FeatureValueList * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueList, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFeaturestoreRequest to JSON. + * Converts this FeatureValueList to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteFeaturestoreRequest. */ - interface IDeleteFeaturestoreRequest { - - /** DeleteFeaturestoreRequest name */ - name?: (string|null); + /** Properties of a BoolArray. */ + interface IBoolArray { - /** DeleteFeaturestoreRequest force */ - force?: (boolean|null); + /** BoolArray values */ + values?: (boolean[]|null); } - /** Represents a DeleteFeaturestoreRequest. */ - class DeleteFeaturestoreRequest implements IDeleteFeaturestoreRequest { + /** Represents a BoolArray. */ + class BoolArray implements IBoolArray { /** - * Constructs a new DeleteFeaturestoreRequest. + * Constructs a new BoolArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest); - - /** DeleteFeaturestoreRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBoolArray); - /** DeleteFeaturestoreRequest force. */ - public force: boolean; + /** BoolArray values. */ + public values: boolean[]; /** - * Creates a new DeleteFeaturestoreRequest instance using the specified properties. + * Creates a new BoolArray instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFeaturestoreRequest instance + * @returns BoolArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBoolArray): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. - * @param message DeleteFeaturestoreRequest message or plain object to encode + * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. + * @param message BoolArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. - * @param message DeleteFeaturestoreRequest message or plain object to encode + * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. + * @param message BoolArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBoolArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. + * Decodes a BoolArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFeaturestoreRequest + * @returns BoolArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a BoolArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFeaturestoreRequest + * @returns BoolArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Verifies a DeleteFeaturestoreRequest message. + * Verifies a BoolArray message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BoolArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFeaturestoreRequest + * @returns BoolArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BoolArray; /** - * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. - * @param message DeleteFeaturestoreRequest + * Creates a plain object from a BoolArray message. Also converts values to other types if specified. + * @param message BoolArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BoolArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFeaturestoreRequest to JSON. + * Converts this BoolArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportFeatureValuesRequest. */ - interface IImportFeatureValuesRequest { - - /** ImportFeatureValuesRequest avroSource */ - avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); - - /** ImportFeatureValuesRequest bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** ImportFeatureValuesRequest csvSource */ - csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** ImportFeatureValuesRequest featureTimeField */ - featureTimeField?: (string|null); - - /** ImportFeatureValuesRequest featureTime */ - featureTime?: (google.protobuf.ITimestamp|null); - - /** ImportFeatureValuesRequest entityType */ - entityType?: (string|null); - - /** ImportFeatureValuesRequest entityIdField */ - entityIdField?: (string|null); - - /** ImportFeatureValuesRequest featureSpecs */ - featureSpecs?: (google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]|null); - - /** ImportFeatureValuesRequest disableOnlineServing */ - disableOnlineServing?: (boolean|null); - - /** ImportFeatureValuesRequest workerCount */ - workerCount?: (number|null); + /** Properties of a DoubleArray. */ + interface IDoubleArray { - /** ImportFeatureValuesRequest disableIngestionAnalysis */ - disableIngestionAnalysis?: (boolean|null); + /** DoubleArray values */ + values?: (number[]|null); } - /** Represents an ImportFeatureValuesRequest. */ - class ImportFeatureValuesRequest implements IImportFeatureValuesRequest { + /** Represents a DoubleArray. */ + class DoubleArray implements IDoubleArray { /** - * Constructs a new ImportFeatureValuesRequest. + * Constructs a new DoubleArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest); - - /** ImportFeatureValuesRequest avroSource. */ - public avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); - - /** ImportFeatureValuesRequest bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** ImportFeatureValuesRequest csvSource. */ - public csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** ImportFeatureValuesRequest featureTimeField. */ - public featureTimeField?: (string|null); - - /** ImportFeatureValuesRequest featureTime. */ - public featureTime?: (google.protobuf.ITimestamp|null); - - /** ImportFeatureValuesRequest entityType. */ - public entityType: string; - - /** ImportFeatureValuesRequest entityIdField. */ - public entityIdField: string; - - /** ImportFeatureValuesRequest featureSpecs. */ - public featureSpecs: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]; - - /** ImportFeatureValuesRequest disableOnlineServing. */ - public disableOnlineServing: boolean; - - /** ImportFeatureValuesRequest workerCount. */ - public workerCount: number; - - /** ImportFeatureValuesRequest disableIngestionAnalysis. */ - public disableIngestionAnalysis: boolean; - - /** ImportFeatureValuesRequest source. */ - public source?: ("avroSource"|"bigquerySource"|"csvSource"); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray); - /** ImportFeatureValuesRequest featureTimeSource. */ - public featureTimeSource?: ("featureTimeField"|"featureTime"); + /** DoubleArray values. */ + public values: number[]; /** - * Creates a new ImportFeatureValuesRequest instance using the specified properties. + * Creates a new DoubleArray instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesRequest instance + * @returns DoubleArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDoubleArray): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. - * @param message ImportFeatureValuesRequest message or plain object to encode + * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. + * @param message DoubleArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. - * @param message ImportFeatureValuesRequest message or plain object to encode + * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. + * @param message DoubleArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDoubleArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. + * Decodes a DoubleArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesRequest + * @returns DoubleArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a DoubleArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesRequest + * @returns DoubleArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Verifies an ImportFeatureValuesRequest message. + * Verifies a DoubleArray message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DoubleArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFeatureValuesRequest + * @returns DoubleArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DoubleArray; /** - * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ImportFeatureValuesRequest + * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. + * @param message DoubleArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DoubleArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesRequest to JSON. + * Converts this DoubleArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ImportFeatureValuesRequest { - - /** Properties of a FeatureSpec. */ - interface IFeatureSpec { - - /** FeatureSpec id */ - id?: (string|null); - - /** FeatureSpec sourceField */ - sourceField?: (string|null); - } - - /** Represents a FeatureSpec. */ - class FeatureSpec implements IFeatureSpec { - - /** - * Constructs a new FeatureSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec); - - /** FeatureSpec id. */ - public id: string; - - /** FeatureSpec sourceField. */ - public sourceField: string; - - /** - * Creates a new FeatureSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. - * @param message FeatureSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. - * @param message FeatureSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Verifies a FeatureSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeatureSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - - /** - * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. - * @param message FeatureSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of an ImportFeatureValuesResponse. */ - interface IImportFeatureValuesResponse { - - /** ImportFeatureValuesResponse importedEntityCount */ - importedEntityCount?: (number|Long|string|null); - - /** ImportFeatureValuesResponse importedFeatureValueCount */ - importedFeatureValueCount?: (number|Long|string|null); + /** Properties of an Int64Array. */ + interface IInt64Array { - /** ImportFeatureValuesResponse invalidRowCount */ - invalidRowCount?: (number|Long|string|null); + /** Int64Array values */ + values?: ((number|Long|string)[]|null); } - /** Represents an ImportFeatureValuesResponse. */ - class ImportFeatureValuesResponse implements IImportFeatureValuesResponse { + /** Represents an Int64Array. */ + class Int64Array implements IInt64Array { /** - * Constructs a new ImportFeatureValuesResponse. + * Constructs a new Int64Array. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse); - - /** ImportFeatureValuesResponse importedEntityCount. */ - public importedEntityCount: (number|Long|string); - - /** ImportFeatureValuesResponse importedFeatureValueCount. */ - public importedFeatureValueCount: (number|Long|string); + constructor(properties?: google.cloud.aiplatform.v1beta1.IInt64Array); - /** ImportFeatureValuesResponse invalidRowCount. */ - public invalidRowCount: (number|Long|string); + /** Int64Array values. */ + public values: (number|Long|string)[]; /** - * Creates a new ImportFeatureValuesResponse instance using the specified properties. + * Creates a new Int64Array instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesResponse instance + * @returns Int64Array instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IInt64Array): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. - * @param message ImportFeatureValuesResponse message or plain object to encode + * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. + * @param message Int64Array message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. - * @param message ImportFeatureValuesResponse message or plain object to encode + * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. + * @param message Int64Array message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IInt64Array, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. + * Decodes an Int64Array message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesResponse + * @returns Int64Array * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes an Int64Array message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesResponse + * @returns Int64Array * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Verifies an ImportFeatureValuesResponse message. + * Verifies an Int64Array message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFeatureValuesResponse + * @returns Int64Array */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Int64Array; /** - * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ImportFeatureValuesResponse + * Creates a plain object from an Int64Array message. Also converts values to other types if specified. + * @param message Int64Array * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Int64Array, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesResponse to JSON. + * Converts this Int64Array to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchReadFeatureValuesRequest. */ - interface IBatchReadFeatureValuesRequest { - - /** BatchReadFeatureValuesRequest csvReadInstances */ - csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** BatchReadFeatureValuesRequest bigqueryReadInstances */ - bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** BatchReadFeatureValuesRequest featurestore */ - featurestore?: (string|null); - - /** BatchReadFeatureValuesRequest destination */ - destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - - /** BatchReadFeatureValuesRequest passThroughFields */ - passThroughFields?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]|null); + /** Properties of a StringArray. */ + interface IStringArray { - /** BatchReadFeatureValuesRequest entityTypeSpecs */ - entityTypeSpecs?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]|null); + /** StringArray values */ + values?: (string[]|null); } - /** Represents a BatchReadFeatureValuesRequest. */ - class BatchReadFeatureValuesRequest implements IBatchReadFeatureValuesRequest { + /** Represents a StringArray. */ + class StringArray implements IStringArray { /** - * Constructs a new BatchReadFeatureValuesRequest. + * Constructs a new StringArray. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest); - - /** BatchReadFeatureValuesRequest csvReadInstances. */ - public csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - - /** BatchReadFeatureValuesRequest bigqueryReadInstances. */ - public bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - - /** BatchReadFeatureValuesRequest featurestore. */ - public featurestore: string; - - /** BatchReadFeatureValuesRequest destination. */ - public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - - /** BatchReadFeatureValuesRequest passThroughFields. */ - public passThroughFields: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]; - - /** BatchReadFeatureValuesRequest entityTypeSpecs. */ - public entityTypeSpecs: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IStringArray); - /** BatchReadFeatureValuesRequest readOption. */ - public readOption?: ("csvReadInstances"|"bigqueryReadInstances"); + /** StringArray values. */ + public values: string[]; /** - * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. + * Creates a new StringArray instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesRequest instance + * @returns StringArray instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStringArray): google.cloud.aiplatform.v1beta1.StringArray; /** - * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. - * @param message BatchReadFeatureValuesRequest message or plain object to encode + * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. + * @param message StringArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. - * @param message BatchReadFeatureValuesRequest message or plain object to encode + * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. + * @param message StringArray message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStringArray, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a StringArray message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesRequest + * @returns StringArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StringArray; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a StringArray message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesRequest + * @returns StringArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StringArray; /** - * Verifies a BatchReadFeatureValuesRequest message. + * Verifies a StringArray message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StringArray message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesRequest + * @returns StringArray */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StringArray; /** - * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesRequest + * Creates a plain object from a StringArray message. Also converts values to other types if specified. + * @param message StringArray * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StringArray, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesRequest to JSON. + * Converts this StringArray to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace BatchReadFeatureValuesRequest { - - /** Properties of a PassThroughField. */ - interface IPassThroughField { - - /** PassThroughField fieldName */ - fieldName?: (string|null); - } - - /** Represents a PassThroughField. */ - class PassThroughField implements IPassThroughField { - - /** - * Constructs a new PassThroughField. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField); - - /** PassThroughField fieldName. */ - public fieldName: string; - - /** - * Creates a new PassThroughField instance using the specified properties. - * @param [properties] Properties to set - * @returns PassThroughField instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. - * @param message PassThroughField message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. - * @param message PassThroughField message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a PassThroughField message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PassThroughField - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Decodes a PassThroughField message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PassThroughField - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Verifies a PassThroughField message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PassThroughField - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - - /** - * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. - * @param message PassThroughField - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this PassThroughField to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of an EntityTypeSpec. */ - interface IEntityTypeSpec { - - /** EntityTypeSpec entityTypeId */ - entityTypeId?: (string|null); - - /** EntityTypeSpec featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - - /** EntityTypeSpec settings */ - settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); - } - - /** Represents an EntityTypeSpec. */ - class EntityTypeSpec implements IEntityTypeSpec { - - /** - * Constructs a new EntityTypeSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec); - - /** EntityTypeSpec entityTypeId. */ - public entityTypeId: string; - - /** EntityTypeSpec featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - - /** EntityTypeSpec settings. */ - public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; - - /** - * Creates a new EntityTypeSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns EntityTypeSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @param message EntityTypeSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @param message EntityTypeSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EntityTypeSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EntityTypeSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Verifies an EntityTypeSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EntityTypeSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - - /** - * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. - * @param message EntityTypeSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EntityTypeSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of an ExportFeatureValuesRequest. */ - interface IExportFeatureValuesRequest { - - /** ExportFeatureValuesRequest snapshotExport */ - snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - - /** ExportFeatureValuesRequest fullExport */ - fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); - - /** ExportFeatureValuesRequest entityType */ - entityType?: (string|null); - - /** ExportFeatureValuesRequest destination */ - destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - - /** ExportFeatureValuesRequest featureSelector */ - featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** Represents a FeaturestoreService */ + class FeaturestoreService extends $protobuf.rpc.Service { - /** ExportFeatureValuesRequest settings */ - settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); - } + /** + * Constructs a new FeaturestoreService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + */ + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - /** Represents an ExportFeatureValuesRequest. */ - class ExportFeatureValuesRequest implements IExportFeatureValuesRequest { + /** + * Creates new FeaturestoreService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. + */ + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): FeaturestoreService; /** - * Constructs a new ExportFeatureValuesRequest. - * @param [properties] Properties to set + * Calls CreateFeaturestore. + * @param request CreateFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest); + public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestoreCallback): void; - /** ExportFeatureValuesRequest snapshotExport. */ - public snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); + /** + * Calls CreateFeaturestore. + * @param request CreateFeaturestoreRequest message or plain object + * @returns Promise + */ + public createFeaturestore(request: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): Promise; - /** ExportFeatureValuesRequest fullExport. */ - public fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); + /** + * Calls GetFeaturestore. + * @param request GetFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Featurestore + */ + public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestoreCallback): void; - /** ExportFeatureValuesRequest entityType. */ - public entityType: string; + /** + * Calls GetFeaturestore. + * @param request GetFeaturestoreRequest message or plain object + * @returns Promise + */ + public getFeaturestore(request: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): Promise; - /** ExportFeatureValuesRequest destination. */ - public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); + /** + * Calls ListFeaturestores. + * @param request ListFeaturestoresRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeaturestoresResponse + */ + public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestoresCallback): void; - /** ExportFeatureValuesRequest featureSelector. */ - public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); + /** + * Calls ListFeaturestores. + * @param request ListFeaturestoresRequest message or plain object + * @returns Promise + */ + public listFeaturestores(request: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): Promise; - /** ExportFeatureValuesRequest settings. */ - public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; + /** + * Calls UpdateFeaturestore. + * @param request UpdateFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestoreCallback): void; - /** ExportFeatureValuesRequest mode. */ - public mode?: ("snapshotExport"|"fullExport"); + /** + * Calls UpdateFeaturestore. + * @param request UpdateFeaturestoreRequest message or plain object + * @returns Promise + */ + public updateFeaturestore(request: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): Promise; /** - * Creates a new ExportFeatureValuesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ExportFeatureValuesRequest instance + * Calls DeleteFeaturestore. + * @param request DeleteFeaturestoreRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestoreCallback): void; /** - * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. - * @param message ExportFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteFeaturestore. + * @param request DeleteFeaturestoreRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteFeaturestore(request: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): Promise; /** - * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. - * @param message ExportFeatureValuesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityTypeCallback): void; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateEntityType. + * @param request CreateEntityTypeRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + public createEntityType(request: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): Promise; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityTypeCallback): void; /** - * Verifies an ExportFeatureValuesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetEntityType. + * @param request GetEntityTypeRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getEntityType(request: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): Promise; /** - * Creates an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExportFeatureValuesRequest + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; + public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypesCallback): void; /** - * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. - * @param message ExportFeatureValuesRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ListEntityTypes. + * @param request ListEntityTypesRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listEntityTypes(request: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): Promise; /** - * Converts this ExportFeatureValuesRequest to JSON. - * @returns JSON object + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and EntityType */ - public toJSON(): { [k: string]: any }; - } + public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityTypeCallback): void; - namespace ExportFeatureValuesRequest { + /** + * Calls UpdateEntityType. + * @param request UpdateEntityTypeRequest message or plain object + * @returns Promise + */ + public updateEntityType(request: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): Promise; - /** Properties of a SnapshotExport. */ - interface ISnapshotExport { + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteEntityTypeCallback): void; - /** SnapshotExport snapshotTime */ - snapshotTime?: (google.protobuf.ITimestamp|null); + /** + * Calls DeleteEntityType. + * @param request DeleteEntityTypeRequest message or plain object + * @returns Promise + */ + public deleteEntityType(request: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): Promise; - /** SnapshotExport startTime */ - startTime?: (google.protobuf.ITimestamp|null); - } + /** + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeatureCallback): void; - /** Represents a SnapshotExport. */ - class SnapshotExport implements ISnapshotExport { + /** + * Calls CreateFeature. + * @param request CreateFeatureRequest message or plain object + * @returns Promise + */ + public createFeature(request: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): Promise; - /** - * Constructs a new SnapshotExport. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport); + /** + * Calls BatchCreateFeatures. + * @param request BatchCreateFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeaturesCallback): void; - /** SnapshotExport snapshotTime. */ - public snapshotTime?: (google.protobuf.ITimestamp|null); + /** + * Calls BatchCreateFeatures. + * @param request BatchCreateFeaturesRequest message or plain object + * @returns Promise + */ + public batchCreateFeatures(request: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): Promise; - /** SnapshotExport startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** + * Calls GetFeature. + * @param request GetFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Feature + */ + public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeatureCallback): void; - /** - * Creates a new SnapshotExport instance using the specified properties. - * @param [properties] Properties to set - * @returns SnapshotExport instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; + /** + * Calls GetFeature. + * @param request GetFeatureRequest message or plain object + * @returns Promise + */ + public getFeature(request: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): Promise; - /** - * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @param message SnapshotExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListFeaturesResponse + */ + public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturesCallback): void; - /** - * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @param message SnapshotExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Calls ListFeatures. + * @param request ListFeaturesRequest message or plain object + * @returns Promise + */ + public listFeatures(request: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): Promise; - /** - * Decodes a SnapshotExport message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns SnapshotExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; + /** + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Feature + */ + public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeatureCallback): void; - /** - * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns SnapshotExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; + /** + * Calls UpdateFeature. + * @param request UpdateFeatureRequest message or plain object + * @returns Promise + */ + public updateFeature(request: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): Promise; - /** - * Verifies a SnapshotExport message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureCallback): void; - /** - * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns SnapshotExport - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; + /** + * Calls DeleteFeature. + * @param request DeleteFeatureRequest message or plain object + * @returns Promise + */ + public deleteFeature(request: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): Promise; - /** - * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. - * @param message SnapshotExport - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Calls ImportFeatureValues. + * @param request ImportFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValuesCallback): void; - /** - * Converts this SnapshotExport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Calls ImportFeatureValues. + * @param request ImportFeatureValuesRequest message or plain object + * @returns Promise + */ + public importFeatureValues(request: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): Promise; - /** Properties of a FullExport. */ - interface IFullExport { + /** + * Calls BatchReadFeatureValues. + * @param request BatchReadFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValuesCallback): void; - /** FullExport startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** + * Calls BatchReadFeatureValues. + * @param request BatchReadFeatureValuesRequest message or plain object + * @returns Promise + */ + public batchReadFeatureValues(request: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): Promise; - /** FullExport endTime */ - endTime?: (google.protobuf.ITimestamp|null); - } + /** + * Calls ExportFeatureValues. + * @param request ExportFeatureValuesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValuesCallback): void; - /** Represents a FullExport. */ - class FullExport implements IFullExport { + /** + * Calls ExportFeatureValues. + * @param request ExportFeatureValuesRequest message or plain object + * @returns Promise + */ + public exportFeatureValues(request: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): Promise; - /** - * Constructs a new FullExport. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport); + /** + * Calls SearchFeatures. + * @param request SearchFeaturesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchFeaturesResponse + */ + public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, callback: google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeaturesCallback): void; - /** FullExport startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** + * Calls SearchFeatures. + * @param request SearchFeaturesRequest message or plain object + * @returns Promise + */ + public searchFeatures(request: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): Promise; + } - /** FullExport endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + namespace FeaturestoreService { - /** - * Creates a new FullExport instance using the specified properties. - * @param [properties] Properties to set - * @returns FullExport instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createFeaturestore}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @param message FullExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getFeaturestore}. + * @param error Error, if any + * @param [response] Featurestore + */ + type GetFeaturestoreCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Featurestore) => void; - /** - * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @param message FullExport message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listFeaturestores}. + * @param error Error, if any + * @param [response] ListFeaturestoresResponse + */ + type ListFeaturestoresCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) => void; - /** - * Decodes a FullExport message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FullExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateFeaturestore}. + * @param error Error, if any + * @param [response] Operation + */ + type UpdateFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Decodes a FullExport message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FullExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteFeaturestore}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteFeaturestoreCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Verifies a FullExport message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createEntityType}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** - * Creates a FullExport message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FullExport - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getEntityType}. + * @param error Error, if any + * @param [response] EntityType + */ + type GetEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; - /** - * Creates a plain object from a FullExport message. Also converts values to other types if specified. - * @param message FullExport - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listEntityTypes}. + * @param error Error, if any + * @param [response] ListEntityTypesResponse + */ + type ListEntityTypesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) => void; - /** - * Converts this FullExport to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateEntityType}. + * @param error Error, if any + * @param [response] EntityType + */ + type UpdateEntityTypeCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.EntityType) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteEntityType}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteEntityTypeCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createFeature}. + * @param error Error, if any + * @param [response] Operation + */ + type CreateFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#batchCreateFeatures}. + * @param error Error, if any + * @param [response] Operation + */ + type BatchCreateFeaturesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getFeature}. + * @param error Error, if any + * @param [response] Feature + */ + type GetFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listFeatures}. + * @param error Error, if any + * @param [response] ListFeaturesResponse + */ + type ListFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListFeaturesResponse) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateFeature}. + * @param error Error, if any + * @param [response] Feature + */ + type UpdateFeatureCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Feature) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteFeature}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteFeatureCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#importFeatureValues}. + * @param error Error, if any + * @param [response] Operation + */ + type ImportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#batchReadFeatureValues}. + * @param error Error, if any + * @param [response] Operation + */ + type BatchReadFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#exportFeatureValues}. + * @param error Error, if any + * @param [response] Operation + */ + type ExportFeatureValuesCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#searchFeatures}. + * @param error Error, if any + * @param [response] SearchFeaturesResponse + */ + type SearchFeaturesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) => void; } - /** Properties of a DestinationFeatureSetting. */ - interface IDestinationFeatureSetting { + /** Properties of a CreateFeaturestoreRequest. */ + interface ICreateFeaturestoreRequest { - /** DestinationFeatureSetting featureId */ - featureId?: (string|null); + /** CreateFeaturestoreRequest parent */ + parent?: (string|null); - /** DestinationFeatureSetting destinationField */ - destinationField?: (string|null); + /** CreateFeaturestoreRequest featurestore */ + featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + + /** CreateFeaturestoreRequest featurestoreId */ + featurestoreId?: (string|null); } - /** Represents a DestinationFeatureSetting. */ - class DestinationFeatureSetting implements IDestinationFeatureSetting { + /** Represents a CreateFeaturestoreRequest. */ + class CreateFeaturestoreRequest implements ICreateFeaturestoreRequest { /** - * Constructs a new DestinationFeatureSetting. + * Constructs a new CreateFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest); - /** DestinationFeatureSetting featureId. */ - public featureId: string; + /** CreateFeaturestoreRequest parent. */ + public parent: string; - /** DestinationFeatureSetting destinationField. */ - public destinationField: string; + /** CreateFeaturestoreRequest featurestore. */ + public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); + + /** CreateFeaturestoreRequest featurestoreId. */ + public featurestoreId: string; /** - * Creates a new DestinationFeatureSetting instance using the specified properties. + * Creates a new CreateFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DestinationFeatureSetting instance + * @returns CreateFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. - * @param message DestinationFeatureSetting message or plain object to encode + * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. + * @param message CreateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. - * @param message DestinationFeatureSetting message or plain object to encode + * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. + * @param message CreateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DestinationFeatureSetting + * @returns CreateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DestinationFeatureSetting + * @returns CreateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Verifies a DestinationFeatureSetting message. + * Verifies a CreateFeaturestoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DestinationFeatureSetting + * @returns CreateFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest; /** - * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. - * @param message DestinationFeatureSetting + * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. + * @param message CreateFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DestinationFeatureSetting to JSON. + * Converts this CreateFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a FeatureValueDestination. */ - interface IFeatureValueDestination { - - /** FeatureValueDestination bigqueryDestination */ - bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** Properties of a GetFeaturestoreRequest. */ + interface IGetFeaturestoreRequest { - /** FeatureValueDestination tfrecordDestination */ - tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); - - /** FeatureValueDestination csvDestination */ - csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); + /** GetFeaturestoreRequest name */ + name?: (string|null); } - /** Represents a FeatureValueDestination. */ - class FeatureValueDestination implements IFeatureValueDestination { + /** Represents a GetFeaturestoreRequest. */ + class GetFeaturestoreRequest implements IGetFeaturestoreRequest { /** - * Constructs a new FeatureValueDestination. + * Constructs a new GetFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination); - - /** FeatureValueDestination bigqueryDestination. */ - public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - - /** FeatureValueDestination tfrecordDestination. */ - public tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); - - /** FeatureValueDestination csvDestination. */ - public csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest); - /** FeatureValueDestination destination. */ - public destination?: ("bigqueryDestination"|"tfrecordDestination"|"csvDestination"); + /** GetFeaturestoreRequest name. */ + public name: string; /** - * Creates a new FeatureValueDestination instance using the specified properties. + * Creates a new GetFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns FeatureValueDestination instance + * @returns GetFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination): google.cloud.aiplatform.v1beta1.FeatureValueDestination; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. - * @param message FeatureValueDestination message or plain object to encode + * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. + * @param message GetFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. - * @param message FeatureValueDestination message or plain object to encode + * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. + * @param message GetFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer. + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns FeatureValueDestination + * @returns GetFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValueDestination; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns FeatureValueDestination + * @returns GetFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValueDestination; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Verifies a FeatureValueDestination message. + * Verifies a GetFeaturestoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a FeatureValueDestination message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns FeatureValueDestination + * @returns GetFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueDestination; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest; /** - * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. - * @param message FeatureValueDestination + * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. + * @param message GetFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this FeatureValueDestination to JSON. + * Converts this GetFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportFeatureValuesResponse. */ - interface IExportFeatureValuesResponse { + /** Properties of a ListFeaturestoresRequest. */ + interface IListFeaturestoresRequest { + + /** ListFeaturestoresRequest parent */ + parent?: (string|null); + + /** ListFeaturestoresRequest filter */ + filter?: (string|null); + + /** ListFeaturestoresRequest pageSize */ + pageSize?: (number|null); + + /** ListFeaturestoresRequest pageToken */ + pageToken?: (string|null); + + /** ListFeaturestoresRequest orderBy */ + orderBy?: (string|null); + + /** ListFeaturestoresRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an ExportFeatureValuesResponse. */ - class ExportFeatureValuesResponse implements IExportFeatureValuesResponse { + /** Represents a ListFeaturestoresRequest. */ + class ListFeaturestoresRequest implements IListFeaturestoresRequest { /** - * Constructs a new ExportFeatureValuesResponse. + * Constructs a new ListFeaturestoresRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest); + + /** ListFeaturestoresRequest parent. */ + public parent: string; + + /** ListFeaturestoresRequest filter. */ + public filter: string; + + /** ListFeaturestoresRequest pageSize. */ + public pageSize: number; + + /** ListFeaturestoresRequest pageToken. */ + public pageToken: string; + + /** ListFeaturestoresRequest orderBy. */ + public orderBy: string; + + /** ListFeaturestoresRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ExportFeatureValuesResponse instance using the specified properties. + * Creates a new ListFeaturestoresRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFeatureValuesResponse instance + * @returns ListFeaturestoresRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. - * @param message ExportFeatureValuesResponse message or plain object to encode + * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. + * @param message ListFeaturestoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. - * @param message ExportFeatureValuesResponse message or plain object to encode + * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. + * @param message ListFeaturestoresRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesResponse + * @returns ListFeaturestoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesResponse + * @returns ListFeaturestoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Verifies an ExportFeatureValuesResponse message. + * Verifies a ListFeaturestoresRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFeatureValuesResponse + * @returns ListFeaturestoresRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest; /** - * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. - * @param message ExportFeatureValuesResponse + * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. + * @param message ListFeaturestoresRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFeatureValuesResponse to JSON. + * Converts this ListFeaturestoresRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchReadFeatureValuesResponse. */ - interface IBatchReadFeatureValuesResponse { + /** Properties of a ListFeaturestoresResponse. */ + interface IListFeaturestoresResponse { + + /** ListFeaturestoresResponse featurestores */ + featurestores?: (google.cloud.aiplatform.v1beta1.IFeaturestore[]|null); + + /** ListFeaturestoresResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a BatchReadFeatureValuesResponse. */ - class BatchReadFeatureValuesResponse implements IBatchReadFeatureValuesResponse { + /** Represents a ListFeaturestoresResponse. */ + class ListFeaturestoresResponse implements IListFeaturestoresResponse { /** - * Constructs a new BatchReadFeatureValuesResponse. + * Constructs a new ListFeaturestoresResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse); + + /** ListFeaturestoresResponse featurestores. */ + public featurestores: google.cloud.aiplatform.v1beta1.IFeaturestore[]; + + /** ListFeaturestoresResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. + * Creates a new ListFeaturestoresResponse instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesResponse instance + * @returns ListFeaturestoresResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @param message BatchReadFeatureValuesResponse message or plain object to encode + * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. + * @param message ListFeaturestoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @param message BatchReadFeatureValuesResponse message or plain object to encode + * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. + * @param message ListFeaturestoresResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesResponse + * @returns ListFeaturestoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesResponse + * @returns ListFeaturestoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Verifies a BatchReadFeatureValuesResponse message. + * Verifies a ListFeaturestoresResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesResponse + * @returns ListFeaturestoresResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse; /** - * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesResponse + * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. + * @param message ListFeaturestoresResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesResponse to JSON. + * Converts this ListFeaturestoresResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateEntityTypeRequest. */ - interface ICreateEntityTypeRequest { - - /** CreateEntityTypeRequest parent */ - parent?: (string|null); + /** Properties of an UpdateFeaturestoreRequest. */ + interface IUpdateFeaturestoreRequest { - /** CreateEntityTypeRequest entityType */ - entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** UpdateFeaturestoreRequest featurestore */ + featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); - /** CreateEntityTypeRequest entityTypeId */ - entityTypeId?: (string|null); + /** UpdateFeaturestoreRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CreateEntityTypeRequest. */ - class CreateEntityTypeRequest implements ICreateEntityTypeRequest { + /** Represents an UpdateFeaturestoreRequest. */ + class UpdateFeaturestoreRequest implements IUpdateFeaturestoreRequest { /** - * Constructs a new CreateEntityTypeRequest. + * Constructs a new UpdateFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest); - - /** CreateEntityTypeRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest); - /** CreateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** UpdateFeaturestoreRequest featurestore. */ + public featurestore?: (google.cloud.aiplatform.v1beta1.IFeaturestore|null); - /** CreateEntityTypeRequest entityTypeId. */ - public entityTypeId: string; + /** UpdateFeaturestoreRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new UpdateFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEntityTypeRequest instance + * @returns UpdateFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. + * @param message UpdateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. - * @param message CreateEntityTypeRequest message or plain object to encode + * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. + * @param message UpdateFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEntityTypeRequest + * @returns UpdateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeRequest + * @returns UpdateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies an UpdateFeaturestoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEntityTypeRequest + * @returns UpdateFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. - * @param message CreateEntityTypeRequest + * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. + * @param message UpdateFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this UpdateFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetEntityTypeRequest. */ - interface IGetEntityTypeRequest { + /** Properties of a DeleteFeaturestoreRequest. */ + interface IDeleteFeaturestoreRequest { - /** GetEntityTypeRequest name */ + /** DeleteFeaturestoreRequest name */ name?: (string|null); + + /** DeleteFeaturestoreRequest force */ + force?: (boolean|null); } - /** Represents a GetEntityTypeRequest. */ - class GetEntityTypeRequest implements IGetEntityTypeRequest { + /** Represents a DeleteFeaturestoreRequest. */ + class DeleteFeaturestoreRequest implements IDeleteFeaturestoreRequest { /** - * Constructs a new GetEntityTypeRequest. + * Constructs a new DeleteFeaturestoreRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest); - /** GetEntityTypeRequest name. */ + /** DeleteFeaturestoreRequest name. */ public name: string; + /** DeleteFeaturestoreRequest force. */ + public force: boolean; + /** - * Creates a new GetEntityTypeRequest instance using the specified properties. + * Creates a new DeleteFeaturestoreRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetEntityTypeRequest instance + * @returns DeleteFeaturestoreRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode + * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. + * @param message DeleteFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. - * @param message GetEntityTypeRequest message or plain object to encode + * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. + * @param message DeleteFeaturestoreRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetEntityTypeRequest + * @returns DeleteFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetEntityTypeRequest + * @returns DeleteFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Verifies a GetEntityTypeRequest message. + * Verifies a DeleteFeaturestoreRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetEntityTypeRequest + * @returns DeleteFeaturestoreRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest; /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. - * @param message GetEntityTypeRequest + * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. + * @param message DeleteFeaturestoreRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetEntityTypeRequest to JSON. + * Converts this DeleteFeaturestoreRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEntityTypesRequest. */ - interface IListEntityTypesRequest { + /** Properties of an ImportFeatureValuesRequest. */ + interface IImportFeatureValuesRequest { - /** ListEntityTypesRequest parent */ - parent?: (string|null); + /** ImportFeatureValuesRequest avroSource */ + avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); - /** ListEntityTypesRequest filter */ - filter?: (string|null); + /** ImportFeatureValuesRequest bigquerySource */ + bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** ListEntityTypesRequest pageSize */ - pageSize?: (number|null); + /** ImportFeatureValuesRequest csvSource */ + csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - /** ListEntityTypesRequest pageToken */ - pageToken?: (string|null); + /** ImportFeatureValuesRequest featureTimeField */ + featureTimeField?: (string|null); - /** ListEntityTypesRequest orderBy */ - orderBy?: (string|null); + /** ImportFeatureValuesRequest featureTime */ + featureTime?: (google.protobuf.ITimestamp|null); - /** ListEntityTypesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ImportFeatureValuesRequest entityType */ + entityType?: (string|null); + + /** ImportFeatureValuesRequest entityIdField */ + entityIdField?: (string|null); + + /** ImportFeatureValuesRequest featureSpecs */ + featureSpecs?: (google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]|null); + + /** ImportFeatureValuesRequest disableOnlineServing */ + disableOnlineServing?: (boolean|null); + + /** ImportFeatureValuesRequest workerCount */ + workerCount?: (number|null); + + /** ImportFeatureValuesRequest disableIngestionAnalysis */ + disableIngestionAnalysis?: (boolean|null); } - /** Represents a ListEntityTypesRequest. */ - class ListEntityTypesRequest implements IListEntityTypesRequest { + /** Represents an ImportFeatureValuesRequest. */ + class ImportFeatureValuesRequest implements IImportFeatureValuesRequest { /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new ImportFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest); - /** ListEntityTypesRequest parent. */ - public parent: string; + /** ImportFeatureValuesRequest avroSource. */ + public avroSource?: (google.cloud.aiplatform.v1beta1.IAvroSource|null); - /** ListEntityTypesRequest filter. */ - public filter: string; + /** ImportFeatureValuesRequest bigquerySource. */ + public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** ListEntityTypesRequest pageSize. */ - public pageSize: number; + /** ImportFeatureValuesRequest csvSource. */ + public csvSource?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - /** ListEntityTypesRequest pageToken. */ - public pageToken: string; + /** ImportFeatureValuesRequest featureTimeField. */ + public featureTimeField?: (string|null); - /** ListEntityTypesRequest orderBy. */ - public orderBy: string; + /** ImportFeatureValuesRequest featureTime. */ + public featureTime?: (google.protobuf.ITimestamp|null); - /** ListEntityTypesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ImportFeatureValuesRequest entityType. */ + public entityType: string; + + /** ImportFeatureValuesRequest entityIdField. */ + public entityIdField: string; + + /** ImportFeatureValuesRequest featureSpecs. */ + public featureSpecs: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec[]; + + /** ImportFeatureValuesRequest disableOnlineServing. */ + public disableOnlineServing: boolean; + + /** ImportFeatureValuesRequest workerCount. */ + public workerCount: number; + + /** ImportFeatureValuesRequest disableIngestionAnalysis. */ + public disableIngestionAnalysis: boolean; + + /** ImportFeatureValuesRequest source. */ + public source?: ("avroSource"|"bigquerySource"|"csvSource"); + + /** ImportFeatureValuesRequest featureTimeSource. */ + public featureTimeSource?: ("featureTimeField"|"featureTime"); /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * Creates a new ImportFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListEntityTypesRequest instance + * @returns ImportFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. + * @param message ImportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. - * @param message ListEntityTypesRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. + * @param message ImportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListEntityTypesRequest + * @returns ImportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListEntityTypesRequest + * @returns ImportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Verifies a ListEntityTypesRequest message. + * Verifies an ImportFeatureValuesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListEntityTypesRequest + * @returns ImportFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. - * @param message ListEntityTypesRequest + * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ImportFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this ImportFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListEntityTypesResponse. */ - interface IListEntityTypesResponse { + namespace ImportFeatureValuesRequest { - /** ListEntityTypesResponse entityTypes */ - entityTypes?: (google.cloud.aiplatform.v1beta1.IEntityType[]|null); + /** Properties of a FeatureSpec. */ + interface IFeatureSpec { - /** ListEntityTypesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** FeatureSpec id */ + id?: (string|null); - /** Represents a ListEntityTypesResponse. */ - class ListEntityTypesResponse implements IListEntityTypesResponse { + /** FeatureSpec sourceField */ + sourceField?: (string|null); + } - /** - * Constructs a new ListEntityTypesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse); + /** Represents a FeatureSpec. */ + class FeatureSpec implements IFeatureSpec { - /** ListEntityTypesResponse entityTypes. */ - public entityTypes: google.cloud.aiplatform.v1beta1.IEntityType[]; + /** + * Constructs a new FeatureSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec); - /** ListEntityTypesResponse nextPageToken. */ - public nextPageToken: string; + /** FeatureSpec id. */ + public id: string; - /** - * Creates a new ListEntityTypesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListEntityTypesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; + /** FeatureSpec sourceField. */ + public sourceField: string; - /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new FeatureSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns FeatureSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. - * @param message ListEntityTypesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @param message FeatureSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListEntityTypesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; + /** + * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @param message FeatureSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListEntityTypesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; + /** + * Decodes a FeatureSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FeatureSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - /** - * Verifies a ListEntityTypesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FeatureSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListEntityTypesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; + /** + * Verifies a FeatureSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. - * @param message ListEntityTypesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a FeatureSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FeatureSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec; - /** - * Converts this ListEntityTypesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. + * @param message FeatureSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FeatureSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of an UpdateEntityTypeRequest. */ - interface IUpdateEntityTypeRequest { + /** Properties of an ImportFeatureValuesResponse. */ + interface IImportFeatureValuesResponse { - /** UpdateEntityTypeRequest entityType */ - entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** ImportFeatureValuesResponse importedEntityCount */ + importedEntityCount?: (number|Long|string|null); - /** UpdateEntityTypeRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** ImportFeatureValuesResponse importedFeatureValueCount */ + importedFeatureValueCount?: (number|Long|string|null); + + /** ImportFeatureValuesResponse invalidRowCount */ + invalidRowCount?: (number|Long|string|null); } - /** Represents an UpdateEntityTypeRequest. */ - class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { + /** Represents an ImportFeatureValuesResponse. */ + class ImportFeatureValuesResponse implements IImportFeatureValuesResponse { /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new ImportFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse); - /** UpdateEntityTypeRequest entityType. */ - public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + /** ImportFeatureValuesResponse importedEntityCount. */ + public importedEntityCount: (number|Long|string); - /** UpdateEntityTypeRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** ImportFeatureValuesResponse importedFeatureValueCount. */ + public importedFeatureValueCount: (number|Long|string); + + /** ImportFeatureValuesResponse invalidRowCount. */ + public invalidRowCount: (number|Long|string); /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateEntityTypeRequest instance + * @returns ImportFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. + * @param message ImportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. - * @param message UpdateEntityTypeRequest message or plain object to encode + * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. + * @param message ImportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateEntityTypeRequest + * @returns ImportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateEntityTypeRequest + * @returns ImportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies an ImportFeatureValuesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateEntityTypeRequest + * @returns ImportFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. - * @param message UpdateEntityTypeRequest + * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ImportFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this ImportFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteEntityTypeRequest. */ - interface IDeleteEntityTypeRequest { - - /** DeleteEntityTypeRequest name */ - name?: (string|null); - - /** DeleteEntityTypeRequest force */ - force?: (boolean|null); - } - - /** Represents a DeleteEntityTypeRequest. */ - class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { - - /** - * Constructs a new DeleteEntityTypeRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest); - - /** DeleteEntityTypeRequest name. */ - public name: string; - - /** DeleteEntityTypeRequest force. */ - public force: boolean; - - /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteEntityTypeRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; + /** Properties of a BatchReadFeatureValuesRequest. */ + interface IBatchReadFeatureValuesRequest { - /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** BatchReadFeatureValuesRequest csvReadInstances */ + csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. - * @param message DeleteEntityTypeRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** BatchReadFeatureValuesRequest bigqueryReadInstances */ + bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteEntityTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; + /** BatchReadFeatureValuesRequest featurestore */ + featurestore?: (string|null); - /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteEntityTypeRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; + /** BatchReadFeatureValuesRequest destination */ + destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - /** - * Verifies a DeleteEntityTypeRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** BatchReadFeatureValuesRequest passThroughFields */ + passThroughFields?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]|null); - /** - * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteEntityTypeRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; + /** BatchReadFeatureValuesRequest entityTypeSpecs */ + entityTypeSpecs?: (google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]|null); + } - /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. - * @param message DeleteEntityTypeRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents a BatchReadFeatureValuesRequest. */ + class BatchReadFeatureValuesRequest implements IBatchReadFeatureValuesRequest { /** - * Converts this DeleteEntityTypeRequest to JSON. - * @returns JSON object + * Constructs a new BatchReadFeatureValuesRequest. + * @param [properties] Properties to set */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateFeatureRequest. */ - interface ICreateFeatureRequest { - - /** CreateFeatureRequest parent */ - parent?: (string|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest); - /** CreateFeatureRequest feature */ - feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** BatchReadFeatureValuesRequest csvReadInstances. */ + public csvReadInstances?: (google.cloud.aiplatform.v1beta1.ICsvSource|null); - /** CreateFeatureRequest featureId */ - featureId?: (string|null); - } + /** BatchReadFeatureValuesRequest bigqueryReadInstances. */ + public bigqueryReadInstances?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); - /** Represents a CreateFeatureRequest. */ - class CreateFeatureRequest implements ICreateFeatureRequest { + /** BatchReadFeatureValuesRequest featurestore. */ + public featurestore: string; - /** - * Constructs a new CreateFeatureRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest); + /** BatchReadFeatureValuesRequest destination. */ + public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - /** CreateFeatureRequest parent. */ - public parent: string; + /** BatchReadFeatureValuesRequest passThroughFields. */ + public passThroughFields: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField[]; - /** CreateFeatureRequest feature. */ - public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + /** BatchReadFeatureValuesRequest entityTypeSpecs. */ + public entityTypeSpecs: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec[]; - /** CreateFeatureRequest featureId. */ - public featureId: string; + /** BatchReadFeatureValuesRequest readOption. */ + public readOption?: ("csvReadInstances"|"bigqueryReadInstances"); /** - * Creates a new CreateFeatureRequest instance using the specified properties. + * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeatureRequest instance + * @returns BatchReadFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; /** - * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. - * @param message CreateFeatureRequest message or plain object to encode + * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. + * @param message BatchReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. - * @param message CreateFeatureRequest message or plain object to encode + * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. + * @param message BatchReadFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeatureRequest + * @returns BatchReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeatureRequest + * @returns BatchReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; /** - * Verifies a CreateFeatureRequest message. + * Verifies a BatchReadFeatureValuesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeatureRequest + * @returns BatchReadFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest; /** - * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. - * @param message CreateFeatureRequest + * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeatureRequest to JSON. + * Converts this BatchReadFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchCreateFeaturesRequest. */ - interface IBatchCreateFeaturesRequest { + namespace BatchReadFeatureValuesRequest { - /** BatchCreateFeaturesRequest parent */ - parent?: (string|null); + /** Properties of a PassThroughField. */ + interface IPassThroughField { - /** BatchCreateFeaturesRequest requests */ - requests?: (google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]|null); - } + /** PassThroughField fieldName */ + fieldName?: (string|null); + } - /** Represents a BatchCreateFeaturesRequest. */ - class BatchCreateFeaturesRequest implements IBatchCreateFeaturesRequest { + /** Represents a PassThroughField. */ + class PassThroughField implements IPassThroughField { - /** - * Constructs a new BatchCreateFeaturesRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest); + /** + * Constructs a new PassThroughField. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField); - /** BatchCreateFeaturesRequest parent. */ - public parent: string; + /** PassThroughField fieldName. */ + public fieldName: string; - /** BatchCreateFeaturesRequest requests. */ - public requests: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]; + /** + * Creates a new PassThroughField instance using the specified properties. + * @param [properties] Properties to set + * @returns PassThroughField instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - /** - * Creates a new BatchCreateFeaturesRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns BatchCreateFeaturesRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; + /** + * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * @param message PassThroughField message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. - * @param message BatchCreateFeaturesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * @param message PassThroughField message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. - * @param message BatchCreateFeaturesRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchCreateFeaturesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; - - /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; - - /** - * Verifies a BatchCreateFeaturesRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchCreateFeaturesRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; - - /** - * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this BatchCreateFeaturesRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a BatchCreateFeaturesResponse. */ - interface IBatchCreateFeaturesResponse { - - /** BatchCreateFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); - } - - /** Represents a BatchCreateFeaturesResponse. */ - class BatchCreateFeaturesResponse implements IBatchCreateFeaturesResponse { - - /** - * Constructs a new BatchCreateFeaturesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse); - - /** BatchCreateFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + /** + * Decodes a PassThroughField message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns PassThroughField + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - /** - * Creates a new BatchCreateFeaturesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns BatchCreateFeaturesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; + /** + * Decodes a PassThroughField message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns PassThroughField + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - /** - * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. - * @param message BatchCreateFeaturesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a PassThroughField message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. - * @param message BatchCreateFeaturesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns PassThroughField + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField; - /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns BatchCreateFeaturesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; + /** + * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. + * @param message PassThroughField + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; + /** + * Converts this PassThroughField to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Verifies a BatchCreateFeaturesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of an EntityTypeSpec. */ + interface IEntityTypeSpec { - /** - * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns BatchCreateFeaturesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; + /** EntityTypeSpec entityTypeId */ + entityTypeId?: (string|null); - /** - * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** EntityTypeSpec featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - /** - * Converts this BatchCreateFeaturesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** EntityTypeSpec settings */ + settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); + } - /** Properties of a GetFeatureRequest. */ - interface IGetFeatureRequest { + /** Represents an EntityTypeSpec. */ + class EntityTypeSpec implements IEntityTypeSpec { - /** GetFeatureRequest name */ - name?: (string|null); - } + /** + * Constructs a new EntityTypeSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec); - /** Represents a GetFeatureRequest. */ - class GetFeatureRequest implements IGetFeatureRequest { + /** EntityTypeSpec entityTypeId. */ + public entityTypeId: string; - /** - * Constructs a new GetFeatureRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest); + /** EntityTypeSpec featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - /** GetFeatureRequest name. */ - public name: string; + /** EntityTypeSpec settings. */ + public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; - /** - * Creates a new GetFeatureRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetFeatureRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): google.cloud.aiplatform.v1beta1.GetFeatureRequest; + /** + * Creates a new EntityTypeSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns EntityTypeSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - /** - * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. - * @param message GetFeatureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @param message EntityTypeSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. - * @param message GetFeatureRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @param message EntityTypeSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a GetFeatureRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetFeatureRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeatureRequest; + /** + * Decodes an EntityTypeSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns EntityTypeSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - /** - * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetFeatureRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeatureRequest; + /** + * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns EntityTypeSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - /** - * Verifies a GetFeatureRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies an EntityTypeSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a GetFeatureRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetFeatureRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeatureRequest; + /** + * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns EntityTypeSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec; - /** - * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. - * @param message GetFeatureRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. + * @param message EntityTypeSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this GetFeatureRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Converts this EntityTypeSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of a ListFeaturesRequest. */ - interface IListFeaturesRequest { - - /** ListFeaturesRequest parent */ - parent?: (string|null); + /** Properties of an ExportFeatureValuesRequest. */ + interface IExportFeatureValuesRequest { - /** ListFeaturesRequest filter */ - filter?: (string|null); + /** ExportFeatureValuesRequest snapshotExport */ + snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - /** ListFeaturesRequest pageSize */ - pageSize?: (number|null); + /** ExportFeatureValuesRequest fullExport */ + fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); - /** ListFeaturesRequest pageToken */ - pageToken?: (string|null); + /** ExportFeatureValuesRequest entityType */ + entityType?: (string|null); - /** ListFeaturesRequest orderBy */ - orderBy?: (string|null); + /** ExportFeatureValuesRequest destination */ + destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - /** ListFeaturesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** ExportFeatureValuesRequest featureSelector */ + featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - /** ListFeaturesRequest latestStatsCount */ - latestStatsCount?: (number|null); + /** ExportFeatureValuesRequest settings */ + settings?: (google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]|null); } - /** Represents a ListFeaturesRequest. */ - class ListFeaturesRequest implements IListFeaturesRequest { + /** Represents an ExportFeatureValuesRequest. */ + class ExportFeatureValuesRequest implements IExportFeatureValuesRequest { /** - * Constructs a new ListFeaturesRequest. + * Constructs a new ExportFeatureValuesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest); - /** ListFeaturesRequest parent. */ - public parent: string; + /** ExportFeatureValuesRequest snapshotExport. */ + public snapshotExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null); - /** ListFeaturesRequest filter. */ - public filter: string; + /** ExportFeatureValuesRequest fullExport. */ + public fullExport?: (google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null); - /** ListFeaturesRequest pageSize. */ - public pageSize: number; + /** ExportFeatureValuesRequest entityType. */ + public entityType: string; - /** ListFeaturesRequest pageToken. */ - public pageToken: string; + /** ExportFeatureValuesRequest destination. */ + public destination?: (google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null); - /** ListFeaturesRequest orderBy. */ - public orderBy: string; + /** ExportFeatureValuesRequest featureSelector. */ + public featureSelector?: (google.cloud.aiplatform.v1beta1.IFeatureSelector|null); - /** ListFeaturesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** ExportFeatureValuesRequest settings. */ + public settings: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting[]; - /** ListFeaturesRequest latestStatsCount. */ - public latestStatsCount: number; + /** ExportFeatureValuesRequest mode. */ + public mode?: ("snapshotExport"|"fullExport"); /** - * Creates a new ListFeaturesRequest instance using the specified properties. + * Creates a new ExportFeatureValuesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListFeaturesRequest instance + * @returns ExportFeatureValuesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. - * @param message ListFeaturesRequest message or plain object to encode + * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. + * @param message ExportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. - * @param message ListFeaturesRequest message or plain object to encode + * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. + * @param message ExportFeatureValuesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListFeaturesRequest + * @returns ExportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListFeaturesRequest + * @returns ExportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Verifies a ListFeaturesRequest message. + * Verifies an ExportFeatureValuesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListFeaturesRequest + * @returns ExportFeatureValuesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest; /** - * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. - * @param message ListFeaturesRequest + * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. + * @param message ExportFeatureValuesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListFeaturesRequest to JSON. + * Converts this ExportFeatureValuesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListFeaturesResponse. */ - interface IListFeaturesResponse { + namespace ExportFeatureValuesRequest { - /** ListFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); + /** Properties of a SnapshotExport. */ + interface ISnapshotExport { - /** ListFeaturesResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** SnapshotExport snapshotTime */ + snapshotTime?: (google.protobuf.ITimestamp|null); - /** Represents a ListFeaturesResponse. */ - class ListFeaturesResponse implements IListFeaturesResponse { + /** SnapshotExport startTime */ + startTime?: (google.protobuf.ITimestamp|null); + } - /** - * Constructs a new ListFeaturesResponse. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse); + /** Represents a SnapshotExport. */ + class SnapshotExport implements ISnapshotExport { - /** ListFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + /** + * Constructs a new SnapshotExport. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport); - /** ListFeaturesResponse nextPageToken. */ - public nextPageToken: string; + /** SnapshotExport snapshotTime. */ + public snapshotTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a new ListFeaturesResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListFeaturesResponse instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; + /** SnapshotExport startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. - * @param message ListFeaturesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new SnapshotExport instance using the specified properties. + * @param [properties] Properties to set + * @returns SnapshotExport instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; - /** - * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. - * @param message ListFeaturesResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. + * @param message SnapshotExport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListFeaturesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; + /** + * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. + * @param message SnapshotExport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListFeaturesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; + /** + * Decodes a SnapshotExport message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SnapshotExport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; - /** - * Verifies a ListFeaturesResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SnapshotExport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; - /** - * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListFeaturesResponse - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; + /** + * Verifies a SnapshotExport message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. - * @param message ListFeaturesResponse - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SnapshotExport + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport; - /** - * Converts this ListFeaturesResponse to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. + * @param message SnapshotExport + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a SearchFeaturesRequest. */ - interface ISearchFeaturesRequest { + /** + * Converts this SnapshotExport to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** SearchFeaturesRequest location */ - location?: (string|null); + /** Properties of a FullExport. */ + interface IFullExport { - /** SearchFeaturesRequest query */ - query?: (string|null); + /** FullExport startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** SearchFeaturesRequest pageSize */ - pageSize?: (number|null); + /** FullExport endTime */ + endTime?: (google.protobuf.ITimestamp|null); + } - /** SearchFeaturesRequest pageToken */ - pageToken?: (string|null); + /** Represents a FullExport. */ + class FullExport implements IFullExport { + + /** + * Constructs a new FullExport. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport); + + /** FullExport startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** FullExport endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); + + /** + * Creates a new FullExport instance using the specified properties. + * @param [properties] Properties to set + * @returns FullExport instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + + /** + * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. + * @param message FullExport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. + * @param message FullExport message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a FullExport message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns FullExport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + + /** + * Decodes a FullExport message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns FullExport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + + /** + * Verifies a FullExport message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a FullExport message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns FullExport + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport; + + /** + * Creates a plain object from a FullExport message. Also converts values to other types if specified. + * @param message FullExport + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this FullExport to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a SearchFeaturesRequest. */ - class SearchFeaturesRequest implements ISearchFeaturesRequest { + /** Properties of a DestinationFeatureSetting. */ + interface IDestinationFeatureSetting { + + /** DestinationFeatureSetting featureId */ + featureId?: (string|null); + + /** DestinationFeatureSetting destinationField */ + destinationField?: (string|null); + } + + /** Represents a DestinationFeatureSetting. */ + class DestinationFeatureSetting implements IDestinationFeatureSetting { /** - * Constructs a new SearchFeaturesRequest. + * Constructs a new DestinationFeatureSetting. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest); - - /** SearchFeaturesRequest location. */ - public location: string; - - /** SearchFeaturesRequest query. */ - public query: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting); - /** SearchFeaturesRequest pageSize. */ - public pageSize: number; + /** DestinationFeatureSetting featureId. */ + public featureId: string; - /** SearchFeaturesRequest pageToken. */ - public pageToken: string; + /** DestinationFeatureSetting destinationField. */ + public destinationField: string; /** - * Creates a new SearchFeaturesRequest instance using the specified properties. + * Creates a new DestinationFeatureSetting instance using the specified properties. * @param [properties] Properties to set - * @returns SearchFeaturesRequest instance + * @returns DestinationFeatureSetting instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. - * @param message SearchFeaturesRequest message or plain object to encode + * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. + * @param message DestinationFeatureSetting message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. - * @param message SearchFeaturesRequest message or plain object to encode + * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. + * @param message DestinationFeatureSetting message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchFeaturesRequest + * @returns DestinationFeatureSetting * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchFeaturesRequest + * @returns DestinationFeatureSetting * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Verifies a SearchFeaturesRequest message. + * Verifies a DestinationFeatureSetting message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchFeaturesRequest + * @returns DestinationFeatureSetting */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DestinationFeatureSetting; /** - * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. - * @param message SearchFeaturesRequest + * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. + * @param message DestinationFeatureSetting * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DestinationFeatureSetting, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchFeaturesRequest to JSON. + * Converts this DestinationFeatureSetting to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SearchFeaturesResponse. */ - interface ISearchFeaturesResponse { + /** Properties of a FeatureValueDestination. */ + interface IFeatureValueDestination { - /** SearchFeaturesResponse features */ - features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); + /** FeatureValueDestination bigqueryDestination */ + bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** SearchFeaturesResponse nextPageToken */ - nextPageToken?: (string|null); + /** FeatureValueDestination tfrecordDestination */ + tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); + + /** FeatureValueDestination csvDestination */ + csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); } - /** Represents a SearchFeaturesResponse. */ - class SearchFeaturesResponse implements ISearchFeaturesResponse { + /** Represents a FeatureValueDestination. */ + class FeatureValueDestination implements IFeatureValueDestination { /** - * Constructs a new SearchFeaturesResponse. + * Constructs a new FeatureValueDestination. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination); - /** SearchFeaturesResponse features. */ - public features: google.cloud.aiplatform.v1beta1.IFeature[]; + /** FeatureValueDestination bigqueryDestination. */ + public bigqueryDestination?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); - /** SearchFeaturesResponse nextPageToken. */ - public nextPageToken: string; + /** FeatureValueDestination tfrecordDestination. */ + public tfrecordDestination?: (google.cloud.aiplatform.v1beta1.ITFRecordDestination|null); + + /** FeatureValueDestination csvDestination. */ + public csvDestination?: (google.cloud.aiplatform.v1beta1.ICsvDestination|null); + + /** FeatureValueDestination destination. */ + public destination?: ("bigqueryDestination"|"tfrecordDestination"|"csvDestination"); /** - * Creates a new SearchFeaturesResponse instance using the specified properties. + * Creates a new FeatureValueDestination instance using the specified properties. * @param [properties] Properties to set - * @returns SearchFeaturesResponse instance + * @returns FeatureValueDestination instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IFeatureValueDestination): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. - * @param message SearchFeaturesResponse message or plain object to encode + * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. + * @param message FeatureValueDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. - * @param message SearchFeaturesResponse message or plain object to encode + * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. + * @param message FeatureValueDestination message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IFeatureValueDestination, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * Decodes a FeatureValueDestination message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchFeaturesResponse + * @returns FeatureValueDestination * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchFeaturesResponse + * @returns FeatureValueDestination * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Verifies a SearchFeaturesResponse message. + * Verifies a FeatureValueDestination message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValueDestination message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchFeaturesResponse + * @returns FeatureValueDestination */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.FeatureValueDestination; /** - * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. - * @param message SearchFeaturesResponse + * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. + * @param message FeatureValueDestination * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.FeatureValueDestination, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchFeaturesResponse to JSON. + * Converts this FeatureValueDestination to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateFeatureRequest. */ - interface IUpdateFeatureRequest { - - /** UpdateFeatureRequest feature */ - feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); - - /** UpdateFeatureRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of an ExportFeatureValuesResponse. */ + interface IExportFeatureValuesResponse { } - /** Represents an UpdateFeatureRequest. */ - class UpdateFeatureRequest implements IUpdateFeatureRequest { + /** Represents an ExportFeatureValuesResponse. */ + class ExportFeatureValuesResponse implements IExportFeatureValuesResponse { /** - * Constructs a new UpdateFeatureRequest. + * Constructs a new ExportFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest); - - /** UpdateFeatureRequest feature. */ - public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); - - /** UpdateFeatureRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse); /** - * Creates a new UpdateFeatureRequest instance using the specified properties. + * Creates a new ExportFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFeatureRequest instance + * @returns ExportFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. - * @param message UpdateFeatureRequest message or plain object to encode + * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. + * @param message ExportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. - * @param message UpdateFeatureRequest message or plain object to encode + * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. + * @param message ExportFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFeatureRequest + * @returns ExportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFeatureRequest + * @returns ExportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Verifies an UpdateFeatureRequest message. + * Verifies an ExportFeatureValuesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFeatureRequest + * @returns ExportFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse; /** - * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. - * @param message UpdateFeatureRequest + * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. + * @param message ExportFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFeatureRequest to JSON. + * Converts this ExportFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteFeatureRequest. */ - interface IDeleteFeatureRequest { - - /** DeleteFeatureRequest name */ - name?: (string|null); + /** Properties of a BatchReadFeatureValuesResponse. */ + interface IBatchReadFeatureValuesResponse { } - /** Represents a DeleteFeatureRequest. */ - class DeleteFeatureRequest implements IDeleteFeatureRequest { + /** Represents a BatchReadFeatureValuesResponse. */ + class BatchReadFeatureValuesResponse implements IBatchReadFeatureValuesResponse { /** - * Constructs a new DeleteFeatureRequest. + * Constructs a new BatchReadFeatureValuesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest); - - /** DeleteFeatureRequest name. */ - public name: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse); /** - * Creates a new DeleteFeatureRequest instance using the specified properties. + * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteFeatureRequest instance + * @returns BatchReadFeatureValuesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. - * @param message DeleteFeatureRequest message or plain object to encode + * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. + * @param message BatchReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. - * @param message DeleteFeatureRequest message or plain object to encode + * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. + * @param message BatchReadFeatureValuesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteFeatureRequest + * @returns BatchReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteFeatureRequest + * @returns BatchReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Verifies a DeleteFeatureRequest message. + * Verifies a BatchReadFeatureValuesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteFeatureRequest + * @returns BatchReadFeatureValuesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse; /** - * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. - * @param message DeleteFeatureRequest + * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteFeatureRequest to JSON. + * Converts this BatchReadFeatureValuesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateFeaturestoreOperationMetadata. */ - interface ICreateFeaturestoreOperationMetadata { + /** Properties of a CreateEntityTypeRequest. */ + interface ICreateEntityTypeRequest { - /** CreateFeaturestoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** CreateEntityTypeRequest parent */ + parent?: (string|null); - /** Represents a CreateFeaturestoreOperationMetadata. */ - class CreateFeaturestoreOperationMetadata implements ICreateFeaturestoreOperationMetadata { + /** CreateEntityTypeRequest entityType */ + entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); - /** - * Constructs a new CreateFeaturestoreOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata); + /** CreateEntityTypeRequest entityTypeId */ + entityTypeId?: (string|null); + } - /** CreateFeaturestoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** Represents a CreateEntityTypeRequest. */ + class CreateEntityTypeRequest implements ICreateEntityTypeRequest { /** - * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. + * Constructs a new CreateEntityTypeRequest. * @param [properties] Properties to set - * @returns CreateFeaturestoreOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest); + + /** CreateEntityTypeRequest parent. */ + public parent: string; + + /** CreateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + + /** CreateEntityTypeRequest entityTypeId. */ + public entityTypeId: string; /** - * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message CreateFeaturestoreOperationMetadata message or plain object to encode + * Creates a new CreateEntityTypeRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEntityTypeRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; + + /** + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message CreateFeaturestoreOperationMetadata message or plain object to encode + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. + * @param message CreateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeaturestoreOperationMetadata + * @returns CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeaturestoreOperationMetadata + * @returns CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Verifies a CreateFeaturestoreOperationMetadata message. + * Verifies a CreateEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeaturestoreOperationMetadata + * @returns CreateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest; /** - * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. - * @param message CreateFeaturestoreOperationMetadata + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * @param message CreateEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeaturestoreOperationMetadata to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateFeaturestoreOperationMetadata. */ - interface IUpdateFeaturestoreOperationMetadata { + /** Properties of a GetEntityTypeRequest. */ + interface IGetEntityTypeRequest { - /** UpdateFeaturestoreOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetEntityTypeRequest name */ + name?: (string|null); } - /** Represents an UpdateFeaturestoreOperationMetadata. */ - class UpdateFeaturestoreOperationMetadata implements IUpdateFeaturestoreOperationMetadata { + /** Represents a GetEntityTypeRequest. */ + class GetEntityTypeRequest implements IGetEntityTypeRequest { /** - * Constructs a new UpdateFeaturestoreOperationMetadata. + * Constructs a new GetEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest); - /** UpdateFeaturestoreOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetEntityTypeRequest name. */ + public name: string; /** - * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. + * Creates a new GetEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateFeaturestoreOperationMetadata instance + * @returns GetEntityTypeRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. - * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. + * @param message GetEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateFeaturestoreOperationMetadata + * @returns GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateFeaturestoreOperationMetadata + * @returns GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Verifies an UpdateFeaturestoreOperationMetadata message. + * Verifies a GetEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateFeaturestoreOperationMetadata + * @returns GetEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetEntityTypeRequest; /** - * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateFeaturestoreOperationMetadata + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * @param message GetEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateFeaturestoreOperationMetadata to JSON. + * Converts this GetEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ImportFeatureValuesOperationMetadata. */ - interface IImportFeatureValuesOperationMetadata { + /** Properties of a ListEntityTypesRequest. */ + interface IListEntityTypesRequest { - /** ImportFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListEntityTypesRequest parent */ + parent?: (string|null); - /** ImportFeatureValuesOperationMetadata importedEntityCount */ - importedEntityCount?: (number|Long|string|null); + /** ListEntityTypesRequest filter */ + filter?: (string|null); - /** ImportFeatureValuesOperationMetadata importedFeatureValueCount */ - importedFeatureValueCount?: (number|Long|string|null); + /** ListEntityTypesRequest pageSize */ + pageSize?: (number|null); - /** ImportFeatureValuesOperationMetadata invalidRowCount */ - invalidRowCount?: (number|Long|string|null); + /** ListEntityTypesRequest pageToken */ + pageToken?: (string|null); + + /** ListEntityTypesRequest orderBy */ + orderBy?: (string|null); + + /** ListEntityTypesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents an ImportFeatureValuesOperationMetadata. */ - class ImportFeatureValuesOperationMetadata implements IImportFeatureValuesOperationMetadata { + /** Represents a ListEntityTypesRequest. */ + class ListEntityTypesRequest implements IListEntityTypesRequest { /** - * Constructs a new ImportFeatureValuesOperationMetadata. + * Constructs a new ListEntityTypesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest); - /** ImportFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListEntityTypesRequest parent. */ + public parent: string; - /** ImportFeatureValuesOperationMetadata importedEntityCount. */ - public importedEntityCount: (number|Long|string); + /** ListEntityTypesRequest filter. */ + public filter: string; - /** ImportFeatureValuesOperationMetadata importedFeatureValueCount. */ - public importedFeatureValueCount: (number|Long|string); + /** ListEntityTypesRequest pageSize. */ + public pageSize: number; - /** ImportFeatureValuesOperationMetadata invalidRowCount. */ - public invalidRowCount: (number|Long|string); + /** ListEntityTypesRequest pageToken. */ + public pageToken: string; + + /** ListEntityTypesRequest orderBy. */ + public orderBy: string; + + /** ListEntityTypesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new ListEntityTypesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ImportFeatureValuesOperationMetadata instance + * @returns ListEntityTypesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ImportFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ImportFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. + * @param message ListEntityTypesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ImportFeatureValuesOperationMetadata + * @returns ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ImportFeatureValuesOperationMetadata + * @returns ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Verifies an ImportFeatureValuesOperationMetadata message. + * Verifies a ListEntityTypesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ImportFeatureValuesOperationMetadata + * @returns ListEntityTypesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesRequest; /** - * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message ImportFeatureValuesOperationMetadata + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * @param message ListEntityTypesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ImportFeatureValuesOperationMetadata to JSON. + * Converts this ListEntityTypesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an ExportFeatureValuesOperationMetadata. */ - interface IExportFeatureValuesOperationMetadata { + /** Properties of a ListEntityTypesResponse. */ + interface IListEntityTypesResponse { - /** ExportFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListEntityTypesResponse entityTypes */ + entityTypes?: (google.cloud.aiplatform.v1beta1.IEntityType[]|null); + + /** ListEntityTypesResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents an ExportFeatureValuesOperationMetadata. */ - class ExportFeatureValuesOperationMetadata implements IExportFeatureValuesOperationMetadata { + /** Represents a ListEntityTypesResponse. */ + class ListEntityTypesResponse implements IListEntityTypesResponse { /** - * Constructs a new ExportFeatureValuesOperationMetadata. + * Constructs a new ListEntityTypesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse); - /** ExportFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListEntityTypesResponse entityTypes. */ + public entityTypes: google.cloud.aiplatform.v1beta1.IEntityType[]; + + /** ListEntityTypesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new ListEntityTypesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ExportFeatureValuesOperationMetadata instance + * @returns ListEntityTypesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ExportFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. - * @param message ExportFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. + * @param message ListEntityTypesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListEntityTypesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExportFeatureValuesOperationMetadata + * @returns ListEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExportFeatureValuesOperationMetadata + * @returns ListEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Verifies an ExportFeatureValuesOperationMetadata message. + * Verifies a ListEntityTypesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExportFeatureValuesOperationMetadata + * @returns ListEntityTypesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListEntityTypesResponse; /** - * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message ExportFeatureValuesOperationMetadata + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * @param message ListEntityTypesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListEntityTypesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExportFeatureValuesOperationMetadata to JSON. + * Converts this ListEntityTypesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchReadFeatureValuesOperationMetadata. */ - interface IBatchReadFeatureValuesOperationMetadata { + /** Properties of an UpdateEntityTypeRequest. */ + interface IUpdateEntityTypeRequest { - /** BatchReadFeatureValuesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** UpdateEntityTypeRequest entityType */ + entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + + /** UpdateEntityTypeRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a BatchReadFeatureValuesOperationMetadata. */ - class BatchReadFeatureValuesOperationMetadata implements IBatchReadFeatureValuesOperationMetadata { + /** Represents an UpdateEntityTypeRequest. */ + class UpdateEntityTypeRequest implements IUpdateEntityTypeRequest { /** - * Constructs a new BatchReadFeatureValuesOperationMetadata. + * Constructs a new UpdateEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest); - /** BatchReadFeatureValuesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** UpdateEntityTypeRequest entityType. */ + public entityType?: (google.cloud.aiplatform.v1beta1.IEntityType|null); + + /** UpdateEntityTypeRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchReadFeatureValuesOperationMetadata instance + * @returns UpdateEntityTypeRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. - * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. - * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * @param message UpdateEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchReadFeatureValuesOperationMetadata + * @returns UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchReadFeatureValuesOperationMetadata + * @returns UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Verifies a BatchReadFeatureValuesOperationMetadata message. + * Verifies an UpdateEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchReadFeatureValuesOperationMetadata + * @returns UpdateEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest; /** - * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchReadFeatureValuesOperationMetadata + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * @param message UpdateEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchReadFeatureValuesOperationMetadata to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateEntityTypeOperationMetadata. */ - interface ICreateEntityTypeOperationMetadata { + /** Properties of a DeleteEntityTypeRequest. */ + interface IDeleteEntityTypeRequest { - /** CreateEntityTypeOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DeleteEntityTypeRequest name */ + name?: (string|null); + + /** DeleteEntityTypeRequest force */ + force?: (boolean|null); } - /** Represents a CreateEntityTypeOperationMetadata. */ - class CreateEntityTypeOperationMetadata implements ICreateEntityTypeOperationMetadata { + /** Represents a DeleteEntityTypeRequest. */ + class DeleteEntityTypeRequest implements IDeleteEntityTypeRequest { /** - * Constructs a new CreateEntityTypeOperationMetadata. + * Constructs a new DeleteEntityTypeRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest); - /** CreateEntityTypeOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DeleteEntityTypeRequest name. */ + public name: string; + + /** DeleteEntityTypeRequest force. */ + public force: boolean; /** - * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateEntityTypeOperationMetadata instance + * @returns DeleteEntityTypeRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. - * @param message CreateEntityTypeOperationMetadata message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. - * @param message CreateEntityTypeOperationMetadata message or plain object to encode + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. + * @param message DeleteEntityTypeRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateEntityTypeOperationMetadata + * @returns DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateEntityTypeOperationMetadata + * @returns DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Verifies a CreateEntityTypeOperationMetadata message. + * Verifies a DeleteEntityTypeRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateEntityTypeOperationMetadata + * @returns DeleteEntityTypeRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest; /** - * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. - * @param message CreateEntityTypeOperationMetadata + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * @param message DeleteEntityTypeRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateEntityTypeOperationMetadata to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateFeatureOperationMetadata. */ - interface ICreateFeatureOperationMetadata { + /** Properties of a CreateFeatureRequest. */ + interface ICreateFeatureRequest { - /** CreateFeatureOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** CreateFeatureRequest parent */ + parent?: (string|null); + + /** CreateFeatureRequest feature */ + feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + + /** CreateFeatureRequest featureId */ + featureId?: (string|null); } - /** Represents a CreateFeatureOperationMetadata. */ - class CreateFeatureOperationMetadata implements ICreateFeatureOperationMetadata { + /** Represents a CreateFeatureRequest. */ + class CreateFeatureRequest implements ICreateFeatureRequest { /** - * Constructs a new CreateFeatureOperationMetadata. + * Constructs a new CreateFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest); - /** CreateFeatureOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** CreateFeatureRequest parent. */ + public parent: string; + + /** CreateFeatureRequest feature. */ + public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); + + /** CreateFeatureRequest featureId. */ + public featureId: string; /** - * Creates a new CreateFeatureOperationMetadata instance using the specified properties. + * Creates a new CreateFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateFeatureOperationMetadata instance + * @returns CreateFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. - * @param message CreateFeatureOperationMetadata message or plain object to encode + * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. + * @param message CreateFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. - * @param message CreateFeatureOperationMetadata message or plain object to encode + * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. + * @param message CreateFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. + * Decodes a CreateFeatureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateFeatureOperationMetadata + * @returns CreateFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateFeatureOperationMetadata + * @returns CreateFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Verifies a CreateFeatureOperationMetadata message. + * Verifies a CreateFeatureRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateFeatureOperationMetadata + * @returns CreateFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureRequest; /** - * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. - * @param message CreateFeatureOperationMetadata + * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. + * @param message CreateFeatureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateFeatureOperationMetadata to JSON. + * Converts this CreateFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a BatchCreateFeaturesOperationMetadata. */ - interface IBatchCreateFeaturesOperationMetadata { + /** Properties of a BatchCreateFeaturesRequest. */ + interface IBatchCreateFeaturesRequest { - /** BatchCreateFeaturesOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** BatchCreateFeaturesRequest parent */ + parent?: (string|null); + + /** BatchCreateFeaturesRequest requests */ + requests?: (google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]|null); } - /** Represents a BatchCreateFeaturesOperationMetadata. */ - class BatchCreateFeaturesOperationMetadata implements IBatchCreateFeaturesOperationMetadata { + /** Represents a BatchCreateFeaturesRequest. */ + class BatchCreateFeaturesRequest implements IBatchCreateFeaturesRequest { /** - * Constructs a new BatchCreateFeaturesOperationMetadata. + * Constructs a new BatchCreateFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest); - /** BatchCreateFeaturesOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** BatchCreateFeaturesRequest parent. */ + public parent: string; + + /** BatchCreateFeaturesRequest requests. */ + public requests: google.cloud.aiplatform.v1beta1.ICreateFeatureRequest[]; /** - * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. + * Creates a new BatchCreateFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns BatchCreateFeaturesOperationMetadata instance + * @returns BatchCreateFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. - * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode + * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. + * @param message BatchCreateFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. - * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode + * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. + * @param message BatchCreateFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns BatchCreateFeaturesOperationMetadata + * @returns BatchCreateFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns BatchCreateFeaturesOperationMetadata + * @returns BatchCreateFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Verifies a BatchCreateFeaturesOperationMetadata message. + * Verifies a BatchCreateFeaturesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns BatchCreateFeaturesOperationMetadata + * @returns BatchCreateFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest; /** - * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. - * @param message BatchCreateFeaturesOperationMetadata + * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this BatchCreateFeaturesOperationMetadata to JSON. + * Converts this BatchCreateFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a HyperparameterTuningJob. */ - interface IHyperparameterTuningJob { - - /** HyperparameterTuningJob name */ - name?: (string|null); - - /** HyperparameterTuningJob displayName */ - displayName?: (string|null); - - /** HyperparameterTuningJob studySpec */ - studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - - /** HyperparameterTuningJob maxTrialCount */ - maxTrialCount?: (number|null); - - /** HyperparameterTuningJob parallelTrialCount */ - parallelTrialCount?: (number|null); - - /** HyperparameterTuningJob maxFailedTrialCount */ - maxFailedTrialCount?: (number|null); - - /** HyperparameterTuningJob trialJobSpec */ - trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - - /** HyperparameterTuningJob trials */ - trials?: (google.cloud.aiplatform.v1beta1.ITrial[]|null); - - /** HyperparameterTuningJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** HyperparameterTuningJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob startTime */ - startTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob endTime */ - endTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob error */ - error?: (google.rpc.IStatus|null); - - /** HyperparameterTuningJob labels */ - labels?: ({ [k: string]: string }|null); + /** Properties of a BatchCreateFeaturesResponse. */ + interface IBatchCreateFeaturesResponse { - /** HyperparameterTuningJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** BatchCreateFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); } - /** Represents a HyperparameterTuningJob. */ - class HyperparameterTuningJob implements IHyperparameterTuningJob { + /** Represents a BatchCreateFeaturesResponse. */ + class BatchCreateFeaturesResponse implements IBatchCreateFeaturesResponse { /** - * Constructs a new HyperparameterTuningJob. + * Constructs a new BatchCreateFeaturesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob); - - /** HyperparameterTuningJob name. */ - public name: string; - - /** HyperparameterTuningJob displayName. */ - public displayName: string; - - /** HyperparameterTuningJob studySpec. */ - public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - - /** HyperparameterTuningJob maxTrialCount. */ - public maxTrialCount: number; - - /** HyperparameterTuningJob parallelTrialCount. */ - public parallelTrialCount: number; - - /** HyperparameterTuningJob maxFailedTrialCount. */ - public maxFailedTrialCount: number; - - /** HyperparameterTuningJob trialJobSpec. */ - public trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - - /** HyperparameterTuningJob trials. */ - public trials: google.cloud.aiplatform.v1beta1.ITrial[]; - - /** HyperparameterTuningJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** HyperparameterTuningJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); - - /** HyperparameterTuningJob error. */ - public error?: (google.rpc.IStatus|null); - - /** HyperparameterTuningJob labels. */ - public labels: { [k: string]: string }; + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse); - /** HyperparameterTuningJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** BatchCreateFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; /** - * Creates a new HyperparameterTuningJob instance using the specified properties. + * Creates a new BatchCreateFeaturesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns HyperparameterTuningJob instance + * @returns BatchCreateFeaturesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. - * @param message HyperparameterTuningJob message or plain object to encode + * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. + * @param message BatchCreateFeaturesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. - * @param message HyperparameterTuningJob message or plain object to encode + * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. + * @param message BatchCreateFeaturesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns HyperparameterTuningJob + * @returns BatchCreateFeaturesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns HyperparameterTuningJob + * @returns BatchCreateFeaturesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Verifies a HyperparameterTuningJob message. + * Verifies a BatchCreateFeaturesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns HyperparameterTuningJob + * @returns BatchCreateFeaturesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse; /** - * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. - * @param message HyperparameterTuningJob + * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this HyperparameterTuningJob to JSON. + * Converts this BatchCreateFeaturesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a Study. */ - interface IStudy { + /** Properties of a GetFeatureRequest. */ + interface IGetFeatureRequest { - /** Study name */ + /** GetFeatureRequest name */ name?: (string|null); - - /** Study displayName */ - displayName?: (string|null); - - /** Study studySpec */ - studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - - /** Study state */ - state?: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State|null); - - /** Study createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** Study inactiveReason */ - inactiveReason?: (string|null); } - /** Represents a Study. */ - class Study implements IStudy { + /** Represents a GetFeatureRequest. */ + class GetFeatureRequest implements IGetFeatureRequest { /** - * Constructs a new Study. + * Constructs a new GetFeatureRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStudy); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest); - /** Study name. */ + /** GetFeatureRequest name. */ public name: string; - /** Study displayName. */ - public displayName: string; - - /** Study studySpec. */ - public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - - /** Study state. */ - public state: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State); - - /** Study createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); - - /** Study inactiveReason. */ - public inactiveReason: string; - /** - * Creates a new Study instance using the specified properties. + * Creates a new GetFeatureRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Study instance + * @returns GetFeatureRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStudy): google.cloud.aiplatform.v1beta1.Study; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetFeatureRequest): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. - * @param message Study message or plain object to encode + * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. + * @param message GetFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. - * @param message Study message or plain object to encode + * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. + * @param message GetFeatureRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Study message from the specified reader or buffer. + * Decodes a GetFeatureRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Study + * @returns GetFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Study; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Decodes a Study message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Study + * @returns GetFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Study; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Verifies a Study message. + * Verifies a GetFeatureRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Study message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Study + * @returns GetFeatureRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Study; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetFeatureRequest; /** - * Creates a plain object from a Study message. Also converts values to other types if specified. - * @param message Study + * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. + * @param message GetFeatureRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Study, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Study to JSON. + * Converts this GetFeatureRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Study { - - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - ACTIVE = 1, - INACTIVE = 2, - COMPLETED = 3 - } - } - - /** Properties of a Trial. */ - interface ITrial { - - /** Trial name */ - name?: (string|null); - - /** Trial id */ - id?: (string|null); - - /** Trial state */ - state?: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State|null); - - /** Trial parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.Trial.IParameter[]|null); - - /** Trial finalMeasurement */ - finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + /** Properties of a ListFeaturesRequest. */ + interface IListFeaturesRequest { - /** Trial measurements */ - measurements?: (google.cloud.aiplatform.v1beta1.IMeasurement[]|null); + /** ListFeaturesRequest parent */ + parent?: (string|null); - /** Trial startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** ListFeaturesRequest filter */ + filter?: (string|null); - /** Trial endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** ListFeaturesRequest pageSize */ + pageSize?: (number|null); - /** Trial clientId */ - clientId?: (string|null); + /** ListFeaturesRequest pageToken */ + pageToken?: (string|null); - /** Trial infeasibleReason */ - infeasibleReason?: (string|null); + /** ListFeaturesRequest orderBy */ + orderBy?: (string|null); - /** Trial customJob */ - customJob?: (string|null); + /** ListFeaturesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); - /** Trial webAccessUris */ - webAccessUris?: ({ [k: string]: string }|null); + /** ListFeaturesRequest latestStatsCount */ + latestStatsCount?: (number|null); } - /** Represents a Trial. */ - class Trial implements ITrial { + /** Represents a ListFeaturesRequest. */ + class ListFeaturesRequest implements IListFeaturesRequest { /** - * Constructs a new Trial. + * Constructs a new ListFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ITrial); - - /** Trial name. */ - public name: string; - - /** Trial id. */ - public id: string; - - /** Trial state. */ - public state: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State); - - /** Trial parameters. */ - public parameters: google.cloud.aiplatform.v1beta1.Trial.IParameter[]; - - /** Trial finalMeasurement. */ - public finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest); - /** Trial measurements. */ - public measurements: google.cloud.aiplatform.v1beta1.IMeasurement[]; + /** ListFeaturesRequest parent. */ + public parent: string; - /** Trial startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + /** ListFeaturesRequest filter. */ + public filter: string; - /** Trial endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** ListFeaturesRequest pageSize. */ + public pageSize: number; - /** Trial clientId. */ - public clientId: string; + /** ListFeaturesRequest pageToken. */ + public pageToken: string; - /** Trial infeasibleReason. */ - public infeasibleReason: string; + /** ListFeaturesRequest orderBy. */ + public orderBy: string; - /** Trial customJob. */ - public customJob: string; + /** ListFeaturesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); - /** Trial webAccessUris. */ - public webAccessUris: { [k: string]: string }; + /** ListFeaturesRequest latestStatsCount. */ + public latestStatsCount: number; /** - * Creates a new Trial instance using the specified properties. + * Creates a new ListFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns Trial instance + * @returns ListFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ITrial): google.cloud.aiplatform.v1beta1.Trial; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesRequest): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. - * @param message Trial message or plain object to encode + * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. + * @param message ListFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. - * @param message Trial message or plain object to encode + * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. + * @param message ListFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Trial message from the specified reader or buffer. + * Decodes a ListFeaturesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Trial + * @returns ListFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Trial; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Decodes a Trial message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Trial + * @returns ListFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Trial; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Verifies a Trial message. + * Verifies a ListFeaturesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Trial message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Trial + * @returns ListFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesRequest; /** - * Creates a plain object from a Trial message. Also converts values to other types if specified. - * @param message Trial + * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. + * @param message ListFeaturesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Trial, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Trial to JSON. + * Converts this ListFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Trial { + /** Properties of a ListFeaturesResponse. */ + interface IListFeaturesResponse { - /** Properties of a Parameter. */ - interface IParameter { + /** ListFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); - /** Parameter parameterId */ - parameterId?: (string|null); + /** ListFeaturesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Parameter value */ - value?: (google.protobuf.IValue|null); - } + /** Represents a ListFeaturesResponse. */ + class ListFeaturesResponse implements IListFeaturesResponse { - /** Represents a Parameter. */ - class Parameter implements IParameter { - - /** - * Constructs a new Parameter. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter); - - /** Parameter parameterId. */ - public parameterId: string; + /** + * Constructs a new ListFeaturesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse); - /** Parameter value. */ - public value?: (google.protobuf.IValue|null); + /** ListFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; - /** - * Creates a new Parameter instance using the specified properties. - * @param [properties] Properties to set - * @returns Parameter instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter): google.cloud.aiplatform.v1beta1.Trial.Parameter; + /** ListFeaturesResponse nextPageToken. */ + public nextPageToken: string; - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ListFeaturesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListFeaturesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListFeaturesResponse): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. - * @param message Parameter message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. + * @param message ListFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Parameter message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Trial.Parameter; + /** + * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. + * @param message ListFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Trial.Parameter; + /** + * Decodes a ListFeaturesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; - /** - * Verifies a Parameter message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Parameter - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial.Parameter; + /** + * Verifies a ListFeaturesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @param message Parameter - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Trial.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListFeaturesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListFeaturesResponse; - /** - * Converts this Parameter to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. + * @param message ListFeaturesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ListFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** State enum. */ - enum State { - STATE_UNSPECIFIED = 0, - REQUESTED = 1, - ACTIVE = 2, - STOPPING = 3, - SUCCEEDED = 4, - INFEASIBLE = 5 - } + /** + * Converts this ListFeaturesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a StudySpec. */ - interface IStudySpec { - - /** StudySpec decayCurveStoppingSpec */ - decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); - - /** StudySpec medianAutomatedStoppingSpec */ - medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); - - /** StudySpec convexStopConfig */ - convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); - - /** StudySpec convexAutomatedStoppingSpec */ - convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); - - /** StudySpec metrics */ - metrics?: (google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]|null); + /** Properties of a SearchFeaturesRequest. */ + interface ISearchFeaturesRequest { - /** StudySpec parameters */ - parameters?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]|null); + /** SearchFeaturesRequest location */ + location?: (string|null); - /** StudySpec algorithm */ - algorithm?: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null); + /** SearchFeaturesRequest query */ + query?: (string|null); - /** StudySpec observationNoise */ - observationNoise?: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null); + /** SearchFeaturesRequest pageSize */ + pageSize?: (number|null); - /** StudySpec measurementSelectionType */ - measurementSelectionType?: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null); + /** SearchFeaturesRequest pageToken */ + pageToken?: (string|null); } - /** Represents a StudySpec. */ - class StudySpec implements IStudySpec { + /** Represents a SearchFeaturesRequest. */ + class SearchFeaturesRequest implements ISearchFeaturesRequest { /** - * Constructs a new StudySpec. + * Constructs a new SearchFeaturesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IStudySpec); - - /** StudySpec decayCurveStoppingSpec. */ - public decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); - - /** StudySpec medianAutomatedStoppingSpec. */ - public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); - - /** StudySpec convexStopConfig. */ - public convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); - - /** StudySpec convexAutomatedStoppingSpec. */ - public convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); - - /** StudySpec metrics. */ - public metrics: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]; - - /** StudySpec parameters. */ - public parameters: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest); - /** StudySpec algorithm. */ - public algorithm: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm); + /** SearchFeaturesRequest location. */ + public location: string; - /** StudySpec observationNoise. */ - public observationNoise: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise); + /** SearchFeaturesRequest query. */ + public query: string; - /** StudySpec measurementSelectionType. */ - public measurementSelectionType: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType); + /** SearchFeaturesRequest pageSize. */ + public pageSize: number; - /** StudySpec automatedStoppingSpec. */ - public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"); + /** SearchFeaturesRequest pageToken. */ + public pageToken: string; /** - * Creates a new StudySpec instance using the specified properties. + * Creates a new SearchFeaturesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns StudySpec instance + * @returns SearchFeaturesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IStudySpec): google.cloud.aiplatform.v1beta1.StudySpec; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. - * @param message StudySpec message or plain object to encode + * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. + * @param message SearchFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. - * @param message StudySpec message or plain object to encode + * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. + * @param message SearchFeaturesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a StudySpec message from the specified reader or buffer. + * Decodes a SearchFeaturesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns StudySpec + * @returns SearchFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Decodes a StudySpec message from the specified reader or buffer, length delimited. + * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns StudySpec + * @returns SearchFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Verifies a StudySpec message. + * Verifies a SearchFeaturesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a StudySpec message from a plain object. Also converts values to their respective internal types. + * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns StudySpec + * @returns SearchFeaturesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesRequest; /** - * Creates a plain object from a StudySpec message. Also converts values to other types if specified. - * @param message StudySpec + * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. + * @param message SearchFeaturesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this StudySpec to JSON. + * Converts this SearchFeaturesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace StudySpec { - - /** Properties of a MetricSpec. */ - interface IMetricSpec { + /** Properties of a SearchFeaturesResponse. */ + interface ISearchFeaturesResponse { - /** MetricSpec metricId */ - metricId?: (string|null); + /** SearchFeaturesResponse features */ + features?: (google.cloud.aiplatform.v1beta1.IFeature[]|null); - /** MetricSpec goal */ - goal?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null); - } + /** SearchFeaturesResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** Represents a MetricSpec. */ - class MetricSpec implements IMetricSpec { + /** Represents a SearchFeaturesResponse. */ + class SearchFeaturesResponse implements ISearchFeaturesResponse { - /** - * Constructs a new MetricSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec); + /** + * Constructs a new SearchFeaturesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse); - /** MetricSpec metricId. */ - public metricId: string; + /** SearchFeaturesResponse features. */ + public features: google.cloud.aiplatform.v1beta1.IFeature[]; - /** MetricSpec goal. */ - public goal: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType); + /** SearchFeaturesResponse nextPageToken. */ + public nextPageToken: string; - /** - * Creates a new MetricSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MetricSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; + /** + * Creates a new SearchFeaturesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns SearchFeaturesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; - /** - * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. - * @param message MetricSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. + * @param message SearchFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. - * @param message MetricSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. + * @param message SearchFeaturesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a MetricSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MetricSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; + /** + * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns SearchFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; - /** - * Decodes a MetricSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MetricSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; + /** + * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns SearchFeaturesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; - /** - * Verifies a MetricSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a SearchFeaturesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MetricSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; + /** + * Creates a SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns SearchFeaturesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchFeaturesResponse; - /** - * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. - * @param message MetricSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. + * @param message SearchFeaturesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchFeaturesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this MetricSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this SearchFeaturesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - namespace MetricSpec { + /** Properties of an UpdateFeatureRequest. */ + interface IUpdateFeatureRequest { - /** GoalType enum. */ - enum GoalType { - GOAL_TYPE_UNSPECIFIED = 0, - MAXIMIZE = 1, - MINIMIZE = 2 - } - } + /** UpdateFeatureRequest feature */ + feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); - /** Properties of a ParameterSpec. */ - interface IParameterSpec { + /** UpdateFeatureRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** ParameterSpec doubleValueSpec */ - doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); + /** Represents an UpdateFeatureRequest. */ + class UpdateFeatureRequest implements IUpdateFeatureRequest { - /** ParameterSpec integerValueSpec */ - integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); + /** + * Constructs a new UpdateFeatureRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest); - /** ParameterSpec categoricalValueSpec */ - categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); + /** UpdateFeatureRequest feature. */ + public feature?: (google.cloud.aiplatform.v1beta1.IFeature|null); - /** ParameterSpec discreteValueSpec */ - discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); + /** UpdateFeatureRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); - /** ParameterSpec parameterId */ - parameterId?: (string|null); + /** + * Creates a new UpdateFeatureRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateFeatureRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; - /** ParameterSpec scaleType */ - scaleType?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|null); + /** + * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. + * @param message UpdateFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** ParameterSpec conditionalParameterSpecs */ - conditionalParameterSpecs?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]|null); - } + /** + * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. + * @param message UpdateFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents a ParameterSpec. */ - class ParameterSpec implements IParameterSpec { + /** + * Decodes an UpdateFeatureRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; - /** - * Constructs a new ParameterSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec); - - /** ParameterSpec doubleValueSpec. */ - public doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); + /** + * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; - /** ParameterSpec integerValueSpec. */ - public integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); + /** + * Verifies an UpdateFeatureRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ParameterSpec categoricalValueSpec. */ - public categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); + /** + * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateFeatureRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeatureRequest; - /** ParameterSpec discreteValueSpec. */ - public discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); + /** + * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. + * @param message UpdateFeatureRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ParameterSpec parameterId. */ - public parameterId: string; + /** + * Converts this UpdateFeatureRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ParameterSpec scaleType. */ - public scaleType: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType); + /** Properties of a DeleteFeatureRequest. */ + interface IDeleteFeatureRequest { - /** ParameterSpec conditionalParameterSpecs. */ - public conditionalParameterSpecs: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]; + /** DeleteFeatureRequest name */ + name?: (string|null); + } - /** ParameterSpec parameterValueSpec. */ - public parameterValueSpec?: ("doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"); + /** Represents a DeleteFeatureRequest. */ + class DeleteFeatureRequest implements IDeleteFeatureRequest { - /** - * Creates a new ParameterSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ParameterSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; + /** + * Constructs a new DeleteFeatureRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest); - /** - * Encodes the specified ParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. - * @param message ParameterSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** DeleteFeatureRequest name. */ + public name: string; - /** - * Encodes the specified ParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. - * @param message ParameterSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new DeleteFeatureRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns DeleteFeatureRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; - /** - * Decodes a ParameterSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ParameterSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; + /** + * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. + * @param message DeleteFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ParameterSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ParameterSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; + /** + * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. + * @param message DeleteFeatureRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a ParameterSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a DeleteFeatureRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DeleteFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; - /** - * Creates a ParameterSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ParameterSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; + /** + * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DeleteFeatureRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; - /** - * Creates a plain object from a ParameterSpec message. Also converts values to other types if specified. - * @param message ParameterSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a DeleteFeatureRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this ParameterSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DeleteFeatureRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteFeatureRequest; - namespace ParameterSpec { + /** + * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. + * @param message DeleteFeatureRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** Properties of a DoubleValueSpec. */ - interface IDoubleValueSpec { + /** + * Converts this DeleteFeatureRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** DoubleValueSpec minValue */ - minValue?: (number|null); + /** Properties of a CreateFeaturestoreOperationMetadata. */ + interface ICreateFeaturestoreOperationMetadata { - /** DoubleValueSpec maxValue */ - maxValue?: (number|null); + /** CreateFeaturestoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** DoubleValueSpec defaultValue */ - defaultValue?: (number|null); - } + /** Represents a CreateFeaturestoreOperationMetadata. */ + class CreateFeaturestoreOperationMetadata implements ICreateFeaturestoreOperationMetadata { - /** Represents a DoubleValueSpec. */ - class DoubleValueSpec implements IDoubleValueSpec { + /** + * Constructs a new CreateFeaturestoreOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata); - /** - * Constructs a new DoubleValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec); + /** CreateFeaturestoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** DoubleValueSpec minValue. */ - public minValue: number; + /** + * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeaturestoreOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; - /** DoubleValueSpec maxValue. */ - public maxValue: number; + /** + * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** DoubleValueSpec defaultValue. */ - public defaultValue?: (number|null); + /** + * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** DoubleValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; + /** + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; - /** - * Creates a new DoubleValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DoubleValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; + /** + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; - /** - * Encodes the specified DoubleValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. - * @param message DoubleValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a CreateFeaturestoreOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Encodes the specified DoubleValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. - * @param message DoubleValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeaturestoreOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata; - /** - * Decodes a DoubleValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DoubleValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; + /** + * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeaturestoreOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Decodes a DoubleValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DoubleValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; + /** + * Converts this CreateFeaturestoreOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Verifies a DoubleValueSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Properties of an UpdateFeaturestoreOperationMetadata. */ + interface IUpdateFeaturestoreOperationMetadata { - /** - * Creates a DoubleValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DoubleValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; + /** UpdateFeaturestoreOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** - * Creates a plain object from a DoubleValueSpec message. Also converts values to other types if specified. - * @param message DoubleValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Represents an UpdateFeaturestoreOperationMetadata. */ + class UpdateFeaturestoreOperationMetadata implements IUpdateFeaturestoreOperationMetadata { - /** - * Converts this DoubleValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Constructs a new UpdateFeaturestoreOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata); - /** Properties of an IntegerValueSpec. */ - interface IIntegerValueSpec { + /** UpdateFeaturestoreOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** IntegerValueSpec minValue */ - minValue?: (number|Long|string|null); + /** + * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateFeaturestoreOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; - /** IntegerValueSpec maxValue */ - maxValue?: (number|Long|string|null); + /** + * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** IntegerValueSpec defaultValue */ - defaultValue?: (number|Long|string|null); - } + /** + * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * @param message UpdateFeaturestoreOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** Represents an IntegerValueSpec. */ - class IntegerValueSpec implements IIntegerValueSpec { + /** + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; - /** - * Constructs a new IntegerValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec); + /** + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; - /** IntegerValueSpec minValue. */ - public minValue: (number|Long|string); + /** + * Verifies an UpdateFeaturestoreOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** IntegerValueSpec maxValue. */ - public maxValue: (number|Long|string); + /** + * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateFeaturestoreOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata; - /** IntegerValueSpec defaultValue. */ - public defaultValue?: (number|Long|string|null); + /** + * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateFeaturestoreOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** IntegerValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; + /** + * Converts this UpdateFeaturestoreOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a new IntegerValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns IntegerValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; + /** Properties of an ImportFeatureValuesOperationMetadata. */ + interface IImportFeatureValuesOperationMetadata { - /** - * Encodes the specified IntegerValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. - * @param message IntegerValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** ImportFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Encodes the specified IntegerValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. - * @param message IntegerValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** ImportFeatureValuesOperationMetadata importedEntityCount */ + importedEntityCount?: (number|Long|string|null); - /** - * Decodes an IntegerValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntegerValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; + /** ImportFeatureValuesOperationMetadata importedFeatureValueCount */ + importedFeatureValueCount?: (number|Long|string|null); - /** - * Decodes an IntegerValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntegerValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; + /** ImportFeatureValuesOperationMetadata invalidRowCount */ + invalidRowCount?: (number|Long|string|null); + } - /** - * Verifies an IntegerValueSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Represents an ImportFeatureValuesOperationMetadata. */ + class ImportFeatureValuesOperationMetadata implements IImportFeatureValuesOperationMetadata { - /** - * Creates an IntegerValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntegerValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; + /** + * Constructs a new ImportFeatureValuesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata); - /** - * Creates a plain object from an IntegerValueSpec message. Also converts values to other types if specified. - * @param message IntegerValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ImportFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Converts this IntegerValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ImportFeatureValuesOperationMetadata importedEntityCount. */ + public importedEntityCount: (number|Long|string); - /** Properties of a CategoricalValueSpec. */ - interface ICategoricalValueSpec { + /** ImportFeatureValuesOperationMetadata importedFeatureValueCount. */ + public importedFeatureValueCount: (number|Long|string); - /** CategoricalValueSpec values */ - values?: (string[]|null); + /** ImportFeatureValuesOperationMetadata invalidRowCount. */ + public invalidRowCount: (number|Long|string); - /** CategoricalValueSpec defaultValue */ - defaultValue?: (string|null); - } + /** + * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ImportFeatureValuesOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; - /** Represents a CategoricalValueSpec. */ - class CategoricalValueSpec implements ICategoricalValueSpec { + /** + * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ImportFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Constructs a new CategoricalValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec); + /** + * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ImportFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** CategoricalValueSpec values. */ - public values: string[]; + /** + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ImportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; - /** CategoricalValueSpec defaultValue. */ - public defaultValue?: (string|null); + /** + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ImportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; - /** CategoricalValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; + /** + * Verifies an ImportFeatureValuesOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a new CategoricalValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns CategoricalValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; + /** + * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ImportFeatureValuesOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata; - /** - * Encodes the specified CategoricalValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. - * @param message CategoricalValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message ImportFeatureValuesOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Encodes the specified CategoricalValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. - * @param message CategoricalValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Converts this ImportFeatureValuesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Decodes a CategoricalValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CategoricalValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; + /** Properties of an ExportFeatureValuesOperationMetadata. */ + interface IExportFeatureValuesOperationMetadata { - /** - * Decodes a CategoricalValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CategoricalValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; + /** ExportFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** - * Verifies a CategoricalValueSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** Represents an ExportFeatureValuesOperationMetadata. */ + class ExportFeatureValuesOperationMetadata implements IExportFeatureValuesOperationMetadata { - /** - * Creates a CategoricalValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CategoricalValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; + /** + * Constructs a new ExportFeatureValuesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata); - /** - * Creates a plain object from a CategoricalValueSpec message. Also converts values to other types if specified. - * @param message CategoricalValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ExportFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Converts this CategoricalValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns ExportFeatureValuesOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; - /** Properties of a DiscreteValueSpec. */ - interface IDiscreteValueSpec { + /** + * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ExportFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** DiscreteValueSpec values */ - values?: (number[]|null); + /** + * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * @param message ExportFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** DiscreteValueSpec defaultValue */ - defaultValue?: (number|null); - } + /** + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ExportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; - /** Represents a DiscreteValueSpec. */ - class DiscreteValueSpec implements IDiscreteValueSpec { + /** + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ExportFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; - /** - * Constructs a new DiscreteValueSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec); + /** + * Verifies an ExportFeatureValuesOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** DiscreteValueSpec values. */ - public values: number[]; + /** + * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ExportFeatureValuesOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata; - /** DiscreteValueSpec defaultValue. */ - public defaultValue?: (number|null); + /** + * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message ExportFeatureValuesOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** DiscreteValueSpec _defaultValue. */ - public _defaultValue?: "defaultValue"; + /** + * Converts this ExportFeatureValuesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a new DiscreteValueSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DiscreteValueSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + /** Properties of a BatchReadFeatureValuesOperationMetadata. */ + interface IBatchReadFeatureValuesOperationMetadata { - /** - * Encodes the specified DiscreteValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. - * @param message DiscreteValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** BatchReadFeatureValuesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** - * Encodes the specified DiscreteValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. - * @param message DiscreteValueSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a BatchReadFeatureValuesOperationMetadata. */ + class BatchReadFeatureValuesOperationMetadata implements IBatchReadFeatureValuesOperationMetadata { - /** - * Decodes a DiscreteValueSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DiscreteValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + /** + * Constructs a new BatchReadFeatureValuesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata); - /** - * Decodes a DiscreteValueSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DiscreteValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + /** BatchReadFeatureValuesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Verifies a DiscreteValueSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchReadFeatureValuesOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; - /** - * Creates a DiscreteValueSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DiscreteValueSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + /** + * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a plain object from a DiscreteValueSpec message. Also converts values to other types if specified. - * @param message DiscreteValueSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * @param message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Converts this DiscreteValueSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchReadFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; - /** Properties of a ConditionalParameterSpec. */ - interface IConditionalParameterSpec { + /** + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchReadFeatureValuesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; - /** ConditionalParameterSpec parentDiscreteValues */ - parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); + /** + * Verifies a BatchReadFeatureValuesOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** ConditionalParameterSpec parentIntValues */ - parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); + /** + * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchReadFeatureValuesOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata; - /** ConditionalParameterSpec parentCategoricalValues */ - parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); + /** + * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchReadFeatureValuesOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ConditionalParameterSpec parameterSpec */ - parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); - } + /** + * Converts this BatchReadFeatureValuesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a ConditionalParameterSpec. */ - class ConditionalParameterSpec implements IConditionalParameterSpec { + /** Properties of a CreateEntityTypeOperationMetadata. */ + interface ICreateEntityTypeOperationMetadata { - /** - * Constructs a new ConditionalParameterSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec); + /** CreateEntityTypeOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** ConditionalParameterSpec parentDiscreteValues. */ - public parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); + /** Represents a CreateEntityTypeOperationMetadata. */ + class CreateEntityTypeOperationMetadata implements ICreateEntityTypeOperationMetadata { - /** ConditionalParameterSpec parentIntValues. */ - public parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); + /** + * Constructs a new CreateEntityTypeOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata); - /** ConditionalParameterSpec parentCategoricalValues. */ - public parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); + /** CreateEntityTypeOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ConditionalParameterSpec parameterSpec. */ - public parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); + /** + * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateEntityTypeOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; - /** ConditionalParameterSpec parentValueCondition. */ - public parentValueCondition?: ("parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"); + /** + * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @param message CreateEntityTypeOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new ConditionalParameterSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ConditionalParameterSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** + * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @param message CreateEntityTypeOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ConditionalParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. - * @param message ConditionalParameterSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateEntityTypeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; - /** - * Encodes the specified ConditionalParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. - * @param message ConditionalParameterSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateEntityTypeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; - /** - * Decodes a ConditionalParameterSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConditionalParameterSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** + * Verifies a CreateEntityTypeOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a ConditionalParameterSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConditionalParameterSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** + * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateEntityTypeOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata; - /** - * Verifies a ConditionalParameterSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. + * @param message CreateEntityTypeOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a ConditionalParameterSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConditionalParameterSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + /** + * Converts this CreateEntityTypeOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a plain object from a ConditionalParameterSpec message. Also converts values to other types if specified. - * @param message ConditionalParameterSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** Properties of a CreateFeatureOperationMetadata. */ + interface ICreateFeatureOperationMetadata { - /** - * Converts this ConditionalParameterSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** CreateFeatureOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - namespace ConditionalParameterSpec { + /** Represents a CreateFeatureOperationMetadata. */ + class CreateFeatureOperationMetadata implements ICreateFeatureOperationMetadata { - /** Properties of a DiscreteValueCondition. */ - interface IDiscreteValueCondition { + /** + * Constructs a new CreateFeatureOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata); - /** DiscreteValueCondition values */ - values?: (number[]|null); - } + /** CreateFeatureOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** Represents a DiscreteValueCondition. */ - class DiscreteValueCondition implements IDiscreteValueCondition { + /** + * Creates a new CreateFeatureOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateFeatureOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; - /** - * Constructs a new DiscreteValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition); + /** + * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. + * @param message CreateFeatureOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** DiscreteValueCondition values. */ - public values: number[]; + /** + * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. + * @param message CreateFeatureOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new DiscreteValueCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns DiscreteValueCondition instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateFeatureOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; - /** - * Encodes the specified DiscreteValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. - * @param message DiscreteValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateFeatureOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; - /** - * Encodes the specified DiscreteValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. - * @param message DiscreteValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a CreateFeatureOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes a DiscreteValueCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DiscreteValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** + * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateFeatureOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata; - /** - * Decodes a DiscreteValueCondition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DiscreteValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** + * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. + * @param message CreateFeatureOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies a DiscreteValueCondition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this CreateFeatureOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates a DiscreteValueCondition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DiscreteValueCondition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + /** Properties of a BatchCreateFeaturesOperationMetadata. */ + interface IBatchCreateFeaturesOperationMetadata { - /** - * Creates a plain object from a DiscreteValueCondition message. Also converts values to other types if specified. - * @param message DiscreteValueCondition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** BatchCreateFeaturesOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + } - /** - * Converts this DiscreteValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Represents a BatchCreateFeaturesOperationMetadata. */ + class BatchCreateFeaturesOperationMetadata implements IBatchCreateFeaturesOperationMetadata { - /** Properties of an IntValueCondition. */ - interface IIntValueCondition { + /** + * Constructs a new BatchCreateFeaturesOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata); - /** IntValueCondition values */ - values?: ((number|Long|string)[]|null); - } + /** BatchCreateFeaturesOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** Represents an IntValueCondition. */ - class IntValueCondition implements IIntValueCondition { + /** + * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchCreateFeaturesOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; - /** - * Constructs a new IntValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition); + /** + * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** IntValueCondition values. */ - public values: (number|Long|string)[]; + /** + * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @param message BatchCreateFeaturesOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Creates a new IntValueCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns IntValueCondition instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchCreateFeaturesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; - /** - * Encodes the specified IntValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. - * @param message IntValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchCreateFeaturesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; - /** - * Encodes the specified IntValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. - * @param message IntValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Verifies a BatchCreateFeaturesOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Decodes an IntValueCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IntValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchCreateFeaturesOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata; - /** - * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IntValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** + * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. + * @param message BatchCreateFeaturesOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Verifies an IntValueCondition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Converts this BatchCreateFeaturesOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IntValueCondition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + /** Properties of a HyperparameterTuningJob. */ + interface IHyperparameterTuningJob { - /** - * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. - * @param message IntValueCondition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** HyperparameterTuningJob name */ + name?: (string|null); - /** - * Converts this IntValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** HyperparameterTuningJob displayName */ + displayName?: (string|null); - /** Properties of a CategoricalValueCondition. */ - interface ICategoricalValueCondition { + /** HyperparameterTuningJob studySpec */ + studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - /** CategoricalValueCondition values */ - values?: (string[]|null); - } + /** HyperparameterTuningJob maxTrialCount */ + maxTrialCount?: (number|null); - /** Represents a CategoricalValueCondition. */ - class CategoricalValueCondition implements ICategoricalValueCondition { + /** HyperparameterTuningJob parallelTrialCount */ + parallelTrialCount?: (number|null); - /** - * Constructs a new CategoricalValueCondition. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition); + /** HyperparameterTuningJob maxFailedTrialCount */ + maxFailedTrialCount?: (number|null); - /** CategoricalValueCondition values. */ - public values: string[]; + /** HyperparameterTuningJob trialJobSpec */ + trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** - * Creates a new CategoricalValueCondition instance using the specified properties. - * @param [properties] Properties to set - * @returns CategoricalValueCondition instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** HyperparameterTuningJob trials */ + trials?: (google.cloud.aiplatform.v1beta1.ITrial[]|null); - /** - * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @param message CategoricalValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** HyperparameterTuningJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** - * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @param message CategoricalValueCondition message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + /** HyperparameterTuningJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CategoricalValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** HyperparameterTuningJob startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CategoricalValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** HyperparameterTuningJob endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** - * Verifies a CategoricalValueCondition message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** HyperparameterTuningJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CategoricalValueCondition - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + /** HyperparameterTuningJob error */ + error?: (google.rpc.IStatus|null); - /** - * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. - * @param message CategoricalValueCondition - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** HyperparameterTuningJob labels */ + labels?: ({ [k: string]: string }|null); - /** - * Converts this CategoricalValueCondition to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** HyperparameterTuningJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + } - /** ScaleType enum. */ - enum ScaleType { - SCALE_TYPE_UNSPECIFIED = 0, - UNIT_LINEAR_SCALE = 1, - UNIT_LOG_SCALE = 2, - UNIT_REVERSE_LOG_SCALE = 3 - } - } + /** Represents a HyperparameterTuningJob. */ + class HyperparameterTuningJob implements IHyperparameterTuningJob { - /** Properties of a DecayCurveAutomatedStoppingSpec. */ - interface IDecayCurveAutomatedStoppingSpec { + /** + * Constructs a new HyperparameterTuningJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob); - /** DecayCurveAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); - } + /** HyperparameterTuningJob name. */ + public name: string; - /** Represents a DecayCurveAutomatedStoppingSpec. */ - class DecayCurveAutomatedStoppingSpec implements IDecayCurveAutomatedStoppingSpec { + /** HyperparameterTuningJob displayName. */ + public displayName: string; - /** - * Constructs a new DecayCurveAutomatedStoppingSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec); - - /** DecayCurveAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; - - /** - * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns DecayCurveAutomatedStoppingSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; - - /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. - * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. - * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DecayCurveAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; - - /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DecayCurveAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; - - /** - * Verifies a DecayCurveAutomatedStoppingSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DecayCurveAutomatedStoppingSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; - - /** - * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. - * @param message DecayCurveAutomatedStoppingSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this DecayCurveAutomatedStoppingSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a MedianAutomatedStoppingSpec. */ - interface IMedianAutomatedStoppingSpec { - - /** MedianAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); - } - - /** Represents a MedianAutomatedStoppingSpec. */ - class MedianAutomatedStoppingSpec implements IMedianAutomatedStoppingSpec { - - /** - * Constructs a new MedianAutomatedStoppingSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec); - - /** MedianAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; - - /** - * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns MedianAutomatedStoppingSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; - - /** - * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @param message MedianAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. - * @param message MedianAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns MedianAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; - - /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns MedianAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; - - /** - * Verifies a MedianAutomatedStoppingSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns MedianAutomatedStoppingSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; - - /** - * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. - * @param message MedianAutomatedStoppingSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this MedianAutomatedStoppingSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ConvexAutomatedStoppingSpec. */ - interface IConvexAutomatedStoppingSpec { - - /** ConvexAutomatedStoppingSpec maxStepCount */ - maxStepCount?: (number|Long|string|null); - - /** ConvexAutomatedStoppingSpec minStepCount */ - minStepCount?: (number|Long|string|null); - - /** ConvexAutomatedStoppingSpec minMeasurementCount */ - minMeasurementCount?: (number|Long|string|null); - - /** ConvexAutomatedStoppingSpec learningRateParameterName */ - learningRateParameterName?: (string|null); - - /** ConvexAutomatedStoppingSpec useElapsedDuration */ - useElapsedDuration?: (boolean|null); - } - - /** Represents a ConvexAutomatedStoppingSpec. */ - class ConvexAutomatedStoppingSpec implements IConvexAutomatedStoppingSpec { - - /** - * Constructs a new ConvexAutomatedStoppingSpec. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec); - - /** ConvexAutomatedStoppingSpec maxStepCount. */ - public maxStepCount: (number|Long|string); - - /** ConvexAutomatedStoppingSpec minStepCount. */ - public minStepCount: (number|Long|string); - - /** ConvexAutomatedStoppingSpec minMeasurementCount. */ - public minMeasurementCount: (number|Long|string); - - /** ConvexAutomatedStoppingSpec learningRateParameterName. */ - public learningRateParameterName: string; - - /** ConvexAutomatedStoppingSpec useElapsedDuration. */ - public useElapsedDuration: boolean; - - /** - * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. - * @param [properties] Properties to set - * @returns ConvexAutomatedStoppingSpec instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - - /** - * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @param message ConvexAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. - * @param message ConvexAutomatedStoppingSpec message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConvexAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - - /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConvexAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - - /** - * Verifies a ConvexAutomatedStoppingSpec message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConvexAutomatedStoppingSpec - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - - /** - * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. - * @param message ConvexAutomatedStoppingSpec - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this ConvexAutomatedStoppingSpec to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ConvexStopConfig. */ - interface IConvexStopConfig { - - /** ConvexStopConfig maxNumSteps */ - maxNumSteps?: (number|Long|string|null); - - /** ConvexStopConfig minNumSteps */ - minNumSteps?: (number|Long|string|null); - - /** ConvexStopConfig autoregressiveOrder */ - autoregressiveOrder?: (number|Long|string|null); - - /** ConvexStopConfig learningRateParameterName */ - learningRateParameterName?: (string|null); - - /** ConvexStopConfig useSeconds */ - useSeconds?: (boolean|null); - } - - /** Represents a ConvexStopConfig. */ - class ConvexStopConfig implements IConvexStopConfig { - - /** - * Constructs a new ConvexStopConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig); - - /** ConvexStopConfig maxNumSteps. */ - public maxNumSteps: (number|Long|string); - - /** ConvexStopConfig minNumSteps. */ - public minNumSteps: (number|Long|string); - - /** ConvexStopConfig autoregressiveOrder. */ - public autoregressiveOrder: (number|Long|string); - - /** ConvexStopConfig learningRateParameterName. */ - public learningRateParameterName: string; - - /** ConvexStopConfig useSeconds. */ - public useSeconds: boolean; - - /** - * Creates a new ConvexStopConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns ConvexStopConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; - - /** - * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. - * @param message ConvexStopConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. - * @param message ConvexStopConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a ConvexStopConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ConvexStopConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; - - /** - * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ConvexStopConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; - - /** - * Verifies a ConvexStopConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ConvexStopConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; - - /** - * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. - * @param message ConvexStopConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** HyperparameterTuningJob studySpec. */ + public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - /** - * Converts this ConvexStopConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** HyperparameterTuningJob maxTrialCount. */ + public maxTrialCount: number; - /** Algorithm enum. */ - enum Algorithm { - ALGORITHM_UNSPECIFIED = 0, - GRID_SEARCH = 2, - RANDOM_SEARCH = 3 - } + /** HyperparameterTuningJob parallelTrialCount. */ + public parallelTrialCount: number; - /** ObservationNoise enum. */ - enum ObservationNoise { - OBSERVATION_NOISE_UNSPECIFIED = 0, - LOW = 1, - HIGH = 2 - } + /** HyperparameterTuningJob maxFailedTrialCount. */ + public maxFailedTrialCount: number; - /** MeasurementSelectionType enum. */ - enum MeasurementSelectionType { - MEASUREMENT_SELECTION_TYPE_UNSPECIFIED = 0, - LAST_MEASUREMENT = 1, - BEST_MEASUREMENT = 2 - } - } + /** HyperparameterTuningJob trialJobSpec. */ + public trialJobSpec?: (google.cloud.aiplatform.v1beta1.ICustomJobSpec|null); - /** Properties of a Measurement. */ - interface IMeasurement { + /** HyperparameterTuningJob trials. */ + public trials: google.cloud.aiplatform.v1beta1.ITrial[]; - /** Measurement elapsedDuration */ - elapsedDuration?: (google.protobuf.IDuration|null); + /** HyperparameterTuningJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** Measurement stepCount */ - stepCount?: (number|Long|string|null); + /** HyperparameterTuningJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Measurement metrics */ - metrics?: (google.cloud.aiplatform.v1beta1.Measurement.IMetric[]|null); - } + /** HyperparameterTuningJob startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** Represents a Measurement. */ - class Measurement implements IMeasurement { + /** HyperparameterTuningJob endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** - * Constructs a new Measurement. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMeasurement); + /** HyperparameterTuningJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** Measurement elapsedDuration. */ - public elapsedDuration?: (google.protobuf.IDuration|null); + /** HyperparameterTuningJob error. */ + public error?: (google.rpc.IStatus|null); - /** Measurement stepCount. */ - public stepCount: (number|Long|string); + /** HyperparameterTuningJob labels. */ + public labels: { [k: string]: string }; - /** Measurement metrics. */ - public metrics: google.cloud.aiplatform.v1beta1.Measurement.IMetric[]; + /** HyperparameterTuningJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); /** - * Creates a new Measurement instance using the specified properties. + * Creates a new HyperparameterTuningJob instance using the specified properties. * @param [properties] Properties to set - * @returns Measurement instance + * @returns HyperparameterTuningJob instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMeasurement): google.cloud.aiplatform.v1beta1.Measurement; + public static create(properties?: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. - * @param message Measurement message or plain object to encode + * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. + * @param message HyperparameterTuningJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. - * @param message Measurement message or plain object to encode + * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. + * @param message HyperparameterTuningJob message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a Measurement message from the specified reader or buffer. + * Decodes a HyperparameterTuningJob message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Measurement + * @returns HyperparameterTuningJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Measurement; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Decodes a Measurement message from the specified reader or buffer, length delimited. + * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Measurement + * @returns HyperparameterTuningJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Measurement; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Verifies a Measurement message. + * Verifies a HyperparameterTuningJob message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a Measurement message from a plain object. Also converts values to their respective internal types. + * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Measurement + * @returns HyperparameterTuningJob */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.HyperparameterTuningJob; /** - * Creates a plain object from a Measurement message. Also converts values to other types if specified. - * @param message Measurement + * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. + * @param message HyperparameterTuningJob * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Measurement to JSON. + * Converts this HyperparameterTuningJob to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace Measurement { - - /** Properties of a Metric. */ - interface IMetric { + /** Properties of a Study. */ + interface IStudy { - /** Metric metricId */ - metricId?: (string|null); - - /** Metric value */ - value?: (number|null); - } - - /** Represents a Metric. */ - class Metric implements IMetric { - - /** - * Constructs a new Metric. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric); - - /** Metric metricId. */ - public metricId: string; - - /** Metric value. */ - public value: number; - - /** - * Creates a new Metric instance using the specified properties. - * @param [properties] Properties to set - * @returns Metric instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric): google.cloud.aiplatform.v1beta1.Measurement.Metric; - - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @param message Metric message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a Metric message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Measurement.Metric; - - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Measurement.Metric; - - /** - * Verifies a Metric message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns Metric - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement.Metric; - - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @param message Metric - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this Metric to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of an Index. */ - interface IIndex { - - /** Index name */ + /** Study name */ name?: (string|null); - /** Index displayName */ + /** Study displayName */ displayName?: (string|null); - /** Index description */ - description?: (string|null); - - /** Index metadataSchemaUri */ - metadataSchemaUri?: (string|null); - - /** Index metadata */ - metadata?: (google.protobuf.IValue|null); - - /** Index deployedIndexes */ - deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]|null); - - /** Index etag */ - etag?: (string|null); + /** Study studySpec */ + studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - /** Index labels */ - labels?: ({ [k: string]: string }|null); + /** Study state */ + state?: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State|null); - /** Index createTime */ + /** Study createTime */ createTime?: (google.protobuf.ITimestamp|null); - /** Index updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Study inactiveReason */ + inactiveReason?: (string|null); } - /** Represents an Index. */ - class Index implements IIndex { + /** Represents a Study. */ + class Study implements IStudy { /** - * Constructs a new Index. + * Constructs a new Study. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndex); + constructor(properties?: google.cloud.aiplatform.v1beta1.IStudy); - /** Index name. */ + /** Study name. */ public name: string; - /** Index displayName. */ + /** Study displayName. */ public displayName: string; - /** Index description. */ - public description: string; - - /** Index metadataSchemaUri. */ - public metadataSchemaUri: string; - - /** Index metadata. */ - public metadata?: (google.protobuf.IValue|null); - - /** Index deployedIndexes. */ - public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]; - - /** Index etag. */ - public etag: string; + /** Study studySpec. */ + public studySpec?: (google.cloud.aiplatform.v1beta1.IStudySpec|null); - /** Index labels. */ - public labels: { [k: string]: string }; + /** Study state. */ + public state: (google.cloud.aiplatform.v1beta1.Study.State|keyof typeof google.cloud.aiplatform.v1beta1.Study.State); - /** Index createTime. */ + /** Study createTime. */ public createTime?: (google.protobuf.ITimestamp|null); - /** Index updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Study inactiveReason. */ + public inactiveReason: string; /** - * Creates a new Index instance using the specified properties. + * Creates a new Study instance using the specified properties. * @param [properties] Properties to set - * @returns Index instance + * @returns Study instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndex): google.cloud.aiplatform.v1beta1.Index; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStudy): google.cloud.aiplatform.v1beta1.Study; /** - * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. - * @param message Index message or plain object to encode + * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. + * @param message Study message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. - * @param message Index message or plain object to encode + * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. + * @param message Study message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudy, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an Index message from the specified reader or buffer. + * Decodes a Study message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns Index + * @returns Study * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Index; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Study; /** - * Decodes an Index message from the specified reader or buffer, length delimited. + * Decodes a Study message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns Index + * @returns Study * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Index; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Study; /** - * Verifies an Index message. + * Verifies a Study message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an Index message from a plain object. Also converts values to their respective internal types. + * Creates a Study message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns Index + * @returns Study */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Index; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Study; /** - * Creates a plain object from an Index message. Also converts values to other types if specified. - * @param message Index + * Creates a plain object from a Study message. Also converts values to other types if specified. + * @param message Study * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.Index, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Study, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this Index to JSON. + * Converts this Study to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an IndexEndpoint. */ - interface IIndexEndpoint { + namespace Study { - /** IndexEndpoint name */ + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + ACTIVE = 1, + INACTIVE = 2, + COMPLETED = 3 + } + } + + /** Properties of a Trial. */ + interface ITrial { + + /** Trial name */ name?: (string|null); - /** IndexEndpoint displayName */ - displayName?: (string|null); + /** Trial id */ + id?: (string|null); - /** IndexEndpoint description */ - description?: (string|null); + /** Trial state */ + state?: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State|null); - /** IndexEndpoint deployedIndexes */ - deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndex[]|null); + /** Trial parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.Trial.IParameter[]|null); - /** IndexEndpoint etag */ - etag?: (string|null); + /** Trial finalMeasurement */ + finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); - /** IndexEndpoint labels */ - labels?: ({ [k: string]: string }|null); + /** Trial measurements */ + measurements?: (google.cloud.aiplatform.v1beta1.IMeasurement[]|null); - /** IndexEndpoint createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Trial startTime */ + startTime?: (google.protobuf.ITimestamp|null); - /** IndexEndpoint updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); + /** Trial endTime */ + endTime?: (google.protobuf.ITimestamp|null); - /** IndexEndpoint network */ - network?: (string|null); + /** Trial clientId */ + clientId?: (string|null); - /** IndexEndpoint enablePrivateServiceConnect */ - enablePrivateServiceConnect?: (boolean|null); + /** Trial infeasibleReason */ + infeasibleReason?: (string|null); + + /** Trial customJob */ + customJob?: (string|null); + + /** Trial webAccessUris */ + webAccessUris?: ({ [k: string]: string }|null); } - /** Represents an IndexEndpoint. */ - class IndexEndpoint implements IIndexEndpoint { + /** Represents a Trial. */ + class Trial implements ITrial { /** - * Constructs a new IndexEndpoint. + * Constructs a new Trial. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint); + constructor(properties?: google.cloud.aiplatform.v1beta1.ITrial); - /** IndexEndpoint name. */ + /** Trial name. */ public name: string; - /** IndexEndpoint displayName. */ - public displayName: string; + /** Trial id. */ + public id: string; - /** IndexEndpoint description. */ - public description: string; + /** Trial state. */ + public state: (google.cloud.aiplatform.v1beta1.Trial.State|keyof typeof google.cloud.aiplatform.v1beta1.Trial.State); - /** IndexEndpoint deployedIndexes. */ - public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndex[]; + /** Trial parameters. */ + public parameters: google.cloud.aiplatform.v1beta1.Trial.IParameter[]; - /** IndexEndpoint etag. */ - public etag: string; + /** Trial finalMeasurement. */ + public finalMeasurement?: (google.cloud.aiplatform.v1beta1.IMeasurement|null); - /** IndexEndpoint labels. */ - public labels: { [k: string]: string }; + /** Trial measurements. */ + public measurements: google.cloud.aiplatform.v1beta1.IMeasurement[]; - /** IndexEndpoint createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Trial startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); - /** IndexEndpoint updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** Trial endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); - /** IndexEndpoint network. */ - public network: string; + /** Trial clientId. */ + public clientId: string; - /** IndexEndpoint enablePrivateServiceConnect. */ - public enablePrivateServiceConnect: boolean; + /** Trial infeasibleReason. */ + public infeasibleReason: string; + + /** Trial customJob. */ + public customJob: string; + + /** Trial webAccessUris. */ + public webAccessUris: { [k: string]: string }; /** - * Creates a new IndexEndpoint instance using the specified properties. + * Creates a new Trial instance using the specified properties. * @param [properties] Properties to set - * @returns IndexEndpoint instance + * @returns Trial instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint): google.cloud.aiplatform.v1beta1.IndexEndpoint; + public static create(properties?: google.cloud.aiplatform.v1beta1.ITrial): google.cloud.aiplatform.v1beta1.Trial; /** - * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. - * @param message IndexEndpoint message or plain object to encode + * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. + * @param message Trial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. - * @param message IndexEndpoint message or plain object to encode + * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. + * @param message Trial message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ITrial, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an IndexEndpoint message from the specified reader or buffer. + * Decodes a Trial message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns IndexEndpoint + * @returns Trial * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexEndpoint; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Trial; /** - * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. + * Decodes a Trial message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns IndexEndpoint + * @returns Trial * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexEndpoint; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Trial; /** - * Verifies an IndexEndpoint message. + * Verifies a Trial message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an IndexEndpoint message from a plain object. Also converts values to their respective internal types. + * Creates a Trial message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns IndexEndpoint + * @returns Trial */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexEndpoint; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial; /** - * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. - * @param message IndexEndpoint + * Creates a plain object from a Trial message. Also converts values to other types if specified. + * @param message Trial * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Trial, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this IndexEndpoint to JSON. + * Converts this Trial to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployedIndex. */ - interface IDeployedIndex { + namespace Trial { - /** DeployedIndex id */ - id?: (string|null); + /** Properties of a Parameter. */ + interface IParameter { - /** DeployedIndex index */ - index?: (string|null); + /** Parameter parameterId */ + parameterId?: (string|null); - /** DeployedIndex displayName */ - displayName?: (string|null); + /** Parameter value */ + value?: (google.protobuf.IValue|null); + } - /** DeployedIndex createTime */ - createTime?: (google.protobuf.ITimestamp|null); + /** Represents a Parameter. */ + class Parameter implements IParameter { - /** DeployedIndex privateEndpoints */ - privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); + /** + * Constructs a new Parameter. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter); - /** DeployedIndex indexSyncTime */ - indexSyncTime?: (google.protobuf.ITimestamp|null); + /** Parameter parameterId. */ + public parameterId: string; - /** DeployedIndex automaticResources */ - automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + /** Parameter value. */ + public value?: (google.protobuf.IValue|null); - /** DeployedIndex dedicatedResources */ - dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** + * Creates a new Parameter instance using the specified properties. + * @param [properties] Properties to set + * @returns Parameter instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Trial.IParameter): google.cloud.aiplatform.v1beta1.Trial.Parameter; - /** DeployedIndex enableAccessLogging */ - enableAccessLogging?: (boolean|null); + /** + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - /** DeployedIndex deployedIndexAuthConfig */ - deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); + /** + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. + * @param message Parameter message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Trial.IParameter, writer?: $protobuf.Writer): $protobuf.Writer; - /** DeployedIndex reservedIpRanges */ - reservedIpRanges?: (string[]|null); + /** + * Decodes a Parameter message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Trial.Parameter; - /** DeployedIndex deploymentGroup */ - deploymentGroup?: (string|null); - } + /** + * Decodes a Parameter message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Parameter + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Trial.Parameter; - /** Represents a DeployedIndex. */ - class DeployedIndex implements IDeployedIndex { + /** + * Verifies a Parameter message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Constructs a new DeployedIndex. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex); + /** + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Parameter + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Trial.Parameter; - /** DeployedIndex id. */ - public id: string; + /** + * Creates a plain object from a Parameter message. Also converts values to other types if specified. + * @param message Parameter + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Trial.Parameter, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** DeployedIndex index. */ - public index: string; + /** + * Converts this Parameter to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** DeployedIndex displayName. */ - public displayName: string; + /** State enum. */ + enum State { + STATE_UNSPECIFIED = 0, + REQUESTED = 1, + ACTIVE = 2, + STOPPING = 3, + SUCCEEDED = 4, + INFEASIBLE = 5 + } + } - /** DeployedIndex createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Properties of a StudySpec. */ + interface IStudySpec { - /** DeployedIndex privateEndpoints. */ - public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); + /** StudySpec decayCurveStoppingSpec */ + decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); - /** DeployedIndex indexSyncTime. */ - public indexSyncTime?: (google.protobuf.ITimestamp|null); + /** StudySpec medianAutomatedStoppingSpec */ + medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); - /** DeployedIndex automaticResources. */ - public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); - - /** DeployedIndex dedicatedResources. */ - public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + /** StudySpec convexStopConfig */ + convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); - /** DeployedIndex enableAccessLogging. */ - public enableAccessLogging: boolean; + /** StudySpec convexAutomatedStoppingSpec */ + convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); - /** DeployedIndex deployedIndexAuthConfig. */ - public deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); + /** StudySpec metrics */ + metrics?: (google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]|null); - /** DeployedIndex reservedIpRanges. */ - public reservedIpRanges: string[]; + /** StudySpec parameters */ + parameters?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]|null); - /** DeployedIndex deploymentGroup. */ - public deploymentGroup: string; + /** StudySpec algorithm */ + algorithm?: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null); - /** - * Creates a new DeployedIndex instance using the specified properties. - * @param [properties] Properties to set - * @returns DeployedIndex instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex): google.cloud.aiplatform.v1beta1.DeployedIndex; + /** StudySpec observationNoise */ + observationNoise?: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null); - /** - * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. - * @param message DeployedIndex message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; + /** StudySpec measurementSelectionType */ + measurementSelectionType?: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null); + } - /** - * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. - * @param message DeployedIndex message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; + /** Represents a StudySpec. */ + class StudySpec implements IStudySpec { /** - * Decodes a DeployedIndex message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeployedIndex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Constructs a new StudySpec. + * @param [properties] Properties to set */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndex; + constructor(properties?: google.cloud.aiplatform.v1beta1.IStudySpec); - /** - * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeployedIndex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndex; + /** StudySpec decayCurveStoppingSpec. */ + public decayCurveStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null); - /** - * Verifies a DeployedIndex message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** StudySpec medianAutomatedStoppingSpec. */ + public medianAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null); - /** - * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeployedIndex - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndex; + /** StudySpec convexStopConfig. */ + public convexStopConfig?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null); - /** - * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. - * @param message DeployedIndex - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndex, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** StudySpec convexAutomatedStoppingSpec. */ + public convexAutomatedStoppingSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null); - /** - * Converts this DeployedIndex to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** StudySpec metrics. */ + public metrics: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec[]; - /** Properties of a DeployedIndexAuthConfig. */ - interface IDeployedIndexAuthConfig { + /** StudySpec parameters. */ + public parameters: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec[]; - /** DeployedIndexAuthConfig authProvider */ - authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); - } + /** StudySpec algorithm. */ + public algorithm: (google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.Algorithm); - /** Represents a DeployedIndexAuthConfig. */ - class DeployedIndexAuthConfig implements IDeployedIndexAuthConfig { + /** StudySpec observationNoise. */ + public observationNoise: (google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise); - /** - * Constructs a new DeployedIndexAuthConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig); + /** StudySpec measurementSelectionType. */ + public measurementSelectionType: (google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType); - /** DeployedIndexAuthConfig authProvider. */ - public authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); + /** StudySpec automatedStoppingSpec. */ + public automatedStoppingSpec?: ("decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"); /** - * Creates a new DeployedIndexAuthConfig instance using the specified properties. + * Creates a new StudySpec instance using the specified properties. * @param [properties] Properties to set - * @returns DeployedIndexAuthConfig instance + * @returns StudySpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IStudySpec): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. - * @param message DeployedIndexAuthConfig message or plain object to encode + * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. + * @param message StudySpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. - * @param message DeployedIndexAuthConfig message or plain object to encode + * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. + * @param message StudySpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IStudySpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. + * Decodes a StudySpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployedIndexAuthConfig + * @returns StudySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. + * Decodes a StudySpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployedIndexAuthConfig + * @returns StudySpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Verifies a DeployedIndexAuthConfig message. + * Verifies a StudySpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. + * Creates a StudySpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployedIndexAuthConfig + * @returns StudySpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec; /** - * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. - * @param message DeployedIndexAuthConfig + * Creates a plain object from a StudySpec message. Also converts values to other types if specified. + * @param message StudySpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployedIndexAuthConfig to JSON. + * Converts this StudySpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace DeployedIndexAuthConfig { + namespace StudySpec { - /** Properties of an AuthProvider. */ - interface IAuthProvider { + /** Properties of a MetricSpec. */ + interface IMetricSpec { - /** AuthProvider audiences */ - audiences?: (string[]|null); + /** MetricSpec metricId */ + metricId?: (string|null); - /** AuthProvider allowedIssuers */ - allowedIssuers?: (string[]|null); + /** MetricSpec goal */ + goal?: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null); } - /** Represents an AuthProvider. */ - class AuthProvider implements IAuthProvider { + /** Represents a MetricSpec. */ + class MetricSpec implements IMetricSpec { /** - * Constructs a new AuthProvider. + * Constructs a new MetricSpec. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider); + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec); - /** AuthProvider audiences. */ - public audiences: string[]; + /** MetricSpec metricId. */ + public metricId: string; - /** AuthProvider allowedIssuers. */ - public allowedIssuers: string[]; + /** MetricSpec goal. */ + public goal: (google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType); /** - * Creates a new AuthProvider instance using the specified properties. + * Creates a new MetricSpec instance using the specified properties. * @param [properties] Properties to set - * @returns AuthProvider instance + * @returns MetricSpec instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; /** - * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @param message AuthProvider message or plain object to encode + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. - * @param message AuthProvider message or plain object to encode + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. + * @param message MetricSpec message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an AuthProvider message from the specified reader or buffer. + * Decodes a MetricSpec message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns AuthProvider + * @returns MetricSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; /** - * Decodes an AuthProvider message from the specified reader or buffer, length delimited. + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns AuthProvider + * @returns MetricSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; /** - * Verifies an AuthProvider message. + * Verifies a MetricSpec message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns AuthProvider + * @returns MetricSpec */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec; /** - * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. - * @param message AuthProvider + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. + * @param message MetricSpec * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this AuthProvider to JSON. + * Converts this MetricSpec to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - } - - /** Properties of an IndexPrivateEndpoints. */ - interface IIndexPrivateEndpoints { - /** IndexPrivateEndpoints matchGrpcAddress */ - matchGrpcAddress?: (string|null); + namespace MetricSpec { - /** IndexPrivateEndpoints serviceAttachment */ - serviceAttachment?: (string|null); - } + /** GoalType enum. */ + enum GoalType { + GOAL_TYPE_UNSPECIFIED = 0, + MAXIMIZE = 1, + MINIMIZE = 2 + } + } - /** Represents an IndexPrivateEndpoints. */ - class IndexPrivateEndpoints implements IIndexPrivateEndpoints { + /** Properties of a ParameterSpec. */ + interface IParameterSpec { - /** - * Constructs a new IndexPrivateEndpoints. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints); + /** ParameterSpec doubleValueSpec */ + doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); - /** IndexPrivateEndpoints matchGrpcAddress. */ - public matchGrpcAddress: string; + /** ParameterSpec integerValueSpec */ + integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); - /** IndexPrivateEndpoints serviceAttachment. */ - public serviceAttachment: string; + /** ParameterSpec categoricalValueSpec */ + categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); - /** - * Creates a new IndexPrivateEndpoints instance using the specified properties. - * @param [properties] Properties to set - * @returns IndexPrivateEndpoints instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; + /** ParameterSpec discreteValueSpec */ + discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); - /** - * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. - * @param message IndexPrivateEndpoints message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + /** ParameterSpec parameterId */ + parameterId?: (string|null); - /** - * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. - * @param message IndexPrivateEndpoints message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; + /** ParameterSpec scaleType */ + scaleType?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|null); - /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns IndexPrivateEndpoints - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; + /** ParameterSpec conditionalParameterSpecs */ + conditionalParameterSpecs?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]|null); + } - /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns IndexPrivateEndpoints - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; + /** Represents a ParameterSpec. */ + class ParameterSpec implements IParameterSpec { - /** - * Verifies an IndexPrivateEndpoints message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Constructs a new ParameterSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec); - /** - * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns IndexPrivateEndpoints - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; + /** ParameterSpec doubleValueSpec. */ + public doubleValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null); - /** - * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. - * @param message IndexPrivateEndpoints - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ParameterSpec integerValueSpec. */ + public integerValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null); - /** - * Converts this IndexPrivateEndpoints to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ParameterSpec categoricalValueSpec. */ + public categoricalValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null); - /** Represents an IndexEndpointService */ - class IndexEndpointService extends $protobuf.rpc.Service { + /** ParameterSpec discreteValueSpec. */ + public discreteValueSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null); - /** - * Constructs a new IndexEndpointService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); + /** ParameterSpec parameterId. */ + public parameterId: string; - /** - * Creates new IndexEndpointService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexEndpointService; + /** ParameterSpec scaleType. */ + public scaleType: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|keyof typeof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType); - /** - * Calls CreateIndexEndpoint. - * @param request CreateIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback): void; + /** ParameterSpec conditionalParameterSpecs. */ + public conditionalParameterSpecs: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec[]; - /** - * Calls CreateIndexEndpoint. - * @param request CreateIndexEndpointRequest message or plain object - * @returns Promise - */ - public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): Promise; + /** ParameterSpec parameterValueSpec. */ + public parameterValueSpec?: ("doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"); - /** - * Calls GetIndexEndpoint. - * @param request GetIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IndexEndpoint - */ - public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback): void; + /** + * Creates a new ParameterSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ParameterSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; - /** - * Calls GetIndexEndpoint. - * @param request GetIndexEndpointRequest message or plain object - * @returns Promise - */ - public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): Promise; + /** + * Encodes the specified ParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. + * @param message ParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls ListIndexEndpoints. - * @param request ListIndexEndpointsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse - */ - public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback): void; + /** + * Encodes the specified ParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. + * @param message ParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls ListIndexEndpoints. - * @param request ListIndexEndpointsRequest message or plain object - * @returns Promise - */ - public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): Promise; + /** + * Decodes a ParameterSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ParameterSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; - /** - * Calls UpdateIndexEndpoint. - * @param request UpdateIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and IndexEndpoint - */ - public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback): void; + /** + * Decodes a ParameterSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ParameterSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; - /** - * Calls UpdateIndexEndpoint. - * @param request UpdateIndexEndpointRequest message or plain object - * @returns Promise - */ - public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): Promise; + /** + * Verifies a ParameterSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Calls DeleteIndexEndpoint. - * @param request DeleteIndexEndpointRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback): void; + /** + * Creates a ParameterSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ParameterSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec; - /** - * Calls DeleteIndexEndpoint. - * @param request DeleteIndexEndpointRequest message or plain object - * @returns Promise - */ - public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): Promise; + /** + * Creates a plain object from a ParameterSpec message. Also converts values to other types if specified. + * @param message ParameterSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Calls DeployIndex. - * @param request DeployIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback): void; + /** + * Converts this ParameterSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ParameterSpec { + + /** Properties of a DoubleValueSpec. */ + interface IDoubleValueSpec { + + /** DoubleValueSpec minValue */ + minValue?: (number|null); + + /** DoubleValueSpec maxValue */ + maxValue?: (number|null); + + /** DoubleValueSpec defaultValue */ + defaultValue?: (number|null); + } + + /** Represents a DoubleValueSpec. */ + class DoubleValueSpec implements IDoubleValueSpec { + + /** + * Constructs a new DoubleValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec); + + /** DoubleValueSpec minValue. */ + public minValue: number; + + /** DoubleValueSpec maxValue. */ + public maxValue: number; + + /** DoubleValueSpec defaultValue. */ + public defaultValue?: (number|null); + + /** DoubleValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; + + /** + * Creates a new DoubleValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DoubleValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; + + /** + * Encodes the specified DoubleValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. + * @param message DoubleValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DoubleValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. + * @param message DoubleValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DoubleValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DoubleValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; + + /** + * Decodes a DoubleValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DoubleValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; + + /** + * Verifies a DoubleValueSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DoubleValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DoubleValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec; + + /** + * Creates a plain object from a DoubleValueSpec message. Also converts values to other types if specified. + * @param message DoubleValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DoubleValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IntegerValueSpec. */ + interface IIntegerValueSpec { + + /** IntegerValueSpec minValue */ + minValue?: (number|Long|string|null); + + /** IntegerValueSpec maxValue */ + maxValue?: (number|Long|string|null); + + /** IntegerValueSpec defaultValue */ + defaultValue?: (number|Long|string|null); + } + + /** Represents an IntegerValueSpec. */ + class IntegerValueSpec implements IIntegerValueSpec { + + /** + * Constructs a new IntegerValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec); + + /** IntegerValueSpec minValue. */ + public minValue: (number|Long|string); + + /** IntegerValueSpec maxValue. */ + public maxValue: (number|Long|string); + + /** IntegerValueSpec defaultValue. */ + public defaultValue?: (number|Long|string|null); + + /** IntegerValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; + + /** + * Creates a new IntegerValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns IntegerValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; + + /** + * Encodes the specified IntegerValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. + * @param message IntegerValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IntegerValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. + * @param message IntegerValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntegerValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntegerValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; + + /** + * Decodes an IntegerValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntegerValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; + + /** + * Verifies an IntegerValueSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IntegerValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntegerValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec; + + /** + * Creates a plain object from an IntegerValueSpec message. Also converts values to other types if specified. + * @param message IntegerValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IntegerValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CategoricalValueSpec. */ + interface ICategoricalValueSpec { + + /** CategoricalValueSpec values */ + values?: (string[]|null); + + /** CategoricalValueSpec defaultValue */ + defaultValue?: (string|null); + } + + /** Represents a CategoricalValueSpec. */ + class CategoricalValueSpec implements ICategoricalValueSpec { + + /** + * Constructs a new CategoricalValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec); + + /** CategoricalValueSpec values. */ + public values: string[]; + + /** CategoricalValueSpec defaultValue. */ + public defaultValue?: (string|null); + + /** CategoricalValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; + + /** + * Creates a new CategoricalValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; + + /** + * Encodes the specified CategoricalValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. + * @param message CategoricalValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CategoricalValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. + * @param message CategoricalValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CategoricalValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; + + /** + * Decodes a CategoricalValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; + + /** + * Verifies a CategoricalValueSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CategoricalValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec; + + /** + * Creates a plain object from a CategoricalValueSpec message. Also converts values to other types if specified. + * @param message CategoricalValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CategoricalValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a DiscreteValueSpec. */ + interface IDiscreteValueSpec { + + /** DiscreteValueSpec values */ + values?: (number[]|null); + + /** DiscreteValueSpec defaultValue */ + defaultValue?: (number|null); + } + + /** Represents a DiscreteValueSpec. */ + class DiscreteValueSpec implements IDiscreteValueSpec { + + /** + * Constructs a new DiscreteValueSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec); + + /** DiscreteValueSpec values. */ + public values: number[]; + + /** DiscreteValueSpec defaultValue. */ + public defaultValue?: (number|null); + + /** DiscreteValueSpec _defaultValue. */ + public _defaultValue?: "defaultValue"; + + /** + * Creates a new DiscreteValueSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DiscreteValueSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + + /** + * Encodes the specified DiscreteValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. + * @param message DiscreteValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DiscreteValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. + * @param message DiscreteValueSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DiscreteValueSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DiscreteValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + + /** + * Decodes a DiscreteValueSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DiscreteValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + + /** + * Verifies a DiscreteValueSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DiscreteValueSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DiscreteValueSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec; + + /** + * Creates a plain object from a DiscreteValueSpec message. Also converts values to other types if specified. + * @param message DiscreteValueSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DiscreteValueSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ConditionalParameterSpec. */ + interface IConditionalParameterSpec { + + /** ConditionalParameterSpec parentDiscreteValues */ + parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); + + /** ConditionalParameterSpec parentIntValues */ + parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); + + /** ConditionalParameterSpec parentCategoricalValues */ + parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); + + /** ConditionalParameterSpec parameterSpec */ + parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); + } + + /** Represents a ConditionalParameterSpec. */ + class ConditionalParameterSpec implements IConditionalParameterSpec { + + /** + * Constructs a new ConditionalParameterSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec); + + /** ConditionalParameterSpec parentDiscreteValues. */ + public parentDiscreteValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null); + + /** ConditionalParameterSpec parentIntValues. */ + public parentIntValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null); + + /** ConditionalParameterSpec parentCategoricalValues. */ + public parentCategoricalValues?: (google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null); + + /** ConditionalParameterSpec parameterSpec. */ + public parameterSpec?: (google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null); + + /** ConditionalParameterSpec parentValueCondition. */ + public parentValueCondition?: ("parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"); + + /** + * Creates a new ConditionalParameterSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ConditionalParameterSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + + /** + * Encodes the specified ConditionalParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. + * @param message ConditionalParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConditionalParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. + * @param message ConditionalParameterSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConditionalParameterSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConditionalParameterSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + + /** + * Decodes a ConditionalParameterSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConditionalParameterSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + + /** + * Verifies a ConditionalParameterSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConditionalParameterSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConditionalParameterSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec; + + /** + * Creates a plain object from a ConditionalParameterSpec message. Also converts values to other types if specified. + * @param message ConditionalParameterSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConditionalParameterSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace ConditionalParameterSpec { + + /** Properties of a DiscreteValueCondition. */ + interface IDiscreteValueCondition { + + /** DiscreteValueCondition values */ + values?: (number[]|null); + } + + /** Represents a DiscreteValueCondition. */ + class DiscreteValueCondition implements IDiscreteValueCondition { + + /** + * Constructs a new DiscreteValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition); + + /** DiscreteValueCondition values. */ + public values: number[]; + + /** + * Creates a new DiscreteValueCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns DiscreteValueCondition instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + + /** + * Encodes the specified DiscreteValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. + * @param message DiscreteValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DiscreteValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. + * @param message DiscreteValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DiscreteValueCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DiscreteValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + + /** + * Decodes a DiscreteValueCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DiscreteValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + + /** + * Verifies a DiscreteValueCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DiscreteValueCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DiscreteValueCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition; + + /** + * Creates a plain object from a DiscreteValueCondition message. Also converts values to other types if specified. + * @param message DiscreteValueCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DiscreteValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of an IntValueCondition. */ + interface IIntValueCondition { + + /** IntValueCondition values */ + values?: ((number|Long|string)[]|null); + } + + /** Represents an IntValueCondition. */ + class IntValueCondition implements IIntValueCondition { + + /** + * Constructs a new IntValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition); + + /** IntValueCondition values. */ + public values: (number|Long|string)[]; + + /** + * Creates a new IntValueCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns IntValueCondition instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + + /** + * Encodes the specified IntValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. + * @param message IntValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified IntValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. + * @param message IntValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes an IntValueCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns IntValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + + /** + * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns IntValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + + /** + * Verifies an IntValueCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns IntValueCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition; + + /** + * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. + * @param message IntValueCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this IntValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CategoricalValueCondition. */ + interface ICategoricalValueCondition { + + /** CategoricalValueCondition values */ + values?: (string[]|null); + } + + /** Represents a CategoricalValueCondition. */ + class CategoricalValueCondition implements ICategoricalValueCondition { + + /** + * Constructs a new CategoricalValueCondition. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition); + + /** CategoricalValueCondition values. */ + public values: string[]; + + /** + * Creates a new CategoricalValueCondition instance using the specified properties. + * @param [properties] Properties to set + * @returns CategoricalValueCondition instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + + /** + * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @param message CategoricalValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @param message CategoricalValueCondition message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CategoricalValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CategoricalValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + + /** + * Verifies a CategoricalValueCondition message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CategoricalValueCondition + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition; + + /** + * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. + * @param message CategoricalValueCondition + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CategoricalValueCondition to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** ScaleType enum. */ + enum ScaleType { + SCALE_TYPE_UNSPECIFIED = 0, + UNIT_LINEAR_SCALE = 1, + UNIT_LOG_SCALE = 2, + UNIT_REVERSE_LOG_SCALE = 3 + } + } + + /** Properties of a DecayCurveAutomatedStoppingSpec. */ + interface IDecayCurveAutomatedStoppingSpec { + + /** DecayCurveAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); + } + + /** Represents a DecayCurveAutomatedStoppingSpec. */ + class DecayCurveAutomatedStoppingSpec implements IDecayCurveAutomatedStoppingSpec { + + /** + * Constructs a new DecayCurveAutomatedStoppingSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec); + + /** DecayCurveAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; + + /** + * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns DecayCurveAutomatedStoppingSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; + + /** + * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. + * @param message DecayCurveAutomatedStoppingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns DecayCurveAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; + + /** + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns DecayCurveAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; + + /** + * Verifies a DecayCurveAutomatedStoppingSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns DecayCurveAutomatedStoppingSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec; + + /** + * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. + * @param message DecayCurveAutomatedStoppingSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this DecayCurveAutomatedStoppingSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a MedianAutomatedStoppingSpec. */ + interface IMedianAutomatedStoppingSpec { + + /** MedianAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); + } + + /** Represents a MedianAutomatedStoppingSpec. */ + class MedianAutomatedStoppingSpec implements IMedianAutomatedStoppingSpec { + + /** + * Constructs a new MedianAutomatedStoppingSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec); - /** - * Calls DeployIndex. - * @param request DeployIndexRequest message or plain object - * @returns Promise - */ - public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): Promise; + /** MedianAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; - /** - * Calls UndeployIndex. - * @param request UndeployIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback): void; + /** + * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns MedianAutomatedStoppingSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; - /** - * Calls UndeployIndex. - * @param request UndeployIndexRequest message or plain object - * @returns Promise - */ - public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): Promise; + /** + * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @param message MedianAutomatedStoppingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls MutateDeployedIndex. - * @param request MutateDeployedIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback): void; + /** + * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @param message MedianAutomatedStoppingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Calls MutateDeployedIndex. - * @param request MutateDeployedIndexRequest message or plain object - * @returns Promise - */ - public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): Promise; - } + /** + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MedianAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; - namespace IndexEndpointService { + /** + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MedianAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#createIndexEndpoint}. - * @param error Error, if any - * @param [response] Operation - */ - type CreateIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** + * Verifies a MedianAutomatedStoppingSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#getIndexEndpoint}. - * @param error Error, if any - * @param [response] IndexEndpoint - */ - type GetIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; + /** + * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MedianAutomatedStoppingSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#listIndexEndpoints}. - * @param error Error, if any - * @param [response] ListIndexEndpointsResponse - */ - type ListIndexEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) => void; + /** + * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. + * @param message MedianAutomatedStoppingSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#updateIndexEndpoint}. - * @param error Error, if any - * @param [response] IndexEndpoint - */ - type UpdateIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; + /** + * Converts this MedianAutomatedStoppingSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#deleteIndexEndpoint}. - * @param error Error, if any - * @param [response] Operation - */ - type DeleteIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** Properties of a ConvexAutomatedStoppingSpec. */ + interface IConvexAutomatedStoppingSpec { - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#deployIndex}. - * @param error Error, if any - * @param [response] Operation - */ - type DeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ConvexAutomatedStoppingSpec maxStepCount */ + maxStepCount?: (number|Long|string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#undeployIndex}. - * @param error Error, if any - * @param [response] Operation - */ - type UndeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + /** ConvexAutomatedStoppingSpec minStepCount */ + minStepCount?: (number|Long|string|null); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#mutateDeployedIndex}. - * @param error Error, if any - * @param [response] Operation - */ - type MutateDeployedIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - } + /** ConvexAutomatedStoppingSpec minMeasurementCount */ + minMeasurementCount?: (number|Long|string|null); - /** Properties of a CreateIndexEndpointRequest. */ - interface ICreateIndexEndpointRequest { + /** ConvexAutomatedStoppingSpec learningRateParameterName */ + learningRateParameterName?: (string|null); - /** CreateIndexEndpointRequest parent */ - parent?: (string|null); + /** ConvexAutomatedStoppingSpec useElapsedDuration */ + useElapsedDuration?: (boolean|null); + } - /** CreateIndexEndpointRequest indexEndpoint */ - indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); - } + /** Represents a ConvexAutomatedStoppingSpec. */ + class ConvexAutomatedStoppingSpec implements IConvexAutomatedStoppingSpec { - /** Represents a CreateIndexEndpointRequest. */ - class CreateIndexEndpointRequest implements ICreateIndexEndpointRequest { + /** + * Constructs a new ConvexAutomatedStoppingSpec. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec); - /** - * Constructs a new CreateIndexEndpointRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest); + /** ConvexAutomatedStoppingSpec maxStepCount. */ + public maxStepCount: (number|Long|string); - /** CreateIndexEndpointRequest parent. */ - public parent: string; + /** ConvexAutomatedStoppingSpec minStepCount. */ + public minStepCount: (number|Long|string); - /** CreateIndexEndpointRequest indexEndpoint. */ - public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** ConvexAutomatedStoppingSpec minMeasurementCount. */ + public minMeasurementCount: (number|Long|string); - /** - * Creates a new CreateIndexEndpointRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateIndexEndpointRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; + /** ConvexAutomatedStoppingSpec learningRateParameterName. */ + public learningRateParameterName: string; - /** - * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. - * @param message CreateIndexEndpointRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexAutomatedStoppingSpec useElapsedDuration. */ + public useElapsedDuration: boolean; - /** - * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. - * @param message CreateIndexEndpointRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * @param [properties] Properties to set + * @returns ConvexAutomatedStoppingSpec instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateIndexEndpointRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; + /** + * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @param message ConvexAutomatedStoppingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateIndexEndpointRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; + /** + * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @param message ConvexAutomatedStoppingSpec message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Verifies a CreateIndexEndpointRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConvexAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - /** - * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIndexEndpointRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConvexAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - /** - * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. - * @param message CreateIndexEndpointRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Verifies a ConvexAutomatedStoppingSpec message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Converts this CreateIndexEndpointRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConvexAutomatedStoppingSpec + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec; - /** Properties of a CreateIndexEndpointOperationMetadata. */ - interface ICreateIndexEndpointOperationMetadata { + /** + * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. + * @param message ConvexAutomatedStoppingSpec + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** CreateIndexEndpointOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - } + /** + * Converts this ConvexAutomatedStoppingSpec to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** Represents a CreateIndexEndpointOperationMetadata. */ - class CreateIndexEndpointOperationMetadata implements ICreateIndexEndpointOperationMetadata { + /** Properties of a ConvexStopConfig. */ + interface IConvexStopConfig { - /** - * Constructs a new CreateIndexEndpointOperationMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata); + /** ConvexStopConfig maxNumSteps */ + maxNumSteps?: (number|Long|string|null); - /** CreateIndexEndpointOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ConvexStopConfig minNumSteps */ + minNumSteps?: (number|Long|string|null); - /** - * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateIndexEndpointOperationMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + /** ConvexStopConfig autoregressiveOrder */ + autoregressiveOrder?: (number|Long|string|null); - /** - * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. - * @param message CreateIndexEndpointOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexStopConfig learningRateParameterName */ + learningRateParameterName?: (string|null); - /** - * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. - * @param message CreateIndexEndpointOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** ConvexStopConfig useSeconds */ + useSeconds?: (boolean|null); + } - /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateIndexEndpointOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + /** Represents a ConvexStopConfig. */ + class ConvexStopConfig implements IConvexStopConfig { - /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateIndexEndpointOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + /** + * Constructs a new ConvexStopConfig. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig); - /** - * Verifies a CreateIndexEndpointOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ConvexStopConfig maxNumSteps. */ + public maxNumSteps: (number|Long|string); - /** - * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateIndexEndpointOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; + /** ConvexStopConfig minNumSteps. */ + public minNumSteps: (number|Long|string); - /** - * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. - * @param message CreateIndexEndpointOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ConvexStopConfig autoregressiveOrder. */ + public autoregressiveOrder: (number|Long|string); - /** - * Converts this CreateIndexEndpointOperationMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** ConvexStopConfig learningRateParameterName. */ + public learningRateParameterName: string; + + /** ConvexStopConfig useSeconds. */ + public useSeconds: boolean; + + /** + * Creates a new ConvexStopConfig instance using the specified properties. + * @param [properties] Properties to set + * @returns ConvexStopConfig instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; + + /** + * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @param message ConvexStopConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @param message ConvexStopConfig message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ConvexStopConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; + + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ConvexStopConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; + + /** + * Verifies a ConvexStopConfig message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ConvexStopConfig + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig; + + /** + * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. + * @param message ConvexStopConfig + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ConvexStopConfig to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Algorithm enum. */ + enum Algorithm { + ALGORITHM_UNSPECIFIED = 0, + GRID_SEARCH = 2, + RANDOM_SEARCH = 3 + } + + /** ObservationNoise enum. */ + enum ObservationNoise { + OBSERVATION_NOISE_UNSPECIFIED = 0, + LOW = 1, + HIGH = 2 + } + + /** MeasurementSelectionType enum. */ + enum MeasurementSelectionType { + MEASUREMENT_SELECTION_TYPE_UNSPECIFIED = 0, + LAST_MEASUREMENT = 1, + BEST_MEASUREMENT = 2 + } } - /** Properties of a GetIndexEndpointRequest. */ - interface IGetIndexEndpointRequest { + /** Properties of a Measurement. */ + interface IMeasurement { - /** GetIndexEndpointRequest name */ - name?: (string|null); + /** Measurement elapsedDuration */ + elapsedDuration?: (google.protobuf.IDuration|null); + + /** Measurement stepCount */ + stepCount?: (number|Long|string|null); + + /** Measurement metrics */ + metrics?: (google.cloud.aiplatform.v1beta1.Measurement.IMetric[]|null); } - /** Represents a GetIndexEndpointRequest. */ - class GetIndexEndpointRequest implements IGetIndexEndpointRequest { + /** Represents a Measurement. */ + class Measurement implements IMeasurement { /** - * Constructs a new GetIndexEndpointRequest. + * Constructs a new Measurement. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMeasurement); - /** GetIndexEndpointRequest name. */ - public name: string; + /** Measurement elapsedDuration. */ + public elapsedDuration?: (google.protobuf.IDuration|null); + + /** Measurement stepCount. */ + public stepCount: (number|Long|string); + + /** Measurement metrics. */ + public metrics: google.cloud.aiplatform.v1beta1.Measurement.IMetric[]; /** - * Creates a new GetIndexEndpointRequest instance using the specified properties. + * Creates a new Measurement instance using the specified properties. * @param [properties] Properties to set - * @returns GetIndexEndpointRequest instance + * @returns Measurement instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMeasurement): google.cloud.aiplatform.v1beta1.Measurement; /** - * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. - * @param message GetIndexEndpointRequest message or plain object to encode + * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * @param message Measurement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. - * @param message GetIndexEndpointRequest message or plain object to encode + * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. + * @param message Measurement message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMeasurement, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * Decodes a Measurement message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetIndexEndpointRequest + * @returns Measurement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Measurement; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a Measurement message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIndexEndpointRequest + * @returns Measurement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Measurement; /** - * Verifies a GetIndexEndpointRequest message. + * Verifies a Measurement message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Measurement message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIndexEndpointRequest + * @returns Measurement */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement; /** - * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. - * @param message GetIndexEndpointRequest + * Creates a plain object from a Measurement message. Also converts values to other types if specified. + * @param message Measurement * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIndexEndpointRequest to JSON. + * Converts this Measurement to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIndexEndpointsRequest. */ - interface IListIndexEndpointsRequest { + namespace Measurement { - /** ListIndexEndpointsRequest parent */ - parent?: (string|null); + /** Properties of a Metric. */ + interface IMetric { - /** ListIndexEndpointsRequest filter */ - filter?: (string|null); + /** Metric metricId */ + metricId?: (string|null); - /** ListIndexEndpointsRequest pageSize */ - pageSize?: (number|null); + /** Metric value */ + value?: (number|null); + } - /** ListIndexEndpointsRequest pageToken */ - pageToken?: (string|null); + /** Represents a Metric. */ + class Metric implements IMetric { - /** ListIndexEndpointsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** + * Constructs a new Metric. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric); + + /** Metric metricId. */ + public metricId: string; + + /** Metric value. */ + public value: number; + + /** + * Creates a new Metric instance using the specified properties. + * @param [properties] Properties to set + * @returns Metric instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.Measurement.IMetric): google.cloud.aiplatform.v1beta1.Measurement.Metric; + + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @param message Metric message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.Measurement.IMetric, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Measurement.Metric; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Measurement.Metric; + + /** + * Verifies a Metric message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns Metric + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Measurement.Metric; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @param message Metric + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.Measurement.Metric, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this Metric to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a ListIndexEndpointsRequest. */ - class ListIndexEndpointsRequest implements IListIndexEndpointsRequest { + /** Properties of an Index. */ + interface IIndex { + + /** Index name */ + name?: (string|null); + + /** Index displayName */ + displayName?: (string|null); + + /** Index description */ + description?: (string|null); + + /** Index metadataSchemaUri */ + metadataSchemaUri?: (string|null); + + /** Index metadata */ + metadata?: (google.protobuf.IValue|null); + + /** Index deployedIndexes */ + deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]|null); + + /** Index etag */ + etag?: (string|null); + + /** Index labels */ + labels?: ({ [k: string]: string }|null); + + /** Index createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** Index updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + } + + /** Represents an Index. */ + class Index implements IIndex { /** - * Constructs a new ListIndexEndpointsRequest. + * Constructs a new Index. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndex); - /** ListIndexEndpointsRequest parent. */ - public parent: string; + /** Index name. */ + public name: string; - /** ListIndexEndpointsRequest filter. */ - public filter: string; + /** Index displayName. */ + public displayName: string; - /** ListIndexEndpointsRequest pageSize. */ - public pageSize: number; + /** Index description. */ + public description: string; - /** ListIndexEndpointsRequest pageToken. */ - public pageToken: string; + /** Index metadataSchemaUri. */ + public metadataSchemaUri: string; - /** ListIndexEndpointsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** Index metadata. */ + public metadata?: (google.protobuf.IValue|null); + + /** Index deployedIndexes. */ + public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndexRef[]; + + /** Index etag. */ + public etag: string; + + /** Index labels. */ + public labels: { [k: string]: string }; + + /** Index createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** Index updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * Creates a new Index instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexEndpointsRequest instance + * @returns Index instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndex): google.cloud.aiplatform.v1beta1.Index; /** - * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. - * @param message ListIndexEndpointsRequest message or plain object to encode + * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * @param message Index message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. - * @param message ListIndexEndpointsRequest message or plain object to encode + * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. + * @param message Index message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * Decodes an Index message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIndexEndpointsRequest + * @returns Index * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.Index; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes an Index message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIndexEndpointsRequest + * @returns Index * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.Index; /** - * Verifies a ListIndexEndpointsRequest message. + * Verifies an Index message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Index message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIndexEndpointsRequest + * @returns Index */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.Index; /** - * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. - * @param message ListIndexEndpointsRequest + * Creates a plain object from an Index message. Also converts values to other types if specified. + * @param message Index * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.Index, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexEndpointsRequest to JSON. + * Converts this Index to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIndexEndpointsResponse. */ - interface IListIndexEndpointsResponse { + /** Properties of an IndexEndpoint. */ + interface IIndexEndpoint { - /** ListIndexEndpointsResponse indexEndpoints */ - indexEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint[]|null); + /** IndexEndpoint name */ + name?: (string|null); - /** ListIndexEndpointsResponse nextPageToken */ - nextPageToken?: (string|null); + /** IndexEndpoint displayName */ + displayName?: (string|null); + + /** IndexEndpoint description */ + description?: (string|null); + + /** IndexEndpoint deployedIndexes */ + deployedIndexes?: (google.cloud.aiplatform.v1beta1.IDeployedIndex[]|null); + + /** IndexEndpoint etag */ + etag?: (string|null); + + /** IndexEndpoint labels */ + labels?: ({ [k: string]: string }|null); + + /** IndexEndpoint createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** IndexEndpoint updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); + + /** IndexEndpoint network */ + network?: (string|null); + + /** IndexEndpoint enablePrivateServiceConnect */ + enablePrivateServiceConnect?: (boolean|null); } - /** Represents a ListIndexEndpointsResponse. */ - class ListIndexEndpointsResponse implements IListIndexEndpointsResponse { + /** Represents an IndexEndpoint. */ + class IndexEndpoint implements IIndexEndpoint { /** - * Constructs a new ListIndexEndpointsResponse. + * Constructs a new IndexEndpoint. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint); - /** ListIndexEndpointsResponse indexEndpoints. */ - public indexEndpoints: google.cloud.aiplatform.v1beta1.IIndexEndpoint[]; + /** IndexEndpoint name. */ + public name: string; - /** ListIndexEndpointsResponse nextPageToken. */ - public nextPageToken: string; + /** IndexEndpoint displayName. */ + public displayName: string; + + /** IndexEndpoint description. */ + public description: string; + + /** IndexEndpoint deployedIndexes. */ + public deployedIndexes: google.cloud.aiplatform.v1beta1.IDeployedIndex[]; + + /** IndexEndpoint etag. */ + public etag: string; + + /** IndexEndpoint labels. */ + public labels: { [k: string]: string }; + + /** IndexEndpoint createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** IndexEndpoint updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); + + /** IndexEndpoint network. */ + public network: string; + + /** IndexEndpoint enablePrivateServiceConnect. */ + public enablePrivateServiceConnect: boolean; /** - * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * Creates a new IndexEndpoint instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexEndpointsResponse instance + * @returns IndexEndpoint instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexEndpoint): google.cloud.aiplatform.v1beta1.IndexEndpoint; /** - * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. - * @param message ListIndexEndpointsResponse message or plain object to encode + * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * @param message IndexEndpoint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. - * @param message ListIndexEndpointsResponse message or plain object to encode + * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. + * @param message IndexEndpoint message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexEndpoint, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * Decodes an IndexEndpoint message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIndexEndpointsResponse + * @returns IndexEndpoint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexEndpoint; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIndexEndpointsResponse + * @returns IndexEndpoint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexEndpoint; /** - * Verifies a ListIndexEndpointsResponse message. + * Verifies an IndexEndpoint message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an IndexEndpoint message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIndexEndpointsResponse + * @returns IndexEndpoint */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexEndpoint; /** - * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. - * @param message ListIndexEndpointsResponse + * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. + * @param message IndexEndpoint * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexEndpoint, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexEndpointsResponse to JSON. + * Converts this IndexEndpoint to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateIndexEndpointRequest. */ - interface IUpdateIndexEndpointRequest { + /** Properties of a DeployedIndex. */ + interface IDeployedIndex { - /** UpdateIndexEndpointRequest indexEndpoint */ - indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** DeployedIndex id */ + id?: (string|null); - /** UpdateIndexEndpointRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** DeployedIndex index */ + index?: (string|null); + + /** DeployedIndex displayName */ + displayName?: (string|null); + + /** DeployedIndex createTime */ + createTime?: (google.protobuf.ITimestamp|null); + + /** DeployedIndex privateEndpoints */ + privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); + + /** DeployedIndex indexSyncTime */ + indexSyncTime?: (google.protobuf.ITimestamp|null); + + /** DeployedIndex automaticResources */ + automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + + /** DeployedIndex dedicatedResources */ + dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + + /** DeployedIndex enableAccessLogging */ + enableAccessLogging?: (boolean|null); + + /** DeployedIndex deployedIndexAuthConfig */ + deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); + + /** DeployedIndex reservedIpRanges */ + reservedIpRanges?: (string[]|null); + + /** DeployedIndex deploymentGroup */ + deploymentGroup?: (string|null); } - /** Represents an UpdateIndexEndpointRequest. */ - class UpdateIndexEndpointRequest implements IUpdateIndexEndpointRequest { + /** Represents a DeployedIndex. */ + class DeployedIndex implements IDeployedIndex { /** - * Constructs a new UpdateIndexEndpointRequest. + * Constructs a new DeployedIndex. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex); + + /** DeployedIndex id. */ + public id: string; + + /** DeployedIndex index. */ + public index: string; + + /** DeployedIndex displayName. */ + public displayName: string; + + /** DeployedIndex createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); + + /** DeployedIndex privateEndpoints. */ + public privateEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null); + + /** DeployedIndex indexSyncTime. */ + public indexSyncTime?: (google.protobuf.ITimestamp|null); + + /** DeployedIndex automaticResources. */ + public automaticResources?: (google.cloud.aiplatform.v1beta1.IAutomaticResources|null); + + /** DeployedIndex dedicatedResources. */ + public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IDedicatedResources|null); + + /** DeployedIndex enableAccessLogging. */ + public enableAccessLogging: boolean; + + /** DeployedIndex deployedIndexAuthConfig. */ + public deployedIndexAuthConfig?: (google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null); - /** UpdateIndexEndpointRequest indexEndpoint. */ - public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + /** DeployedIndex reservedIpRanges. */ + public reservedIpRanges: string[]; - /** UpdateIndexEndpointRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** DeployedIndex deploymentGroup. */ + public deploymentGroup: string; /** - * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * Creates a new DeployedIndex instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexEndpointRequest instance + * @returns DeployedIndex instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndex): google.cloud.aiplatform.v1beta1.DeployedIndex; /** - * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. - * @param message UpdateIndexEndpointRequest message or plain object to encode + * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * @param message DeployedIndex message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. - * @param message UpdateIndexEndpointRequest message or plain object to encode + * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. + * @param message DeployedIndex message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndex, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a DeployedIndex message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIndexEndpointRequest + * @returns DeployedIndex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndex; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIndexEndpointRequest + * @returns DeployedIndex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndex; /** - * Verifies an UpdateIndexEndpointRequest message. + * Verifies a DeployedIndex message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIndexEndpointRequest + * @returns DeployedIndex */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndex; /** - * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. - * @param message UpdateIndexEndpointRequest + * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. + * @param message DeployedIndex * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndex, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexEndpointRequest to JSON. + * Converts this DeployedIndex to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteIndexEndpointRequest. */ - interface IDeleteIndexEndpointRequest { + /** Properties of a DeployedIndexAuthConfig. */ + interface IDeployedIndexAuthConfig { - /** DeleteIndexEndpointRequest name */ - name?: (string|null); + /** DeployedIndexAuthConfig authProvider */ + authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); } - /** Represents a DeleteIndexEndpointRequest. */ - class DeleteIndexEndpointRequest implements IDeleteIndexEndpointRequest { + /** Represents a DeployedIndexAuthConfig. */ + class DeployedIndexAuthConfig implements IDeployedIndexAuthConfig { /** - * Constructs a new DeleteIndexEndpointRequest. + * Constructs a new DeployedIndexAuthConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig); - /** DeleteIndexEndpointRequest name. */ - public name: string; + /** DeployedIndexAuthConfig authProvider. */ + public authProvider?: (google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null); /** - * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * Creates a new DeployedIndexAuthConfig instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIndexEndpointRequest instance + * @returns DeployedIndexAuthConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; /** - * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. - * @param message DeleteIndexEndpointRequest message or plain object to encode + * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * @param message DeployedIndexAuthConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. - * @param message DeleteIndexEndpointRequest message or plain object to encode + * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. + * @param message DeployedIndexAuthConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIndexEndpointRequest + * @returns DeployedIndexAuthConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIndexEndpointRequest + * @returns DeployedIndexAuthConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; /** - * Verifies a DeleteIndexEndpointRequest message. + * Verifies a DeployedIndexAuthConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIndexEndpointRequest + * @returns DeployedIndexAuthConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig; /** - * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. - * @param message DeleteIndexEndpointRequest + * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. + * @param message DeployedIndexAuthConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIndexEndpointRequest to JSON. + * Converts this DeployedIndexAuthConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployIndexRequest. */ - interface IDeployIndexRequest { + namespace DeployedIndexAuthConfig { - /** DeployIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); + /** Properties of an AuthProvider. */ + interface IAuthProvider { - /** DeployIndexRequest deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); - } + /** AuthProvider audiences */ + audiences?: (string[]|null); - /** Represents a DeployIndexRequest. */ - class DeployIndexRequest implements IDeployIndexRequest { + /** AuthProvider allowedIssuers */ + allowedIssuers?: (string[]|null); + } - /** - * Constructs a new DeployIndexRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest); + /** Represents an AuthProvider. */ + class AuthProvider implements IAuthProvider { - /** DeployIndexRequest indexEndpoint. */ - public indexEndpoint: string; + /** + * Constructs a new AuthProvider. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider); - /** DeployIndexRequest deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** AuthProvider audiences. */ + public audiences: string[]; - /** - * Creates a new DeployIndexRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeployIndexRequest instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): google.cloud.aiplatform.v1beta1.DeployIndexRequest; + /** AuthProvider allowedIssuers. */ + public allowedIssuers: string[]; - /** - * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. - * @param message DeployIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new AuthProvider instance using the specified properties. + * @param [properties] Properties to set + * @returns AuthProvider instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; - /** - * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. - * @param message DeployIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * @param message AuthProvider message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a DeployIndexRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeployIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexRequest; + /** + * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * @param message AuthProvider message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeployIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexRequest; + /** + * Decodes an AuthProvider message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns AuthProvider + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; - /** - * Verifies a DeployIndexRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes an AuthProvider message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns AuthProvider + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; - /** - * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeployIndexRequest - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexRequest; + /** + * Verifies an AuthProvider message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. - * @param message DeployIndexRequest - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns AuthProvider + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider; - /** - * Converts this DeployIndexRequest to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; + /** + * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. + * @param message AuthProvider + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this AuthProvider to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Properties of a DeployIndexResponse. */ - interface IDeployIndexResponse { + /** Properties of an IndexPrivateEndpoints. */ + interface IIndexPrivateEndpoints { - /** DeployIndexResponse deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** IndexPrivateEndpoints matchGrpcAddress */ + matchGrpcAddress?: (string|null); + + /** IndexPrivateEndpoints serviceAttachment */ + serviceAttachment?: (string|null); } - /** Represents a DeployIndexResponse. */ - class DeployIndexResponse implements IDeployIndexResponse { + /** Represents an IndexPrivateEndpoints. */ + class IndexPrivateEndpoints implements IIndexPrivateEndpoints { /** - * Constructs a new DeployIndexResponse. + * Constructs a new IndexPrivateEndpoints. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints); - /** DeployIndexResponse deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** IndexPrivateEndpoints matchGrpcAddress. */ + public matchGrpcAddress: string; + + /** IndexPrivateEndpoints serviceAttachment. */ + public serviceAttachment: string; /** - * Creates a new DeployIndexResponse instance using the specified properties. + * Creates a new IndexPrivateEndpoints instance using the specified properties. * @param [properties] Properties to set - * @returns DeployIndexResponse instance + * @returns IndexPrivateEndpoints instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse): google.cloud.aiplatform.v1beta1.DeployIndexResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; /** - * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. - * @param message DeployIndexResponse message or plain object to encode + * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * @param message IndexPrivateEndpoints message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. - * @param message DeployIndexResponse message or plain object to encode + * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. + * @param message IndexPrivateEndpoints message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer. + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeployIndexResponse + * @returns IndexPrivateEndpoints * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeployIndexResponse + * @returns IndexPrivateEndpoints * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; /** - * Verifies a DeployIndexResponse message. + * Verifies an IndexPrivateEndpoints message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeployIndexResponse + * @returns IndexPrivateEndpoints */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints; /** - * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. - * @param message DeployIndexResponse + * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. + * @param message IndexPrivateEndpoints * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeployIndexResponse to JSON. + * Converts this IndexPrivateEndpoints to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeployIndexOperationMetadata. */ - interface IDeployIndexOperationMetadata { - - /** DeployIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** DeployIndexOperationMetadata deployedIndexId */ - deployedIndexId?: (string|null); - } - - /** Represents a DeployIndexOperationMetadata. */ - class DeployIndexOperationMetadata implements IDeployIndexOperationMetadata { + /** Represents an IndexEndpointService */ + class IndexEndpointService extends $protobuf.rpc.Service { /** - * Constructs a new DeployIndexOperationMetadata. - * @param [properties] Properties to set + * Constructs a new IndexEndpointService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata); - - /** DeployIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** DeployIndexOperationMetadata deployedIndexId. */ - public deployedIndexId: string; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates a new DeployIndexOperationMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns DeployIndexOperationMetadata instance + * Creates new IndexEndpointService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexEndpointService; /** - * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. - * @param message DeployIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateIndexEndpoint. + * @param request CreateIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback): void; /** - * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. - * @param message DeployIndexOperationMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateIndexEndpoint. + * @param request CreateIndexEndpointRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public createIndexEndpoint(request: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): Promise; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeployIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetIndexEndpoint. + * @param request GetIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and IndexEndpoint */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; + public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback): void; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeployIndexOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetIndexEndpoint. + * @param request GetIndexEndpointRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; + public getIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): Promise; /** - * Verifies a DeployIndexOperationMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls ListIndexEndpoints. + * @param request ListIndexEndpointsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback): void; /** - * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeployIndexOperationMetadata + * Calls ListIndexEndpoints. + * @param request ListIndexEndpointsRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; + public listIndexEndpoints(request: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): Promise; /** - * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. - * @param message DeployIndexOperationMetadata - * @param [options] Conversion options - * @returns Plain object + * Calls UpdateIndexEndpoint. + * @param request UpdateIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and IndexEndpoint */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback): void; /** - * Converts this DeployIndexOperationMetadata to JSON. - * @returns JSON object + * Calls UpdateIndexEndpoint. + * @param request UpdateIndexEndpointRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } + public updateIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): Promise; - /** Properties of an UndeployIndexRequest. */ - interface IUndeployIndexRequest { + /** + * Calls DeleteIndexEndpoint. + * @param request DeleteIndexEndpointRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback): void; - /** UndeployIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); + /** + * Calls DeleteIndexEndpoint. + * @param request DeleteIndexEndpointRequest message or plain object + * @returns Promise + */ + public deleteIndexEndpoint(request: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): Promise; - /** UndeployIndexRequest deployedIndexId */ - deployedIndexId?: (string|null); - } + /** + * Calls DeployIndex. + * @param request DeployIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback): void; - /** Represents an UndeployIndexRequest. */ - class UndeployIndexRequest implements IUndeployIndexRequest { + /** + * Calls DeployIndex. + * @param request DeployIndexRequest message or plain object + * @returns Promise + */ + public deployIndex(request: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): Promise; /** - * Constructs a new UndeployIndexRequest. - * @param [properties] Properties to set + * Calls UndeployIndex. + * @param request UndeployIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest); + public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback): void; - /** UndeployIndexRequest indexEndpoint. */ - public indexEndpoint: string; + /** + * Calls UndeployIndex. + * @param request UndeployIndexRequest message or plain object + * @returns Promise + */ + public undeployIndex(request: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): Promise; - /** UndeployIndexRequest deployedIndexId. */ - public deployedIndexId: string; + /** + * Calls MutateDeployedIndex. + * @param request MutateDeployedIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation + */ + public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback): void; /** - * Creates a new UndeployIndexRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns UndeployIndexRequest instance + * Calls MutateDeployedIndex. + * @param request MutateDeployedIndexRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + public mutateDeployedIndex(request: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): Promise; + } + + namespace IndexEndpointService { /** - * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. - * @param message UndeployIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#createIndexEndpoint}. + * @param error Error, if any + * @param [response] Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. - * @param message UndeployIndexRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#getIndexEndpoint}. + * @param error Error, if any + * @param [response] IndexEndpoint */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type GetIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns UndeployIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#listIndexEndpoints}. + * @param error Error, if any + * @param [response] ListIndexEndpointsResponse */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + type ListIndexEndpointsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) => void; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns UndeployIndexRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#updateIndexEndpoint}. + * @param error Error, if any + * @param [response] IndexEndpoint */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + type UpdateIndexEndpointCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.IndexEndpoint) => void; /** - * Verifies an UndeployIndexRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#deleteIndexEndpoint}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type DeleteIndexEndpointCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns UndeployIndexRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#deployIndex}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; + type DeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. - * @param message UndeployIndexRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#undeployIndex}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type UndeployIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this UndeployIndexRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#mutateDeployedIndex}. + * @param error Error, if any + * @param [response] Operation */ - public toJSON(): { [k: string]: any }; + type MutateDeployedIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; } - /** Properties of an UndeployIndexResponse. */ - interface IUndeployIndexResponse { + /** Properties of a CreateIndexEndpointRequest. */ + interface ICreateIndexEndpointRequest { + + /** CreateIndexEndpointRequest parent */ + parent?: (string|null); + + /** CreateIndexEndpointRequest indexEndpoint */ + indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); } - /** Represents an UndeployIndexResponse. */ - class UndeployIndexResponse implements IUndeployIndexResponse { + /** Represents a CreateIndexEndpointRequest. */ + class CreateIndexEndpointRequest implements ICreateIndexEndpointRequest { /** - * Constructs a new UndeployIndexResponse. + * Constructs a new CreateIndexEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest); + + /** CreateIndexEndpointRequest parent. */ + public parent: string; + + /** CreateIndexEndpointRequest indexEndpoint. */ + public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); /** - * Creates a new UndeployIndexResponse instance using the specified properties. + * Creates a new CreateIndexEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployIndexResponse instance + * @returns CreateIndexEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. - * @param message UndeployIndexResponse message or plain object to encode + * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * @param message CreateIndexEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. - * @param message UndeployIndexResponse message or plain object to encode + * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. + * @param message CreateIndexEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployIndexResponse + * @returns CreateIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployIndexResponse + * @returns CreateIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Verifies an UndeployIndexResponse message. + * Verifies a CreateIndexEndpointRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployIndexResponse + * @returns CreateIndexEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest; /** - * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. - * @param message UndeployIndexResponse + * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. + * @param message CreateIndexEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployIndexResponse to JSON. + * Converts this CreateIndexEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UndeployIndexOperationMetadata. */ - interface IUndeployIndexOperationMetadata { + /** Properties of a CreateIndexEndpointOperationMetadata. */ + interface ICreateIndexEndpointOperationMetadata { - /** UndeployIndexOperationMetadata genericMetadata */ + /** CreateIndexEndpointOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents an UndeployIndexOperationMetadata. */ - class UndeployIndexOperationMetadata implements IUndeployIndexOperationMetadata { + /** Represents a CreateIndexEndpointOperationMetadata. */ + class CreateIndexEndpointOperationMetadata implements ICreateIndexEndpointOperationMetadata { /** - * Constructs a new UndeployIndexOperationMetadata. + * Constructs a new CreateIndexEndpointOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata); - /** UndeployIndexOperationMetadata genericMetadata. */ + /** CreateIndexEndpointOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new UndeployIndexOperationMetadata instance using the specified properties. + * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UndeployIndexOperationMetadata instance + * @returns CreateIndexEndpointOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; /** - * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. - * @param message UndeployIndexOperationMetadata message or plain object to encode + * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @param message CreateIndexEndpointOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. - * @param message UndeployIndexOperationMetadata message or plain object to encode + * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. + * @param message CreateIndexEndpointOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UndeployIndexOperationMetadata + * @returns CreateIndexEndpointOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UndeployIndexOperationMetadata + * @returns CreateIndexEndpointOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; /** - * Verifies an UndeployIndexOperationMetadata message. + * Verifies a CreateIndexEndpointOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UndeployIndexOperationMetadata + * @returns CreateIndexEndpointOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata; /** - * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. - * @param message UndeployIndexOperationMetadata + * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. + * @param message CreateIndexEndpointOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UndeployIndexOperationMetadata to JSON. + * Converts this CreateIndexEndpointOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MutateDeployedIndexRequest. */ - interface IMutateDeployedIndexRequest { - - /** MutateDeployedIndexRequest indexEndpoint */ - indexEndpoint?: (string|null); + /** Properties of a GetIndexEndpointRequest. */ + interface IGetIndexEndpointRequest { - /** MutateDeployedIndexRequest deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** GetIndexEndpointRequest name */ + name?: (string|null); } - /** Represents a MutateDeployedIndexRequest. */ - class MutateDeployedIndexRequest implements IMutateDeployedIndexRequest { + /** Represents a GetIndexEndpointRequest. */ + class GetIndexEndpointRequest implements IGetIndexEndpointRequest { /** - * Constructs a new MutateDeployedIndexRequest. + * Constructs a new GetIndexEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest); - - /** MutateDeployedIndexRequest indexEndpoint. */ - public indexEndpoint: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest); - /** MutateDeployedIndexRequest deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** GetIndexEndpointRequest name. */ + public name: string; /** - * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * Creates a new GetIndexEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MutateDeployedIndexRequest instance + * @returns GetIndexEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; /** - * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. - * @param message MutateDeployedIndexRequest message or plain object to encode + * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * @param message GetIndexEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. - * @param message MutateDeployedIndexRequest message or plain object to encode + * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * @param message GetIndexEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateDeployedIndexRequest + * @returns GetIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexRequest + * @returns GetIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; /** - * Verifies a MutateDeployedIndexRequest message. + * Verifies a GetIndexEndpointRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateDeployedIndexRequest + * @returns GetIndexEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest; /** - * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. - * @param message MutateDeployedIndexRequest + * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. + * @param message GetIndexEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateDeployedIndexRequest to JSON. + * Converts this GetIndexEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MutateDeployedIndexResponse. */ - interface IMutateDeployedIndexResponse { + /** Properties of a ListIndexEndpointsRequest. */ + interface IListIndexEndpointsRequest { - /** MutateDeployedIndexResponse deployedIndex */ - deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** ListIndexEndpointsRequest parent */ + parent?: (string|null); + + /** ListIndexEndpointsRequest filter */ + filter?: (string|null); + + /** ListIndexEndpointsRequest pageSize */ + pageSize?: (number|null); + + /** ListIndexEndpointsRequest pageToken */ + pageToken?: (string|null); + + /** ListIndexEndpointsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a MutateDeployedIndexResponse. */ - class MutateDeployedIndexResponse implements IMutateDeployedIndexResponse { + /** Represents a ListIndexEndpointsRequest. */ + class ListIndexEndpointsRequest implements IListIndexEndpointsRequest { /** - * Constructs a new MutateDeployedIndexResponse. + * Constructs a new ListIndexEndpointsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest); - /** MutateDeployedIndexResponse deployedIndex. */ - public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); + /** ListIndexEndpointsRequest parent. */ + public parent: string; + + /** ListIndexEndpointsRequest filter. */ + public filter: string; + + /** ListIndexEndpointsRequest pageSize. */ + public pageSize: number; + + /** ListIndexEndpointsRequest pageToken. */ + public pageToken: string; + + /** ListIndexEndpointsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new MutateDeployedIndexResponse instance using the specified properties. + * Creates a new ListIndexEndpointsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns MutateDeployedIndexResponse instance + * @returns ListIndexEndpointsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. - * @param message MutateDeployedIndexResponse message or plain object to encode + * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * @param message ListIndexEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. - * @param message MutateDeployedIndexResponse message or plain object to encode + * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * @param message ListIndexEndpointsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateDeployedIndexResponse + * @returns ListIndexEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexResponse + * @returns ListIndexEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Verifies a MutateDeployedIndexResponse message. + * Verifies a ListIndexEndpointsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateDeployedIndexResponse + * @returns ListIndexEndpointsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest; /** - * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. - * @param message MutateDeployedIndexResponse + * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. + * @param message ListIndexEndpointsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateDeployedIndexResponse to JSON. + * Converts this ListIndexEndpointsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a MutateDeployedIndexOperationMetadata. */ - interface IMutateDeployedIndexOperationMetadata { + /** Properties of a ListIndexEndpointsResponse. */ + interface IListIndexEndpointsResponse { - /** MutateDeployedIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListIndexEndpointsResponse indexEndpoints */ + indexEndpoints?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint[]|null); - /** MutateDeployedIndexOperationMetadata deployedIndexId */ - deployedIndexId?: (string|null); + /** ListIndexEndpointsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a MutateDeployedIndexOperationMetadata. */ - class MutateDeployedIndexOperationMetadata implements IMutateDeployedIndexOperationMetadata { + /** Represents a ListIndexEndpointsResponse. */ + class ListIndexEndpointsResponse implements IListIndexEndpointsResponse { /** - * Constructs a new MutateDeployedIndexOperationMetadata. + * Constructs a new ListIndexEndpointsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse); - /** MutateDeployedIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** ListIndexEndpointsResponse indexEndpoints. */ + public indexEndpoints: google.cloud.aiplatform.v1beta1.IIndexEndpoint[]; - /** MutateDeployedIndexOperationMetadata deployedIndexId. */ - public deployedIndexId: string; + /** ListIndexEndpointsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. + * Creates a new ListIndexEndpointsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns MutateDeployedIndexOperationMetadata instance + * @returns ListIndexEndpointsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @param message MutateDeployedIndexOperationMetadata message or plain object to encode + * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * @param message ListIndexEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. - * @param message MutateDeployedIndexOperationMetadata message or plain object to encode + * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * @param message ListIndexEndpointsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns MutateDeployedIndexOperationMetadata + * @returns ListIndexEndpointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns MutateDeployedIndexOperationMetadata + * @returns ListIndexEndpointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Verifies a MutateDeployedIndexOperationMetadata message. + * Verifies a ListIndexEndpointsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns MutateDeployedIndexOperationMetadata + * @returns ListIndexEndpointsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse; /** - * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. - * @param message MutateDeployedIndexOperationMetadata + * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. + * @param message ListIndexEndpointsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this MutateDeployedIndexOperationMetadata to JSON. + * Converts this ListIndexEndpointsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Represents an IndexService */ - class IndexService extends $protobuf.rpc.Service { - - /** - * Constructs a new IndexService service. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - */ - constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); - - /** - * Creates new IndexService service using the specified rpc implementation. - * @param rpcImpl RPC implementation - * @param [requestDelimited=false] Whether requests are length-delimited - * @param [responseDelimited=false] Whether responses are length-delimited - * @returns RPC service. Useful where requests and/or responses are streamed. - */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexService; - - /** - * Calls CreateIndex. - * @param request CreateIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation - */ - public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback): void; + /** Properties of an UpdateIndexEndpointRequest. */ + interface IUpdateIndexEndpointRequest { - /** - * Calls CreateIndex. - * @param request CreateIndexRequest message or plain object - * @returns Promise - */ - public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): Promise; + /** UpdateIndexEndpointRequest indexEndpoint */ + indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); - /** - * Calls GetIndex. - * @param request GetIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Index - */ - public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback): void; + /** UpdateIndexEndpointRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } - /** - * Calls GetIndex. - * @param request GetIndexRequest message or plain object - * @returns Promise - */ - public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest): Promise; + /** Represents an UpdateIndexEndpointRequest. */ + class UpdateIndexEndpointRequest implements IUpdateIndexEndpointRequest { /** - * Calls ListIndexes. - * @param request ListIndexesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListIndexesResponse + * Constructs a new UpdateIndexEndpointRequest. + * @param [properties] Properties to set */ - public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest); - /** - * Calls ListIndexes. - * @param request ListIndexesRequest message or plain object - * @returns Promise - */ - public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest): Promise; + /** UpdateIndexEndpointRequest indexEndpoint. */ + public indexEndpoint?: (google.cloud.aiplatform.v1beta1.IIndexEndpoint|null); + + /** UpdateIndexEndpointRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Calls UpdateIndex. - * @param request UpdateIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIndexEndpointRequest instance */ - public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; /** - * Calls UpdateIndex. - * @param request UpdateIndexRequest message or plain object - * @returns Promise + * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * @param message UpdateIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteIndex. - * @param request DeleteIndexRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * @param message UpdateIndexEndpointRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls DeleteIndex. - * @param request DeleteIndexRequest message or plain object - * @returns Promise + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): Promise; - } - - namespace IndexService { + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#createIndex}. - * @param error Error, if any - * @param [response] Operation + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIndexEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type CreateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#getIndex}. - * @param error Error, if any - * @param [response] Index + * Verifies an UpdateIndexEndpointRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type GetIndexCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Index) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#listIndexes}. - * @param error Error, if any - * @param [response] ListIndexesResponse + * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIndexEndpointRequest */ - type ListIndexesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexesResponse) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#updateIndex}. - * @param error Error, if any - * @param [response] Operation + * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. + * @param message UpdateIndexEndpointRequest + * @param [options] Conversion options + * @returns Plain object */ - type UpdateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#deleteIndex}. - * @param error Error, if any - * @param [response] Operation + * Converts this UpdateIndexEndpointRequest to JSON. + * @returns JSON object */ - type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a CreateIndexRequest. */ - interface ICreateIndexRequest { - - /** CreateIndexRequest parent */ - parent?: (string|null); + /** Properties of a DeleteIndexEndpointRequest. */ + interface IDeleteIndexEndpointRequest { - /** CreateIndexRequest index */ - index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + /** DeleteIndexEndpointRequest name */ + name?: (string|null); } - /** Represents a CreateIndexRequest. */ - class CreateIndexRequest implements ICreateIndexRequest { + /** Represents a DeleteIndexEndpointRequest. */ + class DeleteIndexEndpointRequest implements IDeleteIndexEndpointRequest { /** - * Constructs a new CreateIndexRequest. + * Constructs a new DeleteIndexEndpointRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest); - - /** CreateIndexRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest); - /** CreateIndexRequest index. */ - public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + /** DeleteIndexEndpointRequest name. */ + public name: string; /** - * Creates a new CreateIndexRequest instance using the specified properties. + * Creates a new DeleteIndexEndpointRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIndexRequest instance + * @returns DeleteIndexEndpointRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; /** - * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. - * @param message CreateIndexRequest message or plain object to encode + * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @param message DeleteIndexEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. - * @param message CreateIndexRequest message or plain object to encode + * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * @param message DeleteIndexEndpointRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer. + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateIndexRequest + * @returns DeleteIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIndexRequest + * @returns DeleteIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; /** - * Verifies a CreateIndexRequest message. + * Verifies a DeleteIndexEndpointRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateIndexRequest + * @returns DeleteIndexEndpointRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest; /** - * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. - * @param message CreateIndexRequest + * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. + * @param message DeleteIndexEndpointRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIndexRequest to JSON. + * Converts this DeleteIndexEndpointRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateIndexOperationMetadata. */ - interface ICreateIndexOperationMetadata { + /** Properties of a DeployIndexRequest. */ + interface IDeployIndexRequest { - /** CreateIndexOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DeployIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); - /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ - nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + /** DeployIndexRequest deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents a CreateIndexOperationMetadata. */ - class CreateIndexOperationMetadata implements ICreateIndexOperationMetadata { + /** Represents a DeployIndexRequest. */ + class DeployIndexRequest implements IDeployIndexRequest { /** - * Constructs a new CreateIndexOperationMetadata. + * Constructs a new DeployIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest); - /** CreateIndexOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** DeployIndexRequest indexEndpoint. */ + public indexEndpoint: string; - /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ - public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + /** DeployIndexRequest deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new CreateIndexOperationMetadata instance using the specified properties. + * Creates a new DeployIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateIndexOperationMetadata instance + * @returns DeployIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexRequest): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. - * @param message CreateIndexOperationMetadata message or plain object to encode + * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * @param message DeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. - * @param message CreateIndexOperationMetadata message or plain object to encode + * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * @param message DeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a DeployIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateIndexOperationMetadata + * @returns DeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateIndexOperationMetadata + * @returns DeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Verifies a CreateIndexOperationMetadata message. + * Verifies a DeployIndexRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateIndexOperationMetadata + * @returns DeployIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexRequest; /** - * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. - * @param message CreateIndexOperationMetadata + * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. + * @param message DeployIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateIndexOperationMetadata to JSON. + * Converts this DeployIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetIndexRequest. */ - interface IGetIndexRequest { + /** Properties of a DeployIndexResponse. */ + interface IDeployIndexResponse { - /** GetIndexRequest name */ - name?: (string|null); + /** DeployIndexResponse deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents a GetIndexRequest. */ - class GetIndexRequest implements IGetIndexRequest { + /** Represents a DeployIndexResponse. */ + class DeployIndexResponse implements IDeployIndexResponse { /** - * Constructs a new GetIndexRequest. + * Constructs a new DeployIndexResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse); - /** GetIndexRequest name. */ - public name: string; + /** DeployIndexResponse deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new GetIndexRequest instance using the specified properties. + * Creates a new DeployIndexResponse instance using the specified properties. * @param [properties] Properties to set - * @returns GetIndexRequest instance + * @returns DeployIndexResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexResponse): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. - * @param message GetIndexRequest message or plain object to encode + * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * @param message DeployIndexResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. - * @param message GetIndexRequest message or plain object to encode + * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. + * @param message DeployIndexResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetIndexRequest message from the specified reader or buffer. + * Decodes a DeployIndexResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetIndexRequest + * @returns DeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetIndexRequest + * @returns DeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Verifies a GetIndexRequest message. + * Verifies a DeployIndexResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetIndexRequest + * @returns DeployIndexResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexResponse; /** - * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. - * @param message GetIndexRequest + * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. + * @param message DeployIndexResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetIndexRequest to JSON. + * Converts this DeployIndexResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIndexesRequest. */ - interface IListIndexesRequest { - - /** ListIndexesRequest parent */ - parent?: (string|null); - - /** ListIndexesRequest filter */ - filter?: (string|null); - - /** ListIndexesRequest pageSize */ - pageSize?: (number|null); + /** Properties of a DeployIndexOperationMetadata. */ + interface IDeployIndexOperationMetadata { - /** ListIndexesRequest pageToken */ - pageToken?: (string|null); + /** DeployIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ListIndexesRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** DeployIndexOperationMetadata deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a ListIndexesRequest. */ - class ListIndexesRequest implements IListIndexesRequest { + /** Represents a DeployIndexOperationMetadata. */ + class DeployIndexOperationMetadata implements IDeployIndexOperationMetadata { /** - * Constructs a new ListIndexesRequest. + * Constructs a new DeployIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest); - - /** ListIndexesRequest parent. */ - public parent: string; - - /** ListIndexesRequest filter. */ - public filter: string; - - /** ListIndexesRequest pageSize. */ - public pageSize: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata); - /** ListIndexesRequest pageToken. */ - public pageToken: string; + /** DeployIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ListIndexesRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** DeployIndexOperationMetadata deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new ListIndexesRequest instance using the specified properties. + * Creates a new DeployIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexesRequest instance + * @returns DeployIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. - * @param message ListIndexesRequest message or plain object to encode + * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * @param message DeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. - * @param message ListIndexesRequest message or plain object to encode + * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * @param message DeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIndexesRequest + * @returns DeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIndexesRequest + * @returns DeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Verifies a ListIndexesRequest message. + * Verifies a DeployIndexOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIndexesRequest + * @returns DeployIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata; /** - * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. - * @param message ListIndexesRequest + * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. + * @param message DeployIndexOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexesRequest to JSON. + * Converts this DeployIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListIndexesResponse. */ - interface IListIndexesResponse { + /** Properties of an UndeployIndexRequest. */ + interface IUndeployIndexRequest { - /** ListIndexesResponse indexes */ - indexes?: (google.cloud.aiplatform.v1beta1.IIndex[]|null); + /** UndeployIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); - /** ListIndexesResponse nextPageToken */ - nextPageToken?: (string|null); + /** UndeployIndexRequest deployedIndexId */ + deployedIndexId?: (string|null); } - /** Represents a ListIndexesResponse. */ - class ListIndexesResponse implements IListIndexesResponse { + /** Represents an UndeployIndexRequest. */ + class UndeployIndexRequest implements IUndeployIndexRequest { /** - * Constructs a new ListIndexesResponse. + * Constructs a new UndeployIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest); - /** ListIndexesResponse indexes. */ - public indexes: google.cloud.aiplatform.v1beta1.IIndex[]; + /** UndeployIndexRequest indexEndpoint. */ + public indexEndpoint: string; - /** ListIndexesResponse nextPageToken. */ - public nextPageToken: string; + /** UndeployIndexRequest deployedIndexId. */ + public deployedIndexId: string; /** - * Creates a new ListIndexesResponse instance using the specified properties. + * Creates a new UndeployIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListIndexesResponse instance + * @returns UndeployIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. - * @param message ListIndexesResponse message or plain object to encode + * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * @param message UndeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. - * @param message ListIndexesResponse message or plain object to encode + * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * @param message UndeployIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer. + * Decodes an UndeployIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListIndexesResponse + * @returns UndeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListIndexesResponse + * @returns UndeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Verifies a ListIndexesResponse message. + * Verifies an UndeployIndexRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListIndexesResponse + * @returns UndeployIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexRequest; /** - * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. - * @param message ListIndexesResponse + * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. + * @param message UndeployIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListIndexesResponse to JSON. + * Converts this UndeployIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateIndexRequest. */ - interface IUpdateIndexRequest { - - /** UpdateIndexRequest index */ - index?: (google.cloud.aiplatform.v1beta1.IIndex|null); - - /** UpdateIndexRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** Properties of an UndeployIndexResponse. */ + interface IUndeployIndexResponse { } - /** Represents an UpdateIndexRequest. */ - class UpdateIndexRequest implements IUpdateIndexRequest { + /** Represents an UndeployIndexResponse. */ + class UndeployIndexResponse implements IUndeployIndexResponse { /** - * Constructs a new UpdateIndexRequest. + * Constructs a new UndeployIndexResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest); - - /** UpdateIndexRequest index. */ - public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); - - /** UpdateIndexRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse); /** - * Creates a new UpdateIndexRequest instance using the specified properties. + * Creates a new UndeployIndexResponse instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexRequest instance + * @returns UndeployIndexResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; /** - * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. - * @param message UpdateIndexRequest message or plain object to encode + * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @param message UndeployIndexResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. - * @param message UpdateIndexRequest message or plain object to encode + * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * @param message UndeployIndexResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer. + * Decodes an UndeployIndexResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIndexRequest + * @returns UndeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIndexRequest + * @returns UndeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; /** - * Verifies an UpdateIndexRequest message. + * Verifies an UndeployIndexResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIndexRequest + * @returns UndeployIndexResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexResponse; /** - * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. - * @param message UpdateIndexRequest + * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. + * @param message UndeployIndexResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexRequest to JSON. + * Converts this UndeployIndexResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateIndexOperationMetadata. */ - interface IUpdateIndexOperationMetadata { + /** Properties of an UndeployIndexOperationMetadata. */ + interface IUndeployIndexOperationMetadata { - /** UpdateIndexOperationMetadata genericMetadata */ + /** UndeployIndexOperationMetadata genericMetadata */ genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - - /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ - nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); } - /** Represents an UpdateIndexOperationMetadata. */ - class UpdateIndexOperationMetadata implements IUpdateIndexOperationMetadata { + /** Represents an UndeployIndexOperationMetadata. */ + class UndeployIndexOperationMetadata implements IUndeployIndexOperationMetadata { /** - * Constructs a new UpdateIndexOperationMetadata. + * Constructs a new UndeployIndexOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata); - /** UpdateIndexOperationMetadata genericMetadata. */ + /** UndeployIndexOperationMetadata genericMetadata. */ public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ - public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); - /** - * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * Creates a new UndeployIndexOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateIndexOperationMetadata instance + * @returns UndeployIndexOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. - * @param message UpdateIndexOperationMetadata message or plain object to encode + * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. + * @param message UndeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. - * @param message UpdateIndexOperationMetadata message or plain object to encode + * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. + * @param message UndeployIndexOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateIndexOperationMetadata + * @returns UndeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateIndexOperationMetadata + * @returns UndeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Verifies an UpdateIndexOperationMetadata message. + * Verifies an UndeployIndexOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateIndexOperationMetadata + * @returns UndeployIndexOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata; /** - * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateIndexOperationMetadata + * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. + * @param message UndeployIndexOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateIndexOperationMetadata to JSON. + * Converts this UndeployIndexOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteIndexRequest. */ - interface IDeleteIndexRequest { + /** Properties of a MutateDeployedIndexRequest. */ + interface IMutateDeployedIndexRequest { - /** DeleteIndexRequest name */ - name?: (string|null); + /** MutateDeployedIndexRequest indexEndpoint */ + indexEndpoint?: (string|null); + + /** MutateDeployedIndexRequest deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents a DeleteIndexRequest. */ - class DeleteIndexRequest implements IDeleteIndexRequest { + /** Represents a MutateDeployedIndexRequest. */ + class MutateDeployedIndexRequest implements IMutateDeployedIndexRequest { /** - * Constructs a new DeleteIndexRequest. + * Constructs a new MutateDeployedIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest); - /** DeleteIndexRequest name. */ - public name: string; + /** MutateDeployedIndexRequest indexEndpoint. */ + public indexEndpoint: string; + + /** MutateDeployedIndexRequest deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new DeleteIndexRequest instance using the specified properties. + * Creates a new MutateDeployedIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteIndexRequest instance + * @returns MutateDeployedIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. - * @param message DeleteIndexRequest message or plain object to encode + * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @param message MutateDeployedIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. - * @param message DeleteIndexRequest message or plain object to encode + * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * @param message MutateDeployedIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteIndexRequest + * @returns MutateDeployedIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteIndexRequest + * @returns MutateDeployedIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Verifies a DeleteIndexRequest message. + * Verifies a MutateDeployedIndexRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteIndexRequest + * @returns MutateDeployedIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest; /** - * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. - * @param message DeleteIndexRequest + * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. + * @param message MutateDeployedIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteIndexRequest to JSON. + * Converts this MutateDeployedIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a NearestNeighborSearchOperationMetadata. */ - interface INearestNeighborSearchOperationMetadata { - - /** NearestNeighborSearchOperationMetadata contentValidationStats */ - contentValidationStats?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]|null); + /** Properties of a MutateDeployedIndexResponse. */ + interface IMutateDeployedIndexResponse { - /** NearestNeighborSearchOperationMetadata dataBytesCount */ - dataBytesCount?: (number|Long|string|null); + /** MutateDeployedIndexResponse deployedIndex */ + deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); } - /** Represents a NearestNeighborSearchOperationMetadata. */ - class NearestNeighborSearchOperationMetadata implements INearestNeighborSearchOperationMetadata { + /** Represents a MutateDeployedIndexResponse. */ + class MutateDeployedIndexResponse implements IMutateDeployedIndexResponse { /** - * Constructs a new NearestNeighborSearchOperationMetadata. + * Constructs a new MutateDeployedIndexResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata); - - /** NearestNeighborSearchOperationMetadata contentValidationStats. */ - public contentValidationStats: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]; + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse); - /** NearestNeighborSearchOperationMetadata dataBytesCount. */ - public dataBytesCount: (number|Long|string); + /** MutateDeployedIndexResponse deployedIndex. */ + public deployedIndex?: (google.cloud.aiplatform.v1beta1.IDeployedIndex|null); /** - * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. + * Creates a new MutateDeployedIndexResponse instance using the specified properties. * @param [properties] Properties to set - * @returns NearestNeighborSearchOperationMetadata instance + * @returns MutateDeployedIndexResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. - * @param message NearestNeighborSearchOperationMetadata message or plain object to encode + * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. + * @param message MutateDeployedIndexResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. - * @param message NearestNeighborSearchOperationMetadata message or plain object to encode + * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. + * @param message MutateDeployedIndexResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns NearestNeighborSearchOperationMetadata + * @returns MutateDeployedIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns NearestNeighborSearchOperationMetadata + * @returns MutateDeployedIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Verifies a NearestNeighborSearchOperationMetadata message. + * Verifies a MutateDeployedIndexResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns NearestNeighborSearchOperationMetadata + * @returns MutateDeployedIndexResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse; /** - * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. - * @param message NearestNeighborSearchOperationMetadata + * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. + * @param message MutateDeployedIndexResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this NearestNeighborSearchOperationMetadata to JSON. + * Converts this MutateDeployedIndexResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace NearestNeighborSearchOperationMetadata { - - /** Properties of a RecordError. */ - interface IRecordError { - - /** RecordError errorType */ - errorType?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null); - - /** RecordError errorMessage */ - errorMessage?: (string|null); - - /** RecordError sourceGcsUri */ - sourceGcsUri?: (string|null); - - /** RecordError embeddingId */ - embeddingId?: (string|null); - - /** RecordError rawRecord */ - rawRecord?: (string|null); - } - - /** Represents a RecordError. */ - class RecordError implements IRecordError { - - /** - * Constructs a new RecordError. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError); - - /** RecordError errorType. */ - public errorType: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType); - - /** RecordError errorMessage. */ - public errorMessage: string; - - /** RecordError sourceGcsUri. */ - public sourceGcsUri: string; - - /** RecordError embeddingId. */ - public embeddingId: string; - - /** RecordError rawRecord. */ - public rawRecord: string; - - /** - * Creates a new RecordError instance using the specified properties. - * @param [properties] Properties to set - * @returns RecordError instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @param message RecordError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @param message RecordError message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a RecordError message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Decodes a RecordError message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Verifies a RecordError message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a RecordError message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns RecordError - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; - - /** - * Creates a plain object from a RecordError message. Also converts values to other types if specified. - * @param message RecordError - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this RecordError to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - - namespace RecordError { - - /** RecordErrorType enum. */ - enum RecordErrorType { - ERROR_TYPE_UNSPECIFIED = 0, - EMPTY_LINE = 1, - INVALID_JSON_SYNTAX = 2, - INVALID_CSV_SYNTAX = 3, - INVALID_AVRO_SYNTAX = 4, - INVALID_EMBEDDING_ID = 5, - EMBEDDING_SIZE_MISMATCH = 6, - NAMESPACE_MISSING = 7 - } - } - - /** Properties of a ContentValidationStats. */ - interface IContentValidationStats { - - /** ContentValidationStats sourceGcsUri */ - sourceGcsUri?: (string|null); - - /** ContentValidationStats validRecordCount */ - validRecordCount?: (number|Long|string|null); - - /** ContentValidationStats invalidRecordCount */ - invalidRecordCount?: (number|Long|string|null); - - /** ContentValidationStats partialErrors */ - partialErrors?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]|null); - } + /** Properties of a MutateDeployedIndexOperationMetadata. */ + interface IMutateDeployedIndexOperationMetadata { - /** Represents a ContentValidationStats. */ - class ContentValidationStats implements IContentValidationStats { + /** MutateDeployedIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** - * Constructs a new ContentValidationStats. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats); + /** MutateDeployedIndexOperationMetadata deployedIndexId */ + deployedIndexId?: (string|null); + } - /** ContentValidationStats sourceGcsUri. */ - public sourceGcsUri: string; + /** Represents a MutateDeployedIndexOperationMetadata. */ + class MutateDeployedIndexOperationMetadata implements IMutateDeployedIndexOperationMetadata { - /** ContentValidationStats validRecordCount. */ - public validRecordCount: (number|Long|string); + /** + * Constructs a new MutateDeployedIndexOperationMetadata. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata); - /** ContentValidationStats invalidRecordCount. */ - public invalidRecordCount: (number|Long|string); + /** MutateDeployedIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); - /** ContentValidationStats partialErrors. */ - public partialErrors: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]; + /** MutateDeployedIndexOperationMetadata deployedIndexId. */ + public deployedIndexId: string; - /** - * Creates a new ContentValidationStats instance using the specified properties. - * @param [properties] Properties to set - * @returns ContentValidationStats instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** + * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns MutateDeployedIndexOperationMetadata instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; - /** - * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @param message ContentValidationStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. + * @param message MutateDeployedIndexOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @param message ContentValidationStats message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. + * @param message MutateDeployedIndexOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a ContentValidationStats message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns MutateDeployedIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; - /** - * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns MutateDeployedIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; - /** - * Verifies a ContentValidationStats message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a MutateDeployedIndexOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ContentValidationStats - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + /** + * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns MutateDeployedIndexOperationMetadata + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata; - /** - * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. - * @param message ContentValidationStats - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. + * @param message MutateDeployedIndexOperationMetadata + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this ContentValidationStats to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this MutateDeployedIndexOperationMetadata to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Represents a JobService */ - class JobService extends $protobuf.rpc.Service { + /** Represents an IndexService */ + class IndexService extends $protobuf.rpc.Service { /** - * Constructs a new JobService service. + * Constructs a new IndexService service. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited @@ -88685,6059 +90556,6196 @@ export namespace google { constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Creates new JobService service using the specified rpc implementation. + * Creates new IndexService service using the specified rpc implementation. * @param rpcImpl RPC implementation * @param [requestDelimited=false] Whether requests are length-delimited * @param [responseDelimited=false] Whether responses are length-delimited * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): IndexService; /** - * Calls CreateCustomJob. - * @param request CreateCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomJob + * Calls CreateIndex. + * @param request CreateIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback): void; + public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback): void; /** - * Calls CreateCustomJob. - * @param request CreateCustomJobRequest message or plain object + * Calls CreateIndex. + * @param request CreateIndexRequest message or plain object * @returns Promise */ - public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): Promise; + public createIndex(request: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): Promise; /** - * Calls GetCustomJob. - * @param request GetCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and CustomJob + * Calls GetIndex. + * @param request GetIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Index */ - public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback): void; + public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback): void; /** - * Calls GetCustomJob. - * @param request GetCustomJobRequest message or plain object + * Calls GetIndex. + * @param request GetIndexRequest message or plain object * @returns Promise */ - public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): Promise; + public getIndex(request: google.cloud.aiplatform.v1beta1.IGetIndexRequest): Promise; /** - * Calls ListCustomJobs. - * @param request ListCustomJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListCustomJobsResponse + * Calls ListIndexes. + * @param request ListIndexesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListIndexesResponse */ - public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback): void; + public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback): void; /** - * Calls ListCustomJobs. - * @param request ListCustomJobsRequest message or plain object + * Calls ListIndexes. + * @param request ListIndexesRequest message or plain object * @returns Promise */ - public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): Promise; + public listIndexes(request: google.cloud.aiplatform.v1beta1.IListIndexesRequest): Promise; /** - * Calls DeleteCustomJob. - * @param request DeleteCustomJobRequest message or plain object + * Calls UpdateIndex. + * @param request UpdateIndexRequest message or plain object * @param callback Node-style callback called with the error, if any, and Operation */ - public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback): void; + public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback): void; /** - * Calls DeleteCustomJob. - * @param request DeleteCustomJobRequest message or plain object + * Calls UpdateIndex. + * @param request UpdateIndexRequest message or plain object * @returns Promise */ - public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): Promise; + public updateIndex(request: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): Promise; /** - * Calls CancelCustomJob. - * @param request CancelCustomJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Calls DeleteIndex. + * @param request DeleteIndexRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback): void; + public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, callback: google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback): void; /** - * Calls CancelCustomJob. - * @param request CancelCustomJobRequest message or plain object + * Calls DeleteIndex. + * @param request DeleteIndexRequest message or plain object * @returns Promise */ - public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): Promise; + public deleteIndex(request: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): Promise; + } + + namespace IndexService { /** - * Calls CreateDataLabelingJob. - * @param request CreateDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataLabelingJob + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#createIndex}. + * @param error Error, if any + * @param [response] Operation */ - public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback): void; + type CreateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls CreateDataLabelingJob. - * @param request CreateDataLabelingJobRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#getIndex}. + * @param error Error, if any + * @param [response] Index */ - public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): Promise; + type GetIndexCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.Index) => void; /** - * Calls GetDataLabelingJob. - * @param request GetDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and DataLabelingJob + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#listIndexes}. + * @param error Error, if any + * @param [response] ListIndexesResponse */ - public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback): void; + type ListIndexesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListIndexesResponse) => void; /** - * Calls GetDataLabelingJob. - * @param request GetDataLabelingJobRequest message or plain object - * @returns Promise + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#updateIndex}. + * @param error Error, if any + * @param [response] Operation */ - public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): Promise; + type UpdateIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Calls ListDataLabelingJobs. - * @param request ListDataLabelingJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#deleteIndex}. + * @param error Error, if any + * @param [response] Operation */ - public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback): void; + type DeleteIndexCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + } + + /** Properties of a CreateIndexRequest. */ + interface ICreateIndexRequest { + + /** CreateIndexRequest parent */ + parent?: (string|null); + + /** CreateIndexRequest index */ + index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + } + + /** Represents a CreateIndexRequest. */ + class CreateIndexRequest implements ICreateIndexRequest { /** - * Calls ListDataLabelingJobs. - * @param request ListDataLabelingJobsRequest message or plain object - * @returns Promise + * Constructs a new CreateIndexRequest. + * @param [properties] Properties to set */ - public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest); + + /** CreateIndexRequest parent. */ + public parent: string; + + /** CreateIndexRequest index. */ + public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); /** - * Calls DeleteDataLabelingJob. - * @param request DeleteDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new CreateIndexRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateIndexRequest instance */ - public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexRequest): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Calls DeleteDataLabelingJob. - * @param request DeleteDataLabelingJobRequest message or plain object - * @returns Promise + * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. + * @param message CreateIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelDataLabelingJob. - * @param request CancelDataLabelingJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. + * @param message CreateIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelDataLabelingJob. - * @param request CancelDataLabelingJobRequest message or plain object - * @returns Promise + * Decodes a CreateIndexRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Calls CreateHyperparameterTuningJob. - * @param request CreateHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Calls CreateHyperparameterTuningJob. - * @param request CreateHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Verifies a CreateIndexRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetHyperparameterTuningJob. - * @param request GetHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateIndexRequest */ - public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexRequest; /** - * Calls GetHyperparameterTuningJob. - * @param request GetHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. + * @param message CreateIndexRequest + * @param [options] Conversion options + * @returns Plain object */ - public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListHyperparameterTuningJobs. - * @param request ListHyperparameterTuningJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse + * Converts this CreateIndexRequest to JSON. + * @returns JSON object */ - public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback): void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateIndexOperationMetadata. */ + interface ICreateIndexOperationMetadata { + + /** CreateIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ + nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + } + + /** Represents a CreateIndexOperationMetadata. */ + class CreateIndexOperationMetadata implements ICreateIndexOperationMetadata { /** - * Calls ListHyperparameterTuningJobs. - * @param request ListHyperparameterTuningJobsRequest message or plain object - * @returns Promise + * Constructs a new CreateIndexOperationMetadata. + * @param [properties] Properties to set */ - public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata); + + /** CreateIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ + public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); /** - * Calls DeleteHyperparameterTuningJob. - * @param request DeleteHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new CreateIndexOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns CreateIndexOperationMetadata instance */ - public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Calls DeleteHyperparameterTuningJob. - * @param request DeleteHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @param message CreateIndexOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelHyperparameterTuningJob. - * @param request CancelHyperparameterTuningJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @param message CreateIndexOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelHyperparameterTuningJob. - * @param request CancelHyperparameterTuningJobRequest message or plain object - * @returns Promise + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CreateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Calls CreateBatchPredictionJob. - * @param request CreateBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchPredictionJob + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CreateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Calls CreateBatchPredictionJob. - * @param request CreateBatchPredictionJobRequest message or plain object - * @returns Promise + * Verifies a CreateIndexOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls GetBatchPredictionJob. - * @param request GetBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and BatchPredictionJob + * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CreateIndexOperationMetadata */ - public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata; /** - * Calls GetBatchPredictionJob. - * @param request GetBatchPredictionJobRequest message or plain object - * @returns Promise + * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. + * @param message CreateIndexOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls ListBatchPredictionJobs. - * @param request ListBatchPredictionJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse + * Converts this CreateIndexOperationMetadata to JSON. + * @returns JSON object */ - public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback): void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of a GetIndexRequest. */ + interface IGetIndexRequest { + + /** GetIndexRequest name */ + name?: (string|null); + } + + /** Represents a GetIndexRequest. */ + class GetIndexRequest implements IGetIndexRequest { /** - * Calls ListBatchPredictionJobs. - * @param request ListBatchPredictionJobsRequest message or plain object - * @returns Promise + * Constructs a new GetIndexRequest. + * @param [properties] Properties to set */ - public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): Promise; + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest); + + /** GetIndexRequest name. */ + public name: string; /** - * Calls DeleteBatchPredictionJob. - * @param request DeleteBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a new GetIndexRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns GetIndexRequest instance */ - public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetIndexRequest): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Calls DeleteBatchPredictionJob. - * @param request DeleteBatchPredictionJobRequest message or plain object - * @returns Promise + * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. + * @param message GetIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelBatchPredictionJob. - * @param request CancelBatchPredictionJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. + * @param message GetIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls CancelBatchPredictionJob. - * @param request CancelBatchPredictionJobRequest message or plain object - * @returns Promise + * Decodes a GetIndexRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns GetIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Calls CreateModelDeploymentMonitoringJob. - * @param request CreateModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns GetIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetIndexRequest; /** - * Calls CreateModelDeploymentMonitoringJob. - * @param request CreateModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Verifies a GetIndexRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns GetIndexRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetIndexRequest; + + /** + * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. + * @param message GetIndexRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this GetIndexRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a ListIndexesRequest. */ + interface IListIndexesRequest { + + /** ListIndexesRequest parent */ + parent?: (string|null); + + /** ListIndexesRequest filter */ + filter?: (string|null); + + /** ListIndexesRequest pageSize */ + pageSize?: (number|null); + + /** ListIndexesRequest pageToken */ + pageToken?: (string|null); + + /** ListIndexesRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents a ListIndexesRequest. */ + class ListIndexesRequest implements IListIndexesRequest { + + /** + * Constructs a new ListIndexesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest); + + /** ListIndexesRequest parent. */ + public parent: string; + + /** ListIndexesRequest filter. */ + public filter: string; + + /** ListIndexesRequest pageSize. */ + public pageSize: number; + + /** ListIndexesRequest pageToken. */ + public pageToken: string; + + /** ListIndexesRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @param callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a new ListIndexesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns ListIndexesRequest instance */ - public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, callback: google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback): void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesRequest): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @returns Promise + * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * @param message ListIndexesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): Promise; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetModelDeploymentMonitoringJob. - * @param request GetModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * @param message ListIndexesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback): void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Calls GetModelDeploymentMonitoringJob. - * @param request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Decodes a ListIndexesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListIndexesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): Promise; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Calls ListModelDeploymentMonitoringJobs. - * @param request ListModelDeploymentMonitoringJobsRequest message or plain object - * @param callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListIndexesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback): void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Calls ListModelDeploymentMonitoringJobs. - * @param request ListModelDeploymentMonitoringJobsRequest message or plain object - * @returns Promise + * Verifies a ListIndexesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): Promise; + public static verify(message: { [k: string]: any }): (string|null); /** - * Calls UpdateModelDeploymentMonitoringJob. - * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListIndexesRequest */ - public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback): void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesRequest; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. + * @param message ListIndexesRequest + * @param [options] Conversion options + * @returns Plain object */ - public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): Promise; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Operation + * Converts this ListIndexesRequest to JSON. + * @returns JSON object */ - public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback): void; + public toJSON(): { [k: string]: any }; + } - /** - * Calls DeleteModelDeploymentMonitoringJob. - * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise - */ - public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): Promise; + /** Properties of a ListIndexesResponse. */ + interface IListIndexesResponse { - /** - * Calls PauseModelDeploymentMonitoringJob. - * @param request PauseModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty - */ - public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback): void; + /** ListIndexesResponse indexes */ + indexes?: (google.cloud.aiplatform.v1beta1.IIndex[]|null); - /** - * Calls PauseModelDeploymentMonitoringJob. - * @param request PauseModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise - */ - public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): Promise; + /** ListIndexesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a ListIndexesResponse. */ + class ListIndexesResponse implements IListIndexesResponse { /** - * Calls ResumeModelDeploymentMonitoringJob. - * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @param callback Node-style callback called with the error, if any, and Empty + * Constructs a new ListIndexesResponse. + * @param [properties] Properties to set */ - public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback): void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse); + + /** ListIndexesResponse indexes. */ + public indexes: google.cloud.aiplatform.v1beta1.IIndex[]; + + /** ListIndexesResponse nextPageToken. */ + public nextPageToken: string; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @returns Promise + * Creates a new ListIndexesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListIndexesResponse instance */ - public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): Promise; - } - - namespace JobService { + public static create(properties?: google.cloud.aiplatform.v1beta1.IListIndexesResponse): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createCustomJob}. - * @param error Error, if any - * @param [response] CustomJob + * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * @param message ListIndexesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getCustomJob}. - * @param error Error, if any - * @param [response] CustomJob + * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * @param message ListIndexesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListIndexesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listCustomJobs}. - * @param error Error, if any - * @param [response] ListCustomJobsResponse + * Decodes a ListIndexesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListIndexesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListCustomJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteCustomJob}. - * @param error Error, if any - * @param [response] Operation + * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListIndexesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteCustomJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelCustomJob}. - * @param error Error, if any - * @param [response] Empty + * Verifies a ListIndexesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CancelCustomJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createDataLabelingJob}. - * @param error Error, if any - * @param [response] DataLabelingJob + * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListIndexesResponse */ - type CreateDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListIndexesResponse; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getDataLabelingJob}. - * @param error Error, if any - * @param [response] DataLabelingJob + * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. + * @param message ListIndexesResponse + * @param [options] Conversion options + * @returns Plain object */ - type GetDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListIndexesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listDataLabelingJobs}. - * @param error Error, if any - * @param [response] ListDataLabelingJobsResponse + * Converts this ListIndexesResponse to JSON. + * @returns JSON object */ - type ListDataLabelingJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateIndexRequest. */ + interface IUpdateIndexRequest { + + /** UpdateIndexRequest index */ + index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + + /** UpdateIndexRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); + } + + /** Represents an UpdateIndexRequest. */ + class UpdateIndexRequest implements IUpdateIndexRequest { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteDataLabelingJob}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new UpdateIndexRequest. + * @param [properties] Properties to set */ - type DeleteDataLabelingJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest); + + /** UpdateIndexRequest index. */ + public index?: (google.cloud.aiplatform.v1beta1.IIndex|null); + + /** UpdateIndexRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelDataLabelingJob}. - * @param error Error, if any - * @param [response] Empty + * Creates a new UpdateIndexRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIndexRequest instance */ - type CancelDataLabelingJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] HyperparameterTuningJob + * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * @param message UpdateIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] HyperparameterTuningJob + * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * @param message UpdateIndexRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type GetHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listHyperparameterTuningJobs}. - * @param error Error, if any - * @param [response] ListHyperparameterTuningJobsResponse + * Decodes an UpdateIndexRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListHyperparameterTuningJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] Operation + * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type DeleteHyperparameterTuningJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelHyperparameterTuningJob}. - * @param error Error, if any - * @param [response] Empty + * Verifies an UpdateIndexRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createBatchPredictionJob}. - * @param error Error, if any - * @param [response] BatchPredictionJob + * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIndexRequest */ - type CreateBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexRequest; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getBatchPredictionJob}. - * @param error Error, if any - * @param [response] BatchPredictionJob + * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. + * @param message UpdateIndexRequest + * @param [options] Conversion options + * @returns Plain object */ - type GetBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listBatchPredictionJobs}. - * @param error Error, if any - * @param [response] ListBatchPredictionJobsResponse + * Converts this UpdateIndexRequest to JSON. + * @returns JSON object */ - type ListBatchPredictionJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) => void; + public toJSON(): { [k: string]: any }; + } + + /** Properties of an UpdateIndexOperationMetadata. */ + interface IUpdateIndexOperationMetadata { + + /** UpdateIndexOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ + nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); + } + + /** Represents an UpdateIndexOperationMetadata. */ + class UpdateIndexOperationMetadata implements IUpdateIndexOperationMetadata { /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteBatchPredictionJob}. - * @param error Error, if any - * @param [response] Operation + * Constructs a new UpdateIndexOperationMetadata. + * @param [properties] Properties to set */ - type DeleteBatchPredictionJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata); + + /** UpdateIndexOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + + /** UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. */ + public nearestNeighborSearchOperationMetadata?: (google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelBatchPredictionJob}. - * @param error Error, if any - * @param [response] Empty + * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * @param [properties] Properties to set + * @returns UpdateIndexOperationMetadata instance */ - type CancelBatchPredictionJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] ModelDeploymentMonitoringJob + * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * @param message UpdateIndexOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type CreateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#searchModelDeploymentMonitoringStatsAnomalies}. - * @param error Error, if any - * @param [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * @param message UpdateIndexOperationMetadata message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer */ - type SearchModelDeploymentMonitoringStatsAnomaliesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) => void; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] ModelDeploymentMonitoringJob + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns UpdateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type GetModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listModelDeploymentMonitoringJobs}. - * @param error Error, if any - * @param [response] ListModelDeploymentMonitoringJobsResponse + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns UpdateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - type ListModelDeploymentMonitoringJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) => void; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#updateModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Operation + * Verifies an UpdateIndexOperationMetadata message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not */ - type UpdateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static verify(message: { [k: string]: any }): (string|null); /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Operation + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns UpdateIndexOperationMetadata */ - type DeleteModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#pauseModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Empty + * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateIndexOperationMetadata + * @param [options] Conversion options + * @returns Plain object */ - type PauseModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#resumeModelDeploymentMonitoringJob}. - * @param error Error, if any - * @param [response] Empty + * Converts this UpdateIndexOperationMetadata to JSON. + * @returns JSON object */ - type ResumeModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; + public toJSON(): { [k: string]: any }; } - /** Properties of a CreateCustomJobRequest. */ - interface ICreateCustomJobRequest { - - /** CreateCustomJobRequest parent */ - parent?: (string|null); + /** Properties of a DeleteIndexRequest. */ + interface IDeleteIndexRequest { - /** CreateCustomJobRequest customJob */ - customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); + /** DeleteIndexRequest name */ + name?: (string|null); } - /** Represents a CreateCustomJobRequest. */ - class CreateCustomJobRequest implements ICreateCustomJobRequest { + /** Represents a DeleteIndexRequest. */ + class DeleteIndexRequest implements IDeleteIndexRequest { /** - * Constructs a new CreateCustomJobRequest. + * Constructs a new DeleteIndexRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest); - - /** CreateCustomJobRequest parent. */ - public parent: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest); - /** CreateCustomJobRequest customJob. */ - public customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); + /** DeleteIndexRequest name. */ + public name: string; /** - * Creates a new CreateCustomJobRequest instance using the specified properties. + * Creates a new DeleteIndexRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CreateCustomJobRequest instance + * @returns DeleteIndexRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. - * @param message CreateCustomJobRequest message or plain object to encode + * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * @param message DeleteIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. - * @param message CreateCustomJobRequest message or plain object to encode + * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * @param message DeleteIndexRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteIndexRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer. + * Decodes a DeleteIndexRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateCustomJobRequest + * @returns DeleteIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateCustomJobRequest + * @returns DeleteIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Verifies a CreateCustomJobRequest message. + * Verifies a DeleteIndexRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateCustomJobRequest + * @returns DeleteIndexRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteIndexRequest; /** - * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. - * @param message CreateCustomJobRequest + * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. + * @param message DeleteIndexRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteIndexRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateCustomJobRequest to JSON. + * Converts this DeleteIndexRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetCustomJobRequest. */ - interface IGetCustomJobRequest { + /** Properties of a NearestNeighborSearchOperationMetadata. */ + interface INearestNeighborSearchOperationMetadata { - /** GetCustomJobRequest name */ - name?: (string|null); + /** NearestNeighborSearchOperationMetadata contentValidationStats */ + contentValidationStats?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]|null); + + /** NearestNeighborSearchOperationMetadata dataBytesCount */ + dataBytesCount?: (number|Long|string|null); } - /** Represents a GetCustomJobRequest. */ - class GetCustomJobRequest implements IGetCustomJobRequest { + /** Represents a NearestNeighborSearchOperationMetadata. */ + class NearestNeighborSearchOperationMetadata implements INearestNeighborSearchOperationMetadata { /** - * Constructs a new GetCustomJobRequest. + * Constructs a new NearestNeighborSearchOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata); - /** GetCustomJobRequest name. */ - public name: string; + /** NearestNeighborSearchOperationMetadata contentValidationStats. */ + public contentValidationStats: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats[]; + + /** NearestNeighborSearchOperationMetadata dataBytesCount. */ + public dataBytesCount: (number|Long|string); /** - * Creates a new GetCustomJobRequest instance using the specified properties. + * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns GetCustomJobRequest instance + * @returns NearestNeighborSearchOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. - * @param message GetCustomJobRequest message or plain object to encode + * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * @param message NearestNeighborSearchOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. - * @param message GetCustomJobRequest message or plain object to encode + * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * @param message NearestNeighborSearchOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetCustomJobRequest + * @returns NearestNeighborSearchOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetCustomJobRequest + * @returns NearestNeighborSearchOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Verifies a GetCustomJobRequest message. + * Verifies a NearestNeighborSearchOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetCustomJobRequest + * @returns NearestNeighborSearchOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata; /** - * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. - * @param message GetCustomJobRequest + * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. + * @param message NearestNeighborSearchOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetCustomJobRequest to JSON. + * Converts this NearestNeighborSearchOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListCustomJobsRequest. */ - interface IListCustomJobsRequest { + namespace NearestNeighborSearchOperationMetadata { - /** ListCustomJobsRequest parent */ - parent?: (string|null); + /** Properties of a RecordError. */ + interface IRecordError { - /** ListCustomJobsRequest filter */ - filter?: (string|null); + /** RecordError errorType */ + errorType?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null); - /** ListCustomJobsRequest pageSize */ - pageSize?: (number|null); + /** RecordError errorMessage */ + errorMessage?: (string|null); - /** ListCustomJobsRequest pageToken */ - pageToken?: (string|null); + /** RecordError sourceGcsUri */ + sourceGcsUri?: (string|null); - /** ListCustomJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); - } + /** RecordError embeddingId */ + embeddingId?: (string|null); - /** Represents a ListCustomJobsRequest. */ - class ListCustomJobsRequest implements IListCustomJobsRequest { + /** RecordError rawRecord */ + rawRecord?: (string|null); + } - /** - * Constructs a new ListCustomJobsRequest. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest); + /** Represents a RecordError. */ + class RecordError implements IRecordError { - /** ListCustomJobsRequest parent. */ - public parent: string; + /** + * Constructs a new RecordError. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError); - /** ListCustomJobsRequest filter. */ - public filter: string; + /** RecordError errorType. */ + public errorType: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|keyof typeof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType); - /** ListCustomJobsRequest pageSize. */ - public pageSize: number; + /** RecordError errorMessage. */ + public errorMessage: string; - /** ListCustomJobsRequest pageToken. */ - public pageToken: string; + /** RecordError sourceGcsUri. */ + public sourceGcsUri: string; - /** ListCustomJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** RecordError embeddingId. */ + public embeddingId: string; + + /** RecordError rawRecord. */ + public rawRecord: string; + + /** + * Creates a new RecordError instance using the specified properties. + * @param [properties] Properties to set + * @returns RecordError instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @param message RecordError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @param message RecordError message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a RecordError message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Decodes a RecordError message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Verifies a RecordError message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a RecordError message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns RecordError + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError; + + /** + * Creates a plain object from a RecordError message. Also converts values to other types if specified. + * @param message RecordError + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this RecordError to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + namespace RecordError { + + /** RecordErrorType enum. */ + enum RecordErrorType { + ERROR_TYPE_UNSPECIFIED = 0, + EMPTY_LINE = 1, + INVALID_JSON_SYNTAX = 2, + INVALID_CSV_SYNTAX = 3, + INVALID_AVRO_SYNTAX = 4, + INVALID_EMBEDDING_ID = 5, + EMBEDDING_SIZE_MISMATCH = 6, + NAMESPACE_MISSING = 7 + } + } + + /** Properties of a ContentValidationStats. */ + interface IContentValidationStats { + + /** ContentValidationStats sourceGcsUri */ + sourceGcsUri?: (string|null); + + /** ContentValidationStats validRecordCount */ + validRecordCount?: (number|Long|string|null); + + /** ContentValidationStats invalidRecordCount */ + invalidRecordCount?: (number|Long|string|null); + + /** ContentValidationStats partialErrors */ + partialErrors?: (google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]|null); + } + + /** Represents a ContentValidationStats. */ + class ContentValidationStats implements IContentValidationStats { + + /** + * Constructs a new ContentValidationStats. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats); + + /** ContentValidationStats sourceGcsUri. */ + public sourceGcsUri: string; + + /** ContentValidationStats validRecordCount. */ + public validRecordCount: (number|Long|string); + + /** ContentValidationStats invalidRecordCount. */ + public invalidRecordCount: (number|Long|string); + + /** ContentValidationStats partialErrors. */ + public partialErrors: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError[]; + + /** + * Creates a new ContentValidationStats instance using the specified properties. + * @param [properties] Properties to set + * @returns ContentValidationStats instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @param message ContentValidationStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @param message ContentValidationStats message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Verifies a ContentValidationStats message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ContentValidationStats + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats; + + /** + * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. + * @param message ContentValidationStats + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this ContentValidationStats to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + } + + /** Represents a JobService */ + class JobService extends $protobuf.rpc.Service { /** - * Creates a new ListCustomJobsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListCustomJobsRequest instance + * Constructs a new JobService service. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean); /** - * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. - * @param message ListCustomJobsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Creates new JobService service using the specified rpc implementation. + * @param rpcImpl RPC implementation + * @param [requestDelimited=false] Whether requests are length-delimited + * @param [responseDelimited=false] Whether responses are length-delimited + * @returns RPC service. Useful where requests and/or responses are streamed. */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): JobService; /** - * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. - * @param message ListCustomJobsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CreateCustomJob. + * @param request CreateCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomJob */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback): void; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListCustomJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateCustomJob. + * @param request CreateCustomJobRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public createCustomJob(request: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): Promise; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListCustomJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetCustomJob. + * @param request GetCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and CustomJob */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback): void; /** - * Verifies a ListCustomJobsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetCustomJob. + * @param request GetCustomJobRequest message or plain object + * @returns Promise */ - public static verify(message: { [k: string]: any }): (string|null); + public getCustomJob(request: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): Promise; /** - * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListCustomJobsRequest + * Calls ListCustomJobs. + * @param request ListCustomJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListCustomJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; + public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback): void; /** - * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. - * @param message ListCustomJobsRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ListCustomJobs. + * @param request ListCustomJobsRequest message or plain object + * @returns Promise */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listCustomJobs(request: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): Promise; /** - * Converts this ListCustomJobsRequest to JSON. - * @returns JSON object + * Calls DeleteCustomJob. + * @param request DeleteCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public toJSON(): { [k: string]: any }; - } + public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback): void; - /** Properties of a ListCustomJobsResponse. */ - interface IListCustomJobsResponse { + /** + * Calls DeleteCustomJob. + * @param request DeleteCustomJobRequest message or plain object + * @returns Promise + */ + public deleteCustomJob(request: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): Promise; - /** ListCustomJobsResponse customJobs */ - customJobs?: (google.cloud.aiplatform.v1beta1.ICustomJob[]|null); + /** + * Calls CancelCustomJob. + * @param request CancelCustomJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback): void; - /** ListCustomJobsResponse nextPageToken */ - nextPageToken?: (string|null); - } + /** + * Calls CancelCustomJob. + * @param request CancelCustomJobRequest message or plain object + * @returns Promise + */ + public cancelCustomJob(request: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): Promise; - /** Represents a ListCustomJobsResponse. */ - class ListCustomJobsResponse implements IListCustomJobsResponse { + /** + * Calls CreateDataLabelingJob. + * @param request CreateDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataLabelingJob + */ + public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback): void; /** - * Constructs a new ListCustomJobsResponse. - * @param [properties] Properties to set + * Calls CreateDataLabelingJob. + * @param request CreateDataLabelingJobRequest message or plain object + * @returns Promise */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse); + public createDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): Promise; - /** ListCustomJobsResponse customJobs. */ - public customJobs: google.cloud.aiplatform.v1beta1.ICustomJob[]; + /** + * Calls GetDataLabelingJob. + * @param request GetDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and DataLabelingJob + */ + public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback): void; - /** ListCustomJobsResponse nextPageToken. */ - public nextPageToken: string; + /** + * Calls GetDataLabelingJob. + * @param request GetDataLabelingJobRequest message or plain object + * @returns Promise + */ + public getDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): Promise; /** - * Creates a new ListCustomJobsResponse instance using the specified properties. - * @param [properties] Properties to set - * @returns ListCustomJobsResponse instance + * Calls ListDataLabelingJobs. + * @param request ListDataLabelingJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback): void; /** - * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. - * @param message ListCustomJobsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls ListDataLabelingJobs. + * @param request ListDataLabelingJobsRequest message or plain object + * @returns Promise */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public listDataLabelingJobs(request: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): Promise; /** - * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. - * @param message ListCustomJobsResponse message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls DeleteDataLabelingJob. + * @param request DeleteDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback): void; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListCustomJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteDataLabelingJob. + * @param request DeleteDataLabelingJobRequest message or plain object + * @returns Promise */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public deleteDataLabelingJob(request: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): Promise; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListCustomJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CancelDataLabelingJob. + * @param request CancelDataLabelingJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty + */ + public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback): void; + + /** + * Calls CancelDataLabelingJob. + * @param request CancelDataLabelingJobRequest message or plain object + * @returns Promise + */ + public cancelDataLabelingJob(request: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): Promise; + + /** + * Calls CreateHyperparameterTuningJob. + * @param request CreateHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob + */ + public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback): void; + + /** + * Calls CreateHyperparameterTuningJob. + * @param request CreateHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public createHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): Promise; /** - * Verifies a ListCustomJobsResponse message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetHyperparameterTuningJob. + * @param request GetHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and HyperparameterTuningJob */ - public static verify(message: { [k: string]: any }): (string|null); + public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback): void; /** - * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListCustomJobsResponse + * Calls GetHyperparameterTuningJob. + * @param request GetHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; + public getHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): Promise; /** - * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. - * @param message ListCustomJobsResponse - * @param [options] Conversion options - * @returns Plain object + * Calls ListHyperparameterTuningJobs. + * @param request ListHyperparameterTuningJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback): void; /** - * Converts this ListCustomJobsResponse to JSON. - * @returns JSON object + * Calls ListHyperparameterTuningJobs. + * @param request ListHyperparameterTuningJobsRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a DeleteCustomJobRequest. */ - interface IDeleteCustomJobRequest { - - /** DeleteCustomJobRequest name */ - name?: (string|null); - } - - /** Represents a DeleteCustomJobRequest. */ - class DeleteCustomJobRequest implements IDeleteCustomJobRequest { + public listHyperparameterTuningJobs(request: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): Promise; /** - * Constructs a new DeleteCustomJobRequest. - * @param [properties] Properties to set + * Calls DeleteHyperparameterTuningJob. + * @param request DeleteHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest); - - /** DeleteCustomJobRequest name. */ - public name: string; + public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback): void; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns DeleteCustomJobRequest instance + * Calls DeleteHyperparameterTuningJob. + * @param request DeleteHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + public deleteHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): Promise; /** - * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @param message DeleteCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CancelHyperparameterTuningJob. + * @param request CancelHyperparameterTuningJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback): void; /** - * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @param message DeleteCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CancelHyperparameterTuningJob. + * @param request CancelHyperparameterTuningJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public cancelHyperparameterTuningJob(request: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): Promise; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns DeleteCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateBatchPredictionJob. + * @param request CreateBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchPredictionJob */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback): void; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns DeleteCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateBatchPredictionJob. + * @param request CreateBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + public createBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): Promise; /** - * Verifies a DeleteCustomJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls GetBatchPredictionJob. + * @param request GetBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchPredictionJob */ - public static verify(message: { [k: string]: any }): (string|null); + public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback): void; /** - * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns DeleteCustomJobRequest + * Calls GetBatchPredictionJob. + * @param request GetBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; + public getBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): Promise; /** - * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. - * @param message DeleteCustomJobRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ListBatchPredictionJobs. + * @param request ListBatchPredictionJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback): void; /** - * Converts this DeleteCustomJobRequest to JSON. - * @returns JSON object + * Calls ListBatchPredictionJobs. + * @param request ListBatchPredictionJobsRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CancelCustomJobRequest. */ - interface ICancelCustomJobRequest { - - /** CancelCustomJobRequest name */ - name?: (string|null); - } - - /** Represents a CancelCustomJobRequest. */ - class CancelCustomJobRequest implements ICancelCustomJobRequest { + public listBatchPredictionJobs(request: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): Promise; /** - * Constructs a new CancelCustomJobRequest. - * @param [properties] Properties to set + * Calls DeleteBatchPredictionJob. + * @param request DeleteBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest); - - /** CancelCustomJobRequest name. */ - public name: string; + public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback): void; /** - * Creates a new CancelCustomJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CancelCustomJobRequest instance + * Calls DeleteBatchPredictionJob. + * @param request DeleteBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + public deleteBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): Promise; /** - * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @param message CancelCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CancelBatchPredictionJob. + * @param request CancelBatchPredictionJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback): void; /** - * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @param message CancelCustomJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls CancelBatchPredictionJob. + * @param request CancelBatchPredictionJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public cancelBatchPredictionJob(request: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): Promise; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CancelCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateModelDeploymentMonitoringJob. + * @param request CreateModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback): void; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CancelCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateModelDeploymentMonitoringJob. + * @param request CreateModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + public createModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): Promise; /** - * Verifies a CancelCustomJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static verify(message: { [k: string]: any }): (string|null); + public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, callback: google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback): void; /** - * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CancelCustomJobRequest + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @param request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; + public searchModelDeploymentMonitoringStatsAnomalies(request: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): Promise; /** - * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. - * @param message CancelCustomJobRequest - * @param [options] Conversion options - * @returns Plain object + * Calls GetModelDeploymentMonitoringJob. + * @param request GetModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback): void; /** - * Converts this CancelCustomJobRequest to JSON. - * @returns JSON object + * Calls GetModelDeploymentMonitoringJob. + * @param request GetModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a CreateDataLabelingJobRequest. */ - interface ICreateDataLabelingJobRequest { - - /** CreateDataLabelingJobRequest parent */ - parent?: (string|null); - - /** CreateDataLabelingJobRequest dataLabelingJob */ - dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); - } - - /** Represents a CreateDataLabelingJobRequest. */ - class CreateDataLabelingJobRequest implements ICreateDataLabelingJobRequest { + public getModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): Promise; /** - * Constructs a new CreateDataLabelingJobRequest. - * @param [properties] Properties to set + * Calls ListModelDeploymentMonitoringJobs. + * @param request ListModelDeploymentMonitoringJobsRequest message or plain object + * @param callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest); - - /** CreateDataLabelingJobRequest parent. */ - public parent: string; - - /** CreateDataLabelingJobRequest dataLabelingJob. */ - public dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); + public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback): void; /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns CreateDataLabelingJobRequest instance + * Calls ListModelDeploymentMonitoringJobs. + * @param request ListModelDeploymentMonitoringJobsRequest message or plain object + * @returns Promise */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public listModelDeploymentMonitoringJobs(request: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): Promise; /** - * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @param message CreateDataLabelingJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateModelDeploymentMonitoringJob. + * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback): void; /** - * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @param message CreateDataLabelingJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Calls UpdateModelDeploymentMonitoringJob. + * @param request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public updateModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): Promise; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns CreateDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelDeploymentMonitoringJob. + * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Operation */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback): void; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns CreateDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls DeleteModelDeploymentMonitoringJob. + * @param request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public deleteModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): Promise; /** - * Verifies a CreateDataLabelingJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Calls PauseModelDeploymentMonitoringJob. + * @param request PauseModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static verify(message: { [k: string]: any }): (string|null); + public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback): void; /** - * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns CreateDataLabelingJobRequest + * Calls PauseModelDeploymentMonitoringJob. + * @param request PauseModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; + public pauseModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): Promise; /** - * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message CreateDataLabelingJobRequest - * @param [options] Conversion options - * @returns Plain object + * Calls ResumeModelDeploymentMonitoringJob. + * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @param callback Node-style callback called with the error, if any, and Empty */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, callback: google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback): void; /** - * Converts this CreateDataLabelingJobRequest to JSON. - * @returns JSON object + * Calls ResumeModelDeploymentMonitoringJob. + * @param request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns Promise */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a GetDataLabelingJobRequest. */ - interface IGetDataLabelingJobRequest { - - /** GetDataLabelingJobRequest name */ - name?: (string|null); + public resumeModelDeploymentMonitoringJob(request: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): Promise; } - /** Represents a GetDataLabelingJobRequest. */ - class GetDataLabelingJobRequest implements IGetDataLabelingJobRequest { + namespace JobService { /** - * Constructs a new GetDataLabelingJobRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createCustomJob}. + * @param error Error, if any + * @param [response] CustomJob */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest); - - /** GetDataLabelingJobRequest name. */ - public name: string; + type CreateCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; /** - * Creates a new GetDataLabelingJobRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns GetDataLabelingJobRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getCustomJob}. + * @param error Error, if any + * @param [response] CustomJob */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + type GetCustomJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.CustomJob) => void; /** - * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. - * @param message GetDataLabelingJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listCustomJobs}. + * @param error Error, if any + * @param [response] ListCustomJobsResponse */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type ListCustomJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) => void; /** - * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. - * @param message GetDataLabelingJobRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteCustomJob}. + * @param error Error, if any + * @param [response] Operation */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type DeleteCustomJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns GetDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelCustomJob}. + * @param error Error, if any + * @param [response] Empty */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + type CancelCustomJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns GetDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createDataLabelingJob}. + * @param error Error, if any + * @param [response] DataLabelingJob */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + type CreateDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; /** - * Verifies a GetDataLabelingJobRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getDataLabelingJob}. + * @param error Error, if any + * @param [response] DataLabelingJob */ - public static verify(message: { [k: string]: any }): (string|null); + type GetDataLabelingJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.DataLabelingJob) => void; /** - * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns GetDataLabelingJobRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listDataLabelingJobs}. + * @param error Error, if any + * @param [response] ListDataLabelingJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; + type ListDataLabelingJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) => void; /** - * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message GetDataLabelingJobRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteDataLabelingJob}. + * @param error Error, if any + * @param [response] Operation */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type DeleteDataLabelingJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Converts this GetDataLabelingJobRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelDataLabelingJob}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; - } - - /** Properties of a ListDataLabelingJobsRequest. */ - interface IListDataLabelingJobsRequest { - - /** ListDataLabelingJobsRequest parent */ - parent?: (string|null); - - /** ListDataLabelingJobsRequest filter */ - filter?: (string|null); - - /** ListDataLabelingJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListDataLabelingJobsRequest pageToken */ - pageToken?: (string|null); - - /** ListDataLabelingJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + type CancelDataLabelingJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** ListDataLabelingJobsRequest orderBy */ - orderBy?: (string|null); - } + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] HyperparameterTuningJob + */ + type CreateHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; - /** Represents a ListDataLabelingJobsRequest. */ - class ListDataLabelingJobsRequest implements IListDataLabelingJobsRequest { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] HyperparameterTuningJob + */ + type GetHyperparameterTuningJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) => void; /** - * Constructs a new ListDataLabelingJobsRequest. - * @param [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listHyperparameterTuningJobs}. + * @param error Error, if any + * @param [response] ListHyperparameterTuningJobsResponse */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest); + type ListHyperparameterTuningJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) => void; - /** ListDataLabelingJobsRequest parent. */ - public parent: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteHyperparameterTuningJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; - /** ListDataLabelingJobsRequest filter. */ - public filter: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelHyperparameterTuningJob}. + * @param error Error, if any + * @param [response] Empty + */ + type CancelHyperparameterTuningJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; - /** ListDataLabelingJobsRequest pageSize. */ - public pageSize: number; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createBatchPredictionJob}. + * @param error Error, if any + * @param [response] BatchPredictionJob + */ + type CreateBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; - /** ListDataLabelingJobsRequest pageToken. */ - public pageToken: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getBatchPredictionJob}. + * @param error Error, if any + * @param [response] BatchPredictionJob + */ + type GetBatchPredictionJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchPredictionJob) => void; - /** ListDataLabelingJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listBatchPredictionJobs}. + * @param error Error, if any + * @param [response] ListBatchPredictionJobsResponse + */ + type ListBatchPredictionJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) => void; - /** ListDataLabelingJobsRequest orderBy. */ - public orderBy: string; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteBatchPredictionJob}. + * @param error Error, if any + * @param [response] Operation + */ + type DeleteBatchPredictionJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. - * @param [properties] Properties to set - * @returns ListDataLabelingJobsRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelBatchPredictionJob}. + * @param error Error, if any + * @param [response] Empty */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + type CancelBatchPredictionJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. - * @param message ListDataLabelingJobsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] ModelDeploymentMonitoringJob */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type CreateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; /** - * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. - * @param message ListDataLabelingJobsRequest message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#searchModelDeploymentMonitoringStatsAnomalies}. + * @param error Error, if any + * @param [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + type SearchModelDeploymentMonitoringStatsAnomaliesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) => void; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ListDataLabelingJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] ModelDeploymentMonitoringJob */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + type GetModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) => void; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ListDataLabelingJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listModelDeploymentMonitoringJobs}. + * @param error Error, if any + * @param [response] ListModelDeploymentMonitoringJobsResponse */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + type ListModelDeploymentMonitoringJobsCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) => void; /** - * Verifies a ListDataLabelingJobsRequest message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#updateModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Operation */ - public static verify(message: { [k: string]: any }): (string|null); + type UpdateModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ListDataLabelingJobsRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Operation */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; + type DeleteModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.longrunning.Operation) => void; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. - * @param message ListDataLabelingJobsRequest - * @param [options] Conversion options - * @returns Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#pauseModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Empty */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + type PauseModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; /** - * Converts this ListDataLabelingJobsRequest to JSON. - * @returns JSON object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#resumeModelDeploymentMonitoringJob}. + * @param error Error, if any + * @param [response] Empty */ - public toJSON(): { [k: string]: any }; + type ResumeModelDeploymentMonitoringJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void; } - /** Properties of a ListDataLabelingJobsResponse. */ - interface IListDataLabelingJobsResponse { + /** Properties of a CreateCustomJobRequest. */ + interface ICreateCustomJobRequest { - /** ListDataLabelingJobsResponse dataLabelingJobs */ - dataLabelingJobs?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob[]|null); + /** CreateCustomJobRequest parent */ + parent?: (string|null); - /** ListDataLabelingJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateCustomJobRequest customJob */ + customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); } - /** Represents a ListDataLabelingJobsResponse. */ - class ListDataLabelingJobsResponse implements IListDataLabelingJobsResponse { + /** Represents a CreateCustomJobRequest. */ + class CreateCustomJobRequest implements ICreateCustomJobRequest { /** - * Constructs a new ListDataLabelingJobsResponse. + * Constructs a new CreateCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest); - /** ListDataLabelingJobsResponse dataLabelingJobs. */ - public dataLabelingJobs: google.cloud.aiplatform.v1beta1.IDataLabelingJob[]; + /** CreateCustomJobRequest parent. */ + public parent: string; - /** ListDataLabelingJobsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateCustomJobRequest customJob. */ + public customJob?: (google.cloud.aiplatform.v1beta1.ICustomJob|null); /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. + * Creates a new CreateCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListDataLabelingJobsResponse instance + * @returns CreateCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. - * @param message ListDataLabelingJobsResponse message or plain object to encode + * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * @param message CreateCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. - * @param message ListDataLabelingJobsResponse message or plain object to encode + * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * @param message CreateCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListDataLabelingJobsResponse + * @returns CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListDataLabelingJobsResponse + * @returns CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Verifies a ListDataLabelingJobsResponse message. + * Verifies a CreateCustomJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListDataLabelingJobsResponse + * @returns CreateCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateCustomJobRequest; /** - * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. - * @param message ListDataLabelingJobsResponse + * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. + * @param message CreateCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListDataLabelingJobsResponse to JSON. + * Converts this CreateCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteDataLabelingJobRequest. */ - interface IDeleteDataLabelingJobRequest { + /** Properties of a GetCustomJobRequest. */ + interface IGetCustomJobRequest { - /** DeleteDataLabelingJobRequest name */ + /** GetCustomJobRequest name */ name?: (string|null); } - /** Represents a DeleteDataLabelingJobRequest. */ - class DeleteDataLabelingJobRequest implements IDeleteDataLabelingJobRequest { + /** Represents a GetCustomJobRequest. */ + class GetCustomJobRequest implements IGetCustomJobRequest { /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new GetCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest); - /** DeleteDataLabelingJobRequest name. */ + /** GetCustomJobRequest name. */ public name: string; /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteDataLabelingJobRequest instance + * @returns GetCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. - * @param message DeleteDataLabelingJobRequest message or plain object to encode + * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * @param message GetCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. - * @param message DeleteDataLabelingJobRequest message or plain object to encode + * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * @param message GetCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a GetCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteDataLabelingJobRequest + * @returns GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteDataLabelingJobRequest + * @returns GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Verifies a DeleteDataLabelingJobRequest message. + * Verifies a GetCustomJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteDataLabelingJobRequest + * @returns GetCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetCustomJobRequest; /** - * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message DeleteDataLabelingJobRequest + * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. + * @param message GetCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this GetCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelDataLabelingJobRequest. */ - interface ICancelDataLabelingJobRequest { + /** Properties of a ListCustomJobsRequest. */ + interface IListCustomJobsRequest { - /** CancelDataLabelingJobRequest name */ - name?: (string|null); + /** ListCustomJobsRequest parent */ + parent?: (string|null); + + /** ListCustomJobsRequest filter */ + filter?: (string|null); + + /** ListCustomJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListCustomJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListCustomJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CancelDataLabelingJobRequest. */ - class CancelDataLabelingJobRequest implements ICancelDataLabelingJobRequest { + /** Represents a ListCustomJobsRequest. */ + class ListCustomJobsRequest implements IListCustomJobsRequest { /** - * Constructs a new CancelDataLabelingJobRequest. + * Constructs a new ListCustomJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest); - /** CancelDataLabelingJobRequest name. */ - public name: string; + /** ListCustomJobsRequest parent. */ + public parent: string; + + /** ListCustomJobsRequest filter. */ + public filter: string; + + /** ListCustomJobsRequest pageSize. */ + public pageSize: number; + + /** ListCustomJobsRequest pageToken. */ + public pageToken: string; + + /** ListCustomJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * Creates a new ListCustomJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelDataLabelingJobRequest instance + * @returns ListCustomJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. - * @param message CancelDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * @param message ListCustomJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. - * @param message CancelDataLabelingJobRequest message or plain object to encode + * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * @param message ListCustomJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelDataLabelingJobRequest + * @returns ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelDataLabelingJobRequest + * @returns ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Verifies a CancelDataLabelingJobRequest message. + * Verifies a ListCustomJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelDataLabelingJobRequest + * @returns ListCustomJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsRequest; /** - * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. - * @param message CancelDataLabelingJobRequest + * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. + * @param message ListCustomJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelDataLabelingJobRequest to JSON. + * Converts this ListCustomJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateHyperparameterTuningJobRequest. */ - interface ICreateHyperparameterTuningJobRequest { + /** Properties of a ListCustomJobsResponse. */ + interface IListCustomJobsResponse { - /** CreateHyperparameterTuningJobRequest parent */ - parent?: (string|null); + /** ListCustomJobsResponse customJobs */ + customJobs?: (google.cloud.aiplatform.v1beta1.ICustomJob[]|null); - /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ - hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + /** ListCustomJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateHyperparameterTuningJobRequest. */ - class CreateHyperparameterTuningJobRequest implements ICreateHyperparameterTuningJobRequest { + /** Represents a ListCustomJobsResponse. */ + class ListCustomJobsResponse implements IListCustomJobsResponse { /** - * Constructs a new CreateHyperparameterTuningJobRequest. + * Constructs a new ListCustomJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse); - /** CreateHyperparameterTuningJobRequest parent. */ - public parent: string; + /** ListCustomJobsResponse customJobs. */ + public customJobs: google.cloud.aiplatform.v1beta1.ICustomJob[]; - /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob. */ - public hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); + /** ListCustomJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new ListCustomJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateHyperparameterTuningJobRequest instance + * @returns ListCustomJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * @param message ListCustomJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CreateHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * @param message ListCustomJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListCustomJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateHyperparameterTuningJobRequest + * @returns ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateHyperparameterTuningJobRequest + * @returns ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Verifies a CreateHyperparameterTuningJobRequest message. + * Verifies a ListCustomJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateHyperparameterTuningJobRequest + * @returns ListCustomJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListCustomJobsResponse; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message CreateHyperparameterTuningJobRequest + * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. + * @param message ListCustomJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateHyperparameterTuningJobRequest to JSON. + * Converts this ListCustomJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetHyperparameterTuningJobRequest. */ - interface IGetHyperparameterTuningJobRequest { + /** Properties of a DeleteCustomJobRequest. */ + interface IDeleteCustomJobRequest { - /** GetHyperparameterTuningJobRequest name */ + /** DeleteCustomJobRequest name */ name?: (string|null); } - /** Represents a GetHyperparameterTuningJobRequest. */ - class GetHyperparameterTuningJobRequest implements IGetHyperparameterTuningJobRequest { + /** Represents a DeleteCustomJobRequest. */ + class DeleteCustomJobRequest implements IDeleteCustomJobRequest { /** - * Constructs a new GetHyperparameterTuningJobRequest. + * Constructs a new DeleteCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest); - /** GetHyperparameterTuningJobRequest name. */ + /** DeleteCustomJobRequest name. */ public name: string; /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetHyperparameterTuningJobRequest instance + * @returns DeleteCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. - * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * @param message DeleteCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. - * @param message GetHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. + * @param message DeleteCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetHyperparameterTuningJobRequest + * @returns DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetHyperparameterTuningJobRequest + * @returns DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Verifies a GetHyperparameterTuningJobRequest message. + * Verifies a DeleteCustomJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetHyperparameterTuningJobRequest + * @returns DeleteCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest; /** - * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message GetHyperparameterTuningJobRequest + * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. + * @param message DeleteCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetHyperparameterTuningJobRequest to JSON. + * Converts this DeleteCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListHyperparameterTuningJobsRequest. */ - interface IListHyperparameterTuningJobsRequest { - - /** ListHyperparameterTuningJobsRequest parent */ - parent?: (string|null); - - /** ListHyperparameterTuningJobsRequest filter */ - filter?: (string|null); - - /** ListHyperparameterTuningJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListHyperparameterTuningJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a CancelCustomJobRequest. */ + interface ICancelCustomJobRequest { - /** ListHyperparameterTuningJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** CancelCustomJobRequest name */ + name?: (string|null); } - /** Represents a ListHyperparameterTuningJobsRequest. */ - class ListHyperparameterTuningJobsRequest implements IListHyperparameterTuningJobsRequest { + /** Represents a CancelCustomJobRequest. */ + class CancelCustomJobRequest implements ICancelCustomJobRequest { /** - * Constructs a new ListHyperparameterTuningJobsRequest. + * Constructs a new CancelCustomJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest); - - /** ListHyperparameterTuningJobsRequest parent. */ - public parent: string; - - /** ListHyperparameterTuningJobsRequest filter. */ - public filter: string; - - /** ListHyperparameterTuningJobsRequest pageSize. */ - public pageSize: number; - - /** ListHyperparameterTuningJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest); - /** ListHyperparameterTuningJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** CancelCustomJobRequest name. */ + public name: string; /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListHyperparameterTuningJobsRequest instance + * @returns CancelCustomJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; - /** - * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. - * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + /** + * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * @param message CancelCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. - * @param message ListHyperparameterTuningJobsRequest message or plain object to encode + * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. + * @param message CancelCustomJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHyperparameterTuningJobsRequest + * @returns CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHyperparameterTuningJobsRequest + * @returns CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Verifies a ListHyperparameterTuningJobsRequest message. + * Verifies a CancelCustomJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHyperparameterTuningJobsRequest + * @returns CancelCustomJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelCustomJobRequest; /** - * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. - * @param message ListHyperparameterTuningJobsRequest + * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. + * @param message CancelCustomJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. + * Converts this CancelCustomJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListHyperparameterTuningJobsResponse. */ - interface IListHyperparameterTuningJobsResponse { + /** Properties of a CreateDataLabelingJobRequest. */ + interface ICreateDataLabelingJobRequest { - /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs */ - hyperparameterTuningJobs?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]|null); + /** CreateDataLabelingJobRequest parent */ + parent?: (string|null); - /** ListHyperparameterTuningJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateDataLabelingJobRequest dataLabelingJob */ + dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); } - /** Represents a ListHyperparameterTuningJobsResponse. */ - class ListHyperparameterTuningJobsResponse implements IListHyperparameterTuningJobsResponse { + /** Represents a CreateDataLabelingJobRequest. */ + class CreateDataLabelingJobRequest implements ICreateDataLabelingJobRequest { /** - * Constructs a new ListHyperparameterTuningJobsResponse. + * Constructs a new CreateDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest); - /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. */ - public hyperparameterTuningJobs: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]; + /** CreateDataLabelingJobRequest parent. */ + public parent: string; - /** ListHyperparameterTuningJobsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateDataLabelingJobRequest dataLabelingJob. */ + public dataLabelingJob?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob|null); /** - * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * Creates a new CreateDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListHyperparameterTuningJobsResponse instance + * @returns CreateDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. - * @param message ListHyperparameterTuningJobsResponse message or plain object to encode + * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. + * @param message CreateDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. - * @param message ListHyperparameterTuningJobsResponse message or plain object to encode + * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. + * @param message CreateDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListHyperparameterTuningJobsResponse + * @returns CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListHyperparameterTuningJobsResponse + * @returns CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Verifies a ListHyperparameterTuningJobsResponse message. + * Verifies a CreateDataLabelingJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListHyperparameterTuningJobsResponse + * @returns CreateDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest; /** - * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. - * @param message ListHyperparameterTuningJobsResponse + * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message CreateDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListHyperparameterTuningJobsResponse to JSON. + * Converts this CreateDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteHyperparameterTuningJobRequest. */ - interface IDeleteHyperparameterTuningJobRequest { + /** Properties of a GetDataLabelingJobRequest. */ + interface IGetDataLabelingJobRequest { - /** DeleteHyperparameterTuningJobRequest name */ + /** GetDataLabelingJobRequest name */ name?: (string|null); } - /** Represents a DeleteHyperparameterTuningJobRequest. */ - class DeleteHyperparameterTuningJobRequest implements IDeleteHyperparameterTuningJobRequest { + /** Represents a GetDataLabelingJobRequest. */ + class GetDataLabelingJobRequest implements IGetDataLabelingJobRequest { /** - * Constructs a new DeleteHyperparameterTuningJobRequest. + * Constructs a new GetDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest); - /** DeleteHyperparameterTuningJobRequest name. */ + /** GetDataLabelingJobRequest name. */ public name: string; /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new GetDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteHyperparameterTuningJobRequest instance + * @returns GetDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * @param message GetDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. - * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. + * @param message GetDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteHyperparameterTuningJobRequest + * @returns GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteHyperparameterTuningJobRequest + * @returns GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Verifies a DeleteHyperparameterTuningJobRequest message. + * Verifies a GetDataLabelingJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteHyperparameterTuningJobRequest + * @returns GetDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest; /** - * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message DeleteHyperparameterTuningJobRequest + * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message GetDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * Converts this GetDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelHyperparameterTuningJobRequest. */ - interface ICancelHyperparameterTuningJobRequest { + /** Properties of a ListDataLabelingJobsRequest. */ + interface IListDataLabelingJobsRequest { - /** CancelHyperparameterTuningJobRequest name */ - name?: (string|null); + /** ListDataLabelingJobsRequest parent */ + parent?: (string|null); + + /** ListDataLabelingJobsRequest filter */ + filter?: (string|null); + + /** ListDataLabelingJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListDataLabelingJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListDataLabelingJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + + /** ListDataLabelingJobsRequest orderBy */ + orderBy?: (string|null); } - /** Represents a CancelHyperparameterTuningJobRequest. */ - class CancelHyperparameterTuningJobRequest implements ICancelHyperparameterTuningJobRequest { + /** Represents a ListDataLabelingJobsRequest. */ + class ListDataLabelingJobsRequest implements IListDataLabelingJobsRequest { /** - * Constructs a new CancelHyperparameterTuningJobRequest. + * Constructs a new ListDataLabelingJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest); - /** CancelHyperparameterTuningJobRequest name. */ - public name: string; + /** ListDataLabelingJobsRequest parent. */ + public parent: string; + + /** ListDataLabelingJobsRequest filter. */ + public filter: string; + + /** ListDataLabelingJobsRequest pageSize. */ + public pageSize: number; + + /** ListDataLabelingJobsRequest pageToken. */ + public pageToken: string; + + /** ListDataLabelingJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); + + /** ListDataLabelingJobsRequest orderBy. */ + public orderBy: string; /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new ListDataLabelingJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelHyperparameterTuningJobRequest instance + * @returns ListDataLabelingJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CancelHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * @param message ListDataLabelingJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. - * @param message CancelHyperparameterTuningJobRequest message or plain object to encode + * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. + * @param message ListDataLabelingJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelHyperparameterTuningJobRequest + * @returns ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelHyperparameterTuningJobRequest + * @returns ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Verifies a CancelHyperparameterTuningJobRequest message. + * Verifies a ListDataLabelingJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelHyperparameterTuningJobRequest + * @returns ListDataLabelingJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest; /** - * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. - * @param message CancelHyperparameterTuningJobRequest + * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. + * @param message ListDataLabelingJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. + * Converts this ListDataLabelingJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateBatchPredictionJobRequest. */ - interface ICreateBatchPredictionJobRequest { + /** Properties of a ListDataLabelingJobsResponse. */ + interface IListDataLabelingJobsResponse { - /** CreateBatchPredictionJobRequest parent */ - parent?: (string|null); + /** ListDataLabelingJobsResponse dataLabelingJobs */ + dataLabelingJobs?: (google.cloud.aiplatform.v1beta1.IDataLabelingJob[]|null); - /** CreateBatchPredictionJobRequest batchPredictionJob */ - batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); + /** ListDataLabelingJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateBatchPredictionJobRequest. */ - class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { + /** Represents a ListDataLabelingJobsResponse. */ + class ListDataLabelingJobsResponse implements IListDataLabelingJobsResponse { /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new ListDataLabelingJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse); - /** CreateBatchPredictionJobRequest parent. */ - public parent: string; + /** ListDataLabelingJobsResponse dataLabelingJobs. */ + public dataLabelingJobs: google.cloud.aiplatform.v1beta1.IDataLabelingJob[]; - /** CreateBatchPredictionJobRequest batchPredictionJob. */ - public batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); + /** ListDataLabelingJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * Creates a new ListDataLabelingJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateBatchPredictionJobRequest instance + * @returns ListDataLabelingJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * @param message ListDataLabelingJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. - * @param message CreateBatchPredictionJobRequest message or plain object to encode + * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. + * @param message ListDataLabelingJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateBatchPredictionJobRequest + * @returns ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateBatchPredictionJobRequest + * @returns ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a ListDataLabelingJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateBatchPredictionJobRequest + * @returns ListDataLabelingJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CreateBatchPredictionJobRequest + * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. + * @param message ListDataLabelingJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this ListDataLabelingJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetBatchPredictionJobRequest. */ - interface IGetBatchPredictionJobRequest { + /** Properties of a DeleteDataLabelingJobRequest. */ + interface IDeleteDataLabelingJobRequest { - /** GetBatchPredictionJobRequest name */ + /** DeleteDataLabelingJobRequest name */ name?: (string|null); } - /** Represents a GetBatchPredictionJobRequest. */ - class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { + /** Represents a DeleteDataLabelingJobRequest. */ + class DeleteDataLabelingJobRequest implements IDeleteDataLabelingJobRequest { /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new DeleteDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest); - /** GetBatchPredictionJobRequest name. */ + /** DeleteDataLabelingJobRequest name. */ public name: string; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetBatchPredictionJobRequest instance + * @returns DeleteDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @param message DeleteDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. - * @param message GetBatchPredictionJobRequest message or plain object to encode + * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * @param message DeleteDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetBatchPredictionJobRequest + * @returns DeleteDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetBatchPredictionJobRequest + * @returns DeleteDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a DeleteDataLabelingJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetBatchPredictionJobRequest + * @returns DeleteDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message GetBatchPredictionJobRequest + * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message DeleteDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this DeleteDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListBatchPredictionJobsRequest. */ - interface IListBatchPredictionJobsRequest { - - /** ListBatchPredictionJobsRequest parent */ - parent?: (string|null); - - /** ListBatchPredictionJobsRequest filter */ - filter?: (string|null); - - /** ListBatchPredictionJobsRequest pageSize */ - pageSize?: (number|null); - - /** ListBatchPredictionJobsRequest pageToken */ - pageToken?: (string|null); + /** Properties of a CancelDataLabelingJobRequest. */ + interface ICancelDataLabelingJobRequest { - /** ListBatchPredictionJobsRequest readMask */ - readMask?: (google.protobuf.IFieldMask|null); + /** CancelDataLabelingJobRequest name */ + name?: (string|null); } - /** Represents a ListBatchPredictionJobsRequest. */ - class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { + /** Represents a CancelDataLabelingJobRequest. */ + class CancelDataLabelingJobRequest implements ICancelDataLabelingJobRequest { /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new CancelDataLabelingJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest); - - /** ListBatchPredictionJobsRequest parent. */ - public parent: string; - - /** ListBatchPredictionJobsRequest filter. */ - public filter: string; - - /** ListBatchPredictionJobsRequest pageSize. */ - public pageSize: number; - - /** ListBatchPredictionJobsRequest pageToken. */ - public pageToken: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest); - /** ListBatchPredictionJobsRequest readMask. */ - public readMask?: (google.protobuf.IFieldMask|null); + /** CancelDataLabelingJobRequest name. */ + public name: string; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsRequest instance + * @returns CancelDataLabelingJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @param message CancelDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. - * @param message ListBatchPredictionJobsRequest message or plain object to encode + * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * @param message CancelDataLabelingJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsRequest + * @returns CancelDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsRequest + * @returns CancelDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a CancelDataLabelingJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsRequest + * @returns CancelDataLabelingJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsRequest + * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * @param message CancelDataLabelingJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this CancelDataLabelingJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListBatchPredictionJobsResponse. */ - interface IListBatchPredictionJobsResponse { + /** Properties of a CreateHyperparameterTuningJobRequest. */ + interface ICreateHyperparameterTuningJobRequest { - /** ListBatchPredictionJobsResponse batchPredictionJobs */ - batchPredictionJobs?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]|null); + /** CreateHyperparameterTuningJobRequest parent */ + parent?: (string|null); - /** ListBatchPredictionJobsResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ + hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); } - /** Represents a ListBatchPredictionJobsResponse. */ - class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { - + /** Represents a CreateHyperparameterTuningJobRequest. */ + class CreateHyperparameterTuningJobRequest implements ICreateHyperparameterTuningJobRequest { + /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new CreateHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest); - /** ListBatchPredictionJobsResponse batchPredictionJobs. */ - public batchPredictionJobs: google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]; + /** CreateHyperparameterTuningJobRequest parent. */ + public parent: string; - /** ListBatchPredictionJobsResponse nextPageToken. */ - public nextPageToken: string; + /** CreateHyperparameterTuningJobRequest hyperparameterTuningJob. */ + public hyperparameterTuningJob?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null); /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListBatchPredictionJobsResponse instance + * @returns CreateHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CreateHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. - * @param message ListBatchPredictionJobsResponse message or plain object to encode + * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CreateHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListBatchPredictionJobsResponse + * @returns CreateHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListBatchPredictionJobsResponse + * @returns CreateHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a CreateHyperparameterTuningJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListBatchPredictionJobsResponse + * @returns CreateHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. - * @param message ListBatchPredictionJobsResponse + * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message CreateHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this CreateHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteBatchPredictionJobRequest. */ - interface IDeleteBatchPredictionJobRequest { + /** Properties of a GetHyperparameterTuningJobRequest. */ + interface IGetHyperparameterTuningJobRequest { - /** DeleteBatchPredictionJobRequest name */ + /** GetHyperparameterTuningJobRequest name */ name?: (string|null); } - /** Represents a DeleteBatchPredictionJobRequest. */ - class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { + /** Represents a GetHyperparameterTuningJobRequest. */ + class GetHyperparameterTuningJobRequest implements IGetHyperparameterTuningJobRequest { /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new GetHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest); - /** DeleteBatchPredictionJobRequest name. */ + /** GetHyperparameterTuningJobRequest name. */ public name: string; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteBatchPredictionJobRequest instance + * @returns GetHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @param message GetHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. - * @param message DeleteBatchPredictionJobRequest message or plain object to encode + * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * @param message GetHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteBatchPredictionJobRequest + * @returns GetHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteBatchPredictionJobRequest + * @returns GetHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a GetHyperparameterTuningJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteBatchPredictionJobRequest + * @returns GetHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message DeleteBatchPredictionJobRequest + * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message GetHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this GetHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CancelBatchPredictionJobRequest. */ - interface ICancelBatchPredictionJobRequest { + /** Properties of a ListHyperparameterTuningJobsRequest. */ + interface IListHyperparameterTuningJobsRequest { - /** CancelBatchPredictionJobRequest name */ - name?: (string|null); + /** ListHyperparameterTuningJobsRequest parent */ + parent?: (string|null); + + /** ListHyperparameterTuningJobsRequest filter */ + filter?: (string|null); + + /** ListHyperparameterTuningJobsRequest pageSize */ + pageSize?: (number|null); + + /** ListHyperparameterTuningJobsRequest pageToken */ + pageToken?: (string|null); + + /** ListHyperparameterTuningJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a CancelBatchPredictionJobRequest. */ - class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { + /** Represents a ListHyperparameterTuningJobsRequest. */ + class ListHyperparameterTuningJobsRequest implements IListHyperparameterTuningJobsRequest { /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new ListHyperparameterTuningJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest); - /** CancelBatchPredictionJobRequest name. */ - public name: string; + /** ListHyperparameterTuningJobsRequest parent. */ + public parent: string; + + /** ListHyperparameterTuningJobsRequest filter. */ + public filter: string; + + /** ListHyperparameterTuningJobsRequest pageSize. */ + public pageSize: number; + + /** ListHyperparameterTuningJobsRequest pageToken. */ + public pageToken: string; + + /** ListHyperparameterTuningJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns CancelBatchPredictionJobRequest instance + * @returns ListHyperparameterTuningJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @param message ListHyperparameterTuningJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. - * @param message CancelBatchPredictionJobRequest message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * @param message ListHyperparameterTuningJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CancelBatchPredictionJobRequest + * @returns ListHyperparameterTuningJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CancelBatchPredictionJobRequest + * @returns ListHyperparameterTuningJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies a ListHyperparameterTuningJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CancelBatchPredictionJobRequest + * @returns ListHyperparameterTuningJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. - * @param message CancelBatchPredictionJobRequest + * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * @param message ListHyperparameterTuningJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this ListHyperparameterTuningJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ - interface ICreateModelDeploymentMonitoringJobRequest { + /** Properties of a ListHyperparameterTuningJobsResponse. */ + interface IListHyperparameterTuningJobsResponse { - /** CreateModelDeploymentMonitoringJobRequest parent */ - parent?: (string|null); + /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs */ + hyperparameterTuningJobs?: (google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]|null); - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** ListHyperparameterTuningJobsResponse nextPageToken */ + nextPageToken?: (string|null); } - /** Represents a CreateModelDeploymentMonitoringJobRequest. */ - class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { + /** Represents a ListHyperparameterTuningJobsResponse. */ + class ListHyperparameterTuningJobsResponse implements IListHyperparameterTuningJobsResponse { /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new ListHyperparameterTuningJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse); - /** CreateModelDeploymentMonitoringJobRequest parent. */ - public parent: string; + /** ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. */ + public hyperparameterTuningJobs: google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob[]; - /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** ListHyperparameterTuningJobsResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns CreateModelDeploymentMonitoringJobRequest instance + * @returns ListHyperparameterTuningJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @param message ListHyperparameterTuningJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * @param message ListHyperparameterTuningJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns ListHyperparameterTuningJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns ListHyperparameterTuningJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a ListHyperparameterTuningJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns CreateModelDeploymentMonitoringJobRequest + * @returns ListHyperparameterTuningJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message CreateModelDeploymentMonitoringJobRequest + * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * @param message ListHyperparameterTuningJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this ListHyperparameterTuningJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ - deployedModelId?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ - featureDisplayName?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ - objectives?: (google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ - pageSize?: (number|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ - pageToken?: (string|null); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ - startTime?: (google.protobuf.ITimestamp|null); + /** Properties of a DeleteHyperparameterTuningJobRequest. */ + interface IDeleteHyperparameterTuningJobRequest { - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ - endTime?: (google.protobuf.ITimestamp|null); + /** DeleteHyperparameterTuningJobRequest name */ + name?: (string|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ - class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { + /** Represents a DeleteHyperparameterTuningJobRequest. */ + class DeleteHyperparameterTuningJobRequest implements IDeleteHyperparameterTuningJobRequest { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Constructs a new DeleteHyperparameterTuningJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ - public deployedModelId: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ - public featureDisplayName: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ - public objectives: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ - public pageSize: number; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ - public pageToken: string; - - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ - public startTime?: (google.protobuf.ITimestamp|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest); - /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ - public endTime?: (google.protobuf.ITimestamp|null); + /** DeleteHyperparameterTuningJobRequest name. */ + public name: string; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @returns DeleteHyperparameterTuningJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * @param message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns DeleteHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns DeleteHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a DeleteHyperparameterTuningJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns DeleteHyperparameterTuningJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message DeleteHyperparameterTuningJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this DeleteHyperparameterTuningJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - - /** Properties of a StatsAnomaliesObjective. */ - interface IStatsAnomaliesObjective { - - /** StatsAnomaliesObjective type */ - type?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); - - /** StatsAnomaliesObjective topFeatureCount */ - topFeatureCount?: (number|null); - } + /** Properties of a CancelHyperparameterTuningJobRequest. */ + interface ICancelHyperparameterTuningJobRequest { - /** Represents a StatsAnomaliesObjective. */ - class StatsAnomaliesObjective implements IStatsAnomaliesObjective { + /** CancelHyperparameterTuningJobRequest name */ + name?: (string|null); + } - /** - * Constructs a new StatsAnomaliesObjective. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); + /** Represents a CancelHyperparameterTuningJobRequest. */ + class CancelHyperparameterTuningJobRequest implements ICancelHyperparameterTuningJobRequest { - /** StatsAnomaliesObjective type. */ - public type: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + /** + * Constructs a new CancelHyperparameterTuningJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest); - /** StatsAnomaliesObjective topFeatureCount. */ - public topFeatureCount: number; + /** CancelHyperparameterTuningJobRequest name. */ + public name: string; - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @param [properties] Properties to set - * @returns StatsAnomaliesObjective instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + /** + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelHyperparameterTuningJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @param message StatsAnomaliesObjective message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * @param message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + /** + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + /** + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelHyperparameterTuningJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; - /** - * Verifies a StatsAnomaliesObjective message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Verifies a CancelHyperparameterTuningJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns StatsAnomaliesObjective - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + /** + * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelHyperparameterTuningJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest; - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @param message StatsAnomaliesObjective - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * @param message CancelHyperparameterTuningJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Converts this StatsAnomaliesObjective to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Converts this CancelHyperparameterTuningJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** Properties of a CreateBatchPredictionJobRequest. */ + interface ICreateBatchPredictionJobRequest { - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ - monitoringStats?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + /** CreateBatchPredictionJobRequest parent */ + parent?: (string|null); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ - nextPageToken?: (string|null); + /** CreateBatchPredictionJobRequest batchPredictionJob */ + batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); } - /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ - class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + /** Represents a CreateBatchPredictionJobRequest. */ + class CreateBatchPredictionJobRequest implements ICreateBatchPredictionJobRequest { /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new CreateBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest); - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ - public monitoringStats: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + /** CreateBatchPredictionJobRequest parent. */ + public parent: string; - /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ - public nextPageToken: string; + /** CreateBatchPredictionJobRequest batchPredictionJob. */ + public batchPredictionJob?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null); /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @returns CreateBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * @param message CreateBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a CreateBatchPredictionJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns CreateBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. - * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CreateBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a GetModelDeploymentMonitoringJobRequest. */ - interface IGetModelDeploymentMonitoringJobRequest { + /** Properties of a GetBatchPredictionJobRequest. */ + interface IGetBatchPredictionJobRequest { - /** GetModelDeploymentMonitoringJobRequest name */ + /** GetBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a GetModelDeploymentMonitoringJobRequest. */ - class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { + /** Represents a GetBatchPredictionJobRequest. */ + class GetBatchPredictionJobRequest implements IGetBatchPredictionJobRequest { /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new GetBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest); - /** GetModelDeploymentMonitoringJobRequest name. */ + /** GetBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns GetModelDeploymentMonitoringJobRequest instance + * @returns GetBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * @param message GetBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns GetModelDeploymentMonitoringJobRequest + * @returns GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns GetModelDeploymentMonitoringJobRequest + * @returns GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a GetBatchPredictionJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns GetModelDeploymentMonitoringJobRequest + * @returns GetBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message GetModelDeploymentMonitoringJobRequest + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message GetBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ - interface IListModelDeploymentMonitoringJobsRequest { + /** Properties of a ListBatchPredictionJobsRequest. */ + interface IListBatchPredictionJobsRequest { - /** ListModelDeploymentMonitoringJobsRequest parent */ + /** ListBatchPredictionJobsRequest parent */ parent?: (string|null); - /** ListModelDeploymentMonitoringJobsRequest filter */ + /** ListBatchPredictionJobsRequest filter */ filter?: (string|null); - /** ListModelDeploymentMonitoringJobsRequest pageSize */ + /** ListBatchPredictionJobsRequest pageSize */ pageSize?: (number|null); - /** ListModelDeploymentMonitoringJobsRequest pageToken */ + /** ListBatchPredictionJobsRequest pageToken */ pageToken?: (string|null); - /** ListModelDeploymentMonitoringJobsRequest readMask */ + /** ListBatchPredictionJobsRequest readMask */ readMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ListModelDeploymentMonitoringJobsRequest. */ - class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { + /** Represents a ListBatchPredictionJobsRequest. */ + class ListBatchPredictionJobsRequest implements IListBatchPredictionJobsRequest { /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest); - /** ListModelDeploymentMonitoringJobsRequest parent. */ + /** ListBatchPredictionJobsRequest parent. */ public parent: string; - /** ListModelDeploymentMonitoringJobsRequest filter. */ + /** ListBatchPredictionJobsRequest filter. */ public filter: string; - /** ListModelDeploymentMonitoringJobsRequest pageSize. */ + /** ListBatchPredictionJobsRequest pageSize. */ public pageSize: number; - /** ListModelDeploymentMonitoringJobsRequest pageToken. */ + /** ListBatchPredictionJobsRequest pageToken. */ public pageToken: string; - /** ListModelDeploymentMonitoringJobsRequest readMask. */ + /** ListBatchPredictionJobsRequest readMask. */ public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsRequest instance + * @returns ListBatchPredictionJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * @param message ListBatchPredictionJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a ListBatchPredictionJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsRequest + * @returns ListBatchPredictionJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsRequest + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ - interface IListModelDeploymentMonitoringJobsResponse { + /** Properties of a ListBatchPredictionJobsResponse. */ + interface IListBatchPredictionJobsResponse { - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ - modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]|null); + /** ListBatchPredictionJobsResponse batchPredictionJobs */ + batchPredictionJobs?: (google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]|null); - /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ + /** ListBatchPredictionJobsResponse nextPageToken */ nextPageToken?: (string|null); } - /** Represents a ListModelDeploymentMonitoringJobsResponse. */ - class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { + /** Represents a ListBatchPredictionJobsResponse. */ + class ListBatchPredictionJobsResponse implements IListBatchPredictionJobsResponse { /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new ListBatchPredictionJobsResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse); + constructor(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse); - /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ - public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]; + /** ListBatchPredictionJobsResponse batchPredictionJobs. */ + public batchPredictionJobs: google.cloud.aiplatform.v1beta1.IBatchPredictionJob[]; - /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ + /** ListBatchPredictionJobsResponse nextPageToken. */ public nextPageToken: string; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ListModelDeploymentMonitoringJobsResponse instance + * @returns ListBatchPredictionJobsResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. - * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * @param message ListBatchPredictionJobsResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a ListBatchPredictionJobsResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ListModelDeploymentMonitoringJobsResponse + * @returns ListBatchPredictionJobsResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. - * @param message ListModelDeploymentMonitoringJobsResponse + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * @param message ListBatchPredictionJobsResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ - interface IUpdateModelDeploymentMonitoringJobRequest { - - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ - modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + /** Properties of a DeleteBatchPredictionJobRequest. */ + interface IDeleteBatchPredictionJobRequest { - /** UpdateModelDeploymentMonitoringJobRequest updateMask */ - updateMask?: (google.protobuf.IFieldMask|null); + /** DeleteBatchPredictionJobRequest name */ + name?: (string|null); } - /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ - class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { + /** Represents a DeleteBatchPredictionJobRequest. */ + class DeleteBatchPredictionJobRequest implements IDeleteBatchPredictionJobRequest { /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest); - - /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ - public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest); - /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ - public updateMask?: (google.protobuf.IFieldMask|null); + /** DeleteBatchPredictionJobRequest name. */ + public name: string; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobRequest instance + * @returns DeleteBatchPredictionJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * @param message DeleteBatchPredictionJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a DeleteBatchPredictionJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobRequest + * @returns DeleteBatchPredictionJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobRequest + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message DeleteBatchPredictionJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ - interface IDeleteModelDeploymentMonitoringJobRequest { + /** Properties of a CancelBatchPredictionJobRequest. */ + interface ICancelBatchPredictionJobRequest { - /** DeleteModelDeploymentMonitoringJobRequest name */ + /** CancelBatchPredictionJobRequest name */ name?: (string|null); } - /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ - class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { + /** Represents a CancelBatchPredictionJobRequest. */ + class CancelBatchPredictionJobRequest implements ICancelBatchPredictionJobRequest { /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest); - /** DeleteModelDeploymentMonitoringJobRequest name. */ + /** CancelBatchPredictionJobRequest name. */ public name: string; /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns CancelBatchPredictionJobRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + + /** + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * @param message CancelBatchPredictionJobRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns CancelBatchPredictionJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + + /** + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns CancelBatchPredictionJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + + /** + * Verifies a CancelBatchPredictionJobRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns CancelBatchPredictionJobRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest; + + /** + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * @param message CancelBatchPredictionJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this CancelBatchPredictionJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a CreateModelDeploymentMonitoringJobRequest. */ + interface ICreateModelDeploymentMonitoringJobRequest { + + /** CreateModelDeploymentMonitoringJobRequest parent */ + parent?: (string|null); + + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + } + + /** Represents a CreateModelDeploymentMonitoringJobRequest. */ + class CreateModelDeploymentMonitoringJobRequest implements ICreateModelDeploymentMonitoringJobRequest { + + /** + * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest); + + /** CreateModelDeploymentMonitoringJobRequest parent. */ + public parent: string; + + /** CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); + + /** + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns DeleteModelDeploymentMonitoringJobRequest instance + * @returns CreateModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a CreateModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns DeleteModelDeploymentMonitoringJobRequest + * @returns CreateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message DeleteModelDeploymentMonitoringJobRequest + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message CreateModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ - interface IPauseModelDeploymentMonitoringJobRequest { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** PauseModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId */ + deployedModelId?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName */ + featureDisplayName?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives */ + objectives?: (google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize */ + pageSize?: (number|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken */ + pageToken?: (string|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime */ + startTime?: (google.protobuf.ITimestamp|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ + endTime?: (google.protobuf.ITimestamp|null); } - /** Represents a PauseModelDeploymentMonitoringJobRequest. */ - class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. */ + class SearchModelDeploymentMonitoringStatsAnomaliesRequest implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest { /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest); - /** PauseModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. */ + public deployedModelId: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. */ + public featureDisplayName: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. */ + public objectives: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective[]; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. */ + public pageSize: number; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. */ + public pageToken: string; + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. */ + public startTime?: (google.protobuf.ITimestamp|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. */ + public endTime?: (google.protobuf.ITimestamp|null); /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @param [properties] Properties to set - * @returns PauseModelDeploymentMonitoringJobRequest instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns PauseModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message PauseModelDeploymentMonitoringJobRequest + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ - interface IResumeModelDeploymentMonitoringJobRequest { + namespace SearchModelDeploymentMonitoringStatsAnomaliesRequest { - /** ResumeModelDeploymentMonitoringJobRequest name */ - name?: (string|null); + /** Properties of a StatsAnomaliesObjective. */ + interface IStatsAnomaliesObjective { + + /** StatsAnomaliesObjective type */ + type?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); + + /** StatsAnomaliesObjective topFeatureCount */ + topFeatureCount?: (number|null); + } + + /** Represents a StatsAnomaliesObjective. */ + class StatsAnomaliesObjective implements IStatsAnomaliesObjective { + + /** + * Constructs a new StatsAnomaliesObjective. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective); + + /** StatsAnomaliesObjective type. */ + public type: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + + /** StatsAnomaliesObjective topFeatureCount. */ + public topFeatureCount: number; + + /** + * Creates a new StatsAnomaliesObjective instance using the specified properties. + * @param [properties] Properties to set + * @returns StatsAnomaliesObjective instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. + * @param message StatsAnomaliesObjective message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns StatsAnomaliesObjective + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Verifies a StatsAnomaliesObjective message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns StatsAnomaliesObjective + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective; + + /** + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. + * @param message StatsAnomaliesObjective + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this StatsAnomaliesObjective to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } } - /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ - class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { + /** Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse { + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats */ + monitoringStats?: (google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]|null); + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken */ + nextPageToken?: (string|null); + } + + /** Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. */ + class SearchModelDeploymentMonitoringStatsAnomaliesResponse implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse { /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest); + constructor(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse); - /** ResumeModelDeploymentMonitoringJobRequest name. */ - public name: string; + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. */ + public monitoringStats: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies[]; + + /** SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. */ + public nextPageToken: string; /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. * @param [properties] Properties to set - * @returns ResumeModelDeploymentMonitoringJobRequest instance + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public static create(properties?: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. - * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ResumeModelDeploymentMonitoringJobRequest + * @returns SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse; /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. - * @param message ResumeModelDeploymentMonitoringJobRequest + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * @param message SearchModelDeploymentMonitoringStatsAnomaliesResponse * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - interface IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Properties of a GetModelDeploymentMonitoringJobRequest. */ + interface IGetModelDeploymentMonitoringJobRequest { - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ - genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ - class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { + /** Represents a GetModelDeploymentMonitoringJobRequest. */ + class GetModelDeploymentMonitoringJobRequest implements IGetModelDeploymentMonitoringJobRequest { /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * Constructs a new GetModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata); + constructor(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest); - /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ - public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); + /** GetModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @returns GetModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static create(properties?: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message GetModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns GetModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a GetModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns UpdateModelDeploymentMonitoringJobOperationMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; - - /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. - * @param message UpdateModelDeploymentMonitoringJobOperationMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. - * @returns JSON object + * @returns GetModelDeploymentMonitoringJobRequest */ - public toJSON(): { [k: string]: any }; - } - - /** ModelDeploymentMonitoringObjectiveType enum. */ - enum ModelDeploymentMonitoringObjectiveType { - MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, - RAW_FEATURE_SKEW = 1, - RAW_FEATURE_DRIFT = 2, - FEATURE_ATTRIBUTION_SKEW = 3, - FEATURE_ATTRIBUTION_DRIFT = 4 - } - - /** Properties of a ModelDeploymentMonitoringJob. */ - interface IModelDeploymentMonitoringJob { - - /** ModelDeploymentMonitoringJob name */ - name?: (string|null); - - /** ModelDeploymentMonitoringJob displayName */ - displayName?: (string|null); - - /** ModelDeploymentMonitoringJob endpoint */ - endpoint?: (string|null); - - /** ModelDeploymentMonitoringJob state */ - state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - - /** ModelDeploymentMonitoringJob scheduleState */ - scheduleState?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ - latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ - modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ - modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ - modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ - predictInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob samplePredictInstance */ - samplePredictInstance?: (google.protobuf.IValue|null); - - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ - analysisInstanceSchemaUri?: (string|null); - - /** ModelDeploymentMonitoringJob bigqueryTables */ - bigqueryTables?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]|null); - - /** ModelDeploymentMonitoringJob logTtl */ - logTtl?: (google.protobuf.IDuration|null); - - /** ModelDeploymentMonitoringJob labels */ - labels?: ({ [k: string]: string }|null); - - /** ModelDeploymentMonitoringJob createTime */ - createTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob updateTime */ - updateTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob nextScheduleTime */ - nextScheduleTime?: (google.protobuf.ITimestamp|null); - - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ - statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - - /** ModelDeploymentMonitoringJob encryptionSpec */ - encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ - enableMonitoringPipelineLogs?: (boolean|null); - - /** ModelDeploymentMonitoringJob error */ - error?: (google.rpc.IStatus|null); - } - - /** Represents a ModelDeploymentMonitoringJob. */ - class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest; /** - * Constructs a new ModelDeploymentMonitoringJob. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob); - - /** ModelDeploymentMonitoringJob name. */ - public name: string; - - /** ModelDeploymentMonitoringJob displayName. */ - public displayName: string; - - /** ModelDeploymentMonitoringJob endpoint. */ - public endpoint: string; - - /** ModelDeploymentMonitoringJob state. */ - public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - - /** ModelDeploymentMonitoringJob scheduleState. */ - public scheduleState: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState); - - /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ - public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ - public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]; - - /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ - public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - - /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message GetModelDeploymentMonitoringJobRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ - public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + /** + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ - public predictInstanceSchemaUri: string; + /** Properties of a ListModelDeploymentMonitoringJobsRequest. */ + interface IListModelDeploymentMonitoringJobsRequest { - /** ModelDeploymentMonitoringJob samplePredictInstance. */ - public samplePredictInstance?: (google.protobuf.IValue|null); + /** ListModelDeploymentMonitoringJobsRequest parent */ + parent?: (string|null); - /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ - public analysisInstanceSchemaUri: string; + /** ListModelDeploymentMonitoringJobsRequest filter */ + filter?: (string|null); - /** ModelDeploymentMonitoringJob bigqueryTables. */ - public bigqueryTables: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]; + /** ListModelDeploymentMonitoringJobsRequest pageSize */ + pageSize?: (number|null); - /** ModelDeploymentMonitoringJob logTtl. */ - public logTtl?: (google.protobuf.IDuration|null); + /** ListModelDeploymentMonitoringJobsRequest pageToken */ + pageToken?: (string|null); - /** ModelDeploymentMonitoringJob labels. */ - public labels: { [k: string]: string }; + /** ListModelDeploymentMonitoringJobsRequest readMask */ + readMask?: (google.protobuf.IFieldMask|null); + } - /** ModelDeploymentMonitoringJob createTime. */ - public createTime?: (google.protobuf.ITimestamp|null); + /** Represents a ListModelDeploymentMonitoringJobsRequest. */ + class ListModelDeploymentMonitoringJobsRequest implements IListModelDeploymentMonitoringJobsRequest { - /** ModelDeploymentMonitoringJob updateTime. */ - public updateTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest); - /** ModelDeploymentMonitoringJob nextScheduleTime. */ - public nextScheduleTime?: (google.protobuf.ITimestamp|null); + /** ListModelDeploymentMonitoringJobsRequest parent. */ + public parent: string; - /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ - public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** ListModelDeploymentMonitoringJobsRequest filter. */ + public filter: string; - /** ModelDeploymentMonitoringJob encryptionSpec. */ - public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); + /** ListModelDeploymentMonitoringJobsRequest pageSize. */ + public pageSize: number; - /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ - public enableMonitoringPipelineLogs: boolean; + /** ListModelDeploymentMonitoringJobsRequest pageToken. */ + public pageToken: string; - /** ModelDeploymentMonitoringJob error. */ - public error?: (google.rpc.IStatus|null); + /** ListModelDeploymentMonitoringJobsRequest readMask. */ + public readMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringJob instance + * @returns ListModelDeploymentMonitoringJobsRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. - * @param message ModelDeploymentMonitoringJob message or plain object to encode + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringJob + * @returns ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringJob + * @returns ListModelDeploymentMonitoringJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a ListModelDeploymentMonitoringJobsRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringJob + * @returns ListModelDeploymentMonitoringJobsRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringJob + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelDeploymentMonitoringJob { - - /** Properties of a LatestMonitoringPipelineMetadata. */ - interface ILatestMonitoringPipelineMetadata { - - /** LatestMonitoringPipelineMetadata runTime */ - runTime?: (google.protobuf.ITimestamp|null); + /** Properties of a ListModelDeploymentMonitoringJobsResponse. */ + interface IListModelDeploymentMonitoringJobsResponse { - /** LatestMonitoringPipelineMetadata status */ - status?: (google.rpc.IStatus|null); - } + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs */ + modelDeploymentMonitoringJobs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]|null); - /** Represents a LatestMonitoringPipelineMetadata. */ - class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { + /** ListModelDeploymentMonitoringJobsResponse nextPageToken */ + nextPageToken?: (string|null); + } - /** - * Constructs a new LatestMonitoringPipelineMetadata. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); + /** Represents a ListModelDeploymentMonitoringJobsResponse. */ + class ListModelDeploymentMonitoringJobsResponse implements IListModelDeploymentMonitoringJobsResponse { - /** LatestMonitoringPipelineMetadata runTime. */ - public runTime?: (google.protobuf.ITimestamp|null); + /** + * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse); - /** LatestMonitoringPipelineMetadata status. */ - public status?: (google.rpc.IStatus|null); + /** ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. */ + public modelDeploymentMonitoringJobs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob[]; - /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. - * @param [properties] Properties to set - * @returns LatestMonitoringPipelineMetadata instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** ListModelDeploymentMonitoringJobsResponse nextPageToken. */ + public nextPageToken: string; - /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns ListModelDeploymentMonitoringJobsResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; - /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. - * @param message LatestMonitoringPipelineMetadata message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns LatestMonitoringPipelineMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * @param message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns LatestMonitoringPipelineMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ListModelDeploymentMonitoringJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; - /** - * Verifies a LatestMonitoringPipelineMetadata message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ListModelDeploymentMonitoringJobsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; - /** - * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns LatestMonitoringPipelineMetadata - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; + /** + * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. - * @param message LatestMonitoringPipelineMetadata - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ListModelDeploymentMonitoringJobsResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse; - /** - * Converts this LatestMonitoringPipelineMetadata to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * @param message ListModelDeploymentMonitoringJobsResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** MonitoringScheduleState enum. */ - enum MonitoringScheduleState { - MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, - PENDING = 1, - OFFLINE = 2, - RUNNING = 3 - } + /** + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; } - /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ - interface IModelDeploymentMonitoringBigQueryTable { - - /** ModelDeploymentMonitoringBigQueryTable logSource */ - logSource?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); + /** Properties of an UpdateModelDeploymentMonitoringJobRequest. */ + interface IUpdateModelDeploymentMonitoringJobRequest { - /** ModelDeploymentMonitoringBigQueryTable logType */ - logType?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null); + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ + modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ - bigqueryTablePath?: (string|null); + /** UpdateModelDeploymentMonitoringJobRequest updateMask */ + updateMask?: (google.protobuf.IFieldMask|null); } - /** Represents a ModelDeploymentMonitoringBigQueryTable. */ - class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { + /** Represents an UpdateModelDeploymentMonitoringJobRequest. */ + class UpdateModelDeploymentMonitoringJobRequest implements IUpdateModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable); - - /** ModelDeploymentMonitoringBigQueryTable logSource. */ - public logSource: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest); - /** ModelDeploymentMonitoringBigQueryTable logType. */ - public logType: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType); + /** UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. */ + public modelDeploymentMonitoringJob?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null); - /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ - public bigqueryTablePath: string; + /** UpdateModelDeploymentMonitoringJobRequest updateMask. */ + public updateMask?: (google.protobuf.IFieldMask|null); /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringBigQueryTable instance + * @returns UpdateModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. - * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringBigQueryTable + * @returns UpdateModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringBigQueryTable + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelDeploymentMonitoringBigQueryTable { - - /** LogSource enum. */ - enum LogSource { - LOG_SOURCE_UNSPECIFIED = 0, - TRAINING = 1, - SERVING = 2 - } - - /** LogType enum. */ - enum LogType { - LOG_TYPE_UNSPECIFIED = 0, - PREDICT = 1, - EXPLAIN = 2 - } - } - - /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ - interface IModelDeploymentMonitoringObjectiveConfig { - - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ - deployedModelId?: (string|null); + /** Properties of a DeleteModelDeploymentMonitoringJobRequest. */ + interface IDeleteModelDeploymentMonitoringJobRequest { - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ - objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + /** DeleteModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ - class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { + /** Represents a DeleteModelDeploymentMonitoringJobRequest. */ + class DeleteModelDeploymentMonitoringJobRequest implements IDeleteModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig); - - /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ - public deployedModelId: string; + constructor(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest); - /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ - public objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); + /** DeleteModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringObjectiveConfig instance + * @returns DeleteModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringObjectiveConfig + * @returns DeleteModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringObjectiveConfig + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message DeleteModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ - interface IModelDeploymentMonitoringScheduleConfig { + /** Properties of a PauseModelDeploymentMonitoringJobRequest. */ + interface IPauseModelDeploymentMonitoringJobRequest { - /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ - monitorInterval?: (google.protobuf.IDuration|null); + /** PauseModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ModelDeploymentMonitoringScheduleConfig. */ - class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { + /** Represents a PauseModelDeploymentMonitoringJobRequest. */ + class PauseModelDeploymentMonitoringJobRequest implements IPauseModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest); - /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ - public monitorInterval?: (google.protobuf.IDuration|null); + /** PauseModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelDeploymentMonitoringScheduleConfig instance + * @returns PauseModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. - * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message PauseModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns PauseModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a PauseModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelDeploymentMonitoringScheduleConfig + * @returns PauseModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. - * @param message ModelDeploymentMonitoringScheduleConfig + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message PauseModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a ModelMonitoringStatsAnomalies. */ - interface IModelMonitoringStatsAnomalies { - - /** ModelMonitoringStatsAnomalies objective */ - objective?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); - - /** ModelMonitoringStatsAnomalies deployedModelId */ - deployedModelId?: (string|null); - - /** ModelMonitoringStatsAnomalies anomalyCount */ - anomalyCount?: (number|null); + /** Properties of a ResumeModelDeploymentMonitoringJobRequest. */ + interface IResumeModelDeploymentMonitoringJobRequest { - /** ModelMonitoringStatsAnomalies featureStats */ - featureStats?: (google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); + /** ResumeModelDeploymentMonitoringJobRequest name */ + name?: (string|null); } - /** Represents a ModelMonitoringStatsAnomalies. */ - class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { + /** Represents a ResumeModelDeploymentMonitoringJobRequest. */ + class ResumeModelDeploymentMonitoringJobRequest implements IResumeModelDeploymentMonitoringJobRequest { /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies); - - /** ModelMonitoringStatsAnomalies objective. */ - public objective: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); - - /** ModelMonitoringStatsAnomalies deployedModelId. */ - public deployedModelId: string; - - /** ModelMonitoringStatsAnomalies anomalyCount. */ - public anomalyCount: number; + constructor(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest); - /** ModelMonitoringStatsAnomalies featureStats. */ - public featureStats: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; + /** ResumeModelDeploymentMonitoringJobRequest name. */ + public name: string; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringStatsAnomalies instance + * @returns ResumeModelDeploymentMonitoringJobRequest instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static create(properties?: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. - * @param message ModelMonitoringStatsAnomalies message or plain object to encode + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @param message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringStatsAnomalies + * @returns ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringStatsAnomalies + * @returns ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringStatsAnomalies + * @returns ResumeModelDeploymentMonitoringJobRequest */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. - * @param message ModelMonitoringStatsAnomalies + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @param message ResumeModelDeploymentMonitoringJobRequest * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelMonitoringStatsAnomalies { - - /** Properties of a FeatureHistoricStatsAnomalies. */ - interface IFeatureHistoricStatsAnomalies { - - /** FeatureHistoricStatsAnomalies featureDisplayName */ - featureDisplayName?: (string|null); - - /** FeatureHistoricStatsAnomalies threshold */ - threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats */ - trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats */ - predictionStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); - } - - /** Represents a FeatureHistoricStatsAnomalies. */ - class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { - - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - - /** FeatureHistoricStatsAnomalies featureDisplayName. */ - public featureDisplayName: string; - - /** FeatureHistoricStatsAnomalies threshold. */ - public threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); - - /** FeatureHistoricStatsAnomalies trainingStats. */ - public trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); - - /** FeatureHistoricStatsAnomalies predictionStats. */ - public predictionStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; - - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @param [properties] Properties to set - * @returns FeatureHistoricStatsAnomalies instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @param message FeatureHistoricStatsAnomalies message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Verifies a FeatureHistoricStatsAnomalies message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns FeatureHistoricStatsAnomalies - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; - - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @param message FeatureHistoricStatsAnomalies - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } - - /** Properties of a ModelMonitoringObjectiveConfig. */ - interface IModelMonitoringObjectiveConfig { - - /** ModelMonitoringObjectiveConfig trainingDataset */ - trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig */ - trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig */ - predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + /** Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + interface IUpdateModelDeploymentMonitoringJobOperationMetadata { - /** ModelMonitoringObjectiveConfig explanationConfig */ - explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ + genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); } - /** Represents a ModelMonitoringObjectiveConfig. */ - class ModelMonitoringObjectiveConfig implements IModelMonitoringObjectiveConfig { + /** Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. */ + class UpdateModelDeploymentMonitoringJobOperationMetadata implements IUpdateModelDeploymentMonitoringJobOperationMetadata { /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig); - - /** ModelMonitoringObjectiveConfig trainingDataset. */ - public trainingDataset?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null); - - /** ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. */ - public trainingPredictionSkewDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null); - - /** ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. */ - public predictionDriftDetectionConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null); + constructor(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata); - /** ModelMonitoringObjectiveConfig explanationConfig. */ - public explanationConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null); + /** UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. */ + public genericMetadata?: (google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null); /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringObjectiveConfig instance + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. - * @param message ModelMonitoringObjectiveConfig message or plain object to encode + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringObjectiveConfig + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringObjectiveConfig + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringObjectiveConfig + * @returns UpdateModelDeploymentMonitoringJobOperationMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringObjectiveConfig + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * @param message UpdateModelDeploymentMonitoringJobOperationMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelMonitoringObjectiveConfig { + /** ModelDeploymentMonitoringObjectiveType enum. */ + enum ModelDeploymentMonitoringObjectiveType { + MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED = 0, + RAW_FEATURE_SKEW = 1, + RAW_FEATURE_DRIFT = 2, + FEATURE_ATTRIBUTION_SKEW = 3, + FEATURE_ATTRIBUTION_DRIFT = 4 + } - /** Properties of a TrainingDataset. */ - interface ITrainingDataset { + /** Properties of a ModelDeploymentMonitoringJob. */ + interface IModelDeploymentMonitoringJob { - /** TrainingDataset dataset */ - dataset?: (string|null); + /** ModelDeploymentMonitoringJob name */ + name?: (string|null); - /** TrainingDataset gcsSource */ - gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** ModelDeploymentMonitoringJob displayName */ + displayName?: (string|null); - /** TrainingDataset bigquerySource */ - bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** ModelDeploymentMonitoringJob endpoint */ + endpoint?: (string|null); - /** TrainingDataset dataFormat */ - dataFormat?: (string|null); + /** ModelDeploymentMonitoringJob state */ + state?: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState|null); - /** TrainingDataset targetField */ - targetField?: (string|null); + /** ModelDeploymentMonitoringJob scheduleState */ + scheduleState?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null); - /** TrainingDataset loggingSamplingStrategy */ - loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - } + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata */ + latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - /** Represents a TrainingDataset. */ - class TrainingDataset implements ITrainingDataset { + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs */ + modelDeploymentMonitoringObjectiveConfigs?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]|null); - /** - * Constructs a new TrainingDataset. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset); + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig */ + modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - /** TrainingDataset dataset. */ - public dataset?: (string|null); + /** ModelDeploymentMonitoringJob loggingSamplingStrategy */ + loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); - /** TrainingDataset gcsSource. */ - public gcsSource?: (google.cloud.aiplatform.v1beta1.IGcsSource|null); + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig */ + modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); - /** TrainingDataset bigquerySource. */ - public bigquerySource?: (google.cloud.aiplatform.v1beta1.IBigQuerySource|null); + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri */ + predictInstanceSchemaUri?: (string|null); - /** TrainingDataset dataFormat. */ - public dataFormat: string; + /** ModelDeploymentMonitoringJob samplePredictInstance */ + samplePredictInstance?: (google.protobuf.IValue|null); - /** TrainingDataset targetField. */ - public targetField: string; + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri */ + analysisInstanceSchemaUri?: (string|null); - /** TrainingDataset loggingSamplingStrategy. */ - public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + /** ModelDeploymentMonitoringJob bigqueryTables */ + bigqueryTables?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]|null); - /** TrainingDataset dataSource. */ - public dataSource?: ("dataset"|"gcsSource"|"bigquerySource"); + /** ModelDeploymentMonitoringJob logTtl */ + logTtl?: (google.protobuf.IDuration|null); - /** - * Creates a new TrainingDataset instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingDataset instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + /** ModelDeploymentMonitoringJob labels */ + labels?: ({ [k: string]: string }|null); - /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob createTime */ + createTime?: (google.protobuf.ITimestamp|null); - /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @param message TrainingDataset message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob updateTime */ + updateTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a TrainingDataset message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + /** ModelDeploymentMonitoringJob nextScheduleTime */ + nextScheduleTime?: (google.protobuf.ITimestamp|null); - /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory */ + statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** - * Verifies a TrainingDataset message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ModelDeploymentMonitoringJob encryptionSpec */ + encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** - * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingDataset - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset; + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs */ + enableMonitoringPipelineLogs?: (boolean|null); - /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. - * @param message TrainingDataset - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModelDeploymentMonitoringJob error */ + error?: (google.rpc.IStatus|null); + } - /** - * Converts this TrainingDataset to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** Represents a ModelDeploymentMonitoringJob. */ + class ModelDeploymentMonitoringJob implements IModelDeploymentMonitoringJob { - /** Properties of a TrainingPredictionSkewDetectionConfig. */ - interface ITrainingPredictionSkewDetectionConfig { + /** + * Constructs a new ModelDeploymentMonitoringJob. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob); - /** TrainingPredictionSkewDetectionConfig skewThresholds */ - skewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + /** ModelDeploymentMonitoringJob name. */ + public name: string; - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds */ - attributionScoreSkewThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - } + /** ModelDeploymentMonitoringJob displayName. */ + public displayName: string; - /** Represents a TrainingPredictionSkewDetectionConfig. */ - class TrainingPredictionSkewDetectionConfig implements ITrainingPredictionSkewDetectionConfig { + /** ModelDeploymentMonitoringJob endpoint. */ + public endpoint: string; - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig); + /** ModelDeploymentMonitoringJob state. */ + public state: (google.cloud.aiplatform.v1beta1.JobState|keyof typeof google.cloud.aiplatform.v1beta1.JobState); - /** TrainingPredictionSkewDetectionConfig skewThresholds. */ - public skewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + /** ModelDeploymentMonitoringJob scheduleState. */ + public scheduleState: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState); - /** TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. */ - public attributionScoreSkewThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + /** ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. */ + public latestMonitoringPipelineMetadata?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null); - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns TrainingPredictionSkewDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. */ + public modelDeploymentMonitoringObjectiveConfigs: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig[]; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. */ + public modelDeploymentMonitoringScheduleConfig?: (google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null); - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @param message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** ModelDeploymentMonitoringJob loggingSamplingStrategy. */ + public loggingSamplingStrategy?: (google.cloud.aiplatform.v1beta1.ISamplingStrategy|null); + + /** ModelDeploymentMonitoringJob modelMonitoringAlertConfig. */ + public modelMonitoringAlertConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null); + + /** ModelDeploymentMonitoringJob predictInstanceSchemaUri. */ + public predictInstanceSchemaUri: string; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** ModelDeploymentMonitoringJob samplePredictInstance. */ + public samplePredictInstance?: (google.protobuf.IValue|null); - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** ModelDeploymentMonitoringJob analysisInstanceSchemaUri. */ + public analysisInstanceSchemaUri: string; - /** - * Verifies a TrainingPredictionSkewDetectionConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** ModelDeploymentMonitoringJob bigqueryTables. */ + public bigqueryTables: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable[]; - /** - * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns TrainingPredictionSkewDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig; + /** ModelDeploymentMonitoringJob logTtl. */ + public logTtl?: (google.protobuf.IDuration|null); - /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @param message TrainingPredictionSkewDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** ModelDeploymentMonitoringJob labels. */ + public labels: { [k: string]: string }; - /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + /** ModelDeploymentMonitoringJob createTime. */ + public createTime?: (google.protobuf.ITimestamp|null); - /** Properties of a PredictionDriftDetectionConfig. */ - interface IPredictionDriftDetectionConfig { + /** ModelDeploymentMonitoringJob updateTime. */ + public updateTime?: (google.protobuf.ITimestamp|null); - /** PredictionDriftDetectionConfig driftThresholds */ - driftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); + /** ModelDeploymentMonitoringJob nextScheduleTime. */ + public nextScheduleTime?: (google.protobuf.ITimestamp|null); - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds */ - attributionScoreDriftThresholds?: ({ [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }|null); - } + /** ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. */ + public statsAnomaliesBaseDirectory?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); - /** Represents a PredictionDriftDetectionConfig. */ - class PredictionDriftDetectionConfig implements IPredictionDriftDetectionConfig { + /** ModelDeploymentMonitoringJob encryptionSpec. */ + public encryptionSpec?: (google.cloud.aiplatform.v1beta1.IEncryptionSpec|null); - /** - * Constructs a new PredictionDriftDetectionConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig); + /** ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. */ + public enableMonitoringPipelineLogs: boolean; - /** PredictionDriftDetectionConfig driftThresholds. */ - public driftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + /** ModelDeploymentMonitoringJob error. */ + public error?: (google.rpc.IStatus|null); - /** PredictionDriftDetectionConfig attributionScoreDriftThresholds. */ - public attributionScoreDriftThresholds: { [k: string]: google.cloud.aiplatform.v1beta1.IThresholdConfig }; + /** + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelDeploymentMonitoringJob instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; - /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns PredictionDriftDetectionConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @param message ModelDeploymentMonitoringJob message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @param message PredictionDriftDetectionConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelDeploymentMonitoringJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelDeploymentMonitoringJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** + * Verifies a ModelDeploymentMonitoringJob message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies a PredictionDriftDetectionConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelDeploymentMonitoringJob + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob; - /** - * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns PredictionDriftDetectionConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig; + /** + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringJob + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. - * @param message PredictionDriftDetectionConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ModelDeploymentMonitoringJob to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + namespace ModelDeploymentMonitoringJob { - /** Properties of an ExplanationConfig. */ - interface IExplanationConfig { + /** Properties of a LatestMonitoringPipelineMetadata. */ + interface ILatestMonitoringPipelineMetadata { - /** ExplanationConfig enableFeatureAttributes */ - enableFeatureAttributes?: (boolean|null); + /** LatestMonitoringPipelineMetadata runTime */ + runTime?: (google.protobuf.ITimestamp|null); - /** ExplanationConfig explanationBaseline */ - explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + /** LatestMonitoringPipelineMetadata status */ + status?: (google.rpc.IStatus|null); } - /** Represents an ExplanationConfig. */ - class ExplanationConfig implements IExplanationConfig { + /** Represents a LatestMonitoringPipelineMetadata. */ + class LatestMonitoringPipelineMetadata implements ILatestMonitoringPipelineMetadata { /** - * Constructs a new ExplanationConfig. + * Constructs a new LatestMonitoringPipelineMetadata. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata); - /** ExplanationConfig enableFeatureAttributes. */ - public enableFeatureAttributes: boolean; + /** LatestMonitoringPipelineMetadata runTime. */ + public runTime?: (google.protobuf.ITimestamp|null); - /** ExplanationConfig explanationBaseline. */ - public explanationBaseline?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null); + /** LatestMonitoringPipelineMetadata status. */ + public status?: (google.rpc.IStatus|null); /** - * Creates a new ExplanationConfig instance using the specified properties. + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. * @param [properties] Properties to set - * @returns ExplanationConfig instance + * @returns LatestMonitoringPipelineMetadata instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. - * @param message ExplanationConfig message or plain object to encode + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * @param message LatestMonitoringPipelineMetadata message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes an ExplanationConfig message from the specified reader or buffer. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ExplanationConfig + * @returns LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ExplanationConfig + * @returns LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Verifies an ExplanationConfig message. + * Verifies a LatestMonitoringPipelineMetadata message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ExplanationConfig + * @returns LatestMonitoringPipelineMetadata */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata; /** - * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. - * @param message ExplanationConfig + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * @param message LatestMonitoringPipelineMetadata * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ExplanationConfig to JSON. + * Converts this LatestMonitoringPipelineMetadata to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ExplanationConfig { + /** MonitoringScheduleState enum. */ + enum MonitoringScheduleState { + MONITORING_SCHEDULE_STATE_UNSPECIFIED = 0, + PENDING = 1, + OFFLINE = 2, + RUNNING = 3 + } + } - /** Properties of an ExplanationBaseline. */ - interface IExplanationBaseline { + /** Properties of a ModelDeploymentMonitoringBigQueryTable. */ + interface IModelDeploymentMonitoringBigQueryTable { - /** ExplanationBaseline gcs */ - gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** ModelDeploymentMonitoringBigQueryTable logSource */ + logSource?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null); - /** ExplanationBaseline bigquery */ - bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** ModelDeploymentMonitoringBigQueryTable logType */ + logType?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null); - /** ExplanationBaseline predictionFormat */ - predictionFormat?: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null); - } + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath */ + bigqueryTablePath?: (string|null); + } - /** Represents an ExplanationBaseline. */ - class ExplanationBaseline implements IExplanationBaseline { + /** Represents a ModelDeploymentMonitoringBigQueryTable. */ + class ModelDeploymentMonitoringBigQueryTable implements IModelDeploymentMonitoringBigQueryTable { - /** - * Constructs a new ExplanationBaseline. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline); + /** + * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable); - /** ExplanationBaseline gcs. */ - public gcs?: (google.cloud.aiplatform.v1beta1.IGcsDestination|null); + /** ModelDeploymentMonitoringBigQueryTable logSource. */ + public logSource: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource); - /** ExplanationBaseline bigquery. */ - public bigquery?: (google.cloud.aiplatform.v1beta1.IBigQueryDestination|null); + /** ModelDeploymentMonitoringBigQueryTable logType. */ + public logType: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType); - /** ExplanationBaseline predictionFormat. */ - public predictionFormat: (google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|keyof typeof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat); + /** ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. */ + public bigqueryTablePath: string; - /** ExplanationBaseline destination. */ - public destination?: ("gcs"|"bigquery"); + /** + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * @param [properties] Properties to set + * @returns ModelDeploymentMonitoringBigQueryTable instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; - /** - * Creates a new ExplanationBaseline instance using the specified properties. - * @param [properties] Properties to set - * @returns ExplanationBaseline instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @param message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable, writer?: $protobuf.Writer): $protobuf.Writer; - /** - * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @param message ExplanationBaseline message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline, writer?: $protobuf.Writer): $protobuf.Writer; + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** + * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); - /** - * Verifies an ExplanationBaseline message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); + /** + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns ModelDeploymentMonitoringBigQueryTable + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable; - /** - * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns ExplanationBaseline - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline; + /** + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringBigQueryTable + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable, options?: $protobuf.IConversionOptions): { [k: string]: any }; - /** - * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. - * @param message ExplanationBaseline - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline, options?: $protobuf.IConversionOptions): { [k: string]: any }; + /** + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } - /** - * Converts this ExplanationBaseline to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } + namespace ModelDeploymentMonitoringBigQueryTable { - namespace ExplanationBaseline { + /** LogSource enum. */ + enum LogSource { + LOG_SOURCE_UNSPECIFIED = 0, + TRAINING = 1, + SERVING = 2 + } - /** PredictionFormat enum. */ - enum PredictionFormat { - PREDICTION_FORMAT_UNSPECIFIED = 0, - JSONL = 2, - BIGQUERY = 3 - } - } + /** LogType enum. */ + enum LogType { + LOG_TYPE_UNSPECIFIED = 0, + PREDICT = 1, + EXPLAIN = 2 } } - /** Properties of a ModelMonitoringAlertConfig. */ - interface IModelMonitoringAlertConfig { + /** Properties of a ModelDeploymentMonitoringObjectiveConfig. */ + interface IModelDeploymentMonitoringObjectiveConfig { - /** ModelMonitoringAlertConfig emailAlertConfig */ - emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId */ + deployedModelId?: (string|null); - /** ModelMonitoringAlertConfig enableLogging */ - enableLogging?: (boolean|null); + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ + objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); } - /** Represents a ModelMonitoringAlertConfig. */ - class ModelMonitoringAlertConfig implements IModelMonitoringAlertConfig { + /** Represents a ModelDeploymentMonitoringObjectiveConfig. */ + class ModelDeploymentMonitoringObjectiveConfig implements IModelDeploymentMonitoringObjectiveConfig { /** - * Constructs a new ModelMonitoringAlertConfig. + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig); - - /** ModelMonitoringAlertConfig emailAlertConfig. */ - public emailAlertConfig?: (google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null); - - /** ModelMonitoringAlertConfig enableLogging. */ - public enableLogging: boolean; + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig); - /** ModelMonitoringAlertConfig alert. */ - public alert?: "emailAlertConfig"; + /** ModelDeploymentMonitoringObjectiveConfig deployedModelId. */ + public deployedModelId: string; + + /** ModelDeploymentMonitoringObjectiveConfig objectiveConfig. */ + public objectiveConfig?: (google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null); /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ModelMonitoringAlertConfig instance + * @returns ModelDeploymentMonitoringObjectiveConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. - * @param message ModelMonitoringAlertConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ModelMonitoringAlertConfig + * @returns ModelDeploymentMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ModelMonitoringAlertConfig + * @returns ModelDeploymentMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Verifies a ModelMonitoringAlertConfig message. + * Verifies a ModelDeploymentMonitoringObjectiveConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ModelMonitoringAlertConfig + * @returns ModelDeploymentMonitoringObjectiveConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig; /** - * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. - * @param message ModelMonitoringAlertConfig + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringObjectiveConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace ModelMonitoringAlertConfig { - - /** Properties of an EmailAlertConfig. */ - interface IEmailAlertConfig { - - /** EmailAlertConfig userEmails */ - userEmails?: (string[]|null); - } - - /** Represents an EmailAlertConfig. */ - class EmailAlertConfig implements IEmailAlertConfig { - - /** - * Constructs a new EmailAlertConfig. - * @param [properties] Properties to set - */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig); - - /** EmailAlertConfig userEmails. */ - public userEmails: string[]; - - /** - * Creates a new EmailAlertConfig instance using the specified properties. - * @param [properties] Properties to set - * @returns EmailAlertConfig instance - */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; - - /** - * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @param message EmailAlertConfig message or plain object to encode - * @param [writer] Writer to encode to - * @returns Writer - */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig, writer?: $protobuf.Writer): $protobuf.Writer; - - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer. - * @param reader Reader or buffer to decode from - * @param [length] Message length if known beforehand - * @returns EmailAlertConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; - - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. - * @param reader Reader or buffer to decode from - * @returns EmailAlertConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; - - /** - * Verifies an EmailAlertConfig message. - * @param message Plain object to verify - * @returns `null` if valid, otherwise the reason why it is not - */ - public static verify(message: { [k: string]: any }): (string|null); - - /** - * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. - * @param object Plain object - * @returns EmailAlertConfig - */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig; - - /** - * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. - * @param message EmailAlertConfig - * @param [options] Conversion options - * @returns Plain object - */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; - - /** - * Converts this EmailAlertConfig to JSON. - * @returns JSON object - */ - public toJSON(): { [k: string]: any }; - } - } + /** Properties of a ModelDeploymentMonitoringScheduleConfig. */ + interface IModelDeploymentMonitoringScheduleConfig { - /** Properties of a ThresholdConfig. */ - interface IThresholdConfig { + /** ModelDeploymentMonitoringScheduleConfig monitorInterval */ + monitorInterval?: (google.protobuf.IDuration|null); - /** ThresholdConfig value */ - value?: (number|null); + /** ModelDeploymentMonitoringScheduleConfig monitorWindow */ + monitorWindow?: (google.protobuf.IDuration|null); } - /** Represents a ThresholdConfig. */ - class ThresholdConfig implements IThresholdConfig { + /** Represents a ModelDeploymentMonitoringScheduleConfig. */ + class ModelDeploymentMonitoringScheduleConfig implements IModelDeploymentMonitoringScheduleConfig { /** - * Constructs a new ThresholdConfig. + * Constructs a new ModelDeploymentMonitoringScheduleConfig. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig); - /** ThresholdConfig value. */ - public value?: (number|null); + /** ModelDeploymentMonitoringScheduleConfig monitorInterval. */ + public monitorInterval?: (google.protobuf.IDuration|null); - /** ThresholdConfig threshold. */ - public threshold?: "value"; + /** ModelDeploymentMonitoringScheduleConfig monitorWindow. */ + public monitorWindow?: (google.protobuf.IDuration|null); /** - * Creates a new ThresholdConfig instance using the specified properties. + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. * @param [properties] Properties to set - * @returns ThresholdConfig instance + * @returns ModelDeploymentMonitoringScheduleConfig instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.IThresholdConfig): google.cloud.aiplatform.v1beta1.ThresholdConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. - * @param message ThresholdConfig message or plain object to encode + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * @param message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IThresholdConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a ThresholdConfig message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns ThresholdConfig + * @returns ModelDeploymentMonitoringScheduleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ThresholdConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns ThresholdConfig + * @returns ModelDeploymentMonitoringScheduleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ThresholdConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; /** - * Verifies a ThresholdConfig message. + * Verifies a ModelDeploymentMonitoringScheduleConfig message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns ThresholdConfig + * @returns ModelDeploymentMonitoringScheduleConfig */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ThresholdConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig; /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @param message ThresholdConfig + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * @param message ModelDeploymentMonitoringScheduleConfig * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.ThresholdConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this ThresholdConfig to JSON. + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - /** Properties of a SamplingStrategy. */ - interface ISamplingStrategy { + /** Properties of a ModelMonitoringStatsAnomalies. */ + interface IModelMonitoringStatsAnomalies { - /** SamplingStrategy randomSampleConfig */ - randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); + /** ModelMonitoringStatsAnomalies objective */ + objective?: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null); + + /** ModelMonitoringStatsAnomalies deployedModelId */ + deployedModelId?: (string|null); + + /** ModelMonitoringStatsAnomalies anomalyCount */ + anomalyCount?: (number|null); + + /** ModelMonitoringStatsAnomalies featureStats */ + featureStats?: (google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]|null); } - /** Represents a SamplingStrategy. */ - class SamplingStrategy implements ISamplingStrategy { + /** Represents a ModelMonitoringStatsAnomalies. */ + class ModelMonitoringStatsAnomalies implements IModelMonitoringStatsAnomalies { /** - * Constructs a new SamplingStrategy. + * Constructs a new ModelMonitoringStatsAnomalies. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy); + constructor(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies); - /** SamplingStrategy randomSampleConfig. */ - public randomSampleConfig?: (google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null); + /** ModelMonitoringStatsAnomalies objective. */ + public objective: (google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|keyof typeof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType); + + /** ModelMonitoringStatsAnomalies deployedModelId. */ + public deployedModelId: string; + + /** ModelMonitoringStatsAnomalies anomalyCount. */ + public anomalyCount: number; + + /** ModelMonitoringStatsAnomalies featureStats. */ + public featureStats: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies[]; /** - * Creates a new SamplingStrategy instance using the specified properties. + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. * @param [properties] Properties to set - * @returns SamplingStrategy instance + * @returns ModelMonitoringStatsAnomalies instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.ISamplingStrategy): google.cloud.aiplatform.v1beta1.SamplingStrategy; + public static create(properties?: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. - * @param message SamplingStrategy message or plain object to encode + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * @param message ModelMonitoringStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ISamplingStrategy, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a SamplingStrategy message from the specified reader or buffer. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns SamplingStrategy + * @returns ModelMonitoringStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SamplingStrategy; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; /** - * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns SamplingStrategy + * @returns ModelMonitoringStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SamplingStrategy; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; /** - * Verifies a SamplingStrategy message. + * Verifies a ModelMonitoringStatsAnomalies message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns SamplingStrategy + * @returns ModelMonitoringStatsAnomalies */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies; /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. - * @param message SamplingStrategy + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * @param message ModelMonitoringStatsAnomalies * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this SamplingStrategy to JSON. + * Converts this ModelMonitoringStatsAnomalies to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; } - namespace SamplingStrategy { + namespace ModelMonitoringStatsAnomalies { - /** Properties of a RandomSampleConfig. */ - interface IRandomSampleConfig { + /** Properties of a FeatureHistoricStatsAnomalies. */ + interface IFeatureHistoricStatsAnomalies { - /** RandomSampleConfig sampleRate */ - sampleRate?: (number|null); + /** FeatureHistoricStatsAnomalies featureDisplayName */ + featureDisplayName?: (string|null); + + /** FeatureHistoricStatsAnomalies threshold */ + threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + + /** FeatureHistoricStatsAnomalies trainingStats */ + trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + + /** FeatureHistoricStatsAnomalies predictionStats */ + predictionStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]|null); } - /** Represents a RandomSampleConfig. */ - class RandomSampleConfig implements IRandomSampleConfig { + /** Represents a FeatureHistoricStatsAnomalies. */ + class FeatureHistoricStatsAnomalies implements IFeatureHistoricStatsAnomalies { /** - * Constructs a new RandomSampleConfig. + * Constructs a new FeatureHistoricStatsAnomalies. * @param [properties] Properties to set */ - constructor(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig); + constructor(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies); - /** RandomSampleConfig sampleRate. */ - public sampleRate: number; + /** FeatureHistoricStatsAnomalies featureDisplayName. */ + public featureDisplayName: string; + + /** FeatureHistoricStatsAnomalies threshold. */ + public threshold?: (google.cloud.aiplatform.v1beta1.IThresholdConfig|null); + + /** FeatureHistoricStatsAnomalies trainingStats. */ + public trainingStats?: (google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null); + + /** FeatureHistoricStatsAnomalies predictionStats. */ + public predictionStats: google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly[]; /** - * Creates a new RandomSampleConfig instance using the specified properties. + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. * @param [properties] Properties to set - * @returns RandomSampleConfig instance + * @returns FeatureHistoricStatsAnomalies instance */ - public static create(properties?: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + public static create(properties?: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encode(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encode(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. - * @param message RandomSampleConfig message or plain object to encode + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. + * @param message FeatureHistoricStatsAnomalies message or plain object to encode * @param [writer] Writer to encode to * @returns Writer */ - public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig, writer?: $protobuf.Writer): $protobuf.Writer; + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies, writer?: $protobuf.Writer): $protobuf.Writer; /** - * Decodes a RandomSampleConfig message from the specified reader or buffer. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. * @param reader Reader or buffer to decode from * @param [length] Message length if known beforehand - * @returns RandomSampleConfig + * @returns FeatureHistoricStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. * @param reader Reader or buffer to decode from - * @returns RandomSampleConfig + * @returns FeatureHistoricStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Verifies a RandomSampleConfig message. + * Verifies a FeatureHistoricStatsAnomalies message. * @param message Plain object to verify * @returns `null` if valid, otherwise the reason why it is not */ public static verify(message: { [k: string]: any }): (string|null); /** - * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @param object Plain object - * @returns RandomSampleConfig + * @returns FeatureHistoricStatsAnomalies */ - public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig; + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies; /** - * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. - * @param message RandomSampleConfig + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. + * @param message FeatureHistoricStatsAnomalies * @param [options] Conversion options * @returns Plain object */ - public static toObject(message: google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig, options?: $protobuf.IConversionOptions): { [k: string]: any }; + public static toObject(message: google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies, options?: $protobuf.IConversionOptions): { [k: string]: any }; /** - * Converts this RandomSampleConfig to JSON. + * Converts this FeatureHistoricStatsAnomalies to JSON. * @returns JSON object */ public toJSON(): { [k: string]: any }; @@ -103020,6 +105028,20 @@ export namespace google { */ public importModelEvaluation(request: google.cloud.aiplatform.v1beta1.IImportModelEvaluationRequest): Promise; + /** + * Calls BatchImportModelEvaluationSlices. + * @param request BatchImportModelEvaluationSlicesRequest message or plain object + * @param callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + */ + public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, callback: google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlicesCallback): void; + + /** + * Calls BatchImportModelEvaluationSlices. + * @param request BatchImportModelEvaluationSlicesRequest message or plain object + * @returns Promise + */ + public batchImportModelEvaluationSlices(request: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest): Promise; + /** * Calls GetModelEvaluation. * @param request GetModelEvaluationRequest message or plain object @@ -103156,6 +105178,13 @@ export namespace google { */ type ImportModelEvaluationCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.ModelEvaluation) => void; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#batchImportModelEvaluationSlices}. + * @param error Error, if any + * @param [response] BatchImportModelEvaluationSlicesResponse + */ + type BatchImportModelEvaluationSlicesCallback = (error: (Error|null), response?: google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse) => void; + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModelEvaluation}. * @param error Error, if any @@ -105207,6 +107236,192 @@ export namespace google { public toJSON(): { [k: string]: any }; } + /** Properties of a BatchImportModelEvaluationSlicesRequest. */ + interface IBatchImportModelEvaluationSlicesRequest { + + /** BatchImportModelEvaluationSlicesRequest parent */ + parent?: (string|null); + + /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices */ + modelEvaluationSlices?: (google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]|null); + } + + /** Represents a BatchImportModelEvaluationSlicesRequest. */ + class BatchImportModelEvaluationSlicesRequest implements IBatchImportModelEvaluationSlicesRequest { + + /** + * Constructs a new BatchImportModelEvaluationSlicesRequest. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest); + + /** BatchImportModelEvaluationSlicesRequest parent. */ + public parent: string; + + /** BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. */ + public modelEvaluationSlices: google.cloud.aiplatform.v1beta1.IModelEvaluationSlice[]; + + /** + * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportModelEvaluationSlicesRequest instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; + + /** + * Verifies a BatchImportModelEvaluationSlicesRequest message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportModelEvaluationSlicesRequest + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest; + + /** + * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @param message BatchImportModelEvaluationSlicesRequest + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + + /** Properties of a BatchImportModelEvaluationSlicesResponse. */ + interface IBatchImportModelEvaluationSlicesResponse { + + /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices */ + importedModelEvaluationSlices?: (string[]|null); + } + + /** Represents a BatchImportModelEvaluationSlicesResponse. */ + class BatchImportModelEvaluationSlicesResponse implements IBatchImportModelEvaluationSlicesResponse { + + /** + * Constructs a new BatchImportModelEvaluationSlicesResponse. + * @param [properties] Properties to set + */ + constructor(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse); + + /** BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. */ + public importedModelEvaluationSlices: string[]; + + /** + * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * @param [properties] Properties to set + * @returns BatchImportModelEvaluationSlicesResponse instance + */ + public static create(properties?: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encode(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @param message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param [writer] Writer to encode to + * @returns Writer + */ + public static encodeDelimited(message: google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, writer?: $protobuf.Writer): $protobuf.Writer; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * @param reader Reader or buffer to decode from + * @param [length] Message length if known beforehand + * @returns BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * @param reader Reader or buffer to decode from + * @returns BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; + + /** + * Verifies a BatchImportModelEvaluationSlicesResponse message. + * @param message Plain object to verify + * @returns `null` if valid, otherwise the reason why it is not + */ + public static verify(message: { [k: string]: any }): (string|null); + + /** + * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * @param object Plain object + * @returns BatchImportModelEvaluationSlicesResponse + */ + public static fromObject(object: { [k: string]: any }): google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse; + + /** + * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @param message BatchImportModelEvaluationSlicesResponse + * @param [options] Conversion options + * @returns Plain object + */ + public static toObject(message: google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any }; + + /** + * Converts this BatchImportModelEvaluationSlicesResponse to JSON. + * @returns JSON object + */ + public toJSON(): { [k: string]: any }; + } + /** Properties of a GetModelEvaluationRequest. */ interface IGetModelEvaluationRequest { @@ -108690,6 +110905,9 @@ export namespace google { /** InputDataConfig annotationSchemaUri */ annotationSchemaUri?: (string|null); + + /** InputDataConfig savedQueryId */ + savedQueryId?: (string|null); } /** Represents an InputDataConfig. */ @@ -108731,6 +110949,9 @@ export namespace google { /** InputDataConfig annotationSchemaUri. */ public annotationSchemaUri: string; + /** InputDataConfig savedQueryId. */ + public savedQueryId: string; + /** InputDataConfig split. */ public split?: ("fractionSplit"|"filterSplit"|"predefinedSplit"|"timestampSplit"|"stratifiedSplit"); diff --git a/protos/protos.js b/protos/protos.js index 2246eceb..cdbe3319 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -1558,6 +1558,7 @@ * @property {string|null} [name] BatchPredictionJob name * @property {string|null} [displayName] BatchPredictionJob displayName * @property {string|null} [model] BatchPredictionJob model + * @property {string|null} [modelVersionId] BatchPredictionJob modelVersionId * @property {google.cloud.aiplatform.v1.IUnmanagedContainerModel|null} [unmanagedContainerModel] BatchPredictionJob unmanagedContainerModel * @property {google.cloud.aiplatform.v1.BatchPredictionJob.IInputConfig|null} [inputConfig] BatchPredictionJob inputConfig * @property {google.protobuf.IValue|null} [modelParameters] BatchPredictionJob modelParameters @@ -1621,6 +1622,14 @@ */ BatchPredictionJob.prototype.model = ""; + /** + * BatchPredictionJob modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.modelVersionId = ""; + /** * BatchPredictionJob unmanagedContainerModel. * @member {google.cloud.aiplatform.v1.IUnmanagedContainerModel|null|undefined} unmanagedContainerModel @@ -1853,6 +1862,8 @@ $root.google.cloud.aiplatform.v1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); if (message.unmanagedContainerModel != null && Object.hasOwnProperty.call(message, "unmanagedContainerModel")) $root.google.cloud.aiplatform.v1.UnmanagedContainerModel.encode(message.unmanagedContainerModel, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 30, wireType 2 =*/242).string(message.modelVersionId); return writer; }; @@ -1896,6 +1907,9 @@ case 3: message.model = reader.string(); break; + case 30: + message.modelVersionId = reader.string(); + break; case 28: message.unmanagedContainerModel = $root.google.cloud.aiplatform.v1.UnmanagedContainerModel.decode(reader, reader.uint32()); break; @@ -2021,6 +2035,9 @@ if (message.model != null && message.hasOwnProperty("model")) if (!$util.isString(message.model)) return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; if (message.unmanagedContainerModel != null && message.hasOwnProperty("unmanagedContainerModel")) { var error = $root.google.cloud.aiplatform.v1.UnmanagedContainerModel.verify(message.unmanagedContainerModel); if (error) @@ -2159,6 +2176,8 @@ message.displayName = String(object.displayName); if (object.model != null) message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); if (object.unmanagedContainerModel != null) { if (typeof object.unmanagedContainerModel !== "object") throw TypeError(".google.cloud.aiplatform.v1.BatchPredictionJob.unmanagedContainerModel: object expected"); @@ -2346,6 +2365,7 @@ object.encryptionSpec = null; object.explanationSpec = null; object.unmanagedContainerModel = null; + object.modelVersionId = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -2400,6 +2420,8 @@ object.explanationSpec = $root.google.cloud.aiplatform.v1.ExplanationSpec.toObject(message.explanationSpec, options); if (message.unmanagedContainerModel != null && message.hasOwnProperty("unmanagedContainerModel")) object.unmanagedContainerModel = $root.google.cloud.aiplatform.v1.UnmanagedContainerModel.toObject(message.unmanagedContainerModel, options); + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; return object; }; @@ -3218,6 +3240,7 @@ * @property {number|Long|null} [successfulCount] CompletionStats successfulCount * @property {number|Long|null} [failedCount] CompletionStats failedCount * @property {number|Long|null} [incompleteCount] CompletionStats incompleteCount + * @property {number|Long|null} [successfulForecastPointCount] CompletionStats successfulForecastPointCount */ /** @@ -3259,6 +3282,14 @@ */ CompletionStats.prototype.incompleteCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * CompletionStats successfulForecastPointCount. + * @member {number|Long} successfulForecastPointCount + * @memberof google.cloud.aiplatform.v1.CompletionStats + * @instance + */ + CompletionStats.prototype.successfulForecastPointCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** * Creates a new CompletionStats instance using the specified properties. * @function create @@ -3289,6 +3320,8 @@ writer.uint32(/* id 2, wireType 0 =*/16).int64(message.failedCount); if (message.incompleteCount != null && Object.hasOwnProperty.call(message, "incompleteCount")) writer.uint32(/* id 3, wireType 0 =*/24).int64(message.incompleteCount); + if (message.successfulForecastPointCount != null && Object.hasOwnProperty.call(message, "successfulForecastPointCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.successfulForecastPointCount); return writer; }; @@ -3332,6 +3365,9 @@ case 3: message.incompleteCount = reader.int64(); break; + case 5: + message.successfulForecastPointCount = reader.int64(); + break; default: reader.skipType(tag & 7); break; @@ -3376,6 +3412,9 @@ if (message.incompleteCount != null && message.hasOwnProperty("incompleteCount")) if (!$util.isInteger(message.incompleteCount) && !(message.incompleteCount && $util.isInteger(message.incompleteCount.low) && $util.isInteger(message.incompleteCount.high))) return "incompleteCount: integer|Long expected"; + if (message.successfulForecastPointCount != null && message.hasOwnProperty("successfulForecastPointCount")) + if (!$util.isInteger(message.successfulForecastPointCount) && !(message.successfulForecastPointCount && $util.isInteger(message.successfulForecastPointCount.low) && $util.isInteger(message.successfulForecastPointCount.high))) + return "successfulForecastPointCount: integer|Long expected"; return null; }; @@ -3418,6 +3457,15 @@ message.incompleteCount = object.incompleteCount; else if (typeof object.incompleteCount === "object") message.incompleteCount = new $util.LongBits(object.incompleteCount.low >>> 0, object.incompleteCount.high >>> 0).toNumber(); + if (object.successfulForecastPointCount != null) + if ($util.Long) + (message.successfulForecastPointCount = $util.Long.fromValue(object.successfulForecastPointCount)).unsigned = false; + else if (typeof object.successfulForecastPointCount === "string") + message.successfulForecastPointCount = parseInt(object.successfulForecastPointCount, 10); + else if (typeof object.successfulForecastPointCount === "number") + message.successfulForecastPointCount = object.successfulForecastPointCount; + else if (typeof object.successfulForecastPointCount === "object") + message.successfulForecastPointCount = new $util.LongBits(object.successfulForecastPointCount.low >>> 0, object.successfulForecastPointCount.high >>> 0).toNumber(); return message; }; @@ -3450,6 +3498,11 @@ object.incompleteCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; } else object.incompleteCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.successfulForecastPointCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.successfulForecastPointCount = options.longs === String ? "0" : 0; } if (message.successfulCount != null && message.hasOwnProperty("successfulCount")) if (typeof message.successfulCount === "number") @@ -3466,6 +3519,11 @@ object.incompleteCount = options.longs === String ? String(message.incompleteCount) : message.incompleteCount; else object.incompleteCount = options.longs === String ? $util.Long.prototype.toString.call(message.incompleteCount) : options.longs === Number ? new $util.LongBits(message.incompleteCount.low >>> 0, message.incompleteCount.high >>> 0).toNumber() : message.incompleteCount; + if (message.successfulForecastPointCount != null && message.hasOwnProperty("successfulForecastPointCount")) + if (typeof message.successfulForecastPointCount === "number") + object.successfulForecastPointCount = options.longs === String ? String(message.successfulForecastPointCount) : message.successfulForecastPointCount; + else + object.successfulForecastPointCount = options.longs === String ? $util.Long.prototype.toString.call(message.successfulForecastPointCount) : options.longs === Number ? new $util.LongBits(message.successfulForecastPointCount.low >>> 0, message.successfulForecastPointCount.high >>> 0).toNumber() : message.successfulForecastPointCount; return object; }; @@ -3677,6 +3735,7 @@ * @memberof google.cloud.aiplatform.v1 * @interface IExplanation * @property {Array.|null} [attributions] Explanation attributions + * @property {Array.|null} [neighbors] Explanation neighbors */ /** @@ -3689,6 +3748,7 @@ */ function Explanation(properties) { this.attributions = []; + this.neighbors = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -3703,6 +3763,14 @@ */ Explanation.prototype.attributions = $util.emptyArray; + /** + * Explanation neighbors. + * @member {Array.} neighbors + * @memberof google.cloud.aiplatform.v1.Explanation + * @instance + */ + Explanation.prototype.neighbors = $util.emptyArray; + /** * Creates a new Explanation instance using the specified properties. * @function create @@ -3730,6 +3798,9 @@ if (message.attributions != null && message.attributions.length) for (var i = 0; i < message.attributions.length; ++i) $root.google.cloud.aiplatform.v1.Attribution.encode(message.attributions[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.neighbors != null && message.neighbors.length) + for (var i = 0; i < message.neighbors.length; ++i) + $root.google.cloud.aiplatform.v1.Neighbor.encode(message.neighbors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -3769,6 +3840,11 @@ message.attributions = []; message.attributions.push($root.google.cloud.aiplatform.v1.Attribution.decode(reader, reader.uint32())); break; + case 2: + if (!(message.neighbors && message.neighbors.length)) + message.neighbors = []; + message.neighbors.push($root.google.cloud.aiplatform.v1.Neighbor.decode(reader, reader.uint32())); + break; default: reader.skipType(tag & 7); break; @@ -3813,6 +3889,15 @@ return "attributions." + error; } } + if (message.neighbors != null && message.hasOwnProperty("neighbors")) { + if (!Array.isArray(message.neighbors)) + return "neighbors: array expected"; + for (var i = 0; i < message.neighbors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Neighbor.verify(message.neighbors[i]); + if (error) + return "neighbors." + error; + } + } return null; }; @@ -3838,6 +3923,16 @@ message.attributions[i] = $root.google.cloud.aiplatform.v1.Attribution.fromObject(object.attributions[i]); } } + if (object.neighbors) { + if (!Array.isArray(object.neighbors)) + throw TypeError(".google.cloud.aiplatform.v1.Explanation.neighbors: array expected"); + message.neighbors = []; + for (var i = 0; i < object.neighbors.length; ++i) { + if (typeof object.neighbors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Explanation.neighbors: object expected"); + message.neighbors[i] = $root.google.cloud.aiplatform.v1.Neighbor.fromObject(object.neighbors[i]); + } + } return message; }; @@ -3854,13 +3949,20 @@ if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) + if (options.arrays || options.defaults) { object.attributions = []; + object.neighbors = []; + } if (message.attributions && message.attributions.length) { object.attributions = []; for (var j = 0; j < message.attributions.length; ++j) object.attributions[j] = $root.google.cloud.aiplatform.v1.Attribution.toObject(message.attributions[j], options); } + if (message.neighbors && message.neighbors.length) { + object.neighbors = []; + for (var j = 0; j < message.neighbors.length; ++j) + object.neighbors[j] = $root.google.cloud.aiplatform.v1.Neighbor.toObject(message.neighbors[j], options); + } return object; }; @@ -4436,6 +4538,216 @@ return Attribution; })(); + v1.Neighbor = (function() { + + /** + * Properties of a Neighbor. + * @memberof google.cloud.aiplatform.v1 + * @interface INeighbor + * @property {string|null} [neighborId] Neighbor neighborId + * @property {number|null} [neighborDistance] Neighbor neighborDistance + */ + + /** + * Constructs a new Neighbor. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a Neighbor. + * @implements INeighbor + * @constructor + * @param {google.cloud.aiplatform.v1.INeighbor=} [properties] Properties to set + */ + function Neighbor(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Neighbor neighborId. + * @member {string} neighborId + * @memberof google.cloud.aiplatform.v1.Neighbor + * @instance + */ + Neighbor.prototype.neighborId = ""; + + /** + * Neighbor neighborDistance. + * @member {number} neighborDistance + * @memberof google.cloud.aiplatform.v1.Neighbor + * @instance + */ + Neighbor.prototype.neighborDistance = 0; + + /** + * Creates a new Neighbor instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.Neighbor + * @static + * @param {google.cloud.aiplatform.v1.INeighbor=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.Neighbor} Neighbor instance + */ + Neighbor.create = function create(properties) { + return new Neighbor(properties); + }; + + /** + * Encodes the specified Neighbor message. Does not implicitly {@link google.cloud.aiplatform.v1.Neighbor.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.Neighbor + * @static + * @param {google.cloud.aiplatform.v1.INeighbor} message Neighbor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Neighbor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.neighborId != null && Object.hasOwnProperty.call(message, "neighborId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.neighborId); + if (message.neighborDistance != null && Object.hasOwnProperty.call(message, "neighborDistance")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.neighborDistance); + return writer; + }; + + /** + * Encodes the specified Neighbor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.Neighbor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.Neighbor + * @static + * @param {google.cloud.aiplatform.v1.INeighbor} message Neighbor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Neighbor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Neighbor message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.Neighbor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.Neighbor} Neighbor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Neighbor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.Neighbor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.neighborId = reader.string(); + break; + case 2: + message.neighborDistance = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Neighbor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.Neighbor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.Neighbor} Neighbor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Neighbor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Neighbor message. + * @function verify + * @memberof google.cloud.aiplatform.v1.Neighbor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Neighbor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.neighborId != null && message.hasOwnProperty("neighborId")) + if (!$util.isString(message.neighborId)) + return "neighborId: string expected"; + if (message.neighborDistance != null && message.hasOwnProperty("neighborDistance")) + if (typeof message.neighborDistance !== "number") + return "neighborDistance: number expected"; + return null; + }; + + /** + * Creates a Neighbor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.Neighbor + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.Neighbor} Neighbor + */ + Neighbor.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.Neighbor) + return object; + var message = new $root.google.cloud.aiplatform.v1.Neighbor(); + if (object.neighborId != null) + message.neighborId = String(object.neighborId); + if (object.neighborDistance != null) + message.neighborDistance = Number(object.neighborDistance); + return message; + }; + + /** + * Creates a plain object from a Neighbor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.Neighbor + * @static + * @param {google.cloud.aiplatform.v1.Neighbor} message Neighbor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Neighbor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.neighborId = ""; + object.neighborDistance = 0; + } + if (message.neighborId != null && message.hasOwnProperty("neighborId")) + object.neighborId = message.neighborId; + if (message.neighborDistance != null && message.hasOwnProperty("neighborDistance")) + object.neighborDistance = options.json && !isFinite(message.neighborDistance) ? String(message.neighborDistance) : message.neighborDistance; + return object; + }; + + /** + * Converts this Neighbor to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.Neighbor + * @instance + * @returns {Object.} JSON object + */ + Neighbor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Neighbor; + })(); + v1.ExplanationSpec = (function() { /** @@ -6532,6 +6844,7 @@ * @interface IExplanationSpecOverride * @property {google.cloud.aiplatform.v1.IExplanationParameters|null} [parameters] ExplanationSpecOverride parameters * @property {google.cloud.aiplatform.v1.IExplanationMetadataOverride|null} [metadata] ExplanationSpecOverride metadata + * @property {google.cloud.aiplatform.v1.IExamplesOverride|null} [examplesOverride] ExplanationSpecOverride examplesOverride */ /** @@ -6565,6 +6878,14 @@ */ ExplanationSpecOverride.prototype.metadata = null; + /** + * ExplanationSpecOverride examplesOverride. + * @member {google.cloud.aiplatform.v1.IExamplesOverride|null|undefined} examplesOverride + * @memberof google.cloud.aiplatform.v1.ExplanationSpecOverride + * @instance + */ + ExplanationSpecOverride.prototype.examplesOverride = null; + /** * Creates a new ExplanationSpecOverride instance using the specified properties. * @function create @@ -6593,6 +6914,8 @@ $root.google.cloud.aiplatform.v1.ExplanationParameters.encode(message.parameters, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) $root.google.cloud.aiplatform.v1.ExplanationMetadataOverride.encode(message.metadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.examplesOverride != null && Object.hasOwnProperty.call(message, "examplesOverride")) + $root.google.cloud.aiplatform.v1.ExamplesOverride.encode(message.examplesOverride, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; @@ -6633,6 +6956,9 @@ case 2: message.metadata = $root.google.cloud.aiplatform.v1.ExplanationMetadataOverride.decode(reader, reader.uint32()); break; + case 3: + message.examplesOverride = $root.google.cloud.aiplatform.v1.ExamplesOverride.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -6678,6 +7004,11 @@ if (error) return "metadata." + error; } + if (message.examplesOverride != null && message.hasOwnProperty("examplesOverride")) { + var error = $root.google.cloud.aiplatform.v1.ExamplesOverride.verify(message.examplesOverride); + if (error) + return "examplesOverride." + error; + } return null; }; @@ -6703,6 +7034,11 @@ throw TypeError(".google.cloud.aiplatform.v1.ExplanationSpecOverride.metadata: object expected"); message.metadata = $root.google.cloud.aiplatform.v1.ExplanationMetadataOverride.fromObject(object.metadata); } + if (object.examplesOverride != null) { + if (typeof object.examplesOverride !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExplanationSpecOverride.examplesOverride: object expected"); + message.examplesOverride = $root.google.cloud.aiplatform.v1.ExamplesOverride.fromObject(object.examplesOverride); + } return message; }; @@ -6722,11 +7058,14 @@ if (options.defaults) { object.parameters = null; object.metadata = null; + object.examplesOverride = null; } if (message.parameters != null && message.hasOwnProperty("parameters")) object.parameters = $root.google.cloud.aiplatform.v1.ExplanationParameters.toObject(message.parameters, options); if (message.metadata != null && message.hasOwnProperty("metadata")) object.metadata = $root.google.cloud.aiplatform.v1.ExplanationMetadataOverride.toObject(message.metadata, options); + if (message.examplesOverride != null && message.hasOwnProperty("examplesOverride")) + object.examplesOverride = $root.google.cloud.aiplatform.v1.ExamplesOverride.toObject(message.examplesOverride, options); return object; }; @@ -7181,6 +7520,603 @@ return ExplanationMetadataOverride; })(); + v1.ExamplesOverride = (function() { + + /** + * Properties of an ExamplesOverride. + * @memberof google.cloud.aiplatform.v1 + * @interface IExamplesOverride + * @property {number|null} [neighborCount] ExamplesOverride neighborCount + * @property {number|null} [crowdingCount] ExamplesOverride crowdingCount + * @property {Array.|null} [restrictions] ExamplesOverride restrictions + * @property {boolean|null} [returnEmbeddings] ExamplesOverride returnEmbeddings + * @property {google.cloud.aiplatform.v1.ExamplesOverride.DataFormat|null} [dataFormat] ExamplesOverride dataFormat + */ + + /** + * Constructs a new ExamplesOverride. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExamplesOverride. + * @implements IExamplesOverride + * @constructor + * @param {google.cloud.aiplatform.v1.IExamplesOverride=} [properties] Properties to set + */ + function ExamplesOverride(properties) { + this.restrictions = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExamplesOverride neighborCount. + * @member {number} neighborCount + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @instance + */ + ExamplesOverride.prototype.neighborCount = 0; + + /** + * ExamplesOverride crowdingCount. + * @member {number} crowdingCount + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @instance + */ + ExamplesOverride.prototype.crowdingCount = 0; + + /** + * ExamplesOverride restrictions. + * @member {Array.} restrictions + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @instance + */ + ExamplesOverride.prototype.restrictions = $util.emptyArray; + + /** + * ExamplesOverride returnEmbeddings. + * @member {boolean} returnEmbeddings + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @instance + */ + ExamplesOverride.prototype.returnEmbeddings = false; + + /** + * ExamplesOverride dataFormat. + * @member {google.cloud.aiplatform.v1.ExamplesOverride.DataFormat} dataFormat + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @instance + */ + ExamplesOverride.prototype.dataFormat = 0; + + /** + * Creates a new ExamplesOverride instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @static + * @param {google.cloud.aiplatform.v1.IExamplesOverride=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExamplesOverride} ExamplesOverride instance + */ + ExamplesOverride.create = function create(properties) { + return new ExamplesOverride(properties); + }; + + /** + * Encodes the specified ExamplesOverride message. Does not implicitly {@link google.cloud.aiplatform.v1.ExamplesOverride.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @static + * @param {google.cloud.aiplatform.v1.IExamplesOverride} message ExamplesOverride message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExamplesOverride.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.neighborCount != null && Object.hasOwnProperty.call(message, "neighborCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.neighborCount); + if (message.crowdingCount != null && Object.hasOwnProperty.call(message, "crowdingCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.crowdingCount); + if (message.restrictions != null && message.restrictions.length) + for (var i = 0; i < message.restrictions.length; ++i) + $root.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.encode(message.restrictions[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.returnEmbeddings != null && Object.hasOwnProperty.call(message, "returnEmbeddings")) + writer.uint32(/* id 4, wireType 0 =*/32).bool(message.returnEmbeddings); + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.dataFormat); + return writer; + }; + + /** + * Encodes the specified ExamplesOverride message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExamplesOverride.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @static + * @param {google.cloud.aiplatform.v1.IExamplesOverride} message ExamplesOverride message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExamplesOverride.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExamplesOverride message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ExamplesOverride} ExamplesOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExamplesOverride.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExamplesOverride(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.neighborCount = reader.int32(); + break; + case 2: + message.crowdingCount = reader.int32(); + break; + case 3: + if (!(message.restrictions && message.restrictions.length)) + message.restrictions = []; + message.restrictions.push($root.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.decode(reader, reader.uint32())); + break; + case 4: + message.returnEmbeddings = reader.bool(); + break; + case 5: + message.dataFormat = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExamplesOverride message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExamplesOverride} ExamplesOverride + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExamplesOverride.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExamplesOverride message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExamplesOverride.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.neighborCount != null && message.hasOwnProperty("neighborCount")) + if (!$util.isInteger(message.neighborCount)) + return "neighborCount: integer expected"; + if (message.crowdingCount != null && message.hasOwnProperty("crowdingCount")) + if (!$util.isInteger(message.crowdingCount)) + return "crowdingCount: integer expected"; + if (message.restrictions != null && message.hasOwnProperty("restrictions")) { + if (!Array.isArray(message.restrictions)) + return "restrictions: array expected"; + for (var i = 0; i < message.restrictions.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.verify(message.restrictions[i]); + if (error) + return "restrictions." + error; + } + } + if (message.returnEmbeddings != null && message.hasOwnProperty("returnEmbeddings")) + if (typeof message.returnEmbeddings !== "boolean") + return "returnEmbeddings: boolean expected"; + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + switch (message.dataFormat) { + default: + return "dataFormat: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates an ExamplesOverride message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExamplesOverride} ExamplesOverride + */ + ExamplesOverride.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExamplesOverride) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExamplesOverride(); + if (object.neighborCount != null) + message.neighborCount = object.neighborCount | 0; + if (object.crowdingCount != null) + message.crowdingCount = object.crowdingCount | 0; + if (object.restrictions) { + if (!Array.isArray(object.restrictions)) + throw TypeError(".google.cloud.aiplatform.v1.ExamplesOverride.restrictions: array expected"); + message.restrictions = []; + for (var i = 0; i < object.restrictions.length; ++i) { + if (typeof object.restrictions[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ExamplesOverride.restrictions: object expected"); + message.restrictions[i] = $root.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.fromObject(object.restrictions[i]); + } + } + if (object.returnEmbeddings != null) + message.returnEmbeddings = Boolean(object.returnEmbeddings); + switch (object.dataFormat) { + case "DATA_FORMAT_UNSPECIFIED": + case 0: + message.dataFormat = 0; + break; + case "INSTANCES": + case 1: + message.dataFormat = 1; + break; + case "EMBEDDINGS": + case 2: + message.dataFormat = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from an ExamplesOverride message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @static + * @param {google.cloud.aiplatform.v1.ExamplesOverride} message ExamplesOverride + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExamplesOverride.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.restrictions = []; + if (options.defaults) { + object.neighborCount = 0; + object.crowdingCount = 0; + object.returnEmbeddings = false; + object.dataFormat = options.enums === String ? "DATA_FORMAT_UNSPECIFIED" : 0; + } + if (message.neighborCount != null && message.hasOwnProperty("neighborCount")) + object.neighborCount = message.neighborCount; + if (message.crowdingCount != null && message.hasOwnProperty("crowdingCount")) + object.crowdingCount = message.crowdingCount; + if (message.restrictions && message.restrictions.length) { + object.restrictions = []; + for (var j = 0; j < message.restrictions.length; ++j) + object.restrictions[j] = $root.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.toObject(message.restrictions[j], options); + } + if (message.returnEmbeddings != null && message.hasOwnProperty("returnEmbeddings")) + object.returnEmbeddings = message.returnEmbeddings; + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = options.enums === String ? $root.google.cloud.aiplatform.v1.ExamplesOverride.DataFormat[message.dataFormat] : message.dataFormat; + return object; + }; + + /** + * Converts this ExamplesOverride to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExamplesOverride + * @instance + * @returns {Object.} JSON object + */ + ExamplesOverride.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * DataFormat enum. + * @name google.cloud.aiplatform.v1.ExamplesOverride.DataFormat + * @enum {number} + * @property {number} DATA_FORMAT_UNSPECIFIED=0 DATA_FORMAT_UNSPECIFIED value + * @property {number} INSTANCES=1 INSTANCES value + * @property {number} EMBEDDINGS=2 EMBEDDINGS value + */ + ExamplesOverride.DataFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DATA_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[1] = "INSTANCES"] = 1; + values[valuesById[2] = "EMBEDDINGS"] = 2; + return values; + })(); + + return ExamplesOverride; + })(); + + v1.ExamplesRestrictionsNamespace = (function() { + + /** + * Properties of an ExamplesRestrictionsNamespace. + * @memberof google.cloud.aiplatform.v1 + * @interface IExamplesRestrictionsNamespace + * @property {string|null} [namespaceName] ExamplesRestrictionsNamespace namespaceName + * @property {Array.|null} [allow] ExamplesRestrictionsNamespace allow + * @property {Array.|null} [deny] ExamplesRestrictionsNamespace deny + */ + + /** + * Constructs a new ExamplesRestrictionsNamespace. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents an ExamplesRestrictionsNamespace. + * @implements IExamplesRestrictionsNamespace + * @constructor + * @param {google.cloud.aiplatform.v1.IExamplesRestrictionsNamespace=} [properties] Properties to set + */ + function ExamplesRestrictionsNamespace(properties) { + this.allow = []; + this.deny = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExamplesRestrictionsNamespace namespaceName. + * @member {string} namespaceName + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @instance + */ + ExamplesRestrictionsNamespace.prototype.namespaceName = ""; + + /** + * ExamplesRestrictionsNamespace allow. + * @member {Array.} allow + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @instance + */ + ExamplesRestrictionsNamespace.prototype.allow = $util.emptyArray; + + /** + * ExamplesRestrictionsNamespace deny. + * @member {Array.} deny + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @instance + */ + ExamplesRestrictionsNamespace.prototype.deny = $util.emptyArray; + + /** + * Creates a new ExamplesRestrictionsNamespace instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @static + * @param {google.cloud.aiplatform.v1.IExamplesRestrictionsNamespace=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace} ExamplesRestrictionsNamespace instance + */ + ExamplesRestrictionsNamespace.create = function create(properties) { + return new ExamplesRestrictionsNamespace(properties); + }; + + /** + * Encodes the specified ExamplesRestrictionsNamespace message. Does not implicitly {@link google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @static + * @param {google.cloud.aiplatform.v1.IExamplesRestrictionsNamespace} message ExamplesRestrictionsNamespace message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExamplesRestrictionsNamespace.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.namespaceName != null && Object.hasOwnProperty.call(message, "namespaceName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.namespaceName); + if (message.allow != null && message.allow.length) + for (var i = 0; i < message.allow.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allow[i]); + if (message.deny != null && message.deny.length) + for (var i = 0; i < message.deny.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.deny[i]); + return writer; + }; + + /** + * Encodes the specified ExamplesRestrictionsNamespace message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @static + * @param {google.cloud.aiplatform.v1.IExamplesRestrictionsNamespace} message ExamplesRestrictionsNamespace message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExamplesRestrictionsNamespace.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace} ExamplesRestrictionsNamespace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExamplesRestrictionsNamespace.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.namespaceName = reader.string(); + break; + case 2: + if (!(message.allow && message.allow.length)) + message.allow = []; + message.allow.push(reader.string()); + break; + case 3: + if (!(message.deny && message.deny.length)) + message.deny = []; + message.deny.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExamplesRestrictionsNamespace message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace} ExamplesRestrictionsNamespace + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExamplesRestrictionsNamespace.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExamplesRestrictionsNamespace message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExamplesRestrictionsNamespace.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.namespaceName != null && message.hasOwnProperty("namespaceName")) + if (!$util.isString(message.namespaceName)) + return "namespaceName: string expected"; + if (message.allow != null && message.hasOwnProperty("allow")) { + if (!Array.isArray(message.allow)) + return "allow: array expected"; + for (var i = 0; i < message.allow.length; ++i) + if (!$util.isString(message.allow[i])) + return "allow: string[] expected"; + } + if (message.deny != null && message.hasOwnProperty("deny")) { + if (!Array.isArray(message.deny)) + return "deny: array expected"; + for (var i = 0; i < message.deny.length; ++i) + if (!$util.isString(message.deny[i])) + return "deny: string[] expected"; + } + return null; + }; + + /** + * Creates an ExamplesRestrictionsNamespace message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace} ExamplesRestrictionsNamespace + */ + ExamplesRestrictionsNamespace.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace) + return object; + var message = new $root.google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace(); + if (object.namespaceName != null) + message.namespaceName = String(object.namespaceName); + if (object.allow) { + if (!Array.isArray(object.allow)) + throw TypeError(".google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.allow: array expected"); + message.allow = []; + for (var i = 0; i < object.allow.length; ++i) + message.allow[i] = String(object.allow[i]); + } + if (object.deny) { + if (!Array.isArray(object.deny)) + throw TypeError(".google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace.deny: array expected"); + message.deny = []; + for (var i = 0; i < object.deny.length; ++i) + message.deny[i] = String(object.deny[i]); + } + return message; + }; + + /** + * Creates a plain object from an ExamplesRestrictionsNamespace message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @static + * @param {google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace} message ExamplesRestrictionsNamespace + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExamplesRestrictionsNamespace.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.allow = []; + object.deny = []; + } + if (options.defaults) + object.namespaceName = ""; + if (message.namespaceName != null && message.hasOwnProperty("namespaceName")) + object.namespaceName = message.namespaceName; + if (message.allow && message.allow.length) { + object.allow = []; + for (var j = 0; j < message.allow.length; ++j) + object.allow[j] = message.allow[j]; + } + if (message.deny && message.deny.length) { + object.deny = []; + for (var j = 0; j < message.deny.length; ++j) + object.deny[j] = message.deny[j]; + } + return object; + }; + + /** + * Converts this ExamplesRestrictionsNamespace to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ExamplesRestrictionsNamespace + * @instance + * @returns {Object.} JSON object + */ + ExamplesRestrictionsNamespace.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ExamplesRestrictionsNamespace; + })(); + v1.ExplanationMetadata = (function() { /** @@ -13115,8 +14051,13 @@ * @memberof google.cloud.aiplatform.v1 * @interface IModel * @property {string|null} [name] Model name + * @property {string|null} [versionId] Model versionId + * @property {Array.|null} [versionAliases] Model versionAliases + * @property {google.protobuf.ITimestamp|null} [versionCreateTime] Model versionCreateTime + * @property {google.protobuf.ITimestamp|null} [versionUpdateTime] Model versionUpdateTime * @property {string|null} [displayName] Model displayName * @property {string|null} [description] Model description + * @property {string|null} [versionDescription] Model versionDescription * @property {google.cloud.aiplatform.v1.IPredictSchemata|null} [predictSchemata] Model predictSchemata * @property {string|null} [metadataSchemaUri] Model metadataSchemaUri * @property {google.protobuf.IValue|null} [metadata] Model metadata @@ -13145,6 +14086,7 @@ * @param {google.cloud.aiplatform.v1.IModel=} [properties] Properties to set */ function Model(properties) { + this.versionAliases = []; this.supportedExportFormats = []; this.supportedDeploymentResourcesTypes = []; this.supportedInputStorageFormats = []; @@ -13165,6 +14107,38 @@ */ Model.prototype.name = ""; + /** + * Model versionId. + * @member {string} versionId + * @memberof google.cloud.aiplatform.v1.Model + * @instance + */ + Model.prototype.versionId = ""; + + /** + * Model versionAliases. + * @member {Array.} versionAliases + * @memberof google.cloud.aiplatform.v1.Model + * @instance + */ + Model.prototype.versionAliases = $util.emptyArray; + + /** + * Model versionCreateTime. + * @member {google.protobuf.ITimestamp|null|undefined} versionCreateTime + * @memberof google.cloud.aiplatform.v1.Model + * @instance + */ + Model.prototype.versionCreateTime = null; + + /** + * Model versionUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} versionUpdateTime + * @memberof google.cloud.aiplatform.v1.Model + * @instance + */ + Model.prototype.versionUpdateTime = null; + /** * Model displayName. * @member {string} displayName @@ -13181,6 +14155,14 @@ */ Model.prototype.description = ""; + /** + * Model versionDescription. + * @member {string} versionDescription + * @memberof google.cloud.aiplatform.v1.Model + * @instance + */ + Model.prototype.versionDescription = ""; + /** * Model predictSchemata. * @member {google.cloud.aiplatform.v1.IPredictSchemata|null|undefined} predictSchemata @@ -13390,6 +14372,17 @@ $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); if (message.artifactUri != null && Object.hasOwnProperty.call(message, "artifactUri")) writer.uint32(/* id 26, wireType 2 =*/210).string(message.artifactUri); + if (message.versionId != null && Object.hasOwnProperty.call(message, "versionId")) + writer.uint32(/* id 28, wireType 2 =*/226).string(message.versionId); + if (message.versionAliases != null && message.versionAliases.length) + for (var i = 0; i < message.versionAliases.length; ++i) + writer.uint32(/* id 29, wireType 2 =*/234).string(message.versionAliases[i]); + if (message.versionDescription != null && Object.hasOwnProperty.call(message, "versionDescription")) + writer.uint32(/* id 30, wireType 2 =*/242).string(message.versionDescription); + if (message.versionCreateTime != null && Object.hasOwnProperty.call(message, "versionCreateTime")) + $root.google.protobuf.Timestamp.encode(message.versionCreateTime, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); + if (message.versionUpdateTime != null && Object.hasOwnProperty.call(message, "versionUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.versionUpdateTime, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); return writer; }; @@ -13427,12 +14420,29 @@ case 1: message.name = reader.string(); break; + case 28: + message.versionId = reader.string(); + break; + case 29: + if (!(message.versionAliases && message.versionAliases.length)) + message.versionAliases = []; + message.versionAliases.push(reader.string()); + break; + case 31: + message.versionCreateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 32: + message.versionUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; case 2: message.displayName = reader.string(); break; case 3: message.description = reader.string(); break; + case 30: + message.versionDescription = reader.string(); + break; case 4: message.predictSchemata = $root.google.cloud.aiplatform.v1.PredictSchemata.decode(reader, reader.uint32()); break; @@ -13556,12 +14566,35 @@ if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.versionId != null && message.hasOwnProperty("versionId")) + if (!$util.isString(message.versionId)) + return "versionId: string expected"; + if (message.versionAliases != null && message.hasOwnProperty("versionAliases")) { + if (!Array.isArray(message.versionAliases)) + return "versionAliases: array expected"; + for (var i = 0; i < message.versionAliases.length; ++i) + if (!$util.isString(message.versionAliases[i])) + return "versionAliases: string[] expected"; + } + if (message.versionCreateTime != null && message.hasOwnProperty("versionCreateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.versionCreateTime); + if (error) + return "versionCreateTime." + error; + } + if (message.versionUpdateTime != null && message.hasOwnProperty("versionUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.versionUpdateTime); + if (error) + return "versionUpdateTime." + error; + } if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; if (message.description != null && message.hasOwnProperty("description")) if (!$util.isString(message.description)) return "description: string expected"; + if (message.versionDescription != null && message.hasOwnProperty("versionDescription")) + if (!$util.isString(message.versionDescription)) + return "versionDescription: string expected"; if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) { var error = $root.google.cloud.aiplatform.v1.PredictSchemata.verify(message.predictSchemata); if (error) @@ -13679,10 +14712,31 @@ var message = new $root.google.cloud.aiplatform.v1.Model(); if (object.name != null) message.name = String(object.name); + if (object.versionId != null) + message.versionId = String(object.versionId); + if (object.versionAliases) { + if (!Array.isArray(object.versionAliases)) + throw TypeError(".google.cloud.aiplatform.v1.Model.versionAliases: array expected"); + message.versionAliases = []; + for (var i = 0; i < object.versionAliases.length; ++i) + message.versionAliases[i] = String(object.versionAliases[i]); + } + if (object.versionCreateTime != null) { + if (typeof object.versionCreateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Model.versionCreateTime: object expected"); + message.versionCreateTime = $root.google.protobuf.Timestamp.fromObject(object.versionCreateTime); + } + if (object.versionUpdateTime != null) { + if (typeof object.versionUpdateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.Model.versionUpdateTime: object expected"); + message.versionUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.versionUpdateTime); + } if (object.displayName != null) message.displayName = String(object.displayName); if (object.description != null) message.description = String(object.description); + if (object.versionDescription != null) + message.versionDescription = String(object.versionDescription); if (object.predictSchemata != null) { if (typeof object.predictSchemata !== "object") throw TypeError(".google.cloud.aiplatform.v1.Model.predictSchemata: object expected"); @@ -13810,6 +14864,7 @@ object.supportedOutputStorageFormats = []; object.deployedModels = []; object.supportedExportFormats = []; + object.versionAliases = []; } if (options.objects || options.defaults) object.labels = {}; @@ -13828,6 +14883,10 @@ object.explanationSpec = null; object.encryptionSpec = null; object.artifactUri = ""; + object.versionId = ""; + object.versionDescription = ""; + object.versionCreateTime = null; + object.versionUpdateTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -13888,6 +14947,19 @@ object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) object.artifactUri = message.artifactUri; + if (message.versionId != null && message.hasOwnProperty("versionId")) + object.versionId = message.versionId; + if (message.versionAliases && message.versionAliases.length) { + object.versionAliases = []; + for (var j = 0; j < message.versionAliases.length; ++j) + object.versionAliases[j] = message.versionAliases[j]; + } + if (message.versionDescription != null && message.hasOwnProperty("versionDescription")) + object.versionDescription = message.versionDescription; + if (message.versionCreateTime != null && message.hasOwnProperty("versionCreateTime")) + object.versionCreateTime = $root.google.protobuf.Timestamp.toObject(message.versionCreateTime, options); + if (message.versionUpdateTime != null && message.hasOwnProperty("versionUpdateTime")) + object.versionUpdateTime = $root.google.protobuf.Timestamp.toObject(message.versionUpdateTime, options); return object; }; @@ -21287,6 +22359,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.DatasetService#listSavedQueries}. + * @memberof google.cloud.aiplatform.v1.DatasetService + * @typedef ListSavedQueriesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListSavedQueriesResponse} [response] ListSavedQueriesResponse + */ + + /** + * Calls ListSavedQueries. + * @function listSavedQueries + * @memberof google.cloud.aiplatform.v1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1.IListSavedQueriesRequest} request ListSavedQueriesRequest message or plain object + * @param {google.cloud.aiplatform.v1.DatasetService.ListSavedQueriesCallback} callback Node-style callback called with the error, if any, and ListSavedQueriesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.listSavedQueries = function listSavedQueries(request, callback) { + return this.rpcCall(listSavedQueries, $root.google.cloud.aiplatform.v1.ListSavedQueriesRequest, $root.google.cloud.aiplatform.v1.ListSavedQueriesResponse, request, callback); + }, "name", { value: "ListSavedQueries" }); + + /** + * Calls ListSavedQueries. + * @function listSavedQueries + * @memberof google.cloud.aiplatform.v1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1.IListSavedQueriesRequest} request ListSavedQueriesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1.DatasetService#getAnnotationSpec}. * @memberof google.cloud.aiplatform.v1.DatasetService @@ -24669,244 +25774,29 @@ return ListDataItemsResponse; })(); - v1.GetAnnotationSpecRequest = (function() { - - /** - * Properties of a GetAnnotationSpecRequest. - * @memberof google.cloud.aiplatform.v1 - * @interface IGetAnnotationSpecRequest - * @property {string|null} [name] GetAnnotationSpecRequest name - * @property {google.protobuf.IFieldMask|null} [readMask] GetAnnotationSpecRequest readMask - */ - - /** - * Constructs a new GetAnnotationSpecRequest. - * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a GetAnnotationSpecRequest. - * @implements IGetAnnotationSpecRequest - * @constructor - * @param {google.cloud.aiplatform.v1.IGetAnnotationSpecRequest=} [properties] Properties to set - */ - function GetAnnotationSpecRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * GetAnnotationSpecRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @instance - */ - GetAnnotationSpecRequest.prototype.name = ""; - - /** - * GetAnnotationSpecRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @instance - */ - GetAnnotationSpecRequest.prototype.readMask = null; - - /** - * Creates a new GetAnnotationSpecRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetAnnotationSpecRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.GetAnnotationSpecRequest} GetAnnotationSpecRequest instance - */ - GetAnnotationSpecRequest.create = function create(properties) { - return new GetAnnotationSpecRequest(properties); - }; - - /** - * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetAnnotationSpecRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetAnnotationSpecRequest} message GetAnnotationSpecRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAnnotationSpecRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetAnnotationSpecRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @static - * @param {google.cloud.aiplatform.v1.IGetAnnotationSpecRequest} message GetAnnotationSpecRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - GetAnnotationSpecRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.GetAnnotationSpecRequest} GetAnnotationSpecRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAnnotationSpecRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetAnnotationSpecRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1.GetAnnotationSpecRequest} GetAnnotationSpecRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - GetAnnotationSpecRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a GetAnnotationSpecRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - GetAnnotationSpecRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - return null; - }; - - /** - * Creates a GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1.GetAnnotationSpecRequest} GetAnnotationSpecRequest - */ - GetAnnotationSpecRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1.GetAnnotationSpecRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1.GetAnnotationSpecRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1.GetAnnotationSpecRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - return message; - }; - - /** - * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @static - * @param {google.cloud.aiplatform.v1.GetAnnotationSpecRequest} message GetAnnotationSpecRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - GetAnnotationSpecRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.readMask = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - return object; - }; - - /** - * Converts this GetAnnotationSpecRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest - * @instance - * @returns {Object.} JSON object - */ - GetAnnotationSpecRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return GetAnnotationSpecRequest; - })(); - - v1.ListAnnotationsRequest = (function() { + v1.ListSavedQueriesRequest = (function() { /** - * Properties of a ListAnnotationsRequest. + * Properties of a ListSavedQueriesRequest. * @memberof google.cloud.aiplatform.v1 - * @interface IListAnnotationsRequest - * @property {string|null} [parent] ListAnnotationsRequest parent - * @property {string|null} [filter] ListAnnotationsRequest filter - * @property {number|null} [pageSize] ListAnnotationsRequest pageSize - * @property {string|null} [pageToken] ListAnnotationsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListAnnotationsRequest readMask - * @property {string|null} [orderBy] ListAnnotationsRequest orderBy + * @interface IListSavedQueriesRequest + * @property {string|null} [parent] ListSavedQueriesRequest parent + * @property {string|null} [filter] ListSavedQueriesRequest filter + * @property {number|null} [pageSize] ListSavedQueriesRequest pageSize + * @property {string|null} [pageToken] ListSavedQueriesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListSavedQueriesRequest readMask + * @property {string|null} [orderBy] ListSavedQueriesRequest orderBy */ /** - * Constructs a new ListAnnotationsRequest. + * Constructs a new ListSavedQueriesRequest. * @memberof google.cloud.aiplatform.v1 - * @classdesc Represents a ListAnnotationsRequest. - * @implements IListAnnotationsRequest + * @classdesc Represents a ListSavedQueriesRequest. + * @implements IListSavedQueriesRequest * @constructor - * @param {google.cloud.aiplatform.v1.IListAnnotationsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1.IListSavedQueriesRequest=} [properties] Properties to set */ - function ListAnnotationsRequest(properties) { + function ListSavedQueriesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -24914,75 +25804,75 @@ } /** - * ListAnnotationsRequest parent. + * ListSavedQueriesRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest * @instance */ - ListAnnotationsRequest.prototype.parent = ""; + ListSavedQueriesRequest.prototype.parent = ""; /** - * ListAnnotationsRequest filter. + * ListSavedQueriesRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest * @instance */ - ListAnnotationsRequest.prototype.filter = ""; + ListSavedQueriesRequest.prototype.filter = ""; /** - * ListAnnotationsRequest pageSize. + * ListSavedQueriesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest * @instance */ - ListAnnotationsRequest.prototype.pageSize = 0; + ListSavedQueriesRequest.prototype.pageSize = 0; /** - * ListAnnotationsRequest pageToken. + * ListSavedQueriesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest * @instance */ - ListAnnotationsRequest.prototype.pageToken = ""; + ListSavedQueriesRequest.prototype.pageToken = ""; /** - * ListAnnotationsRequest readMask. + * ListSavedQueriesRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest * @instance */ - ListAnnotationsRequest.prototype.readMask = null; + ListSavedQueriesRequest.prototype.readMask = null; /** - * ListAnnotationsRequest orderBy. + * ListSavedQueriesRequest orderBy. * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest * @instance */ - ListAnnotationsRequest.prototype.orderBy = ""; + ListSavedQueriesRequest.prototype.orderBy = ""; /** - * Creates a new ListAnnotationsRequest instance using the specified properties. + * Creates a new ListSavedQueriesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest * @static - * @param {google.cloud.aiplatform.v1.IListAnnotationsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1.ListAnnotationsRequest} ListAnnotationsRequest instance + * @param {google.cloud.aiplatform.v1.IListSavedQueriesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListSavedQueriesRequest} ListSavedQueriesRequest instance */ - ListAnnotationsRequest.create = function create(properties) { - return new ListAnnotationsRequest(properties); + ListSavedQueriesRequest.create = function create(properties) { + return new ListSavedQueriesRequest(properties); }; /** - * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListAnnotationsRequest.verify|verify} messages. + * Encodes the specified ListSavedQueriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSavedQueriesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest * @static - * @param {google.cloud.aiplatform.v1.IListAnnotationsRequest} message ListAnnotationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListSavedQueriesRequest} message ListSavedQueriesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAnnotationsRequest.encode = function encode(message, writer) { + ListSavedQueriesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -25001,33 +25891,782 @@ }; /** - * Encodes the specified ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListAnnotationsRequest.verify|verify} messages. + * Encodes the specified ListSavedQueriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSavedQueriesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest * @static - * @param {google.cloud.aiplatform.v1.IListAnnotationsRequest} message ListAnnotationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1.IListSavedQueriesRequest} message ListSavedQueriesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAnnotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListSavedQueriesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer. + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1.ListAnnotationsRequest} ListAnnotationsRequest + * @returns {google.cloud.aiplatform.v1.ListSavedQueriesRequest} ListSavedQueriesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAnnotationsRequest.decode = function decode(reader, length) { + ListSavedQueriesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListAnnotationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListSavedQueriesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 6: + message.orderBy = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListSavedQueriesRequest} ListSavedQueriesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSavedQueriesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListSavedQueriesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSavedQueriesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + return null; + }; + + /** + * Creates a ListSavedQueriesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListSavedQueriesRequest} ListSavedQueriesRequest + */ + ListSavedQueriesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListSavedQueriesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListSavedQueriesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListSavedQueriesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + return message; + }; + + /** + * Creates a plain object from a ListSavedQueriesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest + * @static + * @param {google.cloud.aiplatform.v1.ListSavedQueriesRequest} message ListSavedQueriesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSavedQueriesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + return object; + }; + + /** + * Converts this ListSavedQueriesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesRequest + * @instance + * @returns {Object.} JSON object + */ + ListSavedQueriesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListSavedQueriesRequest; + })(); + + v1.ListSavedQueriesResponse = (function() { + + /** + * Properties of a ListSavedQueriesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListSavedQueriesResponse + * @property {Array.|null} [savedQueries] ListSavedQueriesResponse savedQueries + * @property {string|null} [nextPageToken] ListSavedQueriesResponse nextPageToken + */ + + /** + * Constructs a new ListSavedQueriesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListSavedQueriesResponse. + * @implements IListSavedQueriesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListSavedQueriesResponse=} [properties] Properties to set + */ + function ListSavedQueriesResponse(properties) { + this.savedQueries = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListSavedQueriesResponse savedQueries. + * @member {Array.} savedQueries + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @instance + */ + ListSavedQueriesResponse.prototype.savedQueries = $util.emptyArray; + + /** + * ListSavedQueriesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @instance + */ + ListSavedQueriesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListSavedQueriesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListSavedQueriesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListSavedQueriesResponse} ListSavedQueriesResponse instance + */ + ListSavedQueriesResponse.create = function create(properties) { + return new ListSavedQueriesResponse(properties); + }; + + /** + * Encodes the specified ListSavedQueriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListSavedQueriesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListSavedQueriesResponse} message ListSavedQueriesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSavedQueriesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.savedQueries != null && message.savedQueries.length) + for (var i = 0; i < message.savedQueries.length; ++i) + $root.google.cloud.aiplatform.v1.SavedQuery.encode(message.savedQueries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListSavedQueriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListSavedQueriesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @static + * @param {google.cloud.aiplatform.v1.IListSavedQueriesResponse} message ListSavedQueriesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListSavedQueriesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListSavedQueriesResponse} ListSavedQueriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSavedQueriesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListSavedQueriesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.savedQueries && message.savedQueries.length)) + message.savedQueries = []; + message.savedQueries.push($root.google.cloud.aiplatform.v1.SavedQuery.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListSavedQueriesResponse} ListSavedQueriesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListSavedQueriesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListSavedQueriesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListSavedQueriesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.savedQueries != null && message.hasOwnProperty("savedQueries")) { + if (!Array.isArray(message.savedQueries)) + return "savedQueries: array expected"; + for (var i = 0; i < message.savedQueries.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.SavedQuery.verify(message.savedQueries[i]); + if (error) + return "savedQueries." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListSavedQueriesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListSavedQueriesResponse} ListSavedQueriesResponse + */ + ListSavedQueriesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListSavedQueriesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListSavedQueriesResponse(); + if (object.savedQueries) { + if (!Array.isArray(object.savedQueries)) + throw TypeError(".google.cloud.aiplatform.v1.ListSavedQueriesResponse.savedQueries: array expected"); + message.savedQueries = []; + for (var i = 0; i < object.savedQueries.length; ++i) { + if (typeof object.savedQueries[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListSavedQueriesResponse.savedQueries: object expected"); + message.savedQueries[i] = $root.google.cloud.aiplatform.v1.SavedQuery.fromObject(object.savedQueries[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListSavedQueriesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @static + * @param {google.cloud.aiplatform.v1.ListSavedQueriesResponse} message ListSavedQueriesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListSavedQueriesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.savedQueries = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.savedQueries && message.savedQueries.length) { + object.savedQueries = []; + for (var j = 0; j < message.savedQueries.length; ++j) + object.savedQueries[j] = $root.google.cloud.aiplatform.v1.SavedQuery.toObject(message.savedQueries[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListSavedQueriesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListSavedQueriesResponse + * @instance + * @returns {Object.} JSON object + */ + ListSavedQueriesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListSavedQueriesResponse; + })(); + + v1.GetAnnotationSpecRequest = (function() { + + /** + * Properties of a GetAnnotationSpecRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IGetAnnotationSpecRequest + * @property {string|null} [name] GetAnnotationSpecRequest name + * @property {google.protobuf.IFieldMask|null} [readMask] GetAnnotationSpecRequest readMask + */ + + /** + * Constructs a new GetAnnotationSpecRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a GetAnnotationSpecRequest. + * @implements IGetAnnotationSpecRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IGetAnnotationSpecRequest=} [properties] Properties to set + */ + function GetAnnotationSpecRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetAnnotationSpecRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @instance + */ + GetAnnotationSpecRequest.prototype.name = ""; + + /** + * GetAnnotationSpecRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @instance + */ + GetAnnotationSpecRequest.prototype.readMask = null; + + /** + * Creates a new GetAnnotationSpecRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetAnnotationSpecRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.GetAnnotationSpecRequest} GetAnnotationSpecRequest instance + */ + GetAnnotationSpecRequest.create = function create(properties) { + return new GetAnnotationSpecRequest(properties); + }; + + /** + * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.GetAnnotationSpecRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetAnnotationSpecRequest} message GetAnnotationSpecRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAnnotationSpecRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.GetAnnotationSpecRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @static + * @param {google.cloud.aiplatform.v1.IGetAnnotationSpecRequest} message GetAnnotationSpecRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetAnnotationSpecRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.GetAnnotationSpecRequest} GetAnnotationSpecRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAnnotationSpecRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.GetAnnotationSpecRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.GetAnnotationSpecRequest} GetAnnotationSpecRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetAnnotationSpecRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetAnnotationSpecRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetAnnotationSpecRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; + + /** + * Creates a GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.GetAnnotationSpecRequest} GetAnnotationSpecRequest + */ + GetAnnotationSpecRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.GetAnnotationSpecRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.GetAnnotationSpecRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.GetAnnotationSpecRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; + + /** + * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @static + * @param {google.cloud.aiplatform.v1.GetAnnotationSpecRequest} message GetAnnotationSpecRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetAnnotationSpecRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.readMask = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; + + /** + * Converts this GetAnnotationSpecRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.GetAnnotationSpecRequest + * @instance + * @returns {Object.} JSON object + */ + GetAnnotationSpecRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetAnnotationSpecRequest; + })(); + + v1.ListAnnotationsRequest = (function() { + + /** + * Properties of a ListAnnotationsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListAnnotationsRequest + * @property {string|null} [parent] ListAnnotationsRequest parent + * @property {string|null} [filter] ListAnnotationsRequest filter + * @property {number|null} [pageSize] ListAnnotationsRequest pageSize + * @property {string|null} [pageToken] ListAnnotationsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListAnnotationsRequest readMask + * @property {string|null} [orderBy] ListAnnotationsRequest orderBy + */ + + /** + * Constructs a new ListAnnotationsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListAnnotationsRequest. + * @implements IListAnnotationsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListAnnotationsRequest=} [properties] Properties to set + */ + function ListAnnotationsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListAnnotationsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @instance + */ + ListAnnotationsRequest.prototype.parent = ""; + + /** + * ListAnnotationsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @instance + */ + ListAnnotationsRequest.prototype.filter = ""; + + /** + * ListAnnotationsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @instance + */ + ListAnnotationsRequest.prototype.pageSize = 0; + + /** + * ListAnnotationsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @instance + */ + ListAnnotationsRequest.prototype.pageToken = ""; + + /** + * ListAnnotationsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @instance + */ + ListAnnotationsRequest.prototype.readMask = null; + + /** + * ListAnnotationsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @instance + */ + ListAnnotationsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListAnnotationsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListAnnotationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListAnnotationsRequest} ListAnnotationsRequest instance + */ + ListAnnotationsRequest.create = function create(properties) { + return new ListAnnotationsRequest(properties); + }; + + /** + * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListAnnotationsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListAnnotationsRequest} message ListAnnotationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAnnotationsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + return writer; + }; + + /** + * Encodes the specified ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListAnnotationsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListAnnotationsRequest} message ListAnnotationsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListAnnotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListAnnotationsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListAnnotationsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListAnnotationsRequest} ListAnnotationsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListAnnotationsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListAnnotationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -25874,6 +27513,407 @@ return DeleteOperationMetadata; })(); + v1.SavedQuery = (function() { + + /** + * Properties of a SavedQuery. + * @memberof google.cloud.aiplatform.v1 + * @interface ISavedQuery + * @property {string|null} [name] SavedQuery name + * @property {string|null} [displayName] SavedQuery displayName + * @property {google.protobuf.IValue|null} [metadata] SavedQuery metadata + * @property {google.protobuf.ITimestamp|null} [createTime] SavedQuery createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] SavedQuery updateTime + * @property {string|null} [annotationFilter] SavedQuery annotationFilter + * @property {string|null} [problemType] SavedQuery problemType + * @property {number|null} [annotationSpecCount] SavedQuery annotationSpecCount + * @property {string|null} [etag] SavedQuery etag + * @property {boolean|null} [supportAutomlTraining] SavedQuery supportAutomlTraining + */ + + /** + * Constructs a new SavedQuery. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a SavedQuery. + * @implements ISavedQuery + * @constructor + * @param {google.cloud.aiplatform.v1.ISavedQuery=} [properties] Properties to set + */ + function SavedQuery(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SavedQuery name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + */ + SavedQuery.prototype.name = ""; + + /** + * SavedQuery displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + */ + SavedQuery.prototype.displayName = ""; + + /** + * SavedQuery metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + */ + SavedQuery.prototype.metadata = null; + + /** + * SavedQuery createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + */ + SavedQuery.prototype.createTime = null; + + /** + * SavedQuery updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + */ + SavedQuery.prototype.updateTime = null; + + /** + * SavedQuery annotationFilter. + * @member {string} annotationFilter + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + */ + SavedQuery.prototype.annotationFilter = ""; + + /** + * SavedQuery problemType. + * @member {string} problemType + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + */ + SavedQuery.prototype.problemType = ""; + + /** + * SavedQuery annotationSpecCount. + * @member {number} annotationSpecCount + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + */ + SavedQuery.prototype.annotationSpecCount = 0; + + /** + * SavedQuery etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + */ + SavedQuery.prototype.etag = ""; + + /** + * SavedQuery supportAutomlTraining. + * @member {boolean} supportAutomlTraining + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + */ + SavedQuery.prototype.supportAutomlTraining = false; + + /** + * Creates a new SavedQuery instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @static + * @param {google.cloud.aiplatform.v1.ISavedQuery=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.SavedQuery} SavedQuery instance + */ + SavedQuery.create = function create(properties) { + return new SavedQuery(properties); + }; + + /** + * Encodes the specified SavedQuery message. Does not implicitly {@link google.cloud.aiplatform.v1.SavedQuery.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @static + * @param {google.cloud.aiplatform.v1.ISavedQuery} message SavedQuery message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SavedQuery.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.annotationFilter != null && Object.hasOwnProperty.call(message, "annotationFilter")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.annotationFilter); + if (message.problemType != null && Object.hasOwnProperty.call(message, "problemType")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.problemType); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); + if (message.supportAutomlTraining != null && Object.hasOwnProperty.call(message, "supportAutomlTraining")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.supportAutomlTraining); + if (message.annotationSpecCount != null && Object.hasOwnProperty.call(message, "annotationSpecCount")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.annotationSpecCount); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SavedQuery message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.SavedQuery.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @static + * @param {google.cloud.aiplatform.v1.ISavedQuery} message SavedQuery message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SavedQuery.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SavedQuery message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.SavedQuery} SavedQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SavedQuery.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.SavedQuery(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 12: + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.annotationFilter = reader.string(); + break; + case 6: + message.problemType = reader.string(); + break; + case 10: + message.annotationSpecCount = reader.int32(); + break; + case 8: + message.etag = reader.string(); + break; + case 9: + message.supportAutomlTraining = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SavedQuery message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.SavedQuery} SavedQuery + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SavedQuery.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SavedQuery message. + * @function verify + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SavedQuery.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.annotationFilter != null && message.hasOwnProperty("annotationFilter")) + if (!$util.isString(message.annotationFilter)) + return "annotationFilter: string expected"; + if (message.problemType != null && message.hasOwnProperty("problemType")) + if (!$util.isString(message.problemType)) + return "problemType: string expected"; + if (message.annotationSpecCount != null && message.hasOwnProperty("annotationSpecCount")) + if (!$util.isInteger(message.annotationSpecCount)) + return "annotationSpecCount: integer expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.supportAutomlTraining != null && message.hasOwnProperty("supportAutomlTraining")) + if (typeof message.supportAutomlTraining !== "boolean") + return "supportAutomlTraining: boolean expected"; + return null; + }; + + /** + * Creates a SavedQuery message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.SavedQuery} SavedQuery + */ + SavedQuery.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.SavedQuery) + return object; + var message = new $root.google.cloud.aiplatform.v1.SavedQuery(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SavedQuery.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SavedQuery.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1.SavedQuery.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.annotationFilter != null) + message.annotationFilter = String(object.annotationFilter); + if (object.problemType != null) + message.problemType = String(object.problemType); + if (object.annotationSpecCount != null) + message.annotationSpecCount = object.annotationSpecCount | 0; + if (object.etag != null) + message.etag = String(object.etag); + if (object.supportAutomlTraining != null) + message.supportAutomlTraining = Boolean(object.supportAutomlTraining); + return message; + }; + + /** + * Creates a plain object from a SavedQuery message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @static + * @param {google.cloud.aiplatform.v1.SavedQuery} message SavedQuery + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SavedQuery.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.createTime = null; + object.updateTime = null; + object.annotationFilter = ""; + object.problemType = ""; + object.etag = ""; + object.supportAutomlTraining = false; + object.annotationSpecCount = 0; + object.metadata = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.annotationFilter != null && message.hasOwnProperty("annotationFilter")) + object.annotationFilter = message.annotationFilter; + if (message.problemType != null && message.hasOwnProperty("problemType")) + object.problemType = message.problemType; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.supportAutomlTraining != null && message.hasOwnProperty("supportAutomlTraining")) + object.supportAutomlTraining = message.supportAutomlTraining; + if (message.annotationSpecCount != null && message.hasOwnProperty("annotationSpecCount")) + object.annotationSpecCount = message.annotationSpecCount; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); + return object; + }; + + /** + * Converts this SavedQuery to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.SavedQuery + * @instance + * @returns {Object.} JSON object + */ + SavedQuery.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SavedQuery; + })(); + v1.DeployedIndexRef = (function() { /** @@ -26681,6 +28721,7 @@ * @property {google.cloud.aiplatform.v1.IAutomaticResources|null} [automaticResources] DeployedModel automaticResources * @property {string|null} [id] DeployedModel id * @property {string|null} [model] DeployedModel model + * @property {string|null} [modelVersionId] DeployedModel modelVersionId * @property {string|null} [displayName] DeployedModel displayName * @property {google.protobuf.ITimestamp|null} [createTime] DeployedModel createTime * @property {google.cloud.aiplatform.v1.IExplanationSpec|null} [explanationSpec] DeployedModel explanationSpec @@ -26737,6 +28778,14 @@ */ DeployedModel.prototype.model = ""; + /** + * DeployedModel modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.DeployedModel + * @instance + */ + DeployedModel.prototype.modelVersionId = ""; + /** * DeployedModel displayName. * @member {string} displayName @@ -26853,6 +28902,8 @@ $root.google.cloud.aiplatform.v1.PrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); if (message.disableContainerLogging != null && Object.hasOwnProperty.call(message, "disableContainerLogging")) writer.uint32(/* id 15, wireType 0 =*/120).bool(message.disableContainerLogging); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.modelVersionId); return writer; }; @@ -26899,6 +28950,9 @@ case 2: message.model = reader.string(); break; + case 18: + message.modelVersionId = reader.string(); + break; case 3: message.displayName = reader.string(); break; @@ -26980,6 +29034,9 @@ if (message.model != null && message.hasOwnProperty("model")) if (!$util.isString(message.model)) return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; @@ -27036,6 +29093,8 @@ message.id = String(object.id); if (object.model != null) message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); if (object.displayName != null) message.displayName = String(object.displayName); if (object.createTime != null) { @@ -27085,6 +29144,7 @@ object.enableAccessLogging = false; object.privateEndpoints = null; object.disableContainerLogging = false; + object.modelVersionId = ""; } if (message.id != null && message.hasOwnProperty("id")) object.id = message.id; @@ -27114,6 +29174,8 @@ object.privateEndpoints = $root.google.cloud.aiplatform.v1.PrivateEndpoints.toObject(message.privateEndpoints, options); if (message.disableContainerLogging != null && message.hasOwnProperty("disableContainerLogging")) object.disableContainerLogging = message.disableContainerLogging; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; return object; }; @@ -74862,6 +76924,7 @@ * @memberof google.cloud.aiplatform.v1 * @interface IModelDeploymentMonitoringScheduleConfig * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval + * @property {google.protobuf.IDuration|null} [monitorWindow] ModelDeploymentMonitoringScheduleConfig monitorWindow */ /** @@ -74887,6 +76950,14 @@ */ ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; + /** + * ModelDeploymentMonitoringScheduleConfig monitorWindow. + * @member {google.protobuf.IDuration|null|undefined} monitorWindow + * @memberof google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig + * @instance + */ + ModelDeploymentMonitoringScheduleConfig.prototype.monitorWindow = null; + /** * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. * @function create @@ -74913,6 +76984,8 @@ writer = $Writer.create(); if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.monitorWindow != null && Object.hasOwnProperty.call(message, "monitorWindow")) + $root.google.protobuf.Duration.encode(message.monitorWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; @@ -74950,6 +77023,9 @@ case 1: message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; + case 2: + message.monitorWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -74990,6 +77066,11 @@ if (error) return "monitorInterval." + error; } + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) { + var error = $root.google.protobuf.Duration.verify(message.monitorWindow); + if (error) + return "monitorWindow." + error; + } return null; }; @@ -75010,6 +77091,11 @@ throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); } + if (object.monitorWindow != null) { + if (typeof object.monitorWindow !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelDeploymentMonitoringScheduleConfig.monitorWindow: object expected"); + message.monitorWindow = $root.google.protobuf.Duration.fromObject(object.monitorWindow); + } return message; }; @@ -75026,10 +77112,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.monitorInterval = null; + object.monitorWindow = null; + } if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) + object.monitorWindow = $root.google.protobuf.Duration.toObject(message.monitorWindow, options); return object; }; @@ -76262,6 +78352,7 @@ * @interface ITrainingPredictionSkewDetectionConfig * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultSkewThreshold] TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ /** @@ -76297,6 +78388,14 @@ */ TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; + /** + * TrainingPredictionSkewDetectionConfig defaultSkewThreshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultSkewThreshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.defaultSkewThreshold = null; + /** * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. * @function create @@ -76331,6 +78430,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } + if (message.defaultSkewThreshold != null && Object.hasOwnProperty.call(message, "defaultSkewThreshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultSkewThreshold, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; @@ -76409,6 +78510,9 @@ } message.attributionScoreSkewThresholds[key] = value; break; + case 6: + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -76464,6 +78568,11 @@ return "attributionScoreSkewThresholds." + error; } } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultSkewThreshold); + if (error) + return "defaultSkewThreshold." + error; + } return null; }; @@ -76499,6 +78608,11 @@ message.attributionScoreSkewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreSkewThresholds[keys[i]]); } } + if (object.defaultSkewThreshold != null) { + if (typeof object.defaultSkewThreshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.defaultSkewThreshold: object expected"); + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultSkewThreshold); + } return message; }; @@ -76519,6 +78633,8 @@ object.skewThresholds = {}; object.attributionScoreSkewThresholds = {}; } + if (options.defaults) + object.defaultSkewThreshold = null; var keys2; if (message.skewThresholds && (keys2 = Object.keys(message.skewThresholds)).length) { object.skewThresholds = {}; @@ -76530,6 +78646,8 @@ for (var j = 0; j < keys2.length; ++j) object.attributionScoreSkewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreSkewThresholds[keys2[j]], options); } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) + object.defaultSkewThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultSkewThreshold, options); return object; }; @@ -76555,6 +78673,7 @@ * @interface IPredictionDriftDetectionConfig * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds + * @property {google.cloud.aiplatform.v1.IThresholdConfig|null} [defaultDriftThreshold] PredictionDriftDetectionConfig defaultDriftThreshold */ /** @@ -76590,6 +78709,14 @@ */ PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; + /** + * PredictionDriftDetectionConfig defaultDriftThreshold. + * @member {google.cloud.aiplatform.v1.IThresholdConfig|null|undefined} defaultDriftThreshold + * @memberof google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.defaultDriftThreshold = null; + /** * Creates a new PredictionDriftDetectionConfig instance using the specified properties. * @function create @@ -76624,6 +78751,8 @@ writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.attributionScoreDriftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); } + if (message.defaultDriftThreshold != null && Object.hasOwnProperty.call(message, "defaultDriftThreshold")) + $root.google.cloud.aiplatform.v1.ThresholdConfig.encode(message.defaultDriftThreshold, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; @@ -76702,6 +78831,9 @@ } message.attributionScoreDriftThresholds[key] = value; break; + case 5: + message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -76757,6 +78889,11 @@ return "attributionScoreDriftThresholds." + error; } } + if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) { + var error = $root.google.cloud.aiplatform.v1.ThresholdConfig.verify(message.defaultDriftThreshold); + if (error) + return "defaultDriftThreshold." + error; + } return null; }; @@ -76792,6 +78929,11 @@ message.attributionScoreDriftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.attributionScoreDriftThresholds[keys[i]]); } } + if (object.defaultDriftThreshold != null) { + if (typeof object.defaultDriftThreshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.defaultDriftThreshold: object expected"); + message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.fromObject(object.defaultDriftThreshold); + } return message; }; @@ -76812,6 +78954,8 @@ object.driftThresholds = {}; object.attributionScoreDriftThresholds = {}; } + if (options.defaults) + object.defaultDriftThreshold = null; var keys2; if (message.driftThresholds && (keys2 = Object.keys(message.driftThresholds)).length) { object.driftThresholds = {}; @@ -76823,6 +78967,8 @@ for (var j = 0; j < keys2.length; ++j) object.attributionScoreDriftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.attributionScoreDriftThresholds[keys2[j]], options); } + if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) + object.defaultDriftThreshold = $root.google.cloud.aiplatform.v1.ThresholdConfig.toObject(message.defaultDriftThreshold, options); return object; }; @@ -96892,6 +99038,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#listModelVersions}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef ListModelVersionsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.ListModelVersionsResponse} [response] ListModelVersionsResponse + */ + + /** + * Calls ListModelVersions. + * @function listModelVersions + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.ListModelVersionsCallback} callback Node-style callback called with the error, if any, and ListModelVersionsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.listModelVersions = function listModelVersions(request, callback) { + return this.rpcCall(listModelVersions, $root.google.cloud.aiplatform.v1.ListModelVersionsRequest, $root.google.cloud.aiplatform.v1.ListModelVersionsResponse, request, callback); + }, "name", { value: "ListModelVersions" }); + + /** + * Calls ListModelVersions. + * @function listModelVersions + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} request ListModelVersionsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#updateModel}. * @memberof google.cloud.aiplatform.v1.ModelService @@ -96958,6 +99137,72 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#deleteModelVersion}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef DeleteModelVersionCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteModelVersion. + * @function deleteModelVersion + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.DeleteModelVersionCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.deleteModelVersion = function deleteModelVersion(request, callback) { + return this.rpcCall(deleteModelVersion, $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModelVersion" }); + + /** + * Calls DeleteModelVersion. + * @function deleteModelVersion + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} request DeleteModelVersionRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#mergeVersionAliases}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef MergeVersionAliasesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.Model} [response] Model + */ + + /** + * Calls MergeVersionAliases. + * @function mergeVersionAliases + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.MergeVersionAliasesCallback} callback Node-style callback called with the error, if any, and Model + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.mergeVersionAliases = function mergeVersionAliases(request, callback) { + return this.rpcCall(mergeVersionAliases, $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest, $root.google.cloud.aiplatform.v1.Model, request, callback); + }, "name", { value: "MergeVersionAliases" }); + + /** + * Calls MergeVersionAliases. + * @function mergeVersionAliases + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} request MergeVersionAliasesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#exportModel}. * @memberof google.cloud.aiplatform.v1.ModelService @@ -97024,6 +99269,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#batchImportModelEvaluationSlices}. + * @memberof google.cloud.aiplatform.v1.ModelService + * @typedef BatchImportModelEvaluationSlicesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} [response] BatchImportModelEvaluationSlicesResponse + */ + + /** + * Calls BatchImportModelEvaluationSlices. + * @function batchImportModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object + * @param {google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.batchImportModelEvaluationSlices = function batchImportModelEvaluationSlices(request, callback) { + return this.rpcCall(batchImportModelEvaluationSlices, $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse, request, callback); + }, "name", { value: "BatchImportModelEvaluationSlices" }); + + /** + * Calls BatchImportModelEvaluationSlices. + * @function batchImportModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1.ModelService#getModelEvaluation}. * @memberof google.cloud.aiplatform.v1.ModelService @@ -97166,6 +99444,8 @@ * @memberof google.cloud.aiplatform.v1 * @interface IUploadModelRequest * @property {string|null} [parent] UploadModelRequest parent + * @property {string|null} [parentModel] UploadModelRequest parentModel + * @property {string|null} [modelId] UploadModelRequest modelId * @property {google.cloud.aiplatform.v1.IModel|null} [model] UploadModelRequest model */ @@ -97192,6 +99472,22 @@ */ UploadModelRequest.prototype.parent = ""; + /** + * UploadModelRequest parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.parentModel = ""; + + /** + * UploadModelRequest modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1.UploadModelRequest + * @instance + */ + UploadModelRequest.prototype.modelId = ""; + /** * UploadModelRequest model. * @member {google.cloud.aiplatform.v1.IModel|null|undefined} model @@ -97228,6 +99524,10 @@ writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.model != null && Object.hasOwnProperty.call(message, "model")) $root.google.cloud.aiplatform.v1.Model.encode(message.model, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.parentModel); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelId); return writer; }; @@ -97265,6 +99565,12 @@ case 1: message.parent = reader.string(); break; + case 4: + message.parentModel = reader.string(); + break; + case 5: + message.modelId = reader.string(); + break; case 2: message.model = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); break; @@ -97306,6 +99612,12 @@ if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; + if (message.modelId != null && message.hasOwnProperty("modelId")) + if (!$util.isString(message.modelId)) + return "modelId: string expected"; if (message.model != null && message.hasOwnProperty("model")) { var error = $root.google.cloud.aiplatform.v1.Model.verify(message.model); if (error) @@ -97328,6 +99640,10 @@ var message = new $root.google.cloud.aiplatform.v1.UploadModelRequest(); if (object.parent != null) message.parent = String(object.parent); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); + if (object.modelId != null) + message.modelId = String(object.modelId); if (object.model != null) { if (typeof object.model !== "object") throw TypeError(".google.cloud.aiplatform.v1.UploadModelRequest.model: object expected"); @@ -97352,11 +99668,17 @@ if (options.defaults) { object.parent = ""; object.model = null; + object.parentModel = ""; + object.modelId = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; if (message.model != null && message.hasOwnProperty("model")) object.model = $root.google.cloud.aiplatform.v1.Model.toObject(message.model, options); + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + object.parentModel = message.parentModel; + if (message.modelId != null && message.hasOwnProperty("modelId")) + object.modelId = message.modelId; return object; }; @@ -97573,6 +99895,7 @@ * @memberof google.cloud.aiplatform.v1 * @interface IUploadModelResponse * @property {string|null} [model] UploadModelResponse model + * @property {string|null} [modelVersionId] UploadModelResponse modelVersionId */ /** @@ -97598,6 +99921,14 @@ */ UploadModelResponse.prototype.model = ""; + /** + * UploadModelResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.UploadModelResponse + * @instance + */ + UploadModelResponse.prototype.modelVersionId = ""; + /** * Creates a new UploadModelResponse instance using the specified properties. * @function create @@ -97624,6 +99955,8 @@ writer = $Writer.create(); if (message.model != null && Object.hasOwnProperty.call(message, "model")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.model); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.modelVersionId); return writer; }; @@ -97661,6 +99994,9 @@ case 1: message.model = reader.string(); break; + case 2: + message.modelVersionId = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -97699,6 +100035,9 @@ if (message.model != null && message.hasOwnProperty("model")) if (!$util.isString(message.model)) return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; return null; }; @@ -97716,6 +100055,8 @@ var message = new $root.google.cloud.aiplatform.v1.UploadModelResponse(); if (object.model != null) message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); return message; }; @@ -97732,10 +100073,14 @@ if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.model = ""; + object.modelVersionId = ""; + } if (message.model != null && message.hasOwnProperty("model")) object.model = message.model; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; return object; }; @@ -98474,6 +100819,518 @@ return ListModelsResponse; })(); + v1.ListModelVersionsRequest = (function() { + + /** + * Properties of a ListModelVersionsRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IListModelVersionsRequest + * @property {string|null} [name] ListModelVersionsRequest name + * @property {number|null} [pageSize] ListModelVersionsRequest pageSize + * @property {string|null} [pageToken] ListModelVersionsRequest pageToken + * @property {string|null} [filter] ListModelVersionsRequest filter + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelVersionsRequest readMask + */ + + /** + * Constructs a new ListModelVersionsRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListModelVersionsRequest. + * @implements IListModelVersionsRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest=} [properties] Properties to set + */ + function ListModelVersionsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListModelVersionsRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.name = ""; + + /** + * ListModelVersionsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.pageSize = 0; + + /** + * ListModelVersionsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.pageToken = ""; + + /** + * ListModelVersionsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.filter = ""; + + /** + * ListModelVersionsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + */ + ListModelVersionsRequest.prototype.readMask = null; + + /** + * Creates a new ListModelVersionsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest instance + */ + ListModelVersionsRequest.create = function create(properties) { + return new ListModelVersionsRequest(properties); + }; + + /** + * Encodes the specified ListModelVersionsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelVersionsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pageToken); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.filter); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListModelVersionsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @static + * @param {google.cloud.aiplatform.v1.IListModelVersionsRequest} message ListModelVersionsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelVersionsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListModelVersionsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelVersionsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelVersionsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.pageSize = reader.int32(); + break; + case 3: + message.pageToken = reader.string(); + break; + case 4: + message.filter = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListModelVersionsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelVersionsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListModelVersionsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListModelVersionsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; + + /** + * Creates a ListModelVersionsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListModelVersionsRequest} ListModelVersionsRequest + */ + ListModelVersionsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelVersionsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListModelVersionsRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.filter != null) + message.filter = String(object.filter); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; + + /** + * Creates a plain object from a ListModelVersionsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @static + * @param {google.cloud.aiplatform.v1.ListModelVersionsRequest} message ListModelVersionsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListModelVersionsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.pageSize = 0; + object.pageToken = ""; + object.filter = ""; + object.readMask = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; + + /** + * Converts this ListModelVersionsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListModelVersionsRequest + * @instance + * @returns {Object.} JSON object + */ + ListModelVersionsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListModelVersionsRequest; + })(); + + v1.ListModelVersionsResponse = (function() { + + /** + * Properties of a ListModelVersionsResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IListModelVersionsResponse + * @property {Array.|null} [models] ListModelVersionsResponse models + * @property {string|null} [nextPageToken] ListModelVersionsResponse nextPageToken + */ + + /** + * Constructs a new ListModelVersionsResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a ListModelVersionsResponse. + * @implements IListModelVersionsResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse=} [properties] Properties to set + */ + function ListModelVersionsResponse(properties) { + this.models = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListModelVersionsResponse models. + * @member {Array.} models + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @instance + */ + ListModelVersionsResponse.prototype.models = $util.emptyArray; + + /** + * ListModelVersionsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @instance + */ + ListModelVersionsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListModelVersionsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse instance + */ + ListModelVersionsResponse.create = function create(properties) { + return new ListModelVersionsResponse(properties); + }; + + /** + * Encodes the specified ListModelVersionsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelVersionsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.models != null && message.models.length) + for (var i = 0; i < message.models.length; ++i) + $root.google.cloud.aiplatform.v1.Model.encode(message.models[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListModelVersionsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @static + * @param {google.cloud.aiplatform.v1.IListModelVersionsResponse} message ListModelVersionsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelVersionsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListModelVersionsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelVersionsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.ListModelVersionsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.models && message.models.length)) + message.models = []; + message.models.push($root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListModelVersionsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelVersionsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListModelVersionsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListModelVersionsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.models != null && message.hasOwnProperty("models")) { + if (!Array.isArray(message.models)) + return "models: array expected"; + for (var i = 0; i < message.models.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.Model.verify(message.models[i]); + if (error) + return "models." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListModelVersionsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.ListModelVersionsResponse} ListModelVersionsResponse + */ + ListModelVersionsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.ListModelVersionsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.ListModelVersionsResponse(); + if (object.models) { + if (!Array.isArray(object.models)) + throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsResponse.models: array expected"); + message.models = []; + for (var i = 0; i < object.models.length; ++i) { + if (typeof object.models[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.ListModelVersionsResponse.models: object expected"); + message.models[i] = $root.google.cloud.aiplatform.v1.Model.fromObject(object.models[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListModelVersionsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @static + * @param {google.cloud.aiplatform.v1.ListModelVersionsResponse} message ListModelVersionsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListModelVersionsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.models = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.models && message.models.length) { + object.models = []; + for (var j = 0; j < message.models.length; ++j) + object.models[j] = $root.google.cloud.aiplatform.v1.Model.toObject(message.models[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListModelVersionsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.ListModelVersionsResponse + * @instance + * @returns {Object.} JSON object + */ + ListModelVersionsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListModelVersionsResponse; + })(); + v1.UpdateModelRequest = (function() { /** @@ -98881,6 +101738,419 @@ return DeleteModelRequest; })(); + v1.DeleteModelVersionRequest = (function() { + + /** + * Properties of a DeleteModelVersionRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IDeleteModelVersionRequest + * @property {string|null} [name] DeleteModelVersionRequest name + */ + + /** + * Constructs a new DeleteModelVersionRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a DeleteModelVersionRequest. + * @implements IDeleteModelVersionRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest=} [properties] Properties to set + */ + function DeleteModelVersionRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeleteModelVersionRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @instance + */ + DeleteModelVersionRequest.prototype.name = ""; + + /** + * Creates a new DeleteModelVersionRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest instance + */ + DeleteModelVersionRequest.create = function create(properties) { + return new DeleteModelVersionRequest(properties); + }; + + /** + * Encodes the specified DeleteModelVersionRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteModelVersionRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified DeleteModelVersionRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.DeleteModelVersionRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @static + * @param {google.cloud.aiplatform.v1.IDeleteModelVersionRequest} message DeleteModelVersionRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteModelVersionRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteModelVersionRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a DeleteModelVersionRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteModelVersionRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a DeleteModelVersionRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteModelVersionRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a DeleteModelVersionRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.DeleteModelVersionRequest} DeleteModelVersionRequest + */ + DeleteModelVersionRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.DeleteModelVersionRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a DeleteModelVersionRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @static + * @param {google.cloud.aiplatform.v1.DeleteModelVersionRequest} message DeleteModelVersionRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteModelVersionRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this DeleteModelVersionRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.DeleteModelVersionRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteModelVersionRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeleteModelVersionRequest; + })(); + + v1.MergeVersionAliasesRequest = (function() { + + /** + * Properties of a MergeVersionAliasesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IMergeVersionAliasesRequest + * @property {string|null} [name] MergeVersionAliasesRequest name + * @property {Array.|null} [versionAliases] MergeVersionAliasesRequest versionAliases + */ + + /** + * Constructs a new MergeVersionAliasesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a MergeVersionAliasesRequest. + * @implements IMergeVersionAliasesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest=} [properties] Properties to set + */ + function MergeVersionAliasesRequest(properties) { + this.versionAliases = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * MergeVersionAliasesRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @instance + */ + MergeVersionAliasesRequest.prototype.name = ""; + + /** + * MergeVersionAliasesRequest versionAliases. + * @member {Array.} versionAliases + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @instance + */ + MergeVersionAliasesRequest.prototype.versionAliases = $util.emptyArray; + + /** + * Creates a new MergeVersionAliasesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @static + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest instance + */ + MergeVersionAliasesRequest.create = function create(properties) { + return new MergeVersionAliasesRequest(properties); + }; + + /** + * Encodes the specified MergeVersionAliasesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @static + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MergeVersionAliasesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.versionAliases != null && message.versionAliases.length) + for (var i = 0; i < message.versionAliases.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.versionAliases[i]); + return writer; + }; + + /** + * Encodes the specified MergeVersionAliasesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.MergeVersionAliasesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @static + * @param {google.cloud.aiplatform.v1.IMergeVersionAliasesRequest} message MergeVersionAliasesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MergeVersionAliasesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MergeVersionAliasesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + if (!(message.versionAliases && message.versionAliases.length)) + message.versionAliases = []; + message.versionAliases.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a MergeVersionAliasesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MergeVersionAliasesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a MergeVersionAliasesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MergeVersionAliasesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.versionAliases != null && message.hasOwnProperty("versionAliases")) { + if (!Array.isArray(message.versionAliases)) + return "versionAliases: array expected"; + for (var i = 0; i < message.versionAliases.length; ++i) + if (!$util.isString(message.versionAliases[i])) + return "versionAliases: string[] expected"; + } + return null; + }; + + /** + * Creates a MergeVersionAliasesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} MergeVersionAliasesRequest + */ + MergeVersionAliasesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.MergeVersionAliasesRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.versionAliases) { + if (!Array.isArray(object.versionAliases)) + throw TypeError(".google.cloud.aiplatform.v1.MergeVersionAliasesRequest.versionAliases: array expected"); + message.versionAliases = []; + for (var i = 0; i < object.versionAliases.length; ++i) + message.versionAliases[i] = String(object.versionAliases[i]); + } + return message; + }; + + /** + * Creates a plain object from a MergeVersionAliasesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @static + * @param {google.cloud.aiplatform.v1.MergeVersionAliasesRequest} message MergeVersionAliasesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MergeVersionAliasesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.versionAliases = []; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.versionAliases && message.versionAliases.length) { + object.versionAliases = []; + for (var j = 0; j < message.versionAliases.length; ++j) + object.versionAliases[j] = message.versionAliases[j]; + } + return object; + }; + + /** + * Converts this MergeVersionAliasesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.MergeVersionAliasesRequest + * @instance + * @returns {Object.} JSON object + */ + MergeVersionAliasesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return MergeVersionAliasesRequest; + })(); + v1.ExportModelRequest = (function() { /** @@ -100143,6 +103413,440 @@ return ImportModelEvaluationRequest; })(); + v1.BatchImportModelEvaluationSlicesRequest = (function() { + + /** + * Properties of a BatchImportModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchImportModelEvaluationSlicesRequest + * @property {string|null} [parent] BatchImportModelEvaluationSlicesRequest parent + * @property {Array.|null} [modelEvaluationSlices] BatchImportModelEvaluationSlicesRequest modelEvaluationSlices + */ + + /** + * Constructs a new BatchImportModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchImportModelEvaluationSlicesRequest. + * @implements IBatchImportModelEvaluationSlicesRequest + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + */ + function BatchImportModelEvaluationSlicesRequest(properties) { + this.modelEvaluationSlices = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BatchImportModelEvaluationSlicesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @instance + */ + BatchImportModelEvaluationSlicesRequest.prototype.parent = ""; + + /** + * BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. + * @member {Array.} modelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @instance + */ + BatchImportModelEvaluationSlicesRequest.prototype.modelEvaluationSlices = $util.emptyArray; + + /** + * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest instance + */ + BatchImportModelEvaluationSlicesRequest.create = function create(properties) { + return new BatchImportModelEvaluationSlicesRequest(properties); + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) + $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) + message.modelEvaluationSlices = []; + message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1.ModelEvaluationSlice.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportModelEvaluationSlicesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportModelEvaluationSlicesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { + if (!Array.isArray(message.modelEvaluationSlices)) + return "modelEvaluationSlices: array expected"; + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { + var error = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); + if (error) + return "modelEvaluationSlices." + error; + } + } + return null; + }; + + /** + * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + */ + BatchImportModelEvaluationSlicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelEvaluationSlices) { + if (!Array.isArray(object.modelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: array expected"); + message.modelEvaluationSlices = []; + for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { + if (typeof object.modelEvaluationSlices[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: object expected"); + message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchImportModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.modelEvaluationSlices = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { + object.modelEvaluationSlices = []; + for (var j = 0; j < message.modelEvaluationSlices.length; ++j) + object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); + } + return object; + }; + + /** + * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest + * @instance + * @returns {Object.} JSON object + */ + BatchImportModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchImportModelEvaluationSlicesRequest; + })(); + + v1.BatchImportModelEvaluationSlicesResponse = (function() { + + /** + * Properties of a BatchImportModelEvaluationSlicesResponse. + * @memberof google.cloud.aiplatform.v1 + * @interface IBatchImportModelEvaluationSlicesResponse + * @property {Array.|null} [importedModelEvaluationSlices] BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices + */ + + /** + * Constructs a new BatchImportModelEvaluationSlicesResponse. + * @memberof google.cloud.aiplatform.v1 + * @classdesc Represents a BatchImportModelEvaluationSlicesResponse. + * @implements IBatchImportModelEvaluationSlicesResponse + * @constructor + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + */ + function BatchImportModelEvaluationSlicesResponse(properties) { + this.importedModelEvaluationSlices = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. + * @member {Array.} importedModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @instance + */ + BatchImportModelEvaluationSlicesResponse.prototype.importedModelEvaluationSlices = $util.emptyArray; + + /** + * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse instance + */ + BatchImportModelEvaluationSlicesResponse.create = function create(properties) { + return new BatchImportModelEvaluationSlicesResponse(properties); + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.importedModelEvaluationSlices != null && message.importedModelEvaluationSlices.length) + for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.importedModelEvaluationSlices[i]); + return writer; + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length)) + message.importedModelEvaluationSlices = []; + message.importedModelEvaluationSlices.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportModelEvaluationSlicesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportModelEvaluationSlicesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.importedModelEvaluationSlices != null && message.hasOwnProperty("importedModelEvaluationSlices")) { + if (!Array.isArray(message.importedModelEvaluationSlices)) + return "importedModelEvaluationSlices: array expected"; + for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) + if (!$util.isString(message.importedModelEvaluationSlices[i])) + return "importedModelEvaluationSlices: string[] expected"; + } + return null; + }; + + /** + * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + */ + BatchImportModelEvaluationSlicesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse(); + if (object.importedModelEvaluationSlices) { + if (!Array.isArray(object.importedModelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse.importedModelEvaluationSlices: array expected"); + message.importedModelEvaluationSlices = []; + for (var i = 0; i < object.importedModelEvaluationSlices.length; ++i) + message.importedModelEvaluationSlices[i] = String(object.importedModelEvaluationSlices[i]); + } + return message; + }; + + /** + * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchImportModelEvaluationSlicesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.importedModelEvaluationSlices = []; + if (message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length) { + object.importedModelEvaluationSlices = []; + for (var j = 0; j < message.importedModelEvaluationSlices.length; ++j) + object.importedModelEvaluationSlices[j] = message.importedModelEvaluationSlices[j]; + } + return object; + }; + + /** + * Converts this BatchImportModelEvaluationSlicesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse + * @instance + * @returns {Object.} JSON object + */ + BatchImportModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchImportModelEvaluationSlicesResponse; + })(); + v1.GetModelEvaluationRequest = (function() { /** @@ -108154,6 +111858,8 @@ * @property {google.protobuf.IValue|null} [trainingTaskInputs] TrainingPipeline trainingTaskInputs * @property {google.protobuf.IValue|null} [trainingTaskMetadata] TrainingPipeline trainingTaskMetadata * @property {google.cloud.aiplatform.v1.IModel|null} [modelToUpload] TrainingPipeline modelToUpload + * @property {string|null} [modelId] TrainingPipeline modelId + * @property {string|null} [parentModel] TrainingPipeline parentModel * @property {google.cloud.aiplatform.v1.PipelineState|null} [state] TrainingPipeline state * @property {google.rpc.IStatus|null} [error] TrainingPipeline error * @property {google.protobuf.ITimestamp|null} [createTime] TrainingPipeline createTime @@ -108236,6 +111942,22 @@ */ TrainingPipeline.prototype.modelToUpload = null; + /** + * TrainingPipeline modelId. + * @member {string} modelId + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.modelId = ""; + + /** + * TrainingPipeline parentModel. + * @member {string} parentModel + * @memberof google.cloud.aiplatform.v1.TrainingPipeline + * @instance + */ + TrainingPipeline.prototype.parentModel = ""; + /** * TrainingPipeline state. * @member {google.cloud.aiplatform.v1.PipelineState} state @@ -108355,6 +112077,10 @@ writer.uint32(/* id 15, wireType 2 =*/122).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) $root.google.cloud.aiplatform.v1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.parentModel != null && Object.hasOwnProperty.call(message, "parentModel")) + writer.uint32(/* id 21, wireType 2 =*/170).string(message.parentModel); + if (message.modelId != null && Object.hasOwnProperty.call(message, "modelId")) + writer.uint32(/* id 22, wireType 2 =*/178).string(message.modelId); return writer; }; @@ -108410,6 +112136,12 @@ case 7: message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.decode(reader, reader.uint32()); break; + case 22: + message.modelId = reader.string(); + break; + case 21: + message.parentModel = reader.string(); + break; case 9: message.state = reader.int32(); break; @@ -108517,6 +112249,12 @@ if (error) return "modelToUpload." + error; } + if (message.modelId != null && message.hasOwnProperty("modelId")) + if (!$util.isString(message.modelId)) + return "modelId: string expected"; + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + if (!$util.isString(message.parentModel)) + return "parentModel: string expected"; if (message.state != null && message.hasOwnProperty("state")) switch (message.state) { default: @@ -108611,6 +112349,10 @@ throw TypeError(".google.cloud.aiplatform.v1.TrainingPipeline.modelToUpload: object expected"); message.modelToUpload = $root.google.cloud.aiplatform.v1.Model.fromObject(object.modelToUpload); } + if (object.modelId != null) + message.modelId = String(object.modelId); + if (object.parentModel != null) + message.parentModel = String(object.parentModel); switch (object.state) { case "PIPELINE_STATE_UNSPECIFIED": case 0: @@ -108719,6 +112461,8 @@ object.endTime = null; object.updateTime = null; object.encryptionSpec = null; + object.parentModel = ""; + object.modelId = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -108754,6 +112498,10 @@ } if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.parentModel != null && message.hasOwnProperty("parentModel")) + object.parentModel = message.parentModel; + if (message.modelId != null && message.hasOwnProperty("modelId")) + object.modelId = message.modelId; return object; }; @@ -108787,6 +112535,7 @@ * @property {string|null} [datasetId] InputDataConfig datasetId * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri + * @property {string|null} [savedQueryId] InputDataConfig savedQueryId */ /** @@ -108884,6 +112633,14 @@ */ InputDataConfig.prototype.annotationSchemaUri = ""; + /** + * InputDataConfig savedQueryId. + * @member {string} savedQueryId + * @memberof google.cloud.aiplatform.v1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.savedQueryId = ""; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -108945,6 +112702,8 @@ $root.google.cloud.aiplatform.v1.TimestampSplit.encode(message.timestampSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.annotationsFilter); + if (message.savedQueryId != null && Object.hasOwnProperty.call(message, "savedQueryId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.savedQueryId); if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) $root.google.cloud.aiplatform.v1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) @@ -109017,6 +112776,9 @@ case 9: message.annotationSchemaUri = reader.string(); break; + case 7: + message.savedQueryId = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -109128,6 +112890,9 @@ if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) if (!$util.isString(message.annotationSchemaUri)) return "annotationSchemaUri: string expected"; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + if (!$util.isString(message.savedQueryId)) + return "savedQueryId: string expected"; return null; }; @@ -109184,6 +112949,8 @@ message.annotationsFilter = String(object.annotationsFilter); if (object.annotationSchemaUri != null) message.annotationSchemaUri = String(object.annotationSchemaUri); + if (object.savedQueryId != null) + message.savedQueryId = String(object.savedQueryId); return message; }; @@ -109203,6 +112970,7 @@ if (options.defaults) { object.datasetId = ""; object.annotationsFilter = ""; + object.savedQueryId = ""; object.annotationSchemaUri = ""; } if (message.datasetId != null && message.hasOwnProperty("datasetId")) @@ -109229,6 +112997,8 @@ } if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) object.annotationsFilter = message.annotationsFilter; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + object.savedQueryId = message.savedQueryId; if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { object.gcsDestination = $root.google.cloud.aiplatform.v1.GcsDestination.toObject(message.gcsDestination, options); if (options.oneofs) @@ -110824,6 +114594,7 @@ * @property {Array.|null} [predictions] PredictResponse predictions * @property {string|null} [deployedModelId] PredictResponse deployedModelId * @property {string|null} [model] PredictResponse model + * @property {string|null} [modelVersionId] PredictResponse modelVersionId * @property {string|null} [modelDisplayName] PredictResponse modelDisplayName */ @@ -110867,6 +114638,14 @@ */ PredictResponse.prototype.model = ""; + /** + * PredictResponse modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1.PredictResponse + * @instance + */ + PredictResponse.prototype.modelVersionId = ""; + /** * PredictResponse modelDisplayName. * @member {string} modelDisplayName @@ -110908,6 +114687,8 @@ writer.uint32(/* id 3, wireType 2 =*/26).string(message.model); if (message.modelDisplayName != null && Object.hasOwnProperty.call(message, "modelDisplayName")) writer.uint32(/* id 4, wireType 2 =*/34).string(message.modelDisplayName); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.modelVersionId); return writer; }; @@ -110953,6 +114734,9 @@ case 3: message.model = reader.string(); break; + case 5: + message.modelVersionId = reader.string(); + break; case 4: message.modelDisplayName = reader.string(); break; @@ -111006,6 +114790,9 @@ if (message.model != null && message.hasOwnProperty("model")) if (!$util.isString(message.model)) return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) if (!$util.isString(message.modelDisplayName)) return "modelDisplayName: string expected"; @@ -111038,6 +114825,8 @@ message.deployedModelId = String(object.deployedModelId); if (object.model != null) message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); if (object.modelDisplayName != null) message.modelDisplayName = String(object.modelDisplayName); return message; @@ -111062,6 +114851,7 @@ object.deployedModelId = ""; object.model = ""; object.modelDisplayName = ""; + object.modelVersionId = ""; } if (message.predictions && message.predictions.length) { object.predictions = []; @@ -111074,6 +114864,8 @@ object.model = message.model; if (message.modelDisplayName != null && message.hasOwnProperty("modelDisplayName")) object.modelDisplayName = message.modelDisplayName; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; return object; }; @@ -149121,6 +152913,7 @@ * @property {google.protobuf.ITimestamp|null} [updateTime] BatchPredictionJob updateTime * @property {Object.|null} [labels] BatchPredictionJob labels * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] BatchPredictionJob encryptionSpec + * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null} [modelMonitoringConfig] BatchPredictionJob modelMonitoringConfig */ /** @@ -149340,6 +153133,14 @@ */ BatchPredictionJob.prototype.encryptionSpec = null; + /** + * BatchPredictionJob modelMonitoringConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig|null|undefined} modelMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.modelMonitoringConfig = null; + /** * Creates a new BatchPredictionJob instance using the specified properties. * @function create @@ -149410,6 +153211,8 @@ $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.modelMonitoringConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.encode(message.modelMonitoringConfig, writer.uint32(/* id 26, wireType 2 =*/210).fork()).ldelim(); if (message.unmanagedContainerModel != null && Object.hasOwnProperty.call(message, "unmanagedContainerModel")) $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.encode(message.unmanagedContainerModel, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) @@ -149546,6 +153349,9 @@ case 24: message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; + case 26: + message.modelMonitoringConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -149713,6 +153519,11 @@ if (error) return "encryptionSpec." + error; } + if (message.modelMonitoringConfig != null && message.hasOwnProperty("modelMonitoringConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify(message.modelMonitoringConfig); + if (error) + return "modelMonitoringConfig." + error; + } return null; }; @@ -149883,6 +153694,11 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } + if (object.modelMonitoringConfig != null) { + if (typeof object.modelMonitoringConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.modelMonitoringConfig: object expected"); + message.modelMonitoringConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.fromObject(object.modelMonitoringConfig); + } return message; }; @@ -149924,6 +153740,7 @@ object.generateExplanation = false; object.encryptionSpec = null; object.explanationSpec = null; + object.modelMonitoringConfig = null; object.unmanagedContainerModel = null; object.serviceAccount = ""; object.modelVersionId = ""; @@ -149979,6 +153796,8 @@ object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) object.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.toObject(message.explanationSpec, options); + if (message.modelMonitoringConfig != null && message.hasOwnProperty("modelMonitoringConfig")) + object.modelMonitoringConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.toObject(message.modelMonitoringConfig, options); if (message.unmanagedContainerModel != null && message.hasOwnProperty("unmanagedContainerModel")) object.unmanagedContainerModel = $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.toObject(message.unmanagedContainerModel, options); if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) @@ -161991,26 +165810,27 @@ return ManualBatchTuningParameters; })(); - v1beta1.UnmanagedContainerModel = (function() { + v1beta1.ModelMonitoringConfig = (function() { /** - * Properties of an UnmanagedContainerModel. + * Properties of a ModelMonitoringConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUnmanagedContainerModel - * @property {string|null} [artifactUri] UnmanagedContainerModel artifactUri - * @property {google.cloud.aiplatform.v1beta1.IPredictSchemata|null} [predictSchemata] UnmanagedContainerModel predictSchemata - * @property {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null} [containerSpec] UnmanagedContainerModel containerSpec + * @interface IModelMonitoringConfig + * @property {Array.|null} [objectiveConfigs] ModelMonitoringConfig objectiveConfigs + * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null} [alertConfig] ModelMonitoringConfig alertConfig + * @property {string|null} [analysisInstanceSchemaUri] ModelMonitoringConfig analysisInstanceSchemaUri */ /** - * Constructs a new UnmanagedContainerModel. + * Constructs a new ModelMonitoringConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UnmanagedContainerModel. - * @implements IUnmanagedContainerModel + * @classdesc Represents a ModelMonitoringConfig. + * @implements IModelMonitoringConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig=} [properties] Properties to set */ - function UnmanagedContainerModel(properties) { + function ModelMonitoringConfig(properties) { + this.objectiveConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -162018,101 +165838,104 @@ } /** - * UnmanagedContainerModel artifactUri. - * @member {string} artifactUri - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * ModelMonitoringConfig objectiveConfigs. + * @member {Array.} objectiveConfigs + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @instance */ - UnmanagedContainerModel.prototype.artifactUri = ""; + ModelMonitoringConfig.prototype.objectiveConfigs = $util.emptyArray; /** - * UnmanagedContainerModel predictSchemata. - * @member {google.cloud.aiplatform.v1beta1.IPredictSchemata|null|undefined} predictSchemata - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * ModelMonitoringConfig alertConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null|undefined} alertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @instance */ - UnmanagedContainerModel.prototype.predictSchemata = null; + ModelMonitoringConfig.prototype.alertConfig = null; /** - * UnmanagedContainerModel containerSpec. - * @member {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null|undefined} containerSpec - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * ModelMonitoringConfig analysisInstanceSchemaUri. + * @member {string} analysisInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @instance */ - UnmanagedContainerModel.prototype.containerSpec = null; + ModelMonitoringConfig.prototype.analysisInstanceSchemaUri = ""; /** - * Creates a new UnmanagedContainerModel instance using the specified properties. + * Creates a new ModelMonitoringConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel instance + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig instance */ - UnmanagedContainerModel.create = function create(properties) { - return new UnmanagedContainerModel(properties); + ModelMonitoringConfig.create = function create(properties) { + return new ModelMonitoringConfig(properties); }; /** - * Encodes the specified UnmanagedContainerModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. + * Encodes the specified ModelMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel} message UnmanagedContainerModel message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig} message ModelMonitoringConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UnmanagedContainerModel.encode = function encode(message, writer) { + ModelMonitoringConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifactUri != null && Object.hasOwnProperty.call(message, "artifactUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactUri); - if (message.predictSchemata != null && Object.hasOwnProperty.call(message, "predictSchemata")) - $root.google.cloud.aiplatform.v1beta1.PredictSchemata.encode(message.predictSchemata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.containerSpec != null && Object.hasOwnProperty.call(message, "containerSpec")) - $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.encode(message.containerSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.alertConfig != null && Object.hasOwnProperty.call(message, "alertConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.encode(message.alertConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.objectiveConfigs != null && message.objectiveConfigs.length) + for (var i = 0; i < message.objectiveConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfigs[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.analysisInstanceSchemaUri); return writer; }; /** - * Encodes the specified UnmanagedContainerModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. + * Encodes the specified ModelMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel} message UnmanagedContainerModel message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringConfig} message ModelMonitoringConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UnmanagedContainerModel.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UnmanagedContainerModel message from the specified reader or buffer. + * Decodes a ModelMonitoringConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UnmanagedContainerModel.decode = function decode(reader, length) { + ModelMonitoringConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.artifactUri = reader.string(); + case 3: + if (!(message.objectiveConfigs && message.objectiveConfigs.length)) + message.objectiveConfigs = []; + message.objectiveConfigs.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32())); break; case 2: - message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.decode(reader, reader.uint32()); + message.alertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); break; - case 3: - message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.decode(reader, reader.uint32()); + case 4: + message.analysisInstanceSchemaUri = reader.string(); break; default: reader.skipType(tag & 7); @@ -162123,165 +165946,150 @@ }; /** - * Decodes an UnmanagedContainerModel message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UnmanagedContainerModel.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UnmanagedContainerModel message. + * Verifies a ModelMonitoringConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UnmanagedContainerModel.verify = function verify(message) { + ModelMonitoringConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) - if (!$util.isString(message.artifactUri)) - return "artifactUri: string expected"; - if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) { - var error = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.verify(message.predictSchemata); - if (error) - return "predictSchemata." + error; + if (message.objectiveConfigs != null && message.hasOwnProperty("objectiveConfigs")) { + if (!Array.isArray(message.objectiveConfigs)) + return "objectiveConfigs: array expected"; + for (var i = 0; i < message.objectiveConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfigs[i]); + if (error) + return "objectiveConfigs." + error; + } } - if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify(message.containerSpec); + if (message.alertConfig != null && message.hasOwnProperty("alertConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify(message.alertConfig); if (error) - return "containerSpec." + error; + return "alertConfig." + error; } + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + if (!$util.isString(message.analysisInstanceSchemaUri)) + return "analysisInstanceSchemaUri: string expected"; return null; }; /** - * Creates an UnmanagedContainerModel message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} ModelMonitoringConfig */ - UnmanagedContainerModel.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel) + ModelMonitoringConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel(); - if (object.artifactUri != null) - message.artifactUri = String(object.artifactUri); - if (object.predictSchemata != null) { - if (typeof object.predictSchemata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.predictSchemata: object expected"); - message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.fromObject(object.predictSchemata); - } - if (object.containerSpec != null) { - if (typeof object.containerSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.containerSpec: object expected"); - message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.fromObject(object.containerSpec); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringConfig(); + if (object.objectiveConfigs) { + if (!Array.isArray(object.objectiveConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.objectiveConfigs: array expected"); + message.objectiveConfigs = []; + for (var i = 0; i < object.objectiveConfigs.length; ++i) { + if (typeof object.objectiveConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.objectiveConfigs: object expected"); + message.objectiveConfigs[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfigs[i]); + } + } + if (object.alertConfig != null) { + if (typeof object.alertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringConfig.alertConfig: object expected"); + message.alertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.fromObject(object.alertConfig); } + if (object.analysisInstanceSchemaUri != null) + message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); return message; }; /** - * Creates a plain object from an UnmanagedContainerModel message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} message UnmanagedContainerModel + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringConfig} message ModelMonitoringConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UnmanagedContainerModel.toObject = function toObject(message, options) { + ModelMonitoringConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.objectiveConfigs = []; if (options.defaults) { - object.artifactUri = ""; - object.predictSchemata = null; - object.containerSpec = null; + object.alertConfig = null; + object.analysisInstanceSchemaUri = ""; } - if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) - object.artifactUri = message.artifactUri; - if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) - object.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.toObject(message.predictSchemata, options); - if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) - object.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.toObject(message.containerSpec, options); + if (message.alertConfig != null && message.hasOwnProperty("alertConfig")) + object.alertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.toObject(message.alertConfig, options); + if (message.objectiveConfigs && message.objectiveConfigs.length) { + object.objectiveConfigs = []; + for (var j = 0; j < message.objectiveConfigs.length; ++j) + object.objectiveConfigs[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfigs[j], options); + } + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; return object; }; /** - * Converts this UnmanagedContainerModel to JSON. + * Converts this ModelMonitoringConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringConfig * @instance * @returns {Object.} JSON object */ - UnmanagedContainerModel.prototype.toJSON = function toJSON() { + ModelMonitoringConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UnmanagedContainerModel; + return ModelMonitoringConfig; })(); - v1beta1.Model = (function() { + v1beta1.ModelMonitoringObjectiveConfig = (function() { /** - * Properties of a Model. + * Properties of a ModelMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModel - * @property {string|null} [name] Model name - * @property {string|null} [versionId] Model versionId - * @property {Array.|null} [versionAliases] Model versionAliases - * @property {google.protobuf.ITimestamp|null} [versionCreateTime] Model versionCreateTime - * @property {google.protobuf.ITimestamp|null} [versionUpdateTime] Model versionUpdateTime - * @property {string|null} [displayName] Model displayName - * @property {string|null} [description] Model description - * @property {string|null} [versionDescription] Model versionDescription - * @property {google.cloud.aiplatform.v1beta1.IPredictSchemata|null} [predictSchemata] Model predictSchemata - * @property {string|null} [metadataSchemaUri] Model metadataSchemaUri - * @property {google.protobuf.IValue|null} [metadata] Model metadata - * @property {Array.|null} [supportedExportFormats] Model supportedExportFormats - * @property {string|null} [trainingPipeline] Model trainingPipeline - * @property {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null} [containerSpec] Model containerSpec - * @property {string|null} [artifactUri] Model artifactUri - * @property {Array.|null} [supportedDeploymentResourcesTypes] Model supportedDeploymentResourcesTypes - * @property {Array.|null} [supportedInputStorageFormats] Model supportedInputStorageFormats - * @property {Array.|null} [supportedOutputStorageFormats] Model supportedOutputStorageFormats - * @property {google.protobuf.ITimestamp|null} [createTime] Model createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Model updateTime - * @property {Array.|null} [deployedModels] Model deployedModels - * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] Model explanationSpec - * @property {string|null} [etag] Model etag - * @property {Object.|null} [labels] Model labels - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Model encryptionSpec + * @interface IModelMonitoringObjectiveConfig + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null} [trainingDataset] ModelMonitoringObjectiveConfig trainingDataset + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null} [trainingPredictionSkewDetectionConfig] ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null} [predictionDriftDetectionConfig] ModelMonitoringObjectiveConfig predictionDriftDetectionConfig + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null} [explanationConfig] ModelMonitoringObjectiveConfig explanationConfig */ /** - * Constructs a new Model. + * Constructs a new ModelMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Model. - * @implements IModel + * @classdesc Represents a ModelMonitoringObjectiveConfig. + * @implements IModelMonitoringObjectiveConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModel=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set */ - function Model(properties) { - this.versionAliases = []; - this.supportedExportFormats = []; - this.supportedDeploymentResourcesTypes = []; - this.supportedInputStorageFormats = []; - this.supportedOutputStorageFormats = []; - this.deployedModels = []; - this.labels = {}; + function ModelMonitoringObjectiveConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -162289,433 +166097,114 @@ } /** - * Model name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.name = ""; - - /** - * Model versionId. - * @member {string} versionId - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.versionId = ""; - - /** - * Model versionAliases. - * @member {Array.} versionAliases - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.versionAliases = $util.emptyArray; - - /** - * Model versionCreateTime. - * @member {google.protobuf.ITimestamp|null|undefined} versionCreateTime - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.versionCreateTime = null; - - /** - * Model versionUpdateTime. - * @member {google.protobuf.ITimestamp|null|undefined} versionUpdateTime - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.versionUpdateTime = null; - - /** - * Model displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.displayName = ""; - - /** - * Model description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.description = ""; - - /** - * Model versionDescription. - * @member {string} versionDescription - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.versionDescription = ""; - - /** - * Model predictSchemata. - * @member {google.cloud.aiplatform.v1beta1.IPredictSchemata|null|undefined} predictSchemata - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.predictSchemata = null; - - /** - * Model metadataSchemaUri. - * @member {string} metadataSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.metadataSchemaUri = ""; - - /** - * Model metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.metadata = null; - - /** - * Model supportedExportFormats. - * @member {Array.} supportedExportFormats - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.supportedExportFormats = $util.emptyArray; - - /** - * Model trainingPipeline. - * @member {string} trainingPipeline - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.trainingPipeline = ""; - - /** - * Model containerSpec. - * @member {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null|undefined} containerSpec - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.containerSpec = null; - - /** - * Model artifactUri. - * @member {string} artifactUri - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.artifactUri = ""; - - /** - * Model supportedDeploymentResourcesTypes. - * @member {Array.} supportedDeploymentResourcesTypes - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.supportedDeploymentResourcesTypes = $util.emptyArray; - - /** - * Model supportedInputStorageFormats. - * @member {Array.} supportedInputStorageFormats - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.supportedInputStorageFormats = $util.emptyArray; - - /** - * Model supportedOutputStorageFormats. - * @member {Array.} supportedOutputStorageFormats - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.supportedOutputStorageFormats = $util.emptyArray; - - /** - * Model createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.createTime = null; - - /** - * Model updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.updateTime = null; - - /** - * Model deployedModels. - * @member {Array.} deployedModels - * @memberof google.cloud.aiplatform.v1beta1.Model - * @instance - */ - Model.prototype.deployedModels = $util.emptyArray; - - /** - * Model explanationSpec. - * @member {google.cloud.aiplatform.v1beta1.IExplanationSpec|null|undefined} explanationSpec - * @memberof google.cloud.aiplatform.v1beta1.Model + * ModelMonitoringObjectiveConfig trainingDataset. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @instance */ - Model.prototype.explanationSpec = null; + ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; /** - * Model etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Model + * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @instance */ - Model.prototype.etag = ""; + ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; /** - * Model labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Model + * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @instance */ - Model.prototype.labels = $util.emptyObject; + ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; /** - * Model encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.Model + * ModelMonitoringObjectiveConfig explanationConfig. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @instance */ - Model.prototype.encryptionSpec = null; + ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; /** - * Creates a new Model instance using the specified properties. + * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Model} Model instance + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance */ - Model.create = function create(properties) { - return new Model(properties); + ModelMonitoringObjectiveConfig.create = function create(properties) { + return new ModelMonitoringObjectiveConfig(properties); }; /** - * Encodes the specified Model message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. + * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IModel} message Model message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Model.encode = function encode(message, writer) { + ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.predictSchemata != null && Object.hasOwnProperty.call(message, "predictSchemata")) - $root.google.cloud.aiplatform.v1beta1.PredictSchemata.encode(message.predictSchemata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.metadataSchemaUri); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.trainingPipeline); - if (message.containerSpec != null && Object.hasOwnProperty.call(message, "containerSpec")) - $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.encode(message.containerSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.supportedDeploymentResourcesTypes != null && message.supportedDeploymentResourcesTypes.length) { - writer.uint32(/* id 10, wireType 2 =*/82).fork(); - for (var i = 0; i < message.supportedDeploymentResourcesTypes.length; ++i) - writer.int32(message.supportedDeploymentResourcesTypes[i]); - writer.ldelim(); - } - if (message.supportedInputStorageFormats != null && message.supportedInputStorageFormats.length) - for (var i = 0; i < message.supportedInputStorageFormats.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.supportedInputStorageFormats[i]); - if (message.supportedOutputStorageFormats != null && message.supportedOutputStorageFormats.length) - for (var i = 0; i < message.supportedOutputStorageFormats.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.supportedOutputStorageFormats[i]); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.deployedModels != null && message.deployedModels.length) - for (var i = 0; i < message.deployedModels.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DeployedModelRef.encode(message.deployedModels[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 17, wireType 2 =*/138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.supportedExportFormats != null && message.supportedExportFormats.length) - for (var i = 0; i < message.supportedExportFormats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.encode(message.supportedExportFormats[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) - $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); - if (message.artifactUri != null && Object.hasOwnProperty.call(message, "artifactUri")) - writer.uint32(/* id 26, wireType 2 =*/210).string(message.artifactUri); - if (message.versionId != null && Object.hasOwnProperty.call(message, "versionId")) - writer.uint32(/* id 28, wireType 2 =*/226).string(message.versionId); - if (message.versionAliases != null && message.versionAliases.length) - for (var i = 0; i < message.versionAliases.length; ++i) - writer.uint32(/* id 29, wireType 2 =*/234).string(message.versionAliases[i]); - if (message.versionDescription != null && Object.hasOwnProperty.call(message, "versionDescription")) - writer.uint32(/* id 30, wireType 2 =*/242).string(message.versionDescription); - if (message.versionCreateTime != null && Object.hasOwnProperty.call(message, "versionCreateTime")) - $root.google.protobuf.Timestamp.encode(message.versionCreateTime, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); - if (message.versionUpdateTime != null && Object.hasOwnProperty.call(message, "versionUpdateTime")) - $root.google.protobuf.Timestamp.encode(message.versionUpdateTime, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); + if (message.trainingDataset != null && Object.hasOwnProperty.call(message, "trainingDataset")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.encode(message.trainingDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.trainingPredictionSkewDetectionConfig != null && Object.hasOwnProperty.call(message, "trainingPredictionSkewDetectionConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.encode(message.trainingPredictionSkewDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.predictionDriftDetectionConfig != null && Object.hasOwnProperty.call(message, "predictionDriftDetectionConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.encode(message.predictionDriftDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.explanationConfig != null && Object.hasOwnProperty.call(message, "explanationConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.encode(message.explanationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. + * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IModel} message Model message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Model.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Model message from the specified reader or buffer. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Model} Model + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Model.decode = function decode(reader, length) { + ModelMonitoringObjectiveConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Model(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 28: - message.versionId = reader.string(); - break; - case 29: - if (!(message.versionAliases && message.versionAliases.length)) - message.versionAliases = []; - message.versionAliases.push(reader.string()); - break; - case 31: - message.versionCreateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 32: - message.versionUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); break; case 2: - message.displayName = reader.string(); + message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); break; case 3: - message.description = reader.string(); - break; - case 30: - message.versionDescription = reader.string(); - break; - case 4: - message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.decode(reader, reader.uint32()); + message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.decode(reader, reader.uint32()); break; case 5: - message.metadataSchemaUri = reader.string(); - break; - case 6: - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - case 20: - if (!(message.supportedExportFormats && message.supportedExportFormats.length)) - message.supportedExportFormats = []; - message.supportedExportFormats.push($root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.decode(reader, reader.uint32())); - break; - case 7: - message.trainingPipeline = reader.string(); - break; - case 9: - message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.decode(reader, reader.uint32()); - break; - case 26: - message.artifactUri = reader.string(); - break; - case 10: - if (!(message.supportedDeploymentResourcesTypes && message.supportedDeploymentResourcesTypes.length)) - message.supportedDeploymentResourcesTypes = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.supportedDeploymentResourcesTypes.push(reader.int32()); - } else - message.supportedDeploymentResourcesTypes.push(reader.int32()); - break; - case 11: - if (!(message.supportedInputStorageFormats && message.supportedInputStorageFormats.length)) - message.supportedInputStorageFormats = []; - message.supportedInputStorageFormats.push(reader.string()); - break; - case 12: - if (!(message.supportedOutputStorageFormats && message.supportedOutputStorageFormats.length)) - message.supportedOutputStorageFormats = []; - message.supportedOutputStorageFormats.push(reader.string()); - break; - case 13: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 14: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 15: - if (!(message.deployedModels && message.deployedModels.length)) - message.deployedModels = []; - message.deployedModels.push($root.google.cloud.aiplatform.v1beta1.DeployedModelRef.decode(reader, reader.uint32())); - break; - case 23: - message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.decode(reader, reader.uint32()); - break; - case 16: - message.etag = reader.string(); - break; - case 17: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 24: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + message.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -162726,463 +166215,154 @@ }; /** - * Decodes a Model message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Model} Model + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Model.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Model message. + * Verifies a ModelMonitoringObjectiveConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Model.verify = function verify(message) { + ModelMonitoringObjectiveConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.versionId != null && message.hasOwnProperty("versionId")) - if (!$util.isString(message.versionId)) - return "versionId: string expected"; - if (message.versionAliases != null && message.hasOwnProperty("versionAliases")) { - if (!Array.isArray(message.versionAliases)) - return "versionAliases: array expected"; - for (var i = 0; i < message.versionAliases.length; ++i) - if (!$util.isString(message.versionAliases[i])) - return "versionAliases: string[] expected"; - } - if (message.versionCreateTime != null && message.hasOwnProperty("versionCreateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.versionCreateTime); - if (error) - return "versionCreateTime." + error; - } - if (message.versionUpdateTime != null && message.hasOwnProperty("versionUpdateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.versionUpdateTime); - if (error) - return "versionUpdateTime." + error; - } - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.versionDescription != null && message.hasOwnProperty("versionDescription")) - if (!$util.isString(message.versionDescription)) - return "versionDescription: string expected"; - if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) { - var error = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.verify(message.predictSchemata); - if (error) - return "predictSchemata." + error; - } - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - if (!$util.isString(message.metadataSchemaUri)) - return "metadataSchemaUri: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.supportedExportFormats != null && message.hasOwnProperty("supportedExportFormats")) { - if (!Array.isArray(message.supportedExportFormats)) - return "supportedExportFormats: array expected"; - for (var i = 0; i < message.supportedExportFormats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify(message.supportedExportFormats[i]); - if (error) - return "supportedExportFormats." + error; - } - } - if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) - if (!$util.isString(message.trainingPipeline)) - return "trainingPipeline: string expected"; - if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify(message.containerSpec); - if (error) - return "containerSpec." + error; - } - if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) - if (!$util.isString(message.artifactUri)) - return "artifactUri: string expected"; - if (message.supportedDeploymentResourcesTypes != null && message.hasOwnProperty("supportedDeploymentResourcesTypes")) { - if (!Array.isArray(message.supportedDeploymentResourcesTypes)) - return "supportedDeploymentResourcesTypes: array expected"; - for (var i = 0; i < message.supportedDeploymentResourcesTypes.length; ++i) - switch (message.supportedDeploymentResourcesTypes[i]) { - default: - return "supportedDeploymentResourcesTypes: enum value[] expected"; - case 0: - case 1: - case 2: - break; - } - } - if (message.supportedInputStorageFormats != null && message.hasOwnProperty("supportedInputStorageFormats")) { - if (!Array.isArray(message.supportedInputStorageFormats)) - return "supportedInputStorageFormats: array expected"; - for (var i = 0; i < message.supportedInputStorageFormats.length; ++i) - if (!$util.isString(message.supportedInputStorageFormats[i])) - return "supportedInputStorageFormats: string[] expected"; - } - if (message.supportedOutputStorageFormats != null && message.hasOwnProperty("supportedOutputStorageFormats")) { - if (!Array.isArray(message.supportedOutputStorageFormats)) - return "supportedOutputStorageFormats: array expected"; - for (var i = 0; i < message.supportedOutputStorageFormats.length; ++i) - if (!$util.isString(message.supportedOutputStorageFormats[i])) - return "supportedOutputStorageFormats: string[] expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); if (error) - return "createTime." + error; + return "trainingDataset." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify(message.trainingPredictionSkewDetectionConfig); if (error) - return "updateTime." + error; - } - if (message.deployedModels != null && message.hasOwnProperty("deployedModels")) { - if (!Array.isArray(message.deployedModels)) - return "deployedModels: array expected"; - for (var i = 0; i < message.deployedModels.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedModelRef.verify(message.deployedModels[i]); - if (error) - return "deployedModels." + error; - } + return "trainingPredictionSkewDetectionConfig." + error; } - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.verify(message.explanationSpec); + if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify(message.predictionDriftDetectionConfig); if (error) - return "explanationSpec." + error; - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + return "predictionDriftDetectionConfig." + error; } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); if (error) - return "encryptionSpec." + error; + return "explanationConfig." + error; } return null; }; /** - * Creates a Model message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Model} Model + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig */ - Model.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Model) + ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Model(); - if (object.name != null) - message.name = String(object.name); - if (object.versionId != null) - message.versionId = String(object.versionId); - if (object.versionAliases) { - if (!Array.isArray(object.versionAliases)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.versionAliases: array expected"); - message.versionAliases = []; - for (var i = 0; i < object.versionAliases.length; ++i) - message.versionAliases[i] = String(object.versionAliases[i]); - } - if (object.versionCreateTime != null) { - if (typeof object.versionCreateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.versionCreateTime: object expected"); - message.versionCreateTime = $root.google.protobuf.Timestamp.fromObject(object.versionCreateTime); - } - if (object.versionUpdateTime != null) { - if (typeof object.versionUpdateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.versionUpdateTime: object expected"); - message.versionUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.versionUpdateTime); - } - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.versionDescription != null) - message.versionDescription = String(object.versionDescription); - if (object.predictSchemata != null) { - if (typeof object.predictSchemata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.predictSchemata: object expected"); - message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.fromObject(object.predictSchemata); - } - if (object.metadataSchemaUri != null) - message.metadataSchemaUri = String(object.metadataSchemaUri); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); - } - if (object.supportedExportFormats) { - if (!Array.isArray(object.supportedExportFormats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.supportedExportFormats: array expected"); - message.supportedExportFormats = []; - for (var i = 0; i < object.supportedExportFormats.length; ++i) { - if (typeof object.supportedExportFormats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.supportedExportFormats: object expected"); - message.supportedExportFormats[i] = $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.fromObject(object.supportedExportFormats[i]); - } - } - if (object.trainingPipeline != null) - message.trainingPipeline = String(object.trainingPipeline); - if (object.containerSpec != null) { - if (typeof object.containerSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.containerSpec: object expected"); - message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.fromObject(object.containerSpec); - } - if (object.artifactUri != null) - message.artifactUri = String(object.artifactUri); - if (object.supportedDeploymentResourcesTypes) { - if (!Array.isArray(object.supportedDeploymentResourcesTypes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.supportedDeploymentResourcesTypes: array expected"); - message.supportedDeploymentResourcesTypes = []; - for (var i = 0; i < object.supportedDeploymentResourcesTypes.length; ++i) - switch (object.supportedDeploymentResourcesTypes[i]) { - default: - case "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED": - case 0: - message.supportedDeploymentResourcesTypes[i] = 0; - break; - case "DEDICATED_RESOURCES": - case 1: - message.supportedDeploymentResourcesTypes[i] = 1; - break; - case "AUTOMATIC_RESOURCES": - case 2: - message.supportedDeploymentResourcesTypes[i] = 2; - break; - } - } - if (object.supportedInputStorageFormats) { - if (!Array.isArray(object.supportedInputStorageFormats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.supportedInputStorageFormats: array expected"); - message.supportedInputStorageFormats = []; - for (var i = 0; i < object.supportedInputStorageFormats.length; ++i) - message.supportedInputStorageFormats[i] = String(object.supportedInputStorageFormats[i]); - } - if (object.supportedOutputStorageFormats) { - if (!Array.isArray(object.supportedOutputStorageFormats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.supportedOutputStorageFormats: array expected"); - message.supportedOutputStorageFormats = []; - for (var i = 0; i < object.supportedOutputStorageFormats.length; ++i) - message.supportedOutputStorageFormats[i] = String(object.supportedOutputStorageFormats[i]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.deployedModels) { - if (!Array.isArray(object.deployedModels)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.deployedModels: array expected"); - message.deployedModels = []; - for (var i = 0; i < object.deployedModels.length; ++i) { - if (typeof object.deployedModels[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.deployedModels: object expected"); - message.deployedModels[i] = $root.google.cloud.aiplatform.v1beta1.DeployedModelRef.fromObject(object.deployedModels[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(); + if (object.trainingDataset != null) { + if (typeof object.trainingDataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.trainingDataset: object expected"); + message.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.fromObject(object.trainingDataset); } - if (object.explanationSpec != null) { - if (typeof object.explanationSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.explanationSpec: object expected"); - message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.fromObject(object.explanationSpec); + if (object.trainingPredictionSkewDetectionConfig != null) { + if (typeof object.trainingPredictionSkewDetectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.trainingPredictionSkewDetectionConfig: object expected"); + message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.fromObject(object.trainingPredictionSkewDetectionConfig); } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + if (object.predictionDriftDetectionConfig != null) { + if (typeof object.predictionDriftDetectionConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.predictionDriftDetectionConfig: object expected"); + message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.fromObject(object.predictionDriftDetectionConfig); } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + if (object.explanationConfig != null) { + if (typeof object.explanationConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.explanationConfig: object expected"); + message.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.fromObject(object.explanationConfig); } return message; }; /** - * Creates a plain object from a Model message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.Model} message Model + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Model.toObject = function toObject(message, options) { + ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.supportedDeploymentResourcesTypes = []; - object.supportedInputStorageFormats = []; - object.supportedOutputStorageFormats = []; - object.deployedModels = []; - object.supportedExportFormats = []; - object.versionAliases = []; - } - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.predictSchemata = null; - object.metadataSchemaUri = ""; - object.metadata = null; - object.trainingPipeline = ""; - object.containerSpec = null; - object.createTime = null; - object.updateTime = null; - object.etag = ""; - object.explanationSpec = null; - object.encryptionSpec = null; - object.artifactUri = ""; - object.versionId = ""; - object.versionDescription = ""; - object.versionCreateTime = null; - object.versionUpdateTime = null; + object.trainingDataset = null; + object.trainingPredictionSkewDetectionConfig = null; + object.predictionDriftDetectionConfig = null; + object.explanationConfig = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) - object.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.toObject(message.predictSchemata, options); - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - object.metadataSchemaUri = message.metadataSchemaUri; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); - if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) - object.trainingPipeline = message.trainingPipeline; - if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) - object.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.toObject(message.containerSpec, options); - if (message.supportedDeploymentResourcesTypes && message.supportedDeploymentResourcesTypes.length) { - object.supportedDeploymentResourcesTypes = []; - for (var j = 0; j < message.supportedDeploymentResourcesTypes.length; ++j) - object.supportedDeploymentResourcesTypes[j] = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[message.supportedDeploymentResourcesTypes[j]] : message.supportedDeploymentResourcesTypes[j]; - } - if (message.supportedInputStorageFormats && message.supportedInputStorageFormats.length) { - object.supportedInputStorageFormats = []; - for (var j = 0; j < message.supportedInputStorageFormats.length; ++j) - object.supportedInputStorageFormats[j] = message.supportedInputStorageFormats[j]; - } - if (message.supportedOutputStorageFormats && message.supportedOutputStorageFormats.length) { - object.supportedOutputStorageFormats = []; - for (var j = 0; j < message.supportedOutputStorageFormats.length; ++j) - object.supportedOutputStorageFormats[j] = message.supportedOutputStorageFormats[j]; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.deployedModels && message.deployedModels.length) { - object.deployedModels = []; - for (var j = 0; j < message.deployedModels.length; ++j) - object.deployedModels[j] = $root.google.cloud.aiplatform.v1beta1.DeployedModelRef.toObject(message.deployedModels[j], options); - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.supportedExportFormats && message.supportedExportFormats.length) { - object.supportedExportFormats = []; - for (var j = 0; j < message.supportedExportFormats.length; ++j) - object.supportedExportFormats[j] = $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.toObject(message.supportedExportFormats[j], options); - } - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) - object.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.toObject(message.explanationSpec, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) - object.artifactUri = message.artifactUri; - if (message.versionId != null && message.hasOwnProperty("versionId")) - object.versionId = message.versionId; - if (message.versionAliases && message.versionAliases.length) { - object.versionAliases = []; - for (var j = 0; j < message.versionAliases.length; ++j) - object.versionAliases[j] = message.versionAliases[j]; - } - if (message.versionDescription != null && message.hasOwnProperty("versionDescription")) - object.versionDescription = message.versionDescription; - if (message.versionCreateTime != null && message.hasOwnProperty("versionCreateTime")) - object.versionCreateTime = $root.google.protobuf.Timestamp.toObject(message.versionCreateTime, options); - if (message.versionUpdateTime != null && message.hasOwnProperty("versionUpdateTime")) - object.versionUpdateTime = $root.google.protobuf.Timestamp.toObject(message.versionUpdateTime, options); + if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) + object.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.toObject(message.trainingDataset, options); + if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) + object.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.toObject(message.trainingPredictionSkewDetectionConfig, options); + if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) + object.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.toObject(message.predictionDriftDetectionConfig, options); + if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) + object.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.toObject(message.explanationConfig, options); return object; }; /** - * Converts this Model to JSON. + * Converts this ModelMonitoringObjectiveConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Model + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig * @instance * @returns {Object.} JSON object */ - Model.prototype.toJSON = function toJSON() { + ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Model.ExportFormat = (function() { + ModelMonitoringObjectiveConfig.TrainingDataset = (function() { /** - * Properties of an ExportFormat. - * @memberof google.cloud.aiplatform.v1beta1.Model - * @interface IExportFormat - * @property {string|null} [id] ExportFormat id - * @property {Array.|null} [exportableContents] ExportFormat exportableContents + * Properties of a TrainingDataset. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @interface ITrainingDataset + * @property {string|null} [dataset] TrainingDataset dataset + * @property {google.cloud.aiplatform.v1beta1.IGcsSource|null} [gcsSource] TrainingDataset gcsSource + * @property {google.cloud.aiplatform.v1beta1.IBigQuerySource|null} [bigquerySource] TrainingDataset bigquerySource + * @property {string|null} [dataFormat] TrainingDataset dataFormat + * @property {string|null} [targetField] TrainingDataset targetField + * @property {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null} [loggingSamplingStrategy] TrainingDataset loggingSamplingStrategy */ /** - * Constructs a new ExportFormat. - * @memberof google.cloud.aiplatform.v1beta1.Model - * @classdesc Represents an ExportFormat. - * @implements IExportFormat + * Constructs a new TrainingDataset. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @classdesc Represents a TrainingDataset. + * @implements ITrainingDataset * @constructor - * @param {google.cloud.aiplatform.v1beta1.Model.IExportFormat=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set */ - function ExportFormat(properties) { - this.exportableContents = []; + function TrainingDataset(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -163190,99 +166370,154 @@ } /** - * ExportFormat id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * TrainingDataset dataset. + * @member {string|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @instance */ - ExportFormat.prototype.id = ""; + TrainingDataset.prototype.dataset = null; /** - * ExportFormat exportableContents. - * @member {Array.} exportableContents - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * TrainingDataset gcsSource. + * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @instance */ - ExportFormat.prototype.exportableContents = $util.emptyArray; + TrainingDataset.prototype.gcsSource = null; /** - * Creates a new ExportFormat instance using the specified properties. + * TrainingDataset bigquerySource. + * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.bigquerySource = null; + + /** + * TrainingDataset dataFormat. + * @member {string} dataFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.dataFormat = ""; + + /** + * TrainingDataset targetField. + * @member {string} targetField + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.targetField = ""; + + /** + * TrainingDataset loggingSamplingStrategy. + * @member {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null|undefined} loggingSamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + TrainingDataset.prototype.loggingSamplingStrategy = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * TrainingDataset dataSource. + * @member {"dataset"|"gcsSource"|"bigquerySource"|undefined} dataSource + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset + * @instance + */ + Object.defineProperty(TrainingDataset.prototype, "dataSource", { + get: $util.oneOfGetter($oneOfFields = ["dataset", "gcsSource", "bigquerySource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new TrainingDataset instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1beta1.Model.IExportFormat=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Model.ExportFormat} ExportFormat instance + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset instance */ - ExportFormat.create = function create(properties) { - return new ExportFormat(properties); + TrainingDataset.create = function create(properties) { + return new TrainingDataset(properties); }; /** - * Encodes the specified ExportFormat message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. + * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1beta1.Model.IExportFormat} message ExportFormat message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFormat.encode = function encode(message, writer) { + TrainingDataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.exportableContents != null && message.exportableContents.length) { - writer.uint32(/* id 2, wireType 2 =*/18).fork(); - for (var i = 0; i < message.exportableContents.length; ++i) - writer.int32(message.exportableContents[i]); - writer.ldelim(); - } + if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataFormat); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.dataset); + if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) + $root.google.cloud.aiplatform.v1beta1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) + $root.google.cloud.aiplatform.v1beta1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.targetField != null && Object.hasOwnProperty.call(message, "targetField")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetField); + if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) + $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportFormat message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. + * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1beta1.Model.IExportFormat} message ExportFormat message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFormat.encodeDelimited = function encodeDelimited(message, writer) { + TrainingDataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFormat message from the specified reader or buffer. + * Decodes a TrainingDataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Model.ExportFormat} ExportFormat + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFormat.decode = function decode(reader, length) { + TrainingDataset.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.id = reader.string(); + case 3: + message.dataset = reader.string(); + break; + case 4: + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.decode(reader, reader.uint32()); + break; + case 5: + message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.decode(reader, reader.uint32()); break; case 2: - if (!(message.exportableContents && message.exportableContents.length)) - message.exportableContents = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.exportableContents.push(reader.int32()); - } else - message.exportableContents.push(reader.int32()); + message.dataFormat = reader.string(); + break; + case 6: + message.targetField = reader.string(); + break; + case 7: + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -163293,591 +166528,1448 @@ }; /** - * Decodes an ExportFormat message from the specified reader or buffer, length delimited. + * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Model.ExportFormat} ExportFormat + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFormat.decodeDelimited = function decodeDelimited(reader) { + TrainingDataset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFormat message. + * Verifies a TrainingDataset message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFormat.verify = function verify(message) { + TrainingDataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.exportableContents != null && message.hasOwnProperty("exportableContents")) { - if (!Array.isArray(message.exportableContents)) - return "exportableContents: array expected"; - for (var i = 0; i < message.exportableContents.length; ++i) - switch (message.exportableContents[i]) { - default: - return "exportableContents: enum value[] expected"; - case 0: - case 1: - case 2: - break; - } + var properties = {}; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + properties.dataSource = 1; + if (!$util.isString(message.dataset)) + return "dataset: string expected"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GcsSource.verify(message.gcsSource); + if (error) + return "gcsSource." + error; + } + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + if (properties.dataSource === 1) + return "dataSource: multiple values"; + properties.dataSource = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.verify(message.bigquerySource); + if (error) + return "bigquerySource." + error; + } + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + if (!$util.isString(message.dataFormat)) + return "dataFormat: string expected"; + if (message.targetField != null && message.hasOwnProperty("targetField")) + if (!$util.isString(message.targetField)) + return "targetField: string expected"; + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { + var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (error) + return "loggingSamplingStrategy." + error; } return null; }; /** - * Creates an ExportFormat message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Model.ExportFormat} ExportFormat + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset */ - ExportFormat.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat) + TrainingDataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat(); - if (object.id != null) - message.id = String(object.id); - if (object.exportableContents) { - if (!Array.isArray(object.exportableContents)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Model.ExportFormat.exportableContents: array expected"); - message.exportableContents = []; - for (var i = 0; i < object.exportableContents.length; ++i) - switch (object.exportableContents[i]) { - default: - case "EXPORTABLE_CONTENT_UNSPECIFIED": - case 0: - message.exportableContents[i] = 0; - break; - case "ARTIFACT": - case 1: - message.exportableContents[i] = 1; - break; - case "IMAGE": - case 2: - message.exportableContents[i] = 2; - break; - } + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset(); + if (object.dataset != null) + message.dataset = String(object.dataset); + if (object.gcsSource != null) { + if (typeof object.gcsSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.gcsSource: object expected"); + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.fromObject(object.gcsSource); + } + if (object.bigquerySource != null) { + if (typeof object.bigquerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.bigquerySource: object expected"); + message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.fromObject(object.bigquerySource); + } + if (object.dataFormat != null) + message.dataFormat = String(object.dataFormat); + if (object.targetField != null) + message.targetField = String(object.targetField); + if (object.loggingSamplingStrategy != null) { + if (typeof object.loggingSamplingStrategy !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.loggingSamplingStrategy: object expected"); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); } return message; }; /** - * Creates a plain object from an ExportFormat message. Also converts values to other types if specified. + * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @static - * @param {google.cloud.aiplatform.v1beta1.Model.ExportFormat} message ExportFormat + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} message TrainingDataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFormat.toObject = function toObject(message, options) { + TrainingDataset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.exportableContents = []; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.exportableContents && message.exportableContents.length) { - object.exportableContents = []; - for (var j = 0; j < message.exportableContents.length; ++j) - object.exportableContents[j] = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[message.exportableContents[j]] : message.exportableContents[j]; + if (options.defaults) { + object.dataFormat = ""; + object.targetField = ""; + object.loggingSamplingStrategy = null; + } + if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) + object.dataFormat = message.dataFormat; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + object.dataset = message.dataset; + if (options.oneofs) + object.dataSource = "dataset"; + } + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + object.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.toObject(message.gcsSource, options); + if (options.oneofs) + object.dataSource = "gcsSource"; + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + object.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.toObject(message.bigquerySource, options); + if (options.oneofs) + object.dataSource = "bigquerySource"; } + if (message.targetField != null && message.hasOwnProperty("targetField")) + object.targetField = message.targetField; + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) + object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); return object; }; /** - * Converts this ExportFormat to JSON. + * Converts this TrainingDataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset * @instance * @returns {Object.} JSON object */ - ExportFormat.prototype.toJSON = function toJSON() { + TrainingDataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; + return TrainingDataset; + })(); + + ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { + /** - * ExportableContent enum. - * @name google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent - * @enum {number} - * @property {number} EXPORTABLE_CONTENT_UNSPECIFIED=0 EXPORTABLE_CONTENT_UNSPECIFIED value - * @property {number} ARTIFACT=1 ARTIFACT value - * @property {number} IMAGE=2 IMAGE value + * Properties of a TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @interface ITrainingPredictionSkewDetectionConfig + * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds + * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds + * @property {google.cloud.aiplatform.v1beta1.IThresholdConfig|null} [defaultSkewThreshold] TrainingPredictionSkewDetectionConfig defaultSkewThreshold */ - ExportFormat.ExportableContent = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "EXPORTABLE_CONTENT_UNSPECIFIED"] = 0; - values[valuesById[1] = "ARTIFACT"] = 1; - values[valuesById[2] = "IMAGE"] = 2; - return values; - })(); - - return ExportFormat; - })(); - /** - * DeploymentResourcesType enum. - * @name google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType - * @enum {number} - * @property {number} DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED=0 DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED value - * @property {number} DEDICATED_RESOURCES=1 DEDICATED_RESOURCES value - * @property {number} AUTOMATIC_RESOURCES=2 AUTOMATIC_RESOURCES value - */ - Model.DeploymentResourcesType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DEDICATED_RESOURCES"] = 1; - values[valuesById[2] = "AUTOMATIC_RESOURCES"] = 2; - return values; - })(); + /** + * Constructs a new TrainingPredictionSkewDetectionConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @classdesc Represents a TrainingPredictionSkewDetectionConfig. + * @implements ITrainingPredictionSkewDetectionConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set + */ + function TrainingPredictionSkewDetectionConfig(properties) { + this.skewThresholds = {}; + this.attributionScoreSkewThresholds = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return Model; - })(); + /** + * TrainingPredictionSkewDetectionConfig skewThresholds. + * @member {Object.} skewThresholds + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; - v1beta1.PredictSchemata = (function() { + /** + * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. + * @member {Object.} attributionScoreSkewThresholds + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; - /** - * Properties of a PredictSchemata. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPredictSchemata - * @property {string|null} [instanceSchemaUri] PredictSchemata instanceSchemaUri - * @property {string|null} [parametersSchemaUri] PredictSchemata parametersSchemaUri - * @property {string|null} [predictionSchemaUri] PredictSchemata predictionSchemaUri - */ + /** + * TrainingPredictionSkewDetectionConfig defaultSkewThreshold. + * @member {google.cloud.aiplatform.v1beta1.IThresholdConfig|null|undefined} defaultSkewThreshold + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + */ + TrainingPredictionSkewDetectionConfig.prototype.defaultSkewThreshold = null; - /** - * Constructs a new PredictSchemata. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PredictSchemata. - * @implements IPredictSchemata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata=} [properties] Properties to set - */ - function PredictSchemata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig instance + */ + TrainingPredictionSkewDetectionConfig.create = function create(properties) { + return new TrainingPredictionSkewDetectionConfig(properties); + }; - /** - * PredictSchemata instanceSchemaUri. - * @member {string} instanceSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @instance - */ - PredictSchemata.prototype.instanceSchemaUri = ""; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPredictionSkewDetectionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.skewThresholds != null && Object.hasOwnProperty.call(message, "skewThresholds")) + for (var keys = Object.keys(message.skewThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.skewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.attributionScoreSkewThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreSkewThresholds")) + for (var keys = Object.keys(message.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.defaultSkewThreshold != null && Object.hasOwnProperty.call(message, "defaultSkewThreshold")) + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.defaultSkewThreshold, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + return writer; + }; - /** - * PredictSchemata parametersSchemaUri. - * @member {string} parametersSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @instance - */ - PredictSchemata.prototype.parametersSchemaUri = ""; + /** + * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + TrainingPredictionSkewDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * PredictSchemata predictionSchemaUri. - * @member {string} predictionSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @instance - */ - PredictSchemata.prototype.predictionSchemaUri = ""; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPredictionSkewDetectionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (message.skewThresholds === $util.emptyObject) + message.skewThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.skewThresholds[key] = value; + break; + case 2: + if (message.attributionScoreSkewThresholds === $util.emptyObject) + message.attributionScoreSkewThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributionScoreSkewThresholds[key] = value; + break; + case 6: + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new PredictSchemata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata instance - */ - PredictSchemata.create = function create(properties) { - return new PredictSchemata(properties); - }; + /** + * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + TrainingPredictionSkewDetectionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified PredictSchemata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata} message PredictSchemata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictSchemata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.instanceSchemaUri != null && Object.hasOwnProperty.call(message, "instanceSchemaUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.instanceSchemaUri); - if (message.parametersSchemaUri != null && Object.hasOwnProperty.call(message, "parametersSchemaUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.parametersSchemaUri); - if (message.predictionSchemaUri != null && Object.hasOwnProperty.call(message, "predictionSchemaUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.predictionSchemaUri); - return writer; - }; + /** + * Verifies a TrainingPredictionSkewDetectionConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + TrainingPredictionSkewDetectionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.skewThresholds != null && message.hasOwnProperty("skewThresholds")) { + if (!$util.isObject(message.skewThresholds)) + return "skewThresholds: object expected"; + var key = Object.keys(message.skewThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.skewThresholds[key[i]]); + if (error) + return "skewThresholds." + error; + } + } + if (message.attributionScoreSkewThresholds != null && message.hasOwnProperty("attributionScoreSkewThresholds")) { + if (!$util.isObject(message.attributionScoreSkewThresholds)) + return "attributionScoreSkewThresholds: object expected"; + var key = Object.keys(message.attributionScoreSkewThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.attributionScoreSkewThresholds[key[i]]); + if (error) + return "attributionScoreSkewThresholds." + error; + } + } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.defaultSkewThreshold); + if (error) + return "defaultSkewThreshold." + error; + } + return null; + }; - /** - * Encodes the specified PredictSchemata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata} message PredictSchemata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictSchemata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig + */ + TrainingPredictionSkewDetectionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(); + if (object.skewThresholds) { + if (typeof object.skewThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); + message.skewThresholds = {}; + for (var keys = Object.keys(object.skewThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.skewThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); + message.skewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.skewThresholds[keys[i]]); + } + } + if (object.attributionScoreSkewThresholds) { + if (typeof object.attributionScoreSkewThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); + message.attributionScoreSkewThresholds = {}; + for (var keys = Object.keys(object.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.attributionScoreSkewThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); + message.attributionScoreSkewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.attributionScoreSkewThresholds[keys[i]]); + } + } + if (object.defaultSkewThreshold != null) { + if (typeof object.defaultSkewThreshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.defaultSkewThreshold: object expected"); + message.defaultSkewThreshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.defaultSkewThreshold); + } + return message; + }; - /** - * Decodes a PredictSchemata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictSchemata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredictSchemata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.instanceSchemaUri = reader.string(); - break; - case 2: - message.parametersSchemaUri = reader.string(); - break; - case 3: - message.predictionSchemaUri = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + TrainingPredictionSkewDetectionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.skewThresholds = {}; + object.attributionScoreSkewThresholds = {}; } - } - return message; - }; + if (options.defaults) + object.defaultSkewThreshold = null; + var keys2; + if (message.skewThresholds && (keys2 = Object.keys(message.skewThresholds)).length) { + object.skewThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.skewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.skewThresholds[keys2[j]], options); + } + if (message.attributionScoreSkewThresholds && (keys2 = Object.keys(message.attributionScoreSkewThresholds)).length) { + object.attributionScoreSkewThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributionScoreSkewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.attributionScoreSkewThresholds[keys2[j]], options); + } + if (message.defaultSkewThreshold != null && message.hasOwnProperty("defaultSkewThreshold")) + object.defaultSkewThreshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.defaultSkewThreshold, options); + return object; + }; - /** - * Decodes a PredictSchemata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictSchemata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this TrainingPredictionSkewDetectionConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig + * @instance + * @returns {Object.} JSON object + */ + TrainingPredictionSkewDetectionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a PredictSchemata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PredictSchemata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.instanceSchemaUri != null && message.hasOwnProperty("instanceSchemaUri")) - if (!$util.isString(message.instanceSchemaUri)) - return "instanceSchemaUri: string expected"; - if (message.parametersSchemaUri != null && message.hasOwnProperty("parametersSchemaUri")) - if (!$util.isString(message.parametersSchemaUri)) - return "parametersSchemaUri: string expected"; - if (message.predictionSchemaUri != null && message.hasOwnProperty("predictionSchemaUri")) - if (!$util.isString(message.predictionSchemaUri)) - return "predictionSchemaUri: string expected"; - return null; - }; + return TrainingPredictionSkewDetectionConfig; + })(); - /** - * Creates a PredictSchemata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata - */ - PredictSchemata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictSchemata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PredictSchemata(); - if (object.instanceSchemaUri != null) - message.instanceSchemaUri = String(object.instanceSchemaUri); - if (object.parametersSchemaUri != null) - message.parametersSchemaUri = String(object.parametersSchemaUri); - if (object.predictionSchemaUri != null) - message.predictionSchemaUri = String(object.predictionSchemaUri); - return message; - }; + ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig = (function() { - /** - * Creates a plain object from a PredictSchemata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @static - * @param {google.cloud.aiplatform.v1beta1.PredictSchemata} message PredictSchemata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PredictSchemata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.instanceSchemaUri = ""; - object.parametersSchemaUri = ""; - object.predictionSchemaUri = ""; + /** + * Properties of a PredictionDriftDetectionConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @interface IPredictionDriftDetectionConfig + * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds + * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds + * @property {google.cloud.aiplatform.v1beta1.IThresholdConfig|null} [defaultDriftThreshold] PredictionDriftDetectionConfig defaultDriftThreshold + */ + + /** + * Constructs a new PredictionDriftDetectionConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @classdesc Represents a PredictionDriftDetectionConfig. + * @implements IPredictionDriftDetectionConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set + */ + function PredictionDriftDetectionConfig(properties) { + this.driftThresholds = {}; + this.attributionScoreDriftThresholds = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - if (message.instanceSchemaUri != null && message.hasOwnProperty("instanceSchemaUri")) - object.instanceSchemaUri = message.instanceSchemaUri; - if (message.parametersSchemaUri != null && message.hasOwnProperty("parametersSchemaUri")) - object.parametersSchemaUri = message.parametersSchemaUri; - if (message.predictionSchemaUri != null && message.hasOwnProperty("predictionSchemaUri")) - object.predictionSchemaUri = message.predictionSchemaUri; - return object; - }; - /** - * Converts this PredictSchemata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata - * @instance - * @returns {Object.} JSON object - */ - PredictSchemata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * PredictionDriftDetectionConfig driftThresholds. + * @member {Object.} driftThresholds + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.driftThresholds = $util.emptyObject; - return PredictSchemata; - })(); + /** + * PredictionDriftDetectionConfig attributionScoreDriftThresholds. + * @member {Object.} attributionScoreDriftThresholds + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; - v1beta1.ModelContainerSpec = (function() { + /** + * PredictionDriftDetectionConfig defaultDriftThreshold. + * @member {google.cloud.aiplatform.v1beta1.IThresholdConfig|null|undefined} defaultDriftThreshold + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + */ + PredictionDriftDetectionConfig.prototype.defaultDriftThreshold = null; - /** - * Properties of a ModelContainerSpec. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelContainerSpec - * @property {string|null} [imageUri] ModelContainerSpec imageUri - * @property {Array.|null} [command] ModelContainerSpec command - * @property {Array.|null} [args] ModelContainerSpec args - * @property {Array.|null} [env] ModelContainerSpec env - * @property {Array.|null} [ports] ModelContainerSpec ports - * @property {string|null} [predictRoute] ModelContainerSpec predictRoute - * @property {string|null} [healthRoute] ModelContainerSpec healthRoute - */ + /** + * Creates a new PredictionDriftDetectionConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig instance + */ + PredictionDriftDetectionConfig.create = function create(properties) { + return new PredictionDriftDetectionConfig(properties); + }; - /** - * Constructs a new ModelContainerSpec. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelContainerSpec. - * @implements IModelContainerSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec=} [properties] Properties to set - */ - function ModelContainerSpec(properties) { - this.command = []; - this.args = []; - this.env = []; - this.ports = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredictionDriftDetectionConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.driftThresholds != null && Object.hasOwnProperty.call(message, "driftThresholds")) + for (var keys = Object.keys(message.driftThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.driftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.attributionScoreDriftThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreDriftThresholds")) + for (var keys = Object.keys(message.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.attributionScoreDriftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); + } + if (message.defaultDriftThreshold != null && Object.hasOwnProperty.call(message, "defaultDriftThreshold")) + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.defaultDriftThreshold, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; - /** - * ModelContainerSpec imageUri. - * @member {string} imageUri - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec - * @instance - */ - ModelContainerSpec.prototype.imageUri = ""; + /** + * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PredictionDriftDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * ModelContainerSpec command. - * @member {Array.} command - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec - * @instance - */ - ModelContainerSpec.prototype.command = $util.emptyArray; + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredictionDriftDetectionConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (message.driftThresholds === $util.emptyObject) + message.driftThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.driftThresholds[key] = value; + break; + case 2: + if (message.attributionScoreDriftThresholds === $util.emptyObject) + message.attributionScoreDriftThresholds = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = null; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.attributionScoreDriftThresholds[key] = value; + break; + case 5: + message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PredictionDriftDetectionConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PredictionDriftDetectionConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PredictionDriftDetectionConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.driftThresholds != null && message.hasOwnProperty("driftThresholds")) { + if (!$util.isObject(message.driftThresholds)) + return "driftThresholds: object expected"; + var key = Object.keys(message.driftThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.driftThresholds[key[i]]); + if (error) + return "driftThresholds." + error; + } + } + if (message.attributionScoreDriftThresholds != null && message.hasOwnProperty("attributionScoreDriftThresholds")) { + if (!$util.isObject(message.attributionScoreDriftThresholds)) + return "attributionScoreDriftThresholds: object expected"; + var key = Object.keys(message.attributionScoreDriftThresholds); + for (var i = 0; i < key.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.attributionScoreDriftThresholds[key[i]]); + if (error) + return "attributionScoreDriftThresholds." + error; + } + } + if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.defaultDriftThreshold); + if (error) + return "defaultDriftThreshold." + error; + } + return null; + }; + + /** + * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig + */ + PredictionDriftDetectionConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(); + if (object.driftThresholds) { + if (typeof object.driftThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); + message.driftThresholds = {}; + for (var keys = Object.keys(object.driftThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.driftThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); + message.driftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.driftThresholds[keys[i]]); + } + } + if (object.attributionScoreDriftThresholds) { + if (typeof object.attributionScoreDriftThresholds !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); + message.attributionScoreDriftThresholds = {}; + for (var keys = Object.keys(object.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { + if (typeof object.attributionScoreDriftThresholds[keys[i]] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); + message.attributionScoreDriftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.attributionScoreDriftThresholds[keys[i]]); + } + } + if (object.defaultDriftThreshold != null) { + if (typeof object.defaultDriftThreshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.defaultDriftThreshold: object expected"); + message.defaultDriftThreshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.defaultDriftThreshold); + } + return message; + }; + + /** + * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} message PredictionDriftDetectionConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PredictionDriftDetectionConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.objects || options.defaults) { + object.driftThresholds = {}; + object.attributionScoreDriftThresholds = {}; + } + if (options.defaults) + object.defaultDriftThreshold = null; + var keys2; + if (message.driftThresholds && (keys2 = Object.keys(message.driftThresholds)).length) { + object.driftThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.driftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.driftThresholds[keys2[j]], options); + } + if (message.attributionScoreDriftThresholds && (keys2 = Object.keys(message.attributionScoreDriftThresholds)).length) { + object.attributionScoreDriftThresholds = {}; + for (var j = 0; j < keys2.length; ++j) + object.attributionScoreDriftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.attributionScoreDriftThresholds[keys2[j]], options); + } + if (message.defaultDriftThreshold != null && message.hasOwnProperty("defaultDriftThreshold")) + object.defaultDriftThreshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.defaultDriftThreshold, options); + return object; + }; + + /** + * Converts this PredictionDriftDetectionConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig + * @instance + * @returns {Object.} JSON object + */ + PredictionDriftDetectionConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PredictionDriftDetectionConfig; + })(); + + ModelMonitoringObjectiveConfig.ExplanationConfig = (function() { + + /** + * Properties of an ExplanationConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @interface IExplanationConfig + * @property {boolean|null} [enableFeatureAttributes] ExplanationConfig enableFeatureAttributes + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null} [explanationBaseline] ExplanationConfig explanationBaseline + */ + + /** + * Constructs a new ExplanationConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @classdesc Represents an ExplanationConfig. + * @implements IExplanationConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + */ + function ExplanationConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExplanationConfig enableFeatureAttributes. + * @member {boolean} enableFeatureAttributes + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + */ + ExplanationConfig.prototype.enableFeatureAttributes = false; + + /** + * ExplanationConfig explanationBaseline. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null|undefined} explanationBaseline + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + */ + ExplanationConfig.prototype.explanationBaseline = null; + + /** + * Creates a new ExplanationConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig instance + */ + ExplanationConfig.create = function create(properties) { + return new ExplanationConfig(properties); + }; + + /** + * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.enableFeatureAttributes != null && Object.hasOwnProperty.call(message, "enableFeatureAttributes")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableFeatureAttributes); + if (message.explanationBaseline != null && Object.hasOwnProperty.call(message, "explanationBaseline")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.encode(message.explanationBaseline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExplanationConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.enableFeatureAttributes = reader.bool(); + break; + case 2: + message.explanationBaseline = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExplanationConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplanationConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) + if (typeof message.enableFeatureAttributes !== "boolean") + return "enableFeatureAttributes: boolean expected"; + if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify(message.explanationBaseline); + if (error) + return "explanationBaseline." + error; + } + return null; + }; + + /** + * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + */ + ExplanationConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig(); + if (object.enableFeatureAttributes != null) + message.enableFeatureAttributes = Boolean(object.enableFeatureAttributes); + if (object.explanationBaseline != null) { + if (typeof object.explanationBaseline !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.explanationBaseline: object expected"); + message.explanationBaseline = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.fromObject(object.explanationBaseline); + } + return message; + }; + + /** + * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} message ExplanationConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplanationConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.enableFeatureAttributes = false; + object.explanationBaseline = null; + } + if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) + object.enableFeatureAttributes = message.enableFeatureAttributes; + if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) + object.explanationBaseline = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.toObject(message.explanationBaseline, options); + return object; + }; + + /** + * Converts this ExplanationConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @instance + * @returns {Object.} JSON object + */ + ExplanationConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ExplanationConfig.ExplanationBaseline = (function() { + + /** + * Properties of an ExplanationBaseline. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @interface IExplanationBaseline + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcs] ExplanationBaseline gcs + * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigquery] ExplanationBaseline bigquery + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null} [predictionFormat] ExplanationBaseline predictionFormat + */ + + /** + * Constructs a new ExplanationBaseline. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @classdesc Represents an ExplanationBaseline. + * @implements IExplanationBaseline + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set + */ + function ExplanationBaseline(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExplanationBaseline gcs. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcs + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.gcs = null; + + /** + * ExplanationBaseline bigquery. + * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigquery + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.bigquery = null; + + /** + * ExplanationBaseline predictionFormat. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat} predictionFormat + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + ExplanationBaseline.prototype.predictionFormat = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExplanationBaseline destination. + * @member {"gcs"|"bigquery"|undefined} destination + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + */ + Object.defineProperty(ExplanationBaseline.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcs", "bigquery"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExplanationBaseline instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline instance + */ + ExplanationBaseline.create = function create(properties) { + return new ExplanationBaseline(properties); + }; + + /** + * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationBaseline.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.predictionFormat != null && Object.hasOwnProperty.call(message, "predictionFormat")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.predictionFormat); + if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) + $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.gcs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.bigquery != null && Object.hasOwnProperty.call(message, "bigquery")) + $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigquery, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExplanationBaseline.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationBaseline.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.gcs = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + break; + case 3: + message.bigquery = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); + break; + case 1: + message.predictionFormat = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExplanationBaseline.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExplanationBaseline message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExplanationBaseline.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.gcs != null && message.hasOwnProperty("gcs")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.gcs); + if (error) + return "gcs." + error; + } + } + if (message.bigquery != null && message.hasOwnProperty("bigquery")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigquery); + if (error) + return "bigquery." + error; + } + } + if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) + switch (message.predictionFormat) { + default: + return "predictionFormat: enum value expected"; + case 0: + case 2: + case 3: + break; + } + return null; + }; + + /** + * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline + */ + ExplanationBaseline.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); + if (object.gcs != null) { + if (typeof object.gcs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.gcs: object expected"); + message.gcs = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.gcs); + } + if (object.bigquery != null) { + if (typeof object.bigquery !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.bigquery: object expected"); + message.bigquery = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigquery); + } + switch (object.predictionFormat) { + case "PREDICTION_FORMAT_UNSPECIFIED": + case 0: + message.predictionFormat = 0; + break; + case "JSONL": + case 2: + message.predictionFormat = 2; + break; + case "BIGQUERY": + case 3: + message.predictionFormat = 3; + break; + } + return message; + }; + + /** + * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} message ExplanationBaseline + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExplanationBaseline.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.predictionFormat = options.enums === String ? "PREDICTION_FORMAT_UNSPECIFIED" : 0; + if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) + object.predictionFormat = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] : message.predictionFormat; + if (message.gcs != null && message.hasOwnProperty("gcs")) { + object.gcs = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.gcs, options); + if (options.oneofs) + object.destination = "gcs"; + } + if (message.bigquery != null && message.hasOwnProperty("bigquery")) { + object.bigquery = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.bigquery, options); + if (options.oneofs) + object.destination = "bigquery"; + } + return object; + }; + + /** + * Converts this ExplanationBaseline to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline + * @instance + * @returns {Object.} JSON object + */ + ExplanationBaseline.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * PredictionFormat enum. + * @name google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat + * @enum {number} + * @property {number} PREDICTION_FORMAT_UNSPECIFIED=0 PREDICTION_FORMAT_UNSPECIFIED value + * @property {number} JSONL=2 JSONL value + * @property {number} BIGQUERY=3 BIGQUERY value + */ + ExplanationBaseline.PredictionFormat = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "PREDICTION_FORMAT_UNSPECIFIED"] = 0; + values[valuesById[2] = "JSONL"] = 2; + values[valuesById[3] = "BIGQUERY"] = 3; + return values; + })(); + + return ExplanationBaseline; + })(); + + return ExplanationConfig; + })(); + + return ModelMonitoringObjectiveConfig; + })(); + + v1beta1.ModelMonitoringAlertConfig = (function() { /** - * ModelContainerSpec args. - * @member {Array.} args - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec - * @instance + * Properties of a ModelMonitoringAlertConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelMonitoringAlertConfig + * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null} [emailAlertConfig] ModelMonitoringAlertConfig emailAlertConfig + * @property {boolean|null} [enableLogging] ModelMonitoringAlertConfig enableLogging */ - ModelContainerSpec.prototype.args = $util.emptyArray; /** - * ModelContainerSpec env. - * @member {Array.} env - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec - * @instance + * Constructs a new ModelMonitoringAlertConfig. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelMonitoringAlertConfig. + * @implements IModelMonitoringAlertConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig=} [properties] Properties to set */ - ModelContainerSpec.prototype.env = $util.emptyArray; + function ModelMonitoringAlertConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ModelContainerSpec ports. - * @member {Array.} ports - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * ModelMonitoringAlertConfig emailAlertConfig. + * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null|undefined} emailAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @instance */ - ModelContainerSpec.prototype.ports = $util.emptyArray; + ModelMonitoringAlertConfig.prototype.emailAlertConfig = null; /** - * ModelContainerSpec predictRoute. - * @member {string} predictRoute - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * ModelMonitoringAlertConfig enableLogging. + * @member {boolean} enableLogging + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @instance */ - ModelContainerSpec.prototype.predictRoute = ""; + ModelMonitoringAlertConfig.prototype.enableLogging = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * ModelContainerSpec healthRoute. - * @member {string} healthRoute - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * ModelMonitoringAlertConfig alert. + * @member {"emailAlertConfig"|undefined} alert + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @instance */ - ModelContainerSpec.prototype.healthRoute = ""; + Object.defineProperty(ModelMonitoringAlertConfig.prototype, "alert", { + get: $util.oneOfGetter($oneOfFields = ["emailAlertConfig"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ModelContainerSpec instance using the specified properties. + * Creates a new ModelMonitoringAlertConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec instance + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig instance */ - ModelContainerSpec.create = function create(properties) { - return new ModelContainerSpec(properties); + ModelMonitoringAlertConfig.create = function create(properties) { + return new ModelMonitoringAlertConfig(properties); }; /** - * Encodes the specified ModelContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. + * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec} message ModelContainerSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelContainerSpec.encode = function encode(message, writer) { + ModelMonitoringAlertConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.imageUri != null && Object.hasOwnProperty.call(message, "imageUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageUri); - if (message.command != null && message.command.length) - for (var i = 0; i < message.command.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.command[i]); - if (message.args != null && message.args.length) - for (var i = 0; i < message.args.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.args[i]); - if (message.env != null && message.env.length) - for (var i = 0; i < message.env.length; ++i) - $root.google.cloud.aiplatform.v1beta1.EnvVar.encode(message.env[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.ports != null && message.ports.length) - for (var i = 0; i < message.ports.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Port.encode(message.ports[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.predictRoute != null && Object.hasOwnProperty.call(message, "predictRoute")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.predictRoute); - if (message.healthRoute != null && Object.hasOwnProperty.call(message, "healthRoute")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.healthRoute); + if (message.emailAlertConfig != null && Object.hasOwnProperty.call(message, "emailAlertConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.encode(message.emailAlertConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.enableLogging != null && Object.hasOwnProperty.call(message, "enableLogging")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableLogging); return writer; }; /** - * Encodes the specified ModelContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. + * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec} message ModelContainerSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelContainerSpec.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelContainerSpec message from the specified reader or buffer. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelContainerSpec.decode = function decode(reader, length) { + ModelMonitoringAlertConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.imageUri = reader.string(); + message.emailAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.decode(reader, reader.uint32()); break; case 2: - if (!(message.command && message.command.length)) - message.command = []; - message.command.push(reader.string()); - break; - case 3: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); - break; - case 4: - if (!(message.env && message.env.length)) - message.env = []; - message.env.push($root.google.cloud.aiplatform.v1beta1.EnvVar.decode(reader, reader.uint32())); - break; - case 5: - if (!(message.ports && message.ports.length)) - message.ports = []; - message.ports.push($root.google.cloud.aiplatform.v1beta1.Port.decode(reader, reader.uint32())); - break; - case 6: - message.predictRoute = reader.string(); - break; - case 7: - message.healthRoute = reader.string(); + message.enableLogging = reader.bool(); break; default: reader.skipType(tag & 7); @@ -163888,216 +167980,329 @@ }; /** - * Decodes a ModelContainerSpec message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelContainerSpec.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringAlertConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelContainerSpec message. + * Verifies a ModelMonitoringAlertConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelContainerSpec.verify = function verify(message) { + ModelMonitoringAlertConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.imageUri != null && message.hasOwnProperty("imageUri")) - if (!$util.isString(message.imageUri)) - return "imageUri: string expected"; - if (message.command != null && message.hasOwnProperty("command")) { - if (!Array.isArray(message.command)) - return "command: array expected"; - for (var i = 0; i < message.command.length; ++i) - if (!$util.isString(message.command[i])) - return "command: string[] expected"; - } - if (message.args != null && message.hasOwnProperty("args")) { - if (!Array.isArray(message.args)) - return "args: array expected"; - for (var i = 0; i < message.args.length; ++i) - if (!$util.isString(message.args[i])) - return "args: string[] expected"; - } - if (message.env != null && message.hasOwnProperty("env")) { - if (!Array.isArray(message.env)) - return "env: array expected"; - for (var i = 0; i < message.env.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.EnvVar.verify(message.env[i]); - if (error) - return "env." + error; - } - } - if (message.ports != null && message.hasOwnProperty("ports")) { - if (!Array.isArray(message.ports)) - return "ports: array expected"; - for (var i = 0; i < message.ports.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Port.verify(message.ports[i]); + var properties = {}; + if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { + properties.alert = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify(message.emailAlertConfig); if (error) - return "ports." + error; + return "emailAlertConfig." + error; } } - if (message.predictRoute != null && message.hasOwnProperty("predictRoute")) - if (!$util.isString(message.predictRoute)) - return "predictRoute: string expected"; - if (message.healthRoute != null && message.hasOwnProperty("healthRoute")) - if (!$util.isString(message.healthRoute)) - return "healthRoute: string expected"; + if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) + if (typeof message.enableLogging !== "boolean") + return "enableLogging: boolean expected"; return null; }; /** - * Creates a ModelContainerSpec message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig */ - ModelContainerSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec) + ModelMonitoringAlertConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec(); - if (object.imageUri != null) - message.imageUri = String(object.imageUri); - if (object.command) { - if (!Array.isArray(object.command)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.command: array expected"); - message.command = []; - for (var i = 0; i < object.command.length; ++i) - message.command[i] = String(object.command[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig(); + if (object.emailAlertConfig != null) { + if (typeof object.emailAlertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.emailAlertConfig: object expected"); + message.emailAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.fromObject(object.emailAlertConfig); } - if (object.args) { - if (!Array.isArray(object.args)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.args: array expected"); - message.args = []; - for (var i = 0; i < object.args.length; ++i) - message.args[i] = String(object.args[i]); - } - if (object.env) { - if (!Array.isArray(object.env)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.env: array expected"); - message.env = []; - for (var i = 0; i < object.env.length; ++i) { - if (typeof object.env[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.env: object expected"); - message.env[i] = $root.google.cloud.aiplatform.v1beta1.EnvVar.fromObject(object.env[i]); - } - } - if (object.ports) { - if (!Array.isArray(object.ports)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports: array expected"); - message.ports = []; - for (var i = 0; i < object.ports.length; ++i) { - if (typeof object.ports[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports: object expected"); - message.ports[i] = $root.google.cloud.aiplatform.v1beta1.Port.fromObject(object.ports[i]); - } - } - if (object.predictRoute != null) - message.predictRoute = String(object.predictRoute); - if (object.healthRoute != null) - message.healthRoute = String(object.healthRoute); + if (object.enableLogging != null) + message.enableLogging = Boolean(object.enableLogging); return message; }; /** - * Creates a plain object from a ModelContainerSpec message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ModelContainerSpec} message ModelContainerSpec + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} message ModelMonitoringAlertConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelContainerSpec.toObject = function toObject(message, options) { + ModelMonitoringAlertConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.command = []; - object.args = []; - object.env = []; - object.ports = []; - } - if (options.defaults) { - object.imageUri = ""; - object.predictRoute = ""; - object.healthRoute = ""; - } - if (message.imageUri != null && message.hasOwnProperty("imageUri")) - object.imageUri = message.imageUri; - if (message.command && message.command.length) { - object.command = []; - for (var j = 0; j < message.command.length; ++j) - object.command[j] = message.command[j]; - } - if (message.args && message.args.length) { - object.args = []; - for (var j = 0; j < message.args.length; ++j) - object.args[j] = message.args[j]; - } - if (message.env && message.env.length) { - object.env = []; - for (var j = 0; j < message.env.length; ++j) - object.env[j] = $root.google.cloud.aiplatform.v1beta1.EnvVar.toObject(message.env[j], options); - } - if (message.ports && message.ports.length) { - object.ports = []; - for (var j = 0; j < message.ports.length; ++j) - object.ports[j] = $root.google.cloud.aiplatform.v1beta1.Port.toObject(message.ports[j], options); + if (options.defaults) + object.enableLogging = false; + if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { + object.emailAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.toObject(message.emailAlertConfig, options); + if (options.oneofs) + object.alert = "emailAlertConfig"; } - if (message.predictRoute != null && message.hasOwnProperty("predictRoute")) - object.predictRoute = message.predictRoute; - if (message.healthRoute != null && message.hasOwnProperty("healthRoute")) - object.healthRoute = message.healthRoute; + if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) + object.enableLogging = message.enableLogging; return object; }; /** - * Converts this ModelContainerSpec to JSON. + * Converts this ModelMonitoringAlertConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig * @instance * @returns {Object.} JSON object */ - ModelContainerSpec.prototype.toJSON = function toJSON() { + ModelMonitoringAlertConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ModelContainerSpec; + ModelMonitoringAlertConfig.EmailAlertConfig = (function() { + + /** + * Properties of an EmailAlertConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @interface IEmailAlertConfig + * @property {Array.|null} [userEmails] EmailAlertConfig userEmails + */ + + /** + * Constructs a new EmailAlertConfig. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @classdesc Represents an EmailAlertConfig. + * @implements IEmailAlertConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set + */ + function EmailAlertConfig(properties) { + this.userEmails = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EmailAlertConfig userEmails. + * @member {Array.} userEmails + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @instance + */ + EmailAlertConfig.prototype.userEmails = $util.emptyArray; + + /** + * Creates a new EmailAlertConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig instance + */ + EmailAlertConfig.create = function create(properties) { + return new EmailAlertConfig(properties); + }; + + /** + * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailAlertConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.userEmails != null && message.userEmails.length) + for (var i = 0; i < message.userEmails.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.userEmails[i]); + return writer; + }; + + /** + * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EmailAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailAlertConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.userEmails && message.userEmails.length)) + message.userEmails = []; + message.userEmails.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EmailAlertConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EmailAlertConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EmailAlertConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.userEmails != null && message.hasOwnProperty("userEmails")) { + if (!Array.isArray(message.userEmails)) + return "userEmails: array expected"; + for (var i = 0; i < message.userEmails.length; ++i) + if (!$util.isString(message.userEmails[i])) + return "userEmails: string[] expected"; + } + return null; + }; + + /** + * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig + */ + EmailAlertConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig(); + if (object.userEmails) { + if (!Array.isArray(object.userEmails)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.userEmails: array expected"); + message.userEmails = []; + for (var i = 0; i < object.userEmails.length; ++i) + message.userEmails[i] = String(object.userEmails[i]); + } + return message; + }; + + /** + * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} message EmailAlertConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EmailAlertConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.userEmails = []; + if (message.userEmails && message.userEmails.length) { + object.userEmails = []; + for (var j = 0; j < message.userEmails.length; ++j) + object.userEmails[j] = message.userEmails[j]; + } + return object; + }; + + /** + * Converts this EmailAlertConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig + * @instance + * @returns {Object.} JSON object + */ + EmailAlertConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EmailAlertConfig; + })(); + + return ModelMonitoringAlertConfig; })(); - v1beta1.Port = (function() { + v1beta1.ThresholdConfig = (function() { /** - * Properties of a Port. + * Properties of a ThresholdConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPort - * @property {number|null} [containerPort] Port containerPort + * @interface IThresholdConfig + * @property {number|null} [value] ThresholdConfig value */ /** - * Constructs a new Port. + * Constructs a new ThresholdConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Port. - * @implements IPort + * @classdesc Represents a ThresholdConfig. + * @implements IThresholdConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPort=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig=} [properties] Properties to set */ - function Port(properties) { + function ThresholdConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164105,75 +168310,89 @@ } /** - * Port containerPort. - * @member {number} containerPort - * @memberof google.cloud.aiplatform.v1beta1.Port + * ThresholdConfig value. + * @member {number|null|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @instance */ - Port.prototype.containerPort = 0; + ThresholdConfig.prototype.value = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new Port instance using the specified properties. + * ThresholdConfig threshold. + * @member {"value"|undefined} threshold + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @instance + */ + Object.defineProperty(ThresholdConfig.prototype, "threshold", { + get: $util.oneOfGetter($oneOfFields = ["value"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ThresholdConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Port + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IPort=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Port} Port instance + * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig instance */ - Port.create = function create(properties) { - return new Port(properties); + ThresholdConfig.create = function create(properties) { + return new ThresholdConfig(properties); }; /** - * Encodes the specified Port message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Port + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IPort} message Port message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig} message ThresholdConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Port.encode = function encode(message, writer) { + ThresholdConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.containerPort != null && Object.hasOwnProperty.call(message, "containerPort")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.containerPort); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); return writer; }; /** - * Encodes the specified Port message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Port + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IPort} message Port message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig} message ThresholdConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Port.encodeDelimited = function encodeDelimited(message, writer) { + ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Port message from the specified reader or buffer. + * Decodes a ThresholdConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Port + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Port} Port + * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Port.decode = function decode(reader, length) { + ThresholdConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Port(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ThresholdConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: - message.containerPort = reader.int32(); + case 1: + message.value = reader.double(); break; default: reader.skipType(tag & 7); @@ -164184,108 +168403,111 @@ }; /** - * Decodes a Port message from the specified reader or buffer, length delimited. + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Port + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Port} Port + * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Port.decodeDelimited = function decodeDelimited(reader) { + ThresholdConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Port message. + * Verifies a ThresholdConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Port + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Port.verify = function verify(message) { + ThresholdConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.containerPort != null && message.hasOwnProperty("containerPort")) - if (!$util.isInteger(message.containerPort)) - return "containerPort: integer expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.threshold = 1; + if (typeof message.value !== "number") + return "value: number expected"; + } return null; }; /** - * Creates a Port message from a plain object. Also converts values to their respective internal types. + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Port + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Port} Port + * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig */ - Port.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Port) + ThresholdConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ThresholdConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Port(); - if (object.containerPort != null) - message.containerPort = object.containerPort | 0; + var message = new $root.google.cloud.aiplatform.v1beta1.ThresholdConfig(); + if (object.value != null) + message.value = Number(object.value); return message; }; /** - * Creates a plain object from a Port message. Also converts values to other types if specified. + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Port + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @static - * @param {google.cloud.aiplatform.v1beta1.Port} message Port + * @param {google.cloud.aiplatform.v1beta1.ThresholdConfig} message ThresholdConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Port.toObject = function toObject(message, options) { + ThresholdConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.containerPort = 0; - if (message.containerPort != null && message.hasOwnProperty("containerPort")) - object.containerPort = message.containerPort; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (options.oneofs) + object.threshold = "value"; + } return object; }; /** - * Converts this Port to JSON. + * Converts this ThresholdConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Port + * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig * @instance * @returns {Object.} JSON object */ - Port.prototype.toJSON = function toJSON() { + ThresholdConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Port; + return ThresholdConfig; })(); - v1beta1.DeployedModelRef = (function() { + v1beta1.SamplingStrategy = (function() { /** - * Properties of a DeployedModelRef. + * Properties of a SamplingStrategy. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedModelRef - * @property {string|null} [endpoint] DeployedModelRef endpoint - * @property {string|null} [deployedModelId] DeployedModelRef deployedModelId + * @interface ISamplingStrategy + * @property {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null} [randomSampleConfig] SamplingStrategy randomSampleConfig */ /** - * Constructs a new DeployedModelRef. + * Constructs a new SamplingStrategy. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedModelRef. - * @implements IDeployedModelRef + * @classdesc Represents a SamplingStrategy. + * @implements ISamplingStrategy * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy=} [properties] Properties to set */ - function DeployedModelRef(properties) { + function SamplingStrategy(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164293,88 +168515,75 @@ } /** - * DeployedModelRef endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef - * @instance - */ - DeployedModelRef.prototype.endpoint = ""; - - /** - * DeployedModelRef deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * SamplingStrategy randomSampleConfig. + * @member {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null|undefined} randomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @instance */ - DeployedModelRef.prototype.deployedModelId = ""; + SamplingStrategy.prototype.randomSampleConfig = null; /** - * Creates a new DeployedModelRef instance using the specified properties. + * Creates a new SamplingStrategy instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef instance + * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy instance */ - DeployedModelRef.create = function create(properties) { - return new DeployedModelRef(properties); + SamplingStrategy.create = function create(properties) { + return new SamplingStrategy(properties); }; /** - * Encodes the specified DeployedModelRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. + * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef} message DeployedModelRef message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy} message SamplingStrategy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedModelRef.encode = function encode(message, writer) { + SamplingStrategy.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.randomSampleConfig != null && Object.hasOwnProperty.call(message, "randomSampleConfig")) + $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.encode(message.randomSampleConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployedModelRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. + * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef} message DeployedModelRef message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy} message SamplingStrategy message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedModelRef.encodeDelimited = function encodeDelimited(message, writer) { + SamplingStrategy.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedModelRef message from the specified reader or buffer. + * Decodes a SamplingStrategy message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef + * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedModelRef.decode = function decode(reader, length) { + SamplingStrategy.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedModelRef(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SamplingStrategy(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.endpoint = reader.string(); - break; - case 2: - message.deployedModelId = reader.string(); + message.randomSampleConfig = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -164385,117 +168594,301 @@ }; /** - * Decodes a DeployedModelRef message from the specified reader or buffer, length delimited. + * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef + * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedModelRef.decodeDelimited = function decodeDelimited(reader) { + SamplingStrategy.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployedModelRef message. + * Verifies a SamplingStrategy message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedModelRef.verify = function verify(message) { + SamplingStrategy.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; + if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify(message.randomSampleConfig); + if (error) + return "randomSampleConfig." + error; + } return null; }; /** - * Creates a DeployedModelRef message from a plain object. Also converts values to their respective internal types. + * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef + * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy */ - DeployedModelRef.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedModelRef) + SamplingStrategy.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SamplingStrategy) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedModelRef(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); + var message = new $root.google.cloud.aiplatform.v1beta1.SamplingStrategy(); + if (object.randomSampleConfig != null) { + if (typeof object.randomSampleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SamplingStrategy.randomSampleConfig: object expected"); + message.randomSampleConfig = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.fromObject(object.randomSampleConfig); + } return message; }; /** - * Creates a plain object from a DeployedModelRef message. Also converts values to other types if specified. + * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedModelRef} message DeployedModelRef + * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy} message SamplingStrategy * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedModelRef.toObject = function toObject(message, options) { + SamplingStrategy.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.endpoint = ""; - object.deployedModelId = ""; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; + if (options.defaults) + object.randomSampleConfig = null; + if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) + object.randomSampleConfig = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.toObject(message.randomSampleConfig, options); return object; }; /** - * Converts this DeployedModelRef to JSON. + * Converts this SamplingStrategy to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy * @instance * @returns {Object.} JSON object */ - DeployedModelRef.prototype.toJSON = function toJSON() { + SamplingStrategy.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployedModelRef; + SamplingStrategy.RandomSampleConfig = (function() { + + /** + * Properties of a RandomSampleConfig. + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @interface IRandomSampleConfig + * @property {number|null} [sampleRate] RandomSampleConfig sampleRate + */ + + /** + * Constructs a new RandomSampleConfig. + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @classdesc Represents a RandomSampleConfig. + * @implements IRandomSampleConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + */ + function RandomSampleConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RandomSampleConfig sampleRate. + * @member {number} sampleRate + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @instance + */ + RandomSampleConfig.prototype.sampleRate = 0; + + /** + * Creates a new RandomSampleConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig instance + */ + RandomSampleConfig.create = function create(properties) { + return new RandomSampleConfig(properties); + }; + + /** + * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RandomSampleConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.sampleRate); + return writer; + }; + + /** + * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RandomSampleConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RandomSampleConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sampleRate = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RandomSampleConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RandomSampleConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RandomSampleConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) + if (typeof message.sampleRate !== "number") + return "sampleRate: number expected"; + return null; + }; + + /** + * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + */ + RandomSampleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig(); + if (object.sampleRate != null) + message.sampleRate = Number(object.sampleRate); + return message; + }; + + /** + * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} message RandomSampleConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RandomSampleConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.sampleRate = 0; + if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) + object.sampleRate = options.json && !isFinite(message.sampleRate) ? String(message.sampleRate) : message.sampleRate; + return object; + }; + + /** + * Converts this RandomSampleConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @instance + * @returns {Object.} JSON object + */ + RandomSampleConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return RandomSampleConfig; + })(); + + return SamplingStrategy; })(); - v1beta1.EnvVar = (function() { + v1beta1.UnmanagedContainerModel = (function() { /** - * Properties of an EnvVar. + * Properties of an UnmanagedContainerModel. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IEnvVar - * @property {string|null} [name] EnvVar name - * @property {string|null} [value] EnvVar value + * @interface IUnmanagedContainerModel + * @property {string|null} [artifactUri] UnmanagedContainerModel artifactUri + * @property {google.cloud.aiplatform.v1beta1.IPredictSchemata|null} [predictSchemata] UnmanagedContainerModel predictSchemata + * @property {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null} [containerSpec] UnmanagedContainerModel containerSpec */ /** - * Constructs a new EnvVar. + * Constructs a new UnmanagedContainerModel. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an EnvVar. - * @implements IEnvVar + * @classdesc Represents an UnmanagedContainerModel. + * @implements IUnmanagedContainerModel * @constructor - * @param {google.cloud.aiplatform.v1beta1.IEnvVar=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel=} [properties] Properties to set */ - function EnvVar(properties) { + function UnmanagedContainerModel(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164503,88 +168896,101 @@ } /** - * EnvVar name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * UnmanagedContainerModel artifactUri. + * @member {string} artifactUri + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @instance */ - EnvVar.prototype.name = ""; + UnmanagedContainerModel.prototype.artifactUri = ""; /** - * EnvVar value. - * @member {string} value - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * UnmanagedContainerModel predictSchemata. + * @member {google.cloud.aiplatform.v1beta1.IPredictSchemata|null|undefined} predictSchemata + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @instance */ - EnvVar.prototype.value = ""; + UnmanagedContainerModel.prototype.predictSchemata = null; /** - * Creates a new EnvVar instance using the specified properties. + * UnmanagedContainerModel containerSpec. + * @member {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null|undefined} containerSpec + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel + * @instance + */ + UnmanagedContainerModel.prototype.containerSpec = null; + + /** + * Creates a new UnmanagedContainerModel instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static - * @param {google.cloud.aiplatform.v1beta1.IEnvVar=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar instance + * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel instance */ - EnvVar.create = function create(properties) { - return new EnvVar(properties); + UnmanagedContainerModel.create = function create(properties) { + return new UnmanagedContainerModel(properties); }; /** - * Encodes the specified EnvVar message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. + * Encodes the specified UnmanagedContainerModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static - * @param {google.cloud.aiplatform.v1beta1.IEnvVar} message EnvVar message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel} message UnmanagedContainerModel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnvVar.encode = function encode(message, writer) { + UnmanagedContainerModel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); + if (message.artifactUri != null && Object.hasOwnProperty.call(message, "artifactUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifactUri); + if (message.predictSchemata != null && Object.hasOwnProperty.call(message, "predictSchemata")) + $root.google.cloud.aiplatform.v1beta1.PredictSchemata.encode(message.predictSchemata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.containerSpec != null && Object.hasOwnProperty.call(message, "containerSpec")) + $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.encode(message.containerSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified EnvVar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. + * Encodes the specified UnmanagedContainerModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static - * @param {google.cloud.aiplatform.v1beta1.IEnvVar} message EnvVar message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUnmanagedContainerModel} message UnmanagedContainerModel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EnvVar.encodeDelimited = function encodeDelimited(message, writer) { + UnmanagedContainerModel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EnvVar message from the specified reader or buffer. + * Decodes an UnmanagedContainerModel message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar + * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnvVar.decode = function decode(reader, length) { + UnmanagedContainerModel.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.EnvVar(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.artifactUri = reader.string(); break; case 2: - message.value = reader.string(); + message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.decode(reader, reader.uint32()); + break; + case 3: + message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -164595,128 +169001,165 @@ }; /** - * Decodes an EnvVar message from the specified reader or buffer, length delimited. + * Decodes an UnmanagedContainerModel message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar + * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EnvVar.decodeDelimited = function decodeDelimited(reader) { + UnmanagedContainerModel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EnvVar message. + * Verifies an UnmanagedContainerModel message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EnvVar.verify = function verify(message) { + UnmanagedContainerModel.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (!$util.isString(message.value)) - return "value: string expected"; + if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) + if (!$util.isString(message.artifactUri)) + return "artifactUri: string expected"; + if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) { + var error = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.verify(message.predictSchemata); + if (error) + return "predictSchemata." + error; + } + if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify(message.containerSpec); + if (error) + return "containerSpec." + error; + } return null; }; /** - * Creates an EnvVar message from a plain object. Also converts values to their respective internal types. + * Creates an UnmanagedContainerModel message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar + * @returns {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} UnmanagedContainerModel */ - EnvVar.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.EnvVar) + UnmanagedContainerModel.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.EnvVar(); - if (object.name != null) - message.name = String(object.name); - if (object.value != null) - message.value = String(object.value); + var message = new $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel(); + if (object.artifactUri != null) + message.artifactUri = String(object.artifactUri); + if (object.predictSchemata != null) { + if (typeof object.predictSchemata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.predictSchemata: object expected"); + message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.fromObject(object.predictSchemata); + } + if (object.containerSpec != null) { + if (typeof object.containerSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.containerSpec: object expected"); + message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.fromObject(object.containerSpec); + } return message; }; /** - * Creates a plain object from an EnvVar message. Also converts values to other types if specified. + * Creates a plain object from an UnmanagedContainerModel message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @static - * @param {google.cloud.aiplatform.v1beta1.EnvVar} message EnvVar + * @param {google.cloud.aiplatform.v1beta1.UnmanagedContainerModel} message UnmanagedContainerModel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EnvVar.toObject = function toObject(message, options) { + UnmanagedContainerModel.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.value = ""; + object.artifactUri = ""; + object.predictSchemata = null; + object.containerSpec = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.value != null && message.hasOwnProperty("value")) - object.value = message.value; + if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) + object.artifactUri = message.artifactUri; + if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) + object.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.toObject(message.predictSchemata, options); + if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) + object.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.toObject(message.containerSpec, options); return object; }; /** - * Converts this EnvVar to JSON. + * Converts this UnmanagedContainerModel to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.EnvVar + * @memberof google.cloud.aiplatform.v1beta1.UnmanagedContainerModel * @instance * @returns {Object.} JSON object */ - EnvVar.prototype.toJSON = function toJSON() { + UnmanagedContainerModel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EnvVar; + return UnmanagedContainerModel; })(); - v1beta1.Context = (function() { + v1beta1.Model = (function() { /** - * Properties of a Context. + * Properties of a Model. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IContext - * @property {string|null} [name] Context name - * @property {string|null} [displayName] Context displayName - * @property {string|null} [etag] Context etag - * @property {Object.|null} [labels] Context labels - * @property {google.protobuf.ITimestamp|null} [createTime] Context createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Context updateTime - * @property {Array.|null} [parentContexts] Context parentContexts - * @property {string|null} [schemaTitle] Context schemaTitle - * @property {string|null} [schemaVersion] Context schemaVersion - * @property {google.protobuf.IStruct|null} [metadata] Context metadata - * @property {string|null} [description] Context description + * @interface IModel + * @property {string|null} [name] Model name + * @property {string|null} [versionId] Model versionId + * @property {Array.|null} [versionAliases] Model versionAliases + * @property {google.protobuf.ITimestamp|null} [versionCreateTime] Model versionCreateTime + * @property {google.protobuf.ITimestamp|null} [versionUpdateTime] Model versionUpdateTime + * @property {string|null} [displayName] Model displayName + * @property {string|null} [description] Model description + * @property {string|null} [versionDescription] Model versionDescription + * @property {google.cloud.aiplatform.v1beta1.IPredictSchemata|null} [predictSchemata] Model predictSchemata + * @property {string|null} [metadataSchemaUri] Model metadataSchemaUri + * @property {google.protobuf.IValue|null} [metadata] Model metadata + * @property {Array.|null} [supportedExportFormats] Model supportedExportFormats + * @property {string|null} [trainingPipeline] Model trainingPipeline + * @property {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null} [containerSpec] Model containerSpec + * @property {string|null} [artifactUri] Model artifactUri + * @property {Array.|null} [supportedDeploymentResourcesTypes] Model supportedDeploymentResourcesTypes + * @property {Array.|null} [supportedInputStorageFormats] Model supportedInputStorageFormats + * @property {Array.|null} [supportedOutputStorageFormats] Model supportedOutputStorageFormats + * @property {google.protobuf.ITimestamp|null} [createTime] Model createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Model updateTime + * @property {Array.|null} [deployedModels] Model deployedModels + * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] Model explanationSpec + * @property {string|null} [etag] Model etag + * @property {Object.|null} [labels] Model labels + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Model encryptionSpec */ /** - * Constructs a new Context. + * Constructs a new Model. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Context. - * @implements IContext + * @classdesc Represents a Model. + * @implements IModel * @constructor - * @param {google.cloud.aiplatform.v1beta1.IContext=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModel=} [properties] Properties to set */ - function Context(properties) { + function Model(properties) { + this.versionAliases = []; + this.supportedExportFormats = []; + this.supportedDeploymentResourcesTypes = []; + this.supportedInputStorageFormats = []; + this.supportedOutputStorageFormats = []; + this.deployedModels = []; this.labels = {}; - this.parentContexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -164724,690 +169167,410 @@ } /** - * Context name. + * Model name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Context + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.name = ""; + Model.prototype.name = ""; /** - * Context displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model versionId. + * @member {string} versionId + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.displayName = ""; + Model.prototype.versionId = ""; /** - * Context etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model versionAliases. + * @member {Array.} versionAliases + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.etag = ""; + Model.prototype.versionAliases = $util.emptyArray; /** - * Context labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model versionCreateTime. + * @member {google.protobuf.ITimestamp|null|undefined} versionCreateTime + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.labels = $util.emptyObject; + Model.prototype.versionCreateTime = null; /** - * Context createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model versionUpdateTime. + * @member {google.protobuf.ITimestamp|null|undefined} versionUpdateTime + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.createTime = null; + Model.prototype.versionUpdateTime = null; /** - * Context updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.updateTime = null; + Model.prototype.displayName = ""; /** - * Context parentContexts. - * @member {Array.} parentContexts - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.parentContexts = $util.emptyArray; + Model.prototype.description = ""; /** - * Context schemaTitle. - * @member {string} schemaTitle - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model versionDescription. + * @member {string} versionDescription + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.schemaTitle = ""; + Model.prototype.versionDescription = ""; /** - * Context schemaVersion. - * @member {string} schemaVersion - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model predictSchemata. + * @member {google.cloud.aiplatform.v1beta1.IPredictSchemata|null|undefined} predictSchemata + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.schemaVersion = ""; + Model.prototype.predictSchemata = null; /** - * Context metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model metadataSchemaUri. + * @member {string} metadataSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.metadata = null; + Model.prototype.metadataSchemaUri = ""; /** - * Context description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - Context.prototype.description = ""; - - /** - * Creates a new Context instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Context - * @static - * @param {google.cloud.aiplatform.v1beta1.IContext=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Context} Context instance - */ - Context.create = function create(properties) { - return new Context(properties); - }; - - /** - * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Context - * @static - * @param {google.cloud.aiplatform.v1beta1.IContext} message Context message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Context.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.parentContexts != null && message.parentContexts.length) - for (var i = 0; i < message.parentContexts.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).string(message.parentContexts[i]); - if (message.schemaTitle != null && Object.hasOwnProperty.call(message, "schemaTitle")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.schemaTitle); - if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.schemaVersion); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.description); - return writer; - }; - - /** - * Encodes the specified Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Context - * @static - * @param {google.cloud.aiplatform.v1beta1.IContext} message Context message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Context.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Context message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Context - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Context} Context - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Context.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Context(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 8: - message.etag = reader.string(); - break; - case 9: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 10: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 11: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - if (!(message.parentContexts && message.parentContexts.length)) - message.parentContexts = []; - message.parentContexts.push(reader.string()); - break; - case 13: - message.schemaTitle = reader.string(); - break; - case 14: - message.schemaVersion = reader.string(); - break; - case 15: - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 16: - message.description = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Context message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Context - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Context} Context - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Context.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Context message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Context - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Context.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.parentContexts != null && message.hasOwnProperty("parentContexts")) { - if (!Array.isArray(message.parentContexts)) - return "parentContexts: array expected"; - for (var i = 0; i < message.parentContexts.length; ++i) - if (!$util.isString(message.parentContexts[i])) - return "parentContexts: string[] expected"; - } - if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) - if (!$util.isString(message.schemaTitle)) - return "schemaTitle: string expected"; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - if (!$util.isString(message.schemaVersion)) - return "schemaVersion: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - return null; - }; - - /** - * Creates a Context message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Context - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Context} Context - */ - Context.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Context) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Context(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Context.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Context.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Context.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.parentContexts) { - if (!Array.isArray(object.parentContexts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Context.parentContexts: array expected"); - message.parentContexts = []; - for (var i = 0; i < object.parentContexts.length; ++i) - message.parentContexts[i] = String(object.parentContexts[i]); - } - if (object.schemaTitle != null) - message.schemaTitle = String(object.schemaTitle); - if (object.schemaVersion != null) - message.schemaVersion = String(object.schemaVersion); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Context.metadata: object expected"); - message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); - } - if (object.description != null) - message.description = String(object.description); - return message; - }; - - /** - * Creates a plain object from a Context message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Context - * @static - * @param {google.cloud.aiplatform.v1beta1.Context} message Context - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Context.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.parentContexts = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.schemaTitle = ""; - object.schemaVersion = ""; - object.metadata = null; - object.description = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.parentContexts && message.parentContexts.length) { - object.parentContexts = []; - for (var j = 0; j < message.parentContexts.length; ++j) - object.parentContexts[j] = message.parentContexts[j]; - } - if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) - object.schemaTitle = message.schemaTitle; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - object.schemaVersion = message.schemaVersion; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - return object; - }; + Model.prototype.metadata = null; /** - * Converts this Context to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Context + * Model supportedExportFormats. + * @member {Array.} supportedExportFormats + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance - * @returns {Object.} JSON object */ - Context.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Context; - })(); - - v1beta1.CustomJob = (function() { + Model.prototype.supportedExportFormats = $util.emptyArray; /** - * Properties of a CustomJob. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICustomJob - * @property {string|null} [name] CustomJob name - * @property {string|null} [displayName] CustomJob displayName - * @property {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null} [jobSpec] CustomJob jobSpec - * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] CustomJob state - * @property {google.protobuf.ITimestamp|null} [createTime] CustomJob createTime - * @property {google.protobuf.ITimestamp|null} [startTime] CustomJob startTime - * @property {google.protobuf.ITimestamp|null} [endTime] CustomJob endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] CustomJob updateTime - * @property {google.rpc.IStatus|null} [error] CustomJob error - * @property {Object.|null} [labels] CustomJob labels - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] CustomJob encryptionSpec - * @property {Object.|null} [webAccessUris] CustomJob webAccessUris + * Model trainingPipeline. + * @member {string} trainingPipeline + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance */ + Model.prototype.trainingPipeline = ""; /** - * Constructs a new CustomJob. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CustomJob. - * @implements ICustomJob - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICustomJob=} [properties] Properties to set + * Model containerSpec. + * @member {google.cloud.aiplatform.v1beta1.IModelContainerSpec|null|undefined} containerSpec + * @memberof google.cloud.aiplatform.v1beta1.Model + * @instance */ - function CustomJob(properties) { - this.labels = {}; - this.webAccessUris = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Model.prototype.containerSpec = null; /** - * CustomJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * Model artifactUri. + * @member {string} artifactUri + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.name = ""; + Model.prototype.artifactUri = ""; /** - * CustomJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * Model supportedDeploymentResourcesTypes. + * @member {Array.} supportedDeploymentResourcesTypes + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.displayName = ""; + Model.prototype.supportedDeploymentResourcesTypes = $util.emptyArray; /** - * CustomJob jobSpec. - * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} jobSpec - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * Model supportedInputStorageFormats. + * @member {Array.} supportedInputStorageFormats + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.jobSpec = null; + Model.prototype.supportedInputStorageFormats = $util.emptyArray; /** - * CustomJob state. - * @member {google.cloud.aiplatform.v1beta1.JobState} state - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * Model supportedOutputStorageFormats. + * @member {Array.} supportedOutputStorageFormats + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.state = 0; + Model.prototype.supportedOutputStorageFormats = $util.emptyArray; /** - * CustomJob createTime. + * Model createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.createTime = null; + Model.prototype.createTime = null; /** - * CustomJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * Model updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.startTime = null; + Model.prototype.updateTime = null; /** - * CustomJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * Model deployedModels. + * @member {Array.} deployedModels + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.endTime = null; + Model.prototype.deployedModels = $util.emptyArray; /** - * CustomJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * Model explanationSpec. + * @member {google.cloud.aiplatform.v1beta1.IExplanationSpec|null|undefined} explanationSpec + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.updateTime = null; + Model.prototype.explanationSpec = null; /** - * CustomJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * Model etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.error = null; + Model.prototype.etag = ""; /** - * CustomJob labels. + * Model labels. * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.labels = $util.emptyObject; + Model.prototype.labels = $util.emptyObject; /** - * CustomJob encryptionSpec. + * Model encryptionSpec. * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.CustomJob - * @instance - */ - CustomJob.prototype.encryptionSpec = null; - - /** - * CustomJob webAccessUris. - * @member {Object.} webAccessUris - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance */ - CustomJob.prototype.webAccessUris = $util.emptyObject; + Model.prototype.encryptionSpec = null; /** - * Creates a new CustomJob instance using the specified properties. + * Creates a new Model instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob instance + * @param {google.cloud.aiplatform.v1beta1.IModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Model} Model instance */ - CustomJob.create = function create(properties) { - return new CustomJob(properties); + Model.create = function create(properties) { + return new Model(properties); }; /** - * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. + * Encodes the specified Model message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJob} message CustomJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModel} message Model message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomJob.encode = function encode(message, writer) { + Model.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.jobSpec != null && Object.hasOwnProperty.call(message, "jobSpec")) - $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.encode(message.jobSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.predictSchemata != null && Object.hasOwnProperty.call(message, "predictSchemata")) + $root.google.cloud.aiplatform.v1beta1.PredictSchemata.encode(message.predictSchemata, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.metadataSchemaUri); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.trainingPipeline != null && Object.hasOwnProperty.call(message, "trainingPipeline")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.trainingPipeline); + if (message.containerSpec != null && Object.hasOwnProperty.call(message, "containerSpec")) + $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.encode(message.containerSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.supportedDeploymentResourcesTypes != null && message.supportedDeploymentResourcesTypes.length) { + writer.uint32(/* id 10, wireType 2 =*/82).fork(); + for (var i = 0; i < message.supportedDeploymentResourcesTypes.length; ++i) + writer.int32(message.supportedDeploymentResourcesTypes[i]); + writer.ldelim(); + } + if (message.supportedInputStorageFormats != null && message.supportedInputStorageFormats.length) + for (var i = 0; i < message.supportedInputStorageFormats.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.supportedInputStorageFormats[i]); + if (message.supportedOutputStorageFormats != null && message.supportedOutputStorageFormats.length) + for (var i = 0; i < message.supportedOutputStorageFormats.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.supportedOutputStorageFormats[i]); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.deployedModels != null && message.deployedModels.length) + for (var i = 0; i < message.deployedModels.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DeployedModelRef.encode(message.deployedModels[i], writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.etag); if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + writer.uint32(/* id 17, wireType 2 =*/138).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.supportedExportFormats != null && message.supportedExportFormats.length) + for (var i = 0; i < message.supportedExportFormats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.encode(message.supportedExportFormats[i], writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) + $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.webAccessUris != null && Object.hasOwnProperty.call(message, "webAccessUris")) - for (var keys = Object.keys(message.webAccessUris), i = 0; i < keys.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webAccessUris[keys[i]]).ldelim(); + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 24, wireType 2 =*/194).fork()).ldelim(); + if (message.artifactUri != null && Object.hasOwnProperty.call(message, "artifactUri")) + writer.uint32(/* id 26, wireType 2 =*/210).string(message.artifactUri); + if (message.versionId != null && Object.hasOwnProperty.call(message, "versionId")) + writer.uint32(/* id 28, wireType 2 =*/226).string(message.versionId); + if (message.versionAliases != null && message.versionAliases.length) + for (var i = 0; i < message.versionAliases.length; ++i) + writer.uint32(/* id 29, wireType 2 =*/234).string(message.versionAliases[i]); + if (message.versionDescription != null && Object.hasOwnProperty.call(message, "versionDescription")) + writer.uint32(/* id 30, wireType 2 =*/242).string(message.versionDescription); + if (message.versionCreateTime != null && Object.hasOwnProperty.call(message, "versionCreateTime")) + $root.google.protobuf.Timestamp.encode(message.versionCreateTime, writer.uint32(/* id 31, wireType 2 =*/250).fork()).ldelim(); + if (message.versionUpdateTime != null && Object.hasOwnProperty.call(message, "versionUpdateTime")) + $root.google.protobuf.Timestamp.encode(message.versionUpdateTime, writer.uint32(/* id 32, wireType 2 =*/258).fork()).ldelim(); return writer; }; /** - * Encodes the specified CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. + * Encodes the specified Model message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJob} message CustomJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModel} message Model message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomJob.encodeDelimited = function encodeDelimited(message, writer) { + Model.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomJob message from the specified reader or buffer. + * Decodes a Model message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob + * @returns {google.cloud.aiplatform.v1beta1.Model} Model * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomJob.decode = function decode(reader, length) { + Model.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CustomJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Model(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.name = reader.string(); break; + case 28: + message.versionId = reader.string(); + break; + case 29: + if (!(message.versionAliases && message.versionAliases.length)) + message.versionAliases = []; + message.versionAliases.push(reader.string()); + break; + case 31: + message.versionCreateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 32: + message.versionUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; case 2: message.displayName = reader.string(); break; + case 3: + message.description = reader.string(); + break; + case 30: + message.versionDescription = reader.string(); + break; case 4: - message.jobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.decode(reader, reader.uint32()); + message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.decode(reader, reader.uint32()); break; case 5: - message.state = reader.int32(); + message.metadataSchemaUri = reader.string(); break; case 6: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; - case 7: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 20: + if (!(message.supportedExportFormats && message.supportedExportFormats.length)) + message.supportedExportFormats = []; + message.supportedExportFormats.push($root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.decode(reader, reader.uint32())); break; - case 8: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 7: + message.trainingPipeline = reader.string(); break; case 9: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.decode(reader, reader.uint32()); + break; + case 26: + message.artifactUri = reader.string(); break; case 10: - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + if (!(message.supportedDeploymentResourcesTypes && message.supportedDeploymentResourcesTypes.length)) + message.supportedDeploymentResourcesTypes = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.supportedDeploymentResourcesTypes.push(reader.int32()); + } else + message.supportedDeploymentResourcesTypes.push(reader.int32()); break; case 11: + if (!(message.supportedInputStorageFormats && message.supportedInputStorageFormats.length)) + message.supportedInputStorageFormats = []; + message.supportedInputStorageFormats.push(reader.string()); + break; + case 12: + if (!(message.supportedOutputStorageFormats && message.supportedOutputStorageFormats.length)) + message.supportedOutputStorageFormats = []; + message.supportedOutputStorageFormats.push(reader.string()); + break; + case 13: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 14: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 15: + if (!(message.deployedModels && message.deployedModels.length)) + message.deployedModels = []; + message.deployedModels.push($root.google.cloud.aiplatform.v1beta1.DeployedModelRef.decode(reader, reader.uint32())); + break; + case 23: + message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.decode(reader, reader.uint32()); + break; + case 16: + message.etag = reader.string(); + break; + case 17: if (message.labels === $util.emptyObject) message.labels = {}; var end2 = reader.uint32() + reader.pos; @@ -165429,31 +169592,9 @@ } message.labels[key] = value; break; - case 12: + case 24: message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; - case 16: - if (message.webAccessUris === $util.emptyObject) - message.webAccessUris = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.webAccessUris[key] = value; - break; default: reader.skipType(tag & 7); break; @@ -165463,85 +169604,151 @@ }; /** - * Decodes a CustomJob message from the specified reader or buffer, length delimited. + * Decodes a Model message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob + * @returns {google.cloud.aiplatform.v1beta1.Model} Model * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomJob.decodeDelimited = function decodeDelimited(reader) { + Model.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CustomJob message. + * Verifies a Model message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomJob.verify = function verify(message) { + Model.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.versionId != null && message.hasOwnProperty("versionId")) + if (!$util.isString(message.versionId)) + return "versionId: string expected"; + if (message.versionAliases != null && message.hasOwnProperty("versionAliases")) { + if (!Array.isArray(message.versionAliases)) + return "versionAliases: array expected"; + for (var i = 0; i < message.versionAliases.length; ++i) + if (!$util.isString(message.versionAliases[i])) + return "versionAliases: string[] expected"; + } + if (message.versionCreateTime != null && message.hasOwnProperty("versionCreateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.versionCreateTime); + if (error) + return "versionCreateTime." + error; + } + if (message.versionUpdateTime != null && message.hasOwnProperty("versionUpdateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.versionUpdateTime); + if (error) + return "versionUpdateTime." + error; + } if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.jobSpec != null && message.hasOwnProperty("jobSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.verify(message.jobSpec); + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.versionDescription != null && message.hasOwnProperty("versionDescription")) + if (!$util.isString(message.versionDescription)) + return "versionDescription: string expected"; + if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) { + var error = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.verify(message.predictSchemata); if (error) - return "jobSpec." + error; + return "predictSchemata." + error; } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + if (!$util.isString(message.metadataSchemaUri)) + return "metadataSchemaUri: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); if (error) - return "createTime." + error; + return "metadata." + error; } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (message.supportedExportFormats != null && message.hasOwnProperty("supportedExportFormats")) { + if (!Array.isArray(message.supportedExportFormats)) + return "supportedExportFormats: array expected"; + for (var i = 0; i < message.supportedExportFormats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify(message.supportedExportFormats[i]); + if (error) + return "supportedExportFormats." + error; + } + } + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) + if (!$util.isString(message.trainingPipeline)) + return "trainingPipeline: string expected"; + if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify(message.containerSpec); if (error) - return "startTime." + error; + return "containerSpec." + error; } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) + if (!$util.isString(message.artifactUri)) + return "artifactUri: string expected"; + if (message.supportedDeploymentResourcesTypes != null && message.hasOwnProperty("supportedDeploymentResourcesTypes")) { + if (!Array.isArray(message.supportedDeploymentResourcesTypes)) + return "supportedDeploymentResourcesTypes: array expected"; + for (var i = 0; i < message.supportedDeploymentResourcesTypes.length; ++i) + switch (message.supportedDeploymentResourcesTypes[i]) { + default: + return "supportedDeploymentResourcesTypes: enum value[] expected"; + case 0: + case 1: + case 2: + break; + } + } + if (message.supportedInputStorageFormats != null && message.hasOwnProperty("supportedInputStorageFormats")) { + if (!Array.isArray(message.supportedInputStorageFormats)) + return "supportedInputStorageFormats: array expected"; + for (var i = 0; i < message.supportedInputStorageFormats.length; ++i) + if (!$util.isString(message.supportedInputStorageFormats[i])) + return "supportedInputStorageFormats: string[] expected"; + } + if (message.supportedOutputStorageFormats != null && message.hasOwnProperty("supportedOutputStorageFormats")) { + if (!Array.isArray(message.supportedOutputStorageFormats)) + return "supportedOutputStorageFormats: array expected"; + for (var i = 0; i < message.supportedOutputStorageFormats.length; ++i) + if (!$util.isString(message.supportedOutputStorageFormats[i])) + return "supportedOutputStorageFormats: string[] expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "endTime." + error; + return "createTime." + error; } if (message.updateTime != null && message.hasOwnProperty("updateTime")) { var error = $root.google.protobuf.Timestamp.verify(message.updateTime); if (error) return "updateTime." + error; } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); + if (message.deployedModels != null && message.hasOwnProperty("deployedModels")) { + if (!Array.isArray(message.deployedModels)) + return "deployedModels: array expected"; + for (var i = 0; i < message.deployedModels.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedModelRef.verify(message.deployedModels[i]); + if (error) + return "deployedModels." + error; + } + } + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.verify(message.explanationSpec); if (error) - return "error." + error; + return "explanationSpec." + error; } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; if (message.labels != null && message.hasOwnProperty("labels")) { if (!$util.isObject(message.labels)) return "labels: object expected"; @@ -165555,235 +169762,594 @@ if (error) return "encryptionSpec." + error; } - if (message.webAccessUris != null && message.hasOwnProperty("webAccessUris")) { - if (!$util.isObject(message.webAccessUris)) - return "webAccessUris: object expected"; - var key = Object.keys(message.webAccessUris); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.webAccessUris[key[i]])) - return "webAccessUris: string{k:string} expected"; - } return null; }; /** - * Creates a CustomJob message from a plain object. Also converts values to their respective internal types. + * Creates a Model message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob + * @returns {google.cloud.aiplatform.v1beta1.Model} Model */ - CustomJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CustomJob) + Model.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Model) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CustomJob(); + var message = new $root.google.cloud.aiplatform.v1beta1.Model(); if (object.name != null) message.name = String(object.name); + if (object.versionId != null) + message.versionId = String(object.versionId); + if (object.versionAliases) { + if (!Array.isArray(object.versionAliases)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.versionAliases: array expected"); + message.versionAliases = []; + for (var i = 0; i < object.versionAliases.length; ++i) + message.versionAliases[i] = String(object.versionAliases[i]); + } + if (object.versionCreateTime != null) { + if (typeof object.versionCreateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.versionCreateTime: object expected"); + message.versionCreateTime = $root.google.protobuf.Timestamp.fromObject(object.versionCreateTime); + } + if (object.versionUpdateTime != null) { + if (typeof object.versionUpdateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.versionUpdateTime: object expected"); + message.versionUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.versionUpdateTime); + } if (object.displayName != null) message.displayName = String(object.displayName); - if (object.jobSpec != null) { - if (typeof object.jobSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.jobSpec: object expected"); - message.jobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.fromObject(object.jobSpec); + if (object.description != null) + message.description = String(object.description); + if (object.versionDescription != null) + message.versionDescription = String(object.versionDescription); + if (object.predictSchemata != null) { + if (typeof object.predictSchemata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.predictSchemata: object expected"); + message.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.fromObject(object.predictSchemata); } - switch (object.state) { - case "JOB_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "JOB_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "JOB_STATE_PENDING": - case 2: - message.state = 2; - break; - case "JOB_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "JOB_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "JOB_STATE_FAILED": - case 5: - message.state = 5; - break; - case "JOB_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "JOB_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "JOB_STATE_PAUSED": - case 8: - message.state = 8; - break; - case "JOB_STATE_EXPIRED": - case 9: - message.state = 9; - break; - case "JOB_STATE_UPDATING": - case 10: - message.state = 10; - break; + if (object.metadataSchemaUri != null) + message.metadataSchemaUri = String(object.metadataSchemaUri); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + } + if (object.supportedExportFormats) { + if (!Array.isArray(object.supportedExportFormats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.supportedExportFormats: array expected"); + message.supportedExportFormats = []; + for (var i = 0; i < object.supportedExportFormats.length; ++i) { + if (typeof object.supportedExportFormats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.supportedExportFormats: object expected"); + message.supportedExportFormats[i] = $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.fromObject(object.supportedExportFormats[i]); + } + } + if (object.trainingPipeline != null) + message.trainingPipeline = String(object.trainingPipeline); + if (object.containerSpec != null) { + if (typeof object.containerSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.containerSpec: object expected"); + message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.fromObject(object.containerSpec); + } + if (object.artifactUri != null) + message.artifactUri = String(object.artifactUri); + if (object.supportedDeploymentResourcesTypes) { + if (!Array.isArray(object.supportedDeploymentResourcesTypes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.supportedDeploymentResourcesTypes: array expected"); + message.supportedDeploymentResourcesTypes = []; + for (var i = 0; i < object.supportedDeploymentResourcesTypes.length; ++i) + switch (object.supportedDeploymentResourcesTypes[i]) { + default: + case "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED": + case 0: + message.supportedDeploymentResourcesTypes[i] = 0; + break; + case "DEDICATED_RESOURCES": + case 1: + message.supportedDeploymentResourcesTypes[i] = 1; + break; + case "AUTOMATIC_RESOURCES": + case 2: + message.supportedDeploymentResourcesTypes[i] = 2; + break; + } + } + if (object.supportedInputStorageFormats) { + if (!Array.isArray(object.supportedInputStorageFormats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.supportedInputStorageFormats: array expected"); + message.supportedInputStorageFormats = []; + for (var i = 0; i < object.supportedInputStorageFormats.length; ++i) + message.supportedInputStorageFormats[i] = String(object.supportedInputStorageFormats[i]); + } + if (object.supportedOutputStorageFormats) { + if (!Array.isArray(object.supportedOutputStorageFormats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.supportedOutputStorageFormats: array expected"); + message.supportedOutputStorageFormats = []; + for (var i = 0; i < object.supportedOutputStorageFormats.length; ++i) + message.supportedOutputStorageFormats[i] = String(object.supportedOutputStorageFormats[i]); } if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.createTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.updateTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); + if (object.deployedModels) { + if (!Array.isArray(object.deployedModels)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.deployedModels: array expected"); + message.deployedModels = []; + for (var i = 0; i < object.deployedModels.length; ++i) { + if (typeof object.deployedModels[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.deployedModels: object expected"); + message.deployedModels[i] = $root.google.cloud.aiplatform.v1beta1.DeployedModelRef.fromObject(object.deployedModels[i]); + } + } + if (object.explanationSpec != null) { + if (typeof object.explanationSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.explanationSpec: object expected"); + message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.fromObject(object.explanationSpec); } + if (object.etag != null) + message.etag = String(object.etag); if (object.labels) { if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.labels: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.labels: object expected"); message.labels = {}; for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) message.labels[keys[i]] = String(object.labels[keys[i]]); } if (object.encryptionSpec != null) { if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.encryptionSpec: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } - if (object.webAccessUris) { - if (typeof object.webAccessUris !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.webAccessUris: object expected"); - message.webAccessUris = {}; - for (var keys = Object.keys(object.webAccessUris), i = 0; i < keys.length; ++i) - message.webAccessUris[keys[i]] = String(object.webAccessUris[keys[i]]); - } return message; }; /** - * Creates a plain object from a CustomJob message. Also converts values to other types if specified. + * Creates a plain object from a Model message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @static - * @param {google.cloud.aiplatform.v1beta1.CustomJob} message CustomJob + * @param {google.cloud.aiplatform.v1beta1.Model} message Model * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomJob.toObject = function toObject(message, options) { + Model.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) { - object.labels = {}; - object.webAccessUris = {}; + if (options.arrays || options.defaults) { + object.supportedDeploymentResourcesTypes = []; + object.supportedInputStorageFormats = []; + object.supportedOutputStorageFormats = []; + object.deployedModels = []; + object.supportedExportFormats = []; + object.versionAliases = []; } + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { object.name = ""; object.displayName = ""; - object.jobSpec = null; - object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.description = ""; + object.predictSchemata = null; + object.metadataSchemaUri = ""; + object.metadata = null; + object.trainingPipeline = ""; + object.containerSpec = null; object.createTime = null; - object.startTime = null; - object.endTime = null; object.updateTime = null; - object.error = null; + object.etag = ""; + object.explanationSpec = null; object.encryptionSpec = null; + object.artifactUri = ""; + object.versionId = ""; + object.versionDescription = ""; + object.versionCreateTime = null; + object.versionUpdateTime = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.jobSpec != null && message.hasOwnProperty("jobSpec")) - object.jobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.toObject(message.jobSpec, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.predictSchemata != null && message.hasOwnProperty("predictSchemata")) + object.predictSchemata = $root.google.cloud.aiplatform.v1beta1.PredictSchemata.toObject(message.predictSchemata, options); + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + object.metadataSchemaUri = message.metadataSchemaUri; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); + if (message.trainingPipeline != null && message.hasOwnProperty("trainingPipeline")) + object.trainingPipeline = message.trainingPipeline; + if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) + object.containerSpec = $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec.toObject(message.containerSpec, options); + if (message.supportedDeploymentResourcesTypes && message.supportedDeploymentResourcesTypes.length) { + object.supportedDeploymentResourcesTypes = []; + for (var j = 0; j < message.supportedDeploymentResourcesTypes.length; ++j) + object.supportedDeploymentResourcesTypes[j] = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType[message.supportedDeploymentResourcesTypes[j]] : message.supportedDeploymentResourcesTypes[j]; + } + if (message.supportedInputStorageFormats && message.supportedInputStorageFormats.length) { + object.supportedInputStorageFormats = []; + for (var j = 0; j < message.supportedInputStorageFormats.length; ++j) + object.supportedInputStorageFormats[j] = message.supportedInputStorageFormats[j]; + } + if (message.supportedOutputStorageFormats && message.supportedOutputStorageFormats.length) { + object.supportedOutputStorageFormats = []; + for (var j = 0; j < message.supportedOutputStorageFormats.length; ++j) + object.supportedOutputStorageFormats[j] = message.supportedOutputStorageFormats[j]; + } if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.deployedModels && message.deployedModels.length) { + object.deployedModels = []; + for (var j = 0; j < message.deployedModels.length; ++j) + object.deployedModels[j] = $root.google.cloud.aiplatform.v1beta1.DeployedModelRef.toObject(message.deployedModels[j], options); + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; var keys2; if (message.labels && (keys2 = Object.keys(message.labels)).length) { object.labels = {}; for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.supportedExportFormats && message.supportedExportFormats.length) { + object.supportedExportFormats = []; + for (var j = 0; j < message.supportedExportFormats.length; ++j) + object.supportedExportFormats[j] = $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.toObject(message.supportedExportFormats[j], options); + } + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) + object.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.toObject(message.explanationSpec, options); if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.webAccessUris && (keys2 = Object.keys(message.webAccessUris)).length) { - object.webAccessUris = {}; - for (var j = 0; j < keys2.length; ++j) - object.webAccessUris[keys2[j]] = message.webAccessUris[keys2[j]]; + if (message.artifactUri != null && message.hasOwnProperty("artifactUri")) + object.artifactUri = message.artifactUri; + if (message.versionId != null && message.hasOwnProperty("versionId")) + object.versionId = message.versionId; + if (message.versionAliases && message.versionAliases.length) { + object.versionAliases = []; + for (var j = 0; j < message.versionAliases.length; ++j) + object.versionAliases[j] = message.versionAliases[j]; } + if (message.versionDescription != null && message.hasOwnProperty("versionDescription")) + object.versionDescription = message.versionDescription; + if (message.versionCreateTime != null && message.hasOwnProperty("versionCreateTime")) + object.versionCreateTime = $root.google.protobuf.Timestamp.toObject(message.versionCreateTime, options); + if (message.versionUpdateTime != null && message.hasOwnProperty("versionUpdateTime")) + object.versionUpdateTime = $root.google.protobuf.Timestamp.toObject(message.versionUpdateTime, options); return object; }; /** - * Converts this CustomJob to JSON. + * Converts this Model to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CustomJob + * @memberof google.cloud.aiplatform.v1beta1.Model * @instance * @returns {Object.} JSON object */ - CustomJob.prototype.toJSON = function toJSON() { + Model.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CustomJob; + Model.ExportFormat = (function() { + + /** + * Properties of an ExportFormat. + * @memberof google.cloud.aiplatform.v1beta1.Model + * @interface IExportFormat + * @property {string|null} [id] ExportFormat id + * @property {Array.|null} [exportableContents] ExportFormat exportableContents + */ + + /** + * Constructs a new ExportFormat. + * @memberof google.cloud.aiplatform.v1beta1.Model + * @classdesc Represents an ExportFormat. + * @implements IExportFormat + * @constructor + * @param {google.cloud.aiplatform.v1beta1.Model.IExportFormat=} [properties] Properties to set + */ + function ExportFormat(properties) { + this.exportableContents = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ExportFormat id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @instance + */ + ExportFormat.prototype.id = ""; + + /** + * ExportFormat exportableContents. + * @member {Array.} exportableContents + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @instance + */ + ExportFormat.prototype.exportableContents = $util.emptyArray; + + /** + * Creates a new ExportFormat instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.IExportFormat=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Model.ExportFormat} ExportFormat instance + */ + ExportFormat.create = function create(properties) { + return new ExportFormat(properties); + }; + + /** + * Encodes the specified ExportFormat message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.IExportFormat} message ExportFormat message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFormat.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.exportableContents != null && message.exportableContents.length) { + writer.uint32(/* id 2, wireType 2 =*/18).fork(); + for (var i = 0; i < message.exportableContents.length; ++i) + writer.int32(message.exportableContents[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified ExportFormat message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Model.ExportFormat.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.IExportFormat} message ExportFormat message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ExportFormat.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ExportFormat message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Model.ExportFormat} ExportFormat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFormat.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + if (!(message.exportableContents && message.exportableContents.length)) + message.exportableContents = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.exportableContents.push(reader.int32()); + } else + message.exportableContents.push(reader.int32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an ExportFormat message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Model.ExportFormat} ExportFormat + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ExportFormat.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an ExportFormat message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ExportFormat.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.exportableContents != null && message.hasOwnProperty("exportableContents")) { + if (!Array.isArray(message.exportableContents)) + return "exportableContents: array expected"; + for (var i = 0; i < message.exportableContents.length; ++i) + switch (message.exportableContents[i]) { + default: + return "exportableContents: enum value[] expected"; + case 0: + case 1: + case 2: + break; + } + } + return null; + }; + + /** + * Creates an ExportFormat message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Model.ExportFormat} ExportFormat + */ + ExportFormat.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat(); + if (object.id != null) + message.id = String(object.id); + if (object.exportableContents) { + if (!Array.isArray(object.exportableContents)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Model.ExportFormat.exportableContents: array expected"); + message.exportableContents = []; + for (var i = 0; i < object.exportableContents.length; ++i) + switch (object.exportableContents[i]) { + default: + case "EXPORTABLE_CONTENT_UNSPECIFIED": + case 0: + message.exportableContents[i] = 0; + break; + case "ARTIFACT": + case 1: + message.exportableContents[i] = 1; + break; + case "IMAGE": + case 2: + message.exportableContents[i] = 2; + break; + } + } + return message; + }; + + /** + * Creates a plain object from an ExportFormat message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @static + * @param {google.cloud.aiplatform.v1beta1.Model.ExportFormat} message ExportFormat + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ExportFormat.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.exportableContents = []; + if (options.defaults) + object.id = ""; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.exportableContents && message.exportableContents.length) { + object.exportableContents = []; + for (var j = 0; j < message.exportableContents.length; ++j) + object.exportableContents[j] = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent[message.exportableContents[j]] : message.exportableContents[j]; + } + return object; + }; + + /** + * Converts this ExportFormat to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Model.ExportFormat + * @instance + * @returns {Object.} JSON object + */ + ExportFormat.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * ExportableContent enum. + * @name google.cloud.aiplatform.v1beta1.Model.ExportFormat.ExportableContent + * @enum {number} + * @property {number} EXPORTABLE_CONTENT_UNSPECIFIED=0 EXPORTABLE_CONTENT_UNSPECIFIED value + * @property {number} ARTIFACT=1 ARTIFACT value + * @property {number} IMAGE=2 IMAGE value + */ + ExportFormat.ExportableContent = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "EXPORTABLE_CONTENT_UNSPECIFIED"] = 0; + values[valuesById[1] = "ARTIFACT"] = 1; + values[valuesById[2] = "IMAGE"] = 2; + return values; + })(); + + return ExportFormat; + })(); + + /** + * DeploymentResourcesType enum. + * @name google.cloud.aiplatform.v1beta1.Model.DeploymentResourcesType + * @enum {number} + * @property {number} DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED=0 DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED value + * @property {number} DEDICATED_RESOURCES=1 DEDICATED_RESOURCES value + * @property {number} AUTOMATIC_RESOURCES=2 AUTOMATIC_RESOURCES value + */ + Model.DeploymentResourcesType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "DEPLOYMENT_RESOURCES_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DEDICATED_RESOURCES"] = 1; + values[valuesById[2] = "AUTOMATIC_RESOURCES"] = 2; + return values; + })(); + + return Model; })(); - v1beta1.CustomJobSpec = (function() { + v1beta1.PredictSchemata = (function() { /** - * Properties of a CustomJobSpec. + * Properties of a PredictSchemata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICustomJobSpec - * @property {Array.|null} [workerPoolSpecs] CustomJobSpec workerPoolSpecs - * @property {google.cloud.aiplatform.v1beta1.IScheduling|null} [scheduling] CustomJobSpec scheduling - * @property {string|null} [serviceAccount] CustomJobSpec serviceAccount - * @property {string|null} [network] CustomJobSpec network - * @property {Array.|null} [reservedIpRanges] CustomJobSpec reservedIpRanges - * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [baseOutputDirectory] CustomJobSpec baseOutputDirectory - * @property {string|null} [tensorboard] CustomJobSpec tensorboard - * @property {boolean|null} [enableWebAccess] CustomJobSpec enableWebAccess + * @interface IPredictSchemata + * @property {string|null} [instanceSchemaUri] PredictSchemata instanceSchemaUri + * @property {string|null} [parametersSchemaUri] PredictSchemata parametersSchemaUri + * @property {string|null} [predictionSchemaUri] PredictSchemata predictionSchemaUri */ /** - * Constructs a new CustomJobSpec. + * Constructs a new PredictSchemata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CustomJobSpec. - * @implements ICustomJobSpec + * @classdesc Represents a PredictSchemata. + * @implements IPredictSchemata * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata=} [properties] Properties to set */ - function CustomJobSpec(properties) { - this.workerPoolSpecs = []; - this.reservedIpRanges = []; + function PredictSchemata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -165791,172 +170357,101 @@ } /** - * CustomJobSpec workerPoolSpecs. - * @member {Array.} workerPoolSpecs - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec - * @instance - */ - CustomJobSpec.prototype.workerPoolSpecs = $util.emptyArray; - - /** - * CustomJobSpec scheduling. - * @member {google.cloud.aiplatform.v1beta1.IScheduling|null|undefined} scheduling - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec - * @instance - */ - CustomJobSpec.prototype.scheduling = null; - - /** - * CustomJobSpec serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec - * @instance - */ - CustomJobSpec.prototype.serviceAccount = ""; - - /** - * CustomJobSpec network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec - * @instance - */ - CustomJobSpec.prototype.network = ""; - - /** - * CustomJobSpec reservedIpRanges. - * @member {Array.} reservedIpRanges - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec - * @instance - */ - CustomJobSpec.prototype.reservedIpRanges = $util.emptyArray; - - /** - * CustomJobSpec baseOutputDirectory. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} baseOutputDirectory - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * PredictSchemata instanceSchemaUri. + * @member {string} instanceSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @instance */ - CustomJobSpec.prototype.baseOutputDirectory = null; + PredictSchemata.prototype.instanceSchemaUri = ""; /** - * CustomJobSpec tensorboard. - * @member {string} tensorboard - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * PredictSchemata parametersSchemaUri. + * @member {string} parametersSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @instance */ - CustomJobSpec.prototype.tensorboard = ""; + PredictSchemata.prototype.parametersSchemaUri = ""; /** - * CustomJobSpec enableWebAccess. - * @member {boolean} enableWebAccess - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * PredictSchemata predictionSchemaUri. + * @member {string} predictionSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @instance */ - CustomJobSpec.prototype.enableWebAccess = false; + PredictSchemata.prototype.predictionSchemaUri = ""; /** - * Creates a new CustomJobSpec instance using the specified properties. + * Creates a new PredictSchemata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec instance + * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata instance */ - CustomJobSpec.create = function create(properties) { - return new CustomJobSpec(properties); + PredictSchemata.create = function create(properties) { + return new PredictSchemata(properties); }; /** - * Encodes the specified CustomJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. + * Encodes the specified PredictSchemata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec} message CustomJobSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata} message PredictSchemata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomJobSpec.encode = function encode(message, writer) { + PredictSchemata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.workerPoolSpecs != null && message.workerPoolSpecs.length) - for (var i = 0; i < message.workerPoolSpecs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.encode(message.workerPoolSpecs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.scheduling != null && Object.hasOwnProperty.call(message, "scheduling")) - $root.google.cloud.aiplatform.v1beta1.Scheduling.encode(message.scheduling, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.serviceAccount); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.network); - if (message.baseOutputDirectory != null && Object.hasOwnProperty.call(message, "baseOutputDirectory")) - $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.baseOutputDirectory, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.tensorboard != null && Object.hasOwnProperty.call(message, "tensorboard")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.tensorboard); - if (message.enableWebAccess != null && Object.hasOwnProperty.call(message, "enableWebAccess")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enableWebAccess); - if (message.reservedIpRanges != null && message.reservedIpRanges.length) - for (var i = 0; i < message.reservedIpRanges.length; ++i) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.reservedIpRanges[i]); + if (message.instanceSchemaUri != null && Object.hasOwnProperty.call(message, "instanceSchemaUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.instanceSchemaUri); + if (message.parametersSchemaUri != null && Object.hasOwnProperty.call(message, "parametersSchemaUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.parametersSchemaUri); + if (message.predictionSchemaUri != null && Object.hasOwnProperty.call(message, "predictionSchemaUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.predictionSchemaUri); return writer; }; /** - * Encodes the specified CustomJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. + * Encodes the specified PredictSchemata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictSchemata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static - * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec} message CustomJobSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredictSchemata} message PredictSchemata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CustomJobSpec.encodeDelimited = function encodeDelimited(message, writer) { + PredictSchemata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CustomJobSpec message from the specified reader or buffer. + * Decodes a PredictSchemata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec + * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomJobSpec.decode = function decode(reader, length) { + PredictSchemata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CustomJobSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredictSchemata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.workerPoolSpecs && message.workerPoolSpecs.length)) - message.workerPoolSpecs = []; - message.workerPoolSpecs.push($root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.decode(reader, reader.uint32())); - break; - case 3: - message.scheduling = $root.google.cloud.aiplatform.v1beta1.Scheduling.decode(reader, reader.uint32()); - break; - case 4: - message.serviceAccount = reader.string(); - break; - case 5: - message.network = reader.string(); - break; - case 13: - if (!(message.reservedIpRanges && message.reservedIpRanges.length)) - message.reservedIpRanges = []; - message.reservedIpRanges.push(reader.string()); - break; - case 6: - message.baseOutputDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + message.instanceSchemaUri = reader.string(); break; - case 7: - message.tensorboard = reader.string(); + case 2: + message.parametersSchemaUri = reader.string(); break; - case 10: - message.enableWebAccess = reader.bool(); + case 3: + message.predictionSchemaUri = reader.string(); break; default: reader.skipType(tag & 7); @@ -165967,211 +170462,134 @@ }; /** - * Decodes a CustomJobSpec message from the specified reader or buffer, length delimited. + * Decodes a PredictSchemata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec + * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CustomJobSpec.decodeDelimited = function decodeDelimited(reader) { + PredictSchemata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CustomJobSpec message. + * Verifies a PredictSchemata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CustomJobSpec.verify = function verify(message) { + PredictSchemata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.workerPoolSpecs != null && message.hasOwnProperty("workerPoolSpecs")) { - if (!Array.isArray(message.workerPoolSpecs)) - return "workerPoolSpecs: array expected"; - for (var i = 0; i < message.workerPoolSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify(message.workerPoolSpecs[i]); - if (error) - return "workerPoolSpecs." + error; - } - } - if (message.scheduling != null && message.hasOwnProperty("scheduling")) { - var error = $root.google.cloud.aiplatform.v1beta1.Scheduling.verify(message.scheduling); - if (error) - return "scheduling." + error; - } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { - if (!Array.isArray(message.reservedIpRanges)) - return "reservedIpRanges: array expected"; - for (var i = 0; i < message.reservedIpRanges.length; ++i) - if (!$util.isString(message.reservedIpRanges[i])) - return "reservedIpRanges: string[] expected"; - } - if (message.baseOutputDirectory != null && message.hasOwnProperty("baseOutputDirectory")) { - var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.baseOutputDirectory); - if (error) - return "baseOutputDirectory." + error; - } - if (message.tensorboard != null && message.hasOwnProperty("tensorboard")) - if (!$util.isString(message.tensorboard)) - return "tensorboard: string expected"; - if (message.enableWebAccess != null && message.hasOwnProperty("enableWebAccess")) - if (typeof message.enableWebAccess !== "boolean") - return "enableWebAccess: boolean expected"; + if (message.instanceSchemaUri != null && message.hasOwnProperty("instanceSchemaUri")) + if (!$util.isString(message.instanceSchemaUri)) + return "instanceSchemaUri: string expected"; + if (message.parametersSchemaUri != null && message.hasOwnProperty("parametersSchemaUri")) + if (!$util.isString(message.parametersSchemaUri)) + return "parametersSchemaUri: string expected"; + if (message.predictionSchemaUri != null && message.hasOwnProperty("predictionSchemaUri")) + if (!$util.isString(message.predictionSchemaUri)) + return "predictionSchemaUri: string expected"; return null; }; /** - * Creates a CustomJobSpec message from a plain object. Also converts values to their respective internal types. + * Creates a PredictSchemata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec + * @returns {google.cloud.aiplatform.v1beta1.PredictSchemata} PredictSchemata */ - CustomJobSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CustomJobSpec) + PredictSchemata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictSchemata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CustomJobSpec(); - if (object.workerPoolSpecs) { - if (!Array.isArray(object.workerPoolSpecs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.workerPoolSpecs: array expected"); - message.workerPoolSpecs = []; - for (var i = 0; i < object.workerPoolSpecs.length; ++i) { - if (typeof object.workerPoolSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.workerPoolSpecs: object expected"); - message.workerPoolSpecs[i] = $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.fromObject(object.workerPoolSpecs[i]); - } - } - if (object.scheduling != null) { - if (typeof object.scheduling !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.scheduling: object expected"); - message.scheduling = $root.google.cloud.aiplatform.v1beta1.Scheduling.fromObject(object.scheduling); - } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); - if (object.network != null) - message.network = String(object.network); - if (object.reservedIpRanges) { - if (!Array.isArray(object.reservedIpRanges)) - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.reservedIpRanges: array expected"); - message.reservedIpRanges = []; - for (var i = 0; i < object.reservedIpRanges.length; ++i) - message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); - } - if (object.baseOutputDirectory != null) { - if (typeof object.baseOutputDirectory !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.baseOutputDirectory: object expected"); - message.baseOutputDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.baseOutputDirectory); - } - if (object.tensorboard != null) - message.tensorboard = String(object.tensorboard); - if (object.enableWebAccess != null) - message.enableWebAccess = Boolean(object.enableWebAccess); + var message = new $root.google.cloud.aiplatform.v1beta1.PredictSchemata(); + if (object.instanceSchemaUri != null) + message.instanceSchemaUri = String(object.instanceSchemaUri); + if (object.parametersSchemaUri != null) + message.parametersSchemaUri = String(object.parametersSchemaUri); + if (object.predictionSchemaUri != null) + message.predictionSchemaUri = String(object.predictionSchemaUri); return message; }; /** - * Creates a plain object from a CustomJobSpec message. Also converts values to other types if specified. + * Creates a plain object from a PredictSchemata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @static - * @param {google.cloud.aiplatform.v1beta1.CustomJobSpec} message CustomJobSpec + * @param {google.cloud.aiplatform.v1beta1.PredictSchemata} message PredictSchemata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CustomJobSpec.toObject = function toObject(message, options) { + PredictSchemata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.workerPoolSpecs = []; - object.reservedIpRanges = []; - } if (options.defaults) { - object.scheduling = null; - object.serviceAccount = ""; - object.network = ""; - object.baseOutputDirectory = null; - object.tensorboard = ""; - object.enableWebAccess = false; - } - if (message.workerPoolSpecs && message.workerPoolSpecs.length) { - object.workerPoolSpecs = []; - for (var j = 0; j < message.workerPoolSpecs.length; ++j) - object.workerPoolSpecs[j] = $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.toObject(message.workerPoolSpecs[j], options); - } - if (message.scheduling != null && message.hasOwnProperty("scheduling")) - object.scheduling = $root.google.cloud.aiplatform.v1beta1.Scheduling.toObject(message.scheduling, options); - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.baseOutputDirectory != null && message.hasOwnProperty("baseOutputDirectory")) - object.baseOutputDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.baseOutputDirectory, options); - if (message.tensorboard != null && message.hasOwnProperty("tensorboard")) - object.tensorboard = message.tensorboard; - if (message.enableWebAccess != null && message.hasOwnProperty("enableWebAccess")) - object.enableWebAccess = message.enableWebAccess; - if (message.reservedIpRanges && message.reservedIpRanges.length) { - object.reservedIpRanges = []; - for (var j = 0; j < message.reservedIpRanges.length; ++j) - object.reservedIpRanges[j] = message.reservedIpRanges[j]; + object.instanceSchemaUri = ""; + object.parametersSchemaUri = ""; + object.predictionSchemaUri = ""; } + if (message.instanceSchemaUri != null && message.hasOwnProperty("instanceSchemaUri")) + object.instanceSchemaUri = message.instanceSchemaUri; + if (message.parametersSchemaUri != null && message.hasOwnProperty("parametersSchemaUri")) + object.parametersSchemaUri = message.parametersSchemaUri; + if (message.predictionSchemaUri != null && message.hasOwnProperty("predictionSchemaUri")) + object.predictionSchemaUri = message.predictionSchemaUri; return object; }; /** - * Converts this CustomJobSpec to JSON. + * Converts this PredictSchemata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @memberof google.cloud.aiplatform.v1beta1.PredictSchemata * @instance * @returns {Object.} JSON object */ - CustomJobSpec.prototype.toJSON = function toJSON() { + PredictSchemata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CustomJobSpec; + return PredictSchemata; })(); - v1beta1.WorkerPoolSpec = (function() { + v1beta1.ModelContainerSpec = (function() { /** - * Properties of a WorkerPoolSpec. + * Properties of a ModelContainerSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IWorkerPoolSpec - * @property {google.cloud.aiplatform.v1beta1.IContainerSpec|null} [containerSpec] WorkerPoolSpec containerSpec - * @property {google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null} [pythonPackageSpec] WorkerPoolSpec pythonPackageSpec - * @property {google.cloud.aiplatform.v1beta1.IMachineSpec|null} [machineSpec] WorkerPoolSpec machineSpec - * @property {number|Long|null} [replicaCount] WorkerPoolSpec replicaCount - * @property {Array.|null} [nfsMounts] WorkerPoolSpec nfsMounts - * @property {google.cloud.aiplatform.v1beta1.IDiskSpec|null} [diskSpec] WorkerPoolSpec diskSpec + * @interface IModelContainerSpec + * @property {string|null} [imageUri] ModelContainerSpec imageUri + * @property {Array.|null} [command] ModelContainerSpec command + * @property {Array.|null} [args] ModelContainerSpec args + * @property {Array.|null} [env] ModelContainerSpec env + * @property {Array.|null} [ports] ModelContainerSpec ports + * @property {string|null} [predictRoute] ModelContainerSpec predictRoute + * @property {string|null} [healthRoute] ModelContainerSpec healthRoute */ /** - * Constructs a new WorkerPoolSpec. + * Constructs a new ModelContainerSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a WorkerPoolSpec. - * @implements IWorkerPoolSpec + * @classdesc Represents a ModelContainerSpec. + * @implements IModelContainerSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec=} [properties] Properties to set */ - function WorkerPoolSpec(properties) { - this.nfsMounts = []; + function ModelContainerSpec(properties) { + this.command = []; + this.args = []; + this.env = []; + this.ports = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -166179,157 +170597,165 @@ } /** - * WorkerPoolSpec containerSpec. - * @member {google.cloud.aiplatform.v1beta1.IContainerSpec|null|undefined} containerSpec - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * ModelContainerSpec imageUri. + * @member {string} imageUri + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance */ - WorkerPoolSpec.prototype.containerSpec = null; + ModelContainerSpec.prototype.imageUri = ""; /** - * WorkerPoolSpec pythonPackageSpec. - * @member {google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null|undefined} pythonPackageSpec - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * ModelContainerSpec command. + * @member {Array.} command + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance */ - WorkerPoolSpec.prototype.pythonPackageSpec = null; + ModelContainerSpec.prototype.command = $util.emptyArray; /** - * WorkerPoolSpec machineSpec. - * @member {google.cloud.aiplatform.v1beta1.IMachineSpec|null|undefined} machineSpec - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * ModelContainerSpec args. + * @member {Array.} args + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance */ - WorkerPoolSpec.prototype.machineSpec = null; + ModelContainerSpec.prototype.args = $util.emptyArray; /** - * WorkerPoolSpec replicaCount. - * @member {number|Long} replicaCount - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * ModelContainerSpec env. + * @member {Array.} env + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance */ - WorkerPoolSpec.prototype.replicaCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ModelContainerSpec.prototype.env = $util.emptyArray; /** - * WorkerPoolSpec nfsMounts. - * @member {Array.} nfsMounts - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * ModelContainerSpec ports. + * @member {Array.} ports + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance */ - WorkerPoolSpec.prototype.nfsMounts = $util.emptyArray; + ModelContainerSpec.prototype.ports = $util.emptyArray; /** - * WorkerPoolSpec diskSpec. - * @member {google.cloud.aiplatform.v1beta1.IDiskSpec|null|undefined} diskSpec - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * ModelContainerSpec predictRoute. + * @member {string} predictRoute + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance */ - WorkerPoolSpec.prototype.diskSpec = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ModelContainerSpec.prototype.predictRoute = ""; /** - * WorkerPoolSpec task. - * @member {"containerSpec"|"pythonPackageSpec"|undefined} task - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * ModelContainerSpec healthRoute. + * @member {string} healthRoute + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance */ - Object.defineProperty(WorkerPoolSpec.prototype, "task", { - get: $util.oneOfGetter($oneOfFields = ["containerSpec", "pythonPackageSpec"]), - set: $util.oneOfSetter($oneOfFields) - }); + ModelContainerSpec.prototype.healthRoute = ""; /** - * Creates a new WorkerPoolSpec instance using the specified properties. + * Creates a new ModelContainerSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec instance + * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec instance */ - WorkerPoolSpec.create = function create(properties) { - return new WorkerPoolSpec(properties); + ModelContainerSpec.create = function create(properties) { + return new ModelContainerSpec(properties); }; /** - * Encodes the specified WorkerPoolSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. + * Encodes the specified ModelContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec} message WorkerPoolSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec} message ModelContainerSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkerPoolSpec.encode = function encode(message, writer) { + ModelContainerSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.machineSpec != null && Object.hasOwnProperty.call(message, "machineSpec")) - $root.google.cloud.aiplatform.v1beta1.MachineSpec.encode(message.machineSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.replicaCount != null && Object.hasOwnProperty.call(message, "replicaCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.replicaCount); - if (message.nfsMounts != null && message.nfsMounts.length) - for (var i = 0; i < message.nfsMounts.length; ++i) - $root.google.cloud.aiplatform.v1beta1.NfsMount.encode(message.nfsMounts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.diskSpec != null && Object.hasOwnProperty.call(message, "diskSpec")) - $root.google.cloud.aiplatform.v1beta1.DiskSpec.encode(message.diskSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.containerSpec != null && Object.hasOwnProperty.call(message, "containerSpec")) - $root.google.cloud.aiplatform.v1beta1.ContainerSpec.encode(message.containerSpec, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.pythonPackageSpec != null && Object.hasOwnProperty.call(message, "pythonPackageSpec")) - $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.encode(message.pythonPackageSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.imageUri != null && Object.hasOwnProperty.call(message, "imageUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageUri); + if (message.command != null && message.command.length) + for (var i = 0; i < message.command.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.command[i]); + if (message.args != null && message.args.length) + for (var i = 0; i < message.args.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.args[i]); + if (message.env != null && message.env.length) + for (var i = 0; i < message.env.length; ++i) + $root.google.cloud.aiplatform.v1beta1.EnvVar.encode(message.env[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.ports != null && message.ports.length) + for (var i = 0; i < message.ports.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Port.encode(message.ports[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.predictRoute != null && Object.hasOwnProperty.call(message, "predictRoute")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.predictRoute); + if (message.healthRoute != null && Object.hasOwnProperty.call(message, "healthRoute")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.healthRoute); return writer; }; /** - * Encodes the specified WorkerPoolSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. + * Encodes the specified ModelContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelContainerSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec} message WorkerPoolSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelContainerSpec} message ModelContainerSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - WorkerPoolSpec.encodeDelimited = function encodeDelimited(message, writer) { + ModelContainerSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a WorkerPoolSpec message from the specified reader or buffer. + * Decodes a ModelContainerSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec + * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkerPoolSpec.decode = function decode(reader, length) { + ModelContainerSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 6: - message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ContainerSpec.decode(reader, reader.uint32()); - break; - case 7: - message.pythonPackageSpec = $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.decode(reader, reader.uint32()); - break; case 1: - message.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.decode(reader, reader.uint32()); + message.imageUri = reader.string(); break; case 2: - message.replicaCount = reader.int64(); + if (!(message.command && message.command.length)) + message.command = []; + message.command.push(reader.string()); + break; + case 3: + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); break; case 4: - if (!(message.nfsMounts && message.nfsMounts.length)) - message.nfsMounts = []; - message.nfsMounts.push($root.google.cloud.aiplatform.v1beta1.NfsMount.decode(reader, reader.uint32())); + if (!(message.env && message.env.length)) + message.env = []; + message.env.push($root.google.cloud.aiplatform.v1beta1.EnvVar.decode(reader, reader.uint32())); break; case 5: - message.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.decode(reader, reader.uint32()); + if (!(message.ports && message.ports.length)) + message.ports = []; + message.ports.push($root.google.cloud.aiplatform.v1beta1.Port.decode(reader, reader.uint32())); + break; + case 6: + message.predictRoute = reader.string(); + break; + case 7: + message.healthRoute = reader.string(); break; default: reader.skipType(tag & 7); @@ -166340,217 +170766,216 @@ }; /** - * Decodes a WorkerPoolSpec message from the specified reader or buffer, length delimited. + * Decodes a ModelContainerSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec + * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - WorkerPoolSpec.decodeDelimited = function decodeDelimited(reader) { + ModelContainerSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a WorkerPoolSpec message. + * Verifies a ModelContainerSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - WorkerPoolSpec.verify = function verify(message) { + ModelContainerSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { - properties.task = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.ContainerSpec.verify(message.containerSpec); - if (error) - return "containerSpec." + error; - } + if (message.imageUri != null && message.hasOwnProperty("imageUri")) + if (!$util.isString(message.imageUri)) + return "imageUri: string expected"; + if (message.command != null && message.hasOwnProperty("command")) { + if (!Array.isArray(message.command)) + return "command: array expected"; + for (var i = 0; i < message.command.length; ++i) + if (!$util.isString(message.command[i])) + return "command: string[] expected"; } - if (message.pythonPackageSpec != null && message.hasOwnProperty("pythonPackageSpec")) { - if (properties.task === 1) - return "task: multiple values"; - properties.task = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify(message.pythonPackageSpec); + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (var i = 0; i < message.args.length; ++i) + if (!$util.isString(message.args[i])) + return "args: string[] expected"; + } + if (message.env != null && message.hasOwnProperty("env")) { + if (!Array.isArray(message.env)) + return "env: array expected"; + for (var i = 0; i < message.env.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.EnvVar.verify(message.env[i]); if (error) - return "pythonPackageSpec." + error; + return "env." + error; } } - if (message.machineSpec != null && message.hasOwnProperty("machineSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.MachineSpec.verify(message.machineSpec); - if (error) - return "machineSpec." + error; - } - if (message.replicaCount != null && message.hasOwnProperty("replicaCount")) - if (!$util.isInteger(message.replicaCount) && !(message.replicaCount && $util.isInteger(message.replicaCount.low) && $util.isInteger(message.replicaCount.high))) - return "replicaCount: integer|Long expected"; - if (message.nfsMounts != null && message.hasOwnProperty("nfsMounts")) { - if (!Array.isArray(message.nfsMounts)) - return "nfsMounts: array expected"; - for (var i = 0; i < message.nfsMounts.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.NfsMount.verify(message.nfsMounts[i]); + if (message.ports != null && message.hasOwnProperty("ports")) { + if (!Array.isArray(message.ports)) + return "ports: array expected"; + for (var i = 0; i < message.ports.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Port.verify(message.ports[i]); if (error) - return "nfsMounts." + error; + return "ports." + error; } } - if (message.diskSpec != null && message.hasOwnProperty("diskSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.DiskSpec.verify(message.diskSpec); - if (error) - return "diskSpec." + error; - } + if (message.predictRoute != null && message.hasOwnProperty("predictRoute")) + if (!$util.isString(message.predictRoute)) + return "predictRoute: string expected"; + if (message.healthRoute != null && message.hasOwnProperty("healthRoute")) + if (!$util.isString(message.healthRoute)) + return "healthRoute: string expected"; return null; }; /** - * Creates a WorkerPoolSpec message from a plain object. Also converts values to their respective internal types. + * Creates a ModelContainerSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec + * @returns {google.cloud.aiplatform.v1beta1.ModelContainerSpec} ModelContainerSpec */ - WorkerPoolSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec) + ModelContainerSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec(); - if (object.containerSpec != null) { - if (typeof object.containerSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.containerSpec: object expected"); - message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ContainerSpec.fromObject(object.containerSpec); - } - if (object.pythonPackageSpec != null) { - if (typeof object.pythonPackageSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.pythonPackageSpec: object expected"); - message.pythonPackageSpec = $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.fromObject(object.pythonPackageSpec); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelContainerSpec(); + if (object.imageUri != null) + message.imageUri = String(object.imageUri); + if (object.command) { + if (!Array.isArray(object.command)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.command: array expected"); + message.command = []; + for (var i = 0; i < object.command.length; ++i) + message.command[i] = String(object.command[i]); } - if (object.machineSpec != null) { - if (typeof object.machineSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.machineSpec: object expected"); - message.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.fromObject(object.machineSpec); + if (object.args) { + if (!Array.isArray(object.args)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.args: array expected"); + message.args = []; + for (var i = 0; i < object.args.length; ++i) + message.args[i] = String(object.args[i]); } - if (object.replicaCount != null) - if ($util.Long) - (message.replicaCount = $util.Long.fromValue(object.replicaCount)).unsigned = false; - else if (typeof object.replicaCount === "string") - message.replicaCount = parseInt(object.replicaCount, 10); - else if (typeof object.replicaCount === "number") - message.replicaCount = object.replicaCount; - else if (typeof object.replicaCount === "object") - message.replicaCount = new $util.LongBits(object.replicaCount.low >>> 0, object.replicaCount.high >>> 0).toNumber(); - if (object.nfsMounts) { - if (!Array.isArray(object.nfsMounts)) - throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.nfsMounts: array expected"); - message.nfsMounts = []; - for (var i = 0; i < object.nfsMounts.length; ++i) { - if (typeof object.nfsMounts[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.nfsMounts: object expected"); - message.nfsMounts[i] = $root.google.cloud.aiplatform.v1beta1.NfsMount.fromObject(object.nfsMounts[i]); + if (object.env) { + if (!Array.isArray(object.env)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.env: array expected"); + message.env = []; + for (var i = 0; i < object.env.length; ++i) { + if (typeof object.env[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.env: object expected"); + message.env[i] = $root.google.cloud.aiplatform.v1beta1.EnvVar.fromObject(object.env[i]); } } - if (object.diskSpec != null) { - if (typeof object.diskSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.diskSpec: object expected"); - message.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.fromObject(object.diskSpec); + if (object.ports) { + if (!Array.isArray(object.ports)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports: array expected"); + message.ports = []; + for (var i = 0; i < object.ports.length; ++i) { + if (typeof object.ports[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelContainerSpec.ports: object expected"); + message.ports[i] = $root.google.cloud.aiplatform.v1beta1.Port.fromObject(object.ports[i]); + } } + if (object.predictRoute != null) + message.predictRoute = String(object.predictRoute); + if (object.healthRoute != null) + message.healthRoute = String(object.healthRoute); return message; }; /** - * Creates a plain object from a WorkerPoolSpec message. Also converts values to other types if specified. + * Creates a plain object from a ModelContainerSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} message WorkerPoolSpec + * @param {google.cloud.aiplatform.v1beta1.ModelContainerSpec} message ModelContainerSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - WorkerPoolSpec.toObject = function toObject(message, options) { + ModelContainerSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.nfsMounts = []; + if (options.arrays || options.defaults) { + object.command = []; + object.args = []; + object.env = []; + object.ports = []; + } if (options.defaults) { - object.machineSpec = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.replicaCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.replicaCount = options.longs === String ? "0" : 0; - object.diskSpec = null; + object.imageUri = ""; + object.predictRoute = ""; + object.healthRoute = ""; } - if (message.machineSpec != null && message.hasOwnProperty("machineSpec")) - object.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.toObject(message.machineSpec, options); - if (message.replicaCount != null && message.hasOwnProperty("replicaCount")) - if (typeof message.replicaCount === "number") - object.replicaCount = options.longs === String ? String(message.replicaCount) : message.replicaCount; - else - object.replicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.replicaCount) : options.longs === Number ? new $util.LongBits(message.replicaCount.low >>> 0, message.replicaCount.high >>> 0).toNumber() : message.replicaCount; - if (message.nfsMounts && message.nfsMounts.length) { - object.nfsMounts = []; - for (var j = 0; j < message.nfsMounts.length; ++j) - object.nfsMounts[j] = $root.google.cloud.aiplatform.v1beta1.NfsMount.toObject(message.nfsMounts[j], options); + if (message.imageUri != null && message.hasOwnProperty("imageUri")) + object.imageUri = message.imageUri; + if (message.command && message.command.length) { + object.command = []; + for (var j = 0; j < message.command.length; ++j) + object.command[j] = message.command[j]; } - if (message.diskSpec != null && message.hasOwnProperty("diskSpec")) - object.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.toObject(message.diskSpec, options); - if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { - object.containerSpec = $root.google.cloud.aiplatform.v1beta1.ContainerSpec.toObject(message.containerSpec, options); - if (options.oneofs) - object.task = "containerSpec"; + if (message.args && message.args.length) { + object.args = []; + for (var j = 0; j < message.args.length; ++j) + object.args[j] = message.args[j]; } - if (message.pythonPackageSpec != null && message.hasOwnProperty("pythonPackageSpec")) { - object.pythonPackageSpec = $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.toObject(message.pythonPackageSpec, options); - if (options.oneofs) - object.task = "pythonPackageSpec"; + if (message.env && message.env.length) { + object.env = []; + for (var j = 0; j < message.env.length; ++j) + object.env[j] = $root.google.cloud.aiplatform.v1beta1.EnvVar.toObject(message.env[j], options); + } + if (message.ports && message.ports.length) { + object.ports = []; + for (var j = 0; j < message.ports.length; ++j) + object.ports[j] = $root.google.cloud.aiplatform.v1beta1.Port.toObject(message.ports[j], options); } + if (message.predictRoute != null && message.hasOwnProperty("predictRoute")) + object.predictRoute = message.predictRoute; + if (message.healthRoute != null && message.hasOwnProperty("healthRoute")) + object.healthRoute = message.healthRoute; return object; }; /** - * Converts this WorkerPoolSpec to JSON. + * Converts this ModelContainerSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelContainerSpec * @instance * @returns {Object.} JSON object */ - WorkerPoolSpec.prototype.toJSON = function toJSON() { + ModelContainerSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return WorkerPoolSpec; + return ModelContainerSpec; })(); - v1beta1.ContainerSpec = (function() { + v1beta1.Port = (function() { /** - * Properties of a ContainerSpec. + * Properties of a Port. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IContainerSpec - * @property {string|null} [imageUri] ContainerSpec imageUri - * @property {Array.|null} [command] ContainerSpec command - * @property {Array.|null} [args] ContainerSpec args + * @interface IPort + * @property {number|null} [containerPort] Port containerPort */ /** - * Constructs a new ContainerSpec. + * Constructs a new Port. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ContainerSpec. - * @implements IContainerSpec + * @classdesc Represents a Port. + * @implements IPort * @constructor - * @param {google.cloud.aiplatform.v1beta1.IContainerSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPort=} [properties] Properties to set */ - function ContainerSpec(properties) { - this.command = []; - this.args = []; + function Port(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -166558,107 +170983,75 @@ } /** - * ContainerSpec imageUri. - * @member {string} imageUri - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec - * @instance - */ - ContainerSpec.prototype.imageUri = ""; - - /** - * ContainerSpec command. - * @member {Array.} command - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec - * @instance - */ - ContainerSpec.prototype.command = $util.emptyArray; - - /** - * ContainerSpec args. - * @member {Array.} args - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * Port containerPort. + * @member {number} containerPort + * @memberof google.cloud.aiplatform.v1beta1.Port * @instance */ - ContainerSpec.prototype.args = $util.emptyArray; + Port.prototype.containerPort = 0; /** - * Creates a new ContainerSpec instance using the specified properties. + * Creates a new Port instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Port * @static - * @param {google.cloud.aiplatform.v1beta1.IContainerSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec instance + * @param {google.cloud.aiplatform.v1beta1.IPort=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Port} Port instance */ - ContainerSpec.create = function create(properties) { - return new ContainerSpec(properties); + Port.create = function create(properties) { + return new Port(properties); }; /** - * Encodes the specified ContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. + * Encodes the specified Port message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Port * @static - * @param {google.cloud.aiplatform.v1beta1.IContainerSpec} message ContainerSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPort} message Port message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ContainerSpec.encode = function encode(message, writer) { + Port.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.imageUri != null && Object.hasOwnProperty.call(message, "imageUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageUri); - if (message.command != null && message.command.length) - for (var i = 0; i < message.command.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.command[i]); - if (message.args != null && message.args.length) - for (var i = 0; i < message.args.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.args[i]); + if (message.containerPort != null && Object.hasOwnProperty.call(message, "containerPort")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.containerPort); return writer; }; /** - * Encodes the specified ContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. + * Encodes the specified Port message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Port.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Port * @static - * @param {google.cloud.aiplatform.v1beta1.IContainerSpec} message ContainerSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPort} message Port message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ContainerSpec.encodeDelimited = function encodeDelimited(message, writer) { + Port.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ContainerSpec message from the specified reader or buffer. + * Decodes a Port message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Port * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec + * @returns {google.cloud.aiplatform.v1beta1.Port} Port * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ContainerSpec.decode = function decode(reader, length) { + Port.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ContainerSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Port(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.imageUri = reader.string(); - break; - case 2: - if (!(message.command && message.command.length)) - message.command = []; - message.command.push(reader.string()); - break; case 3: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); + message.containerPort = reader.int32(); break; default: reader.skipType(tag & 7); @@ -166669,154 +171062,108 @@ }; /** - * Decodes a ContainerSpec message from the specified reader or buffer, length delimited. + * Decodes a Port message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Port * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec + * @returns {google.cloud.aiplatform.v1beta1.Port} Port * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ContainerSpec.decodeDelimited = function decodeDelimited(reader) { + Port.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ContainerSpec message. + * Verifies a Port message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Port * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ContainerSpec.verify = function verify(message) { + Port.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.imageUri != null && message.hasOwnProperty("imageUri")) - if (!$util.isString(message.imageUri)) - return "imageUri: string expected"; - if (message.command != null && message.hasOwnProperty("command")) { - if (!Array.isArray(message.command)) - return "command: array expected"; - for (var i = 0; i < message.command.length; ++i) - if (!$util.isString(message.command[i])) - return "command: string[] expected"; - } - if (message.args != null && message.hasOwnProperty("args")) { - if (!Array.isArray(message.args)) - return "args: array expected"; - for (var i = 0; i < message.args.length; ++i) - if (!$util.isString(message.args[i])) - return "args: string[] expected"; - } + if (message.containerPort != null && message.hasOwnProperty("containerPort")) + if (!$util.isInteger(message.containerPort)) + return "containerPort: integer expected"; return null; }; /** - * Creates a ContainerSpec message from a plain object. Also converts values to their respective internal types. + * Creates a Port message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Port * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec + * @returns {google.cloud.aiplatform.v1beta1.Port} Port */ - ContainerSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ContainerSpec) + Port.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Port) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ContainerSpec(); - if (object.imageUri != null) - message.imageUri = String(object.imageUri); - if (object.command) { - if (!Array.isArray(object.command)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ContainerSpec.command: array expected"); - message.command = []; - for (var i = 0; i < object.command.length; ++i) - message.command[i] = String(object.command[i]); - } - if (object.args) { - if (!Array.isArray(object.args)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ContainerSpec.args: array expected"); - message.args = []; - for (var i = 0; i < object.args.length; ++i) - message.args[i] = String(object.args[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.Port(); + if (object.containerPort != null) + message.containerPort = object.containerPort | 0; return message; }; /** - * Creates a plain object from a ContainerSpec message. Also converts values to other types if specified. + * Creates a plain object from a Port message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Port * @static - * @param {google.cloud.aiplatform.v1beta1.ContainerSpec} message ContainerSpec + * @param {google.cloud.aiplatform.v1beta1.Port} message Port * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ContainerSpec.toObject = function toObject(message, options) { + Port.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.command = []; - object.args = []; - } if (options.defaults) - object.imageUri = ""; - if (message.imageUri != null && message.hasOwnProperty("imageUri")) - object.imageUri = message.imageUri; - if (message.command && message.command.length) { - object.command = []; - for (var j = 0; j < message.command.length; ++j) - object.command[j] = message.command[j]; - } - if (message.args && message.args.length) { - object.args = []; - for (var j = 0; j < message.args.length; ++j) - object.args[j] = message.args[j]; - } + object.containerPort = 0; + if (message.containerPort != null && message.hasOwnProperty("containerPort")) + object.containerPort = message.containerPort; return object; }; /** - * Converts this ContainerSpec to JSON. + * Converts this Port to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @memberof google.cloud.aiplatform.v1beta1.Port * @instance * @returns {Object.} JSON object */ - ContainerSpec.prototype.toJSON = function toJSON() { + Port.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ContainerSpec; + return Port; })(); - v1beta1.PythonPackageSpec = (function() { + v1beta1.DeployedModelRef = (function() { /** - * Properties of a PythonPackageSpec. + * Properties of a DeployedModelRef. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPythonPackageSpec - * @property {string|null} [executorImageUri] PythonPackageSpec executorImageUri - * @property {Array.|null} [packageUris] PythonPackageSpec packageUris - * @property {string|null} [pythonModule] PythonPackageSpec pythonModule - * @property {Array.|null} [args] PythonPackageSpec args + * @interface IDeployedModelRef + * @property {string|null} [endpoint] DeployedModelRef endpoint + * @property {string|null} [deployedModelId] DeployedModelRef deployedModelId */ /** - * Constructs a new PythonPackageSpec. + * Constructs a new DeployedModelRef. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PythonPackageSpec. - * @implements IPythonPackageSpec + * @classdesc Represents a DeployedModelRef. + * @implements IDeployedModelRef * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef=} [properties] Properties to set */ - function PythonPackageSpec(properties) { - this.packageUris = []; - this.args = []; + function DeployedModelRef(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -166824,120 +171171,88 @@ } /** - * PythonPackageSpec executorImageUri. - * @member {string} executorImageUri - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec - * @instance - */ - PythonPackageSpec.prototype.executorImageUri = ""; - - /** - * PythonPackageSpec packageUris. - * @member {Array.} packageUris - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec - * @instance - */ - PythonPackageSpec.prototype.packageUris = $util.emptyArray; - - /** - * PythonPackageSpec pythonModule. - * @member {string} pythonModule - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * DeployedModelRef endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @instance */ - PythonPackageSpec.prototype.pythonModule = ""; + DeployedModelRef.prototype.endpoint = ""; /** - * PythonPackageSpec args. - * @member {Array.} args - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * DeployedModelRef deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @instance */ - PythonPackageSpec.prototype.args = $util.emptyArray; + DeployedModelRef.prototype.deployedModelId = ""; /** - * Creates a new PythonPackageSpec instance using the specified properties. + * Creates a new DeployedModelRef instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static - * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec instance + * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef instance */ - PythonPackageSpec.create = function create(properties) { - return new PythonPackageSpec(properties); + DeployedModelRef.create = function create(properties) { + return new DeployedModelRef(properties); }; /** - * Encodes the specified PythonPackageSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. + * Encodes the specified DeployedModelRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static - * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec} message PythonPackageSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef} message DeployedModelRef message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PythonPackageSpec.encode = function encode(message, writer) { + DeployedModelRef.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.executorImageUri != null && Object.hasOwnProperty.call(message, "executorImageUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.executorImageUri); - if (message.packageUris != null && message.packageUris.length) - for (var i = 0; i < message.packageUris.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.packageUris[i]); - if (message.pythonModule != null && Object.hasOwnProperty.call(message, "pythonModule")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.pythonModule); - if (message.args != null && message.args.length) - for (var i = 0; i < message.args.length; ++i) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.args[i]); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); return writer; }; /** - * Encodes the specified PythonPackageSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. + * Encodes the specified DeployedModelRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModelRef.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static - * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec} message PythonPackageSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployedModelRef} message DeployedModelRef message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PythonPackageSpec.encodeDelimited = function encodeDelimited(message, writer) { + DeployedModelRef.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PythonPackageSpec message from the specified reader or buffer. + * Decodes a DeployedModelRef message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec + * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PythonPackageSpec.decode = function decode(reader, length) { + DeployedModelRef.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedModelRef(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.executorImageUri = reader.string(); + message.endpoint = reader.string(); break; case 2: - if (!(message.packageUris && message.packageUris.length)) - message.packageUris = []; - message.packageUris.push(reader.string()); - break; - case 3: - message.pythonModule = reader.string(); - break; - case 4: - if (!(message.args && message.args.length)) - message.args = []; - message.args.push(reader.string()); + message.deployedModelId = reader.string(); break; default: reader.skipType(tag & 7); @@ -166948,159 +171263,117 @@ }; /** - * Decodes a PythonPackageSpec message from the specified reader or buffer, length delimited. + * Decodes a DeployedModelRef message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec + * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PythonPackageSpec.decodeDelimited = function decodeDelimited(reader) { + DeployedModelRef.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PythonPackageSpec message. + * Verifies a DeployedModelRef message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PythonPackageSpec.verify = function verify(message) { + DeployedModelRef.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.executorImageUri != null && message.hasOwnProperty("executorImageUri")) - if (!$util.isString(message.executorImageUri)) - return "executorImageUri: string expected"; - if (message.packageUris != null && message.hasOwnProperty("packageUris")) { - if (!Array.isArray(message.packageUris)) - return "packageUris: array expected"; - for (var i = 0; i < message.packageUris.length; ++i) - if (!$util.isString(message.packageUris[i])) - return "packageUris: string[] expected"; - } - if (message.pythonModule != null && message.hasOwnProperty("pythonModule")) - if (!$util.isString(message.pythonModule)) - return "pythonModule: string expected"; - if (message.args != null && message.hasOwnProperty("args")) { - if (!Array.isArray(message.args)) - return "args: array expected"; - for (var i = 0; i < message.args.length; ++i) - if (!$util.isString(message.args[i])) - return "args: string[] expected"; - } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; return null; }; /** - * Creates a PythonPackageSpec message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedModelRef message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec + * @returns {google.cloud.aiplatform.v1beta1.DeployedModelRef} DeployedModelRef */ - PythonPackageSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec) + DeployedModelRef.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedModelRef) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec(); - if (object.executorImageUri != null) - message.executorImageUri = String(object.executorImageUri); - if (object.packageUris) { - if (!Array.isArray(object.packageUris)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PythonPackageSpec.packageUris: array expected"); - message.packageUris = []; - for (var i = 0; i < object.packageUris.length; ++i) - message.packageUris[i] = String(object.packageUris[i]); - } - if (object.pythonModule != null) - message.pythonModule = String(object.pythonModule); - if (object.args) { - if (!Array.isArray(object.args)) - throw TypeError(".google.cloud.aiplatform.v1beta1.PythonPackageSpec.args: array expected"); - message.args = []; - for (var i = 0; i < object.args.length; ++i) - message.args[i] = String(object.args[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedModelRef(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); return message; }; /** - * Creates a plain object from a PythonPackageSpec message. Also converts values to other types if specified. + * Creates a plain object from a DeployedModelRef message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @static - * @param {google.cloud.aiplatform.v1beta1.PythonPackageSpec} message PythonPackageSpec + * @param {google.cloud.aiplatform.v1beta1.DeployedModelRef} message DeployedModelRef * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PythonPackageSpec.toObject = function toObject(message, options) { + DeployedModelRef.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.packageUris = []; - object.args = []; - } if (options.defaults) { - object.executorImageUri = ""; - object.pythonModule = ""; - } - if (message.executorImageUri != null && message.hasOwnProperty("executorImageUri")) - object.executorImageUri = message.executorImageUri; - if (message.packageUris && message.packageUris.length) { - object.packageUris = []; - for (var j = 0; j < message.packageUris.length; ++j) - object.packageUris[j] = message.packageUris[j]; - } - if (message.pythonModule != null && message.hasOwnProperty("pythonModule")) - object.pythonModule = message.pythonModule; - if (message.args && message.args.length) { - object.args = []; - for (var j = 0; j < message.args.length; ++j) - object.args[j] = message.args[j]; + object.endpoint = ""; + object.deployedModelId = ""; } + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; return object; }; /** - * Converts this PythonPackageSpec to JSON. + * Converts this DeployedModelRef to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedModelRef * @instance * @returns {Object.} JSON object */ - PythonPackageSpec.prototype.toJSON = function toJSON() { + DeployedModelRef.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PythonPackageSpec; + return DeployedModelRef; })(); - v1beta1.Scheduling = (function() { + v1beta1.EnvVar = (function() { /** - * Properties of a Scheduling. + * Properties of an EnvVar. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IScheduling - * @property {google.protobuf.IDuration|null} [timeout] Scheduling timeout - * @property {boolean|null} [restartJobOnWorkerRestart] Scheduling restartJobOnWorkerRestart + * @interface IEnvVar + * @property {string|null} [name] EnvVar name + * @property {string|null} [value] EnvVar value */ /** - * Constructs a new Scheduling. + * Constructs a new EnvVar. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Scheduling. - * @implements IScheduling + * @classdesc Represents an EnvVar. + * @implements IEnvVar * @constructor - * @param {google.cloud.aiplatform.v1beta1.IScheduling=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IEnvVar=} [properties] Properties to set */ - function Scheduling(properties) { + function EnvVar(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -167108,88 +171381,88 @@ } /** - * Scheduling timeout. - * @member {google.protobuf.IDuration|null|undefined} timeout - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * EnvVar name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @instance */ - Scheduling.prototype.timeout = null; + EnvVar.prototype.name = ""; /** - * Scheduling restartJobOnWorkerRestart. - * @member {boolean} restartJobOnWorkerRestart - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * EnvVar value. + * @member {string} value + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @instance */ - Scheduling.prototype.restartJobOnWorkerRestart = false; + EnvVar.prototype.value = ""; /** - * Creates a new Scheduling instance using the specified properties. + * Creates a new EnvVar instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @static - * @param {google.cloud.aiplatform.v1beta1.IScheduling=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling instance + * @param {google.cloud.aiplatform.v1beta1.IEnvVar=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar instance */ - Scheduling.create = function create(properties) { - return new Scheduling(properties); + EnvVar.create = function create(properties) { + return new EnvVar(properties); }; /** - * Encodes the specified Scheduling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. + * Encodes the specified EnvVar message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @static - * @param {google.cloud.aiplatform.v1beta1.IScheduling} message Scheduling message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IEnvVar} message EnvVar message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Scheduling.encode = function encode(message, writer) { + EnvVar.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) - $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.restartJobOnWorkerRestart != null && Object.hasOwnProperty.call(message, "restartJobOnWorkerRestart")) - writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restartJobOnWorkerRestart); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.value); return writer; }; /** - * Encodes the specified Scheduling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. + * Encodes the specified EnvVar message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EnvVar.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @static - * @param {google.cloud.aiplatform.v1beta1.IScheduling} message Scheduling message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IEnvVar} message EnvVar message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Scheduling.encodeDelimited = function encodeDelimited(message, writer) { + EnvVar.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Scheduling message from the specified reader or buffer. + * Decodes an EnvVar message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling + * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Scheduling.decode = function decode(reader, length) { + EnvVar.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Scheduling(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.EnvVar(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.name = reader.string(); break; - case 3: - message.restartJobOnWorkerRestart = reader.bool(); + case 2: + message.value = reader.string(); break; default: reader.skipType(tag & 7); @@ -167200,127 +171473,128 @@ }; /** - * Decodes a Scheduling message from the specified reader or buffer, length delimited. + * Decodes an EnvVar message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling + * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Scheduling.decodeDelimited = function decodeDelimited(reader) { + EnvVar.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Scheduling message. + * Verifies an EnvVar message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Scheduling.verify = function verify(message) { + EnvVar.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timeout != null && message.hasOwnProperty("timeout")) { - var error = $root.google.protobuf.Duration.verify(message.timeout); - if (error) - return "timeout." + error; - } - if (message.restartJobOnWorkerRestart != null && message.hasOwnProperty("restartJobOnWorkerRestart")) - if (typeof message.restartJobOnWorkerRestart !== "boolean") - return "restartJobOnWorkerRestart: boolean expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (!$util.isString(message.value)) + return "value: string expected"; return null; }; /** - * Creates a Scheduling message from a plain object. Also converts values to their respective internal types. + * Creates an EnvVar message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling + * @returns {google.cloud.aiplatform.v1beta1.EnvVar} EnvVar */ - Scheduling.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Scheduling) + EnvVar.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.EnvVar) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Scheduling(); - if (object.timeout != null) { - if (typeof object.timeout !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Scheduling.timeout: object expected"); - message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); - } - if (object.restartJobOnWorkerRestart != null) - message.restartJobOnWorkerRestart = Boolean(object.restartJobOnWorkerRestart); + var message = new $root.google.cloud.aiplatform.v1beta1.EnvVar(); + if (object.name != null) + message.name = String(object.name); + if (object.value != null) + message.value = String(object.value); return message; }; /** - * Creates a plain object from a Scheduling message. Also converts values to other types if specified. + * Creates a plain object from an EnvVar message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @static - * @param {google.cloud.aiplatform.v1beta1.Scheduling} message Scheduling + * @param {google.cloud.aiplatform.v1beta1.EnvVar} message EnvVar * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Scheduling.toObject = function toObject(message, options) { + EnvVar.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.timeout = null; - object.restartJobOnWorkerRestart = false; + object.name = ""; + object.value = ""; } - if (message.timeout != null && message.hasOwnProperty("timeout")) - object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); - if (message.restartJobOnWorkerRestart != null && message.hasOwnProperty("restartJobOnWorkerRestart")) - object.restartJobOnWorkerRestart = message.restartJobOnWorkerRestart; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.value != null && message.hasOwnProperty("value")) + object.value = message.value; return object; }; /** - * Converts this Scheduling to JSON. + * Converts this EnvVar to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Scheduling + * @memberof google.cloud.aiplatform.v1beta1.EnvVar * @instance * @returns {Object.} JSON object */ - Scheduling.prototype.toJSON = function toJSON() { + EnvVar.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Scheduling; + return EnvVar; })(); - v1beta1.DataItem = (function() { + v1beta1.Context = (function() { /** - * Properties of a DataItem. + * Properties of a Context. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDataItem - * @property {string|null} [name] DataItem name - * @property {google.protobuf.ITimestamp|null} [createTime] DataItem createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] DataItem updateTime - * @property {Object.|null} [labels] DataItem labels - * @property {google.protobuf.IValue|null} [payload] DataItem payload - * @property {string|null} [etag] DataItem etag + * @interface IContext + * @property {string|null} [name] Context name + * @property {string|null} [displayName] Context displayName + * @property {string|null} [etag] Context etag + * @property {Object.|null} [labels] Context labels + * @property {google.protobuf.ITimestamp|null} [createTime] Context createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Context updateTime + * @property {Array.|null} [parentContexts] Context parentContexts + * @property {string|null} [schemaTitle] Context schemaTitle + * @property {string|null} [schemaVersion] Context schemaVersion + * @property {google.protobuf.IStruct|null} [metadata] Context metadata + * @property {string|null} [description] Context description */ /** - * Constructs a new DataItem. + * Constructs a new Context. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DataItem. - * @implements IDataItem + * @classdesc Represents a Context. + * @implements IContext * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDataItem=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IContext=} [properties] Properties to set */ - function DataItem(properties) { + function Context(properties) { this.labels = {}; + this.parentContexts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -167328,121 +171602,172 @@ } /** - * DataItem name. + * Context name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - DataItem.prototype.name = ""; + Context.prototype.name = ""; /** - * DataItem createTime. + * Context displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Context + * @instance + */ + Context.prototype.displayName = ""; + + /** + * Context etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Context + * @instance + */ + Context.prototype.etag = ""; + + /** + * Context labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Context + * @instance + */ + Context.prototype.labels = $util.emptyObject; + + /** + * Context createTime. * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - DataItem.prototype.createTime = null; + Context.prototype.createTime = null; /** - * DataItem updateTime. + * Context updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - DataItem.prototype.updateTime = null; + Context.prototype.updateTime = null; /** - * DataItem labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * Context parentContexts. + * @member {Array.} parentContexts + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - DataItem.prototype.labels = $util.emptyObject; + Context.prototype.parentContexts = $util.emptyArray; /** - * DataItem payload. - * @member {google.protobuf.IValue|null|undefined} payload - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * Context schemaTitle. + * @member {string} schemaTitle + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - DataItem.prototype.payload = null; + Context.prototype.schemaTitle = ""; /** - * DataItem etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * Context schemaVersion. + * @member {string} schemaVersion + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance */ - DataItem.prototype.etag = ""; + Context.prototype.schemaVersion = ""; /** - * Creates a new DataItem instance using the specified properties. + * Context metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.Context + * @instance + */ + Context.prototype.metadata = null; + + /** + * Context description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Context + * @instance + */ + Context.prototype.description = ""; + + /** + * Creates a new Context instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @static - * @param {google.cloud.aiplatform.v1beta1.IDataItem=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem instance + * @param {google.cloud.aiplatform.v1beta1.IContext=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Context} Context instance */ - DataItem.create = function create(properties) { - return new DataItem(properties); + Context.create = function create(properties) { + return new Context(properties); }; /** - * Encodes the specified DataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. + * Encodes the specified Context message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @static - * @param {google.cloud.aiplatform.v1beta1.IDataItem} message DataItem message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IContext} message Context message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataItem.encode = function encode(message, writer) { + Context.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) - $root.google.protobuf.Value.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.etag); + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.parentContexts != null && message.parentContexts.length) + for (var i = 0; i < message.parentContexts.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).string(message.parentContexts[i]); + if (message.schemaTitle != null && Object.hasOwnProperty.call(message, "schemaTitle")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.schemaTitle); + if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.schemaVersion); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.description); return writer; }; /** - * Encodes the specified DataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. + * Encodes the specified Context message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Context.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @static - * @param {google.cloud.aiplatform.v1beta1.IDataItem} message DataItem message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IContext} message Context message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataItem.encodeDelimited = function encodeDelimited(message, writer) { + Context.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataItem message from the specified reader or buffer. + * Decodes a Context message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem + * @returns {google.cloud.aiplatform.v1beta1.Context} Context * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataItem.decode = function decode(reader, length) { + Context.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DataItem(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Context(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -167450,12 +171775,12 @@ message.name = reader.string(); break; case 2: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; - case 6: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + case 8: + message.etag = reader.string(); break; - case 3: + case 9: if (message.labels === $util.emptyObject) message.labels = {}; var end2 = reader.uint32() + reader.pos; @@ -167477,11 +171802,28 @@ } message.labels[key] = value; break; - case 4: - message.payload = $root.google.protobuf.Value.decode(reader, reader.uint32()); + case 10: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; - case 7: - message.etag = reader.string(); + case 11: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + if (!(message.parentContexts && message.parentContexts.length)) + message.parentContexts = []; + message.parentContexts.push(reader.string()); + break; + case 13: + message.schemaTitle = reader.string(); + break; + case 14: + message.schemaVersion = reader.string(); + break; + case 15: + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 16: + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -167492,35 +171834,49 @@ }; /** - * Decodes a DataItem message from the specified reader or buffer, length delimited. + * Decodes a Context message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem + * @returns {google.cloud.aiplatform.v1beta1.Context} Context * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataItem.decodeDelimited = function decodeDelimited(reader) { + Context.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataItem message. + * Verifies a Context message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataItem.verify = function verify(message) { + Context.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) if (!$util.isString(message.name)) return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } if (message.createTime != null && message.hasOwnProperty("createTime")) { var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) @@ -167531,160 +171887,191 @@ if (error) return "updateTime." + error; } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + if (message.parentContexts != null && message.hasOwnProperty("parentContexts")) { + if (!Array.isArray(message.parentContexts)) + return "parentContexts: array expected"; + for (var i = 0; i < message.parentContexts.length; ++i) + if (!$util.isString(message.parentContexts[i])) + return "parentContexts: string[] expected"; } - if (message.payload != null && message.hasOwnProperty("payload")) { - var error = $root.google.protobuf.Value.verify(message.payload); + if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) + if (!$util.isString(message.schemaTitle)) + return "schemaTitle: string expected"; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + if (!$util.isString(message.schemaVersion)) + return "schemaVersion: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); if (error) - return "payload." + error; + return "metadata." + error; } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a DataItem message from a plain object. Also converts values to their respective internal types. + * Creates a Context message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem + * @returns {google.cloud.aiplatform.v1beta1.Context} Context */ - DataItem.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DataItem) + Context.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Context) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DataItem(); + var message = new $root.google.cloud.aiplatform.v1beta1.Context(); if (object.name != null) message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Context.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataItem.createTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.Context.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataItem.updateTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.Context.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataItem.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + if (object.parentContexts) { + if (!Array.isArray(object.parentContexts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Context.parentContexts: array expected"); + message.parentContexts = []; + for (var i = 0; i < object.parentContexts.length; ++i) + message.parentContexts[i] = String(object.parentContexts[i]); } - if (object.payload != null) { - if (typeof object.payload !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataItem.payload: object expected"); - message.payload = $root.google.protobuf.Value.fromObject(object.payload); + if (object.schemaTitle != null) + message.schemaTitle = String(object.schemaTitle); + if (object.schemaVersion != null) + message.schemaVersion = String(object.schemaVersion); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Context.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); } - if (object.etag != null) - message.etag = String(object.etag); + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a DataItem message. Also converts values to other types if specified. + * Creates a plain object from a Context message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @static - * @param {google.cloud.aiplatform.v1beta1.DataItem} message DataItem + * @param {google.cloud.aiplatform.v1beta1.Context} message Context * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataItem.toObject = function toObject(message, options) { + Context.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.parentContexts = []; if (options.objects || options.defaults) object.labels = {}; if (options.defaults) { object.name = ""; + object.displayName = ""; + object.etag = ""; object.createTime = null; - object.payload = null; object.updateTime = null; - object.etag = ""; + object.schemaTitle = ""; + object.schemaVersion = ""; + object.metadata = null; + object.description = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; var keys2; if (message.labels && (keys2 = Object.keys(message.labels)).length) { object.labels = {}; for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } - if (message.payload != null && message.hasOwnProperty("payload")) - object.payload = $root.google.protobuf.Value.toObject(message.payload, options); + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; + if (message.parentContexts && message.parentContexts.length) { + object.parentContexts = []; + for (var j = 0; j < message.parentContexts.length; ++j) + object.parentContexts[j] = message.parentContexts[j]; + } + if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) + object.schemaTitle = message.schemaTitle; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + object.schemaVersion = message.schemaVersion; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this DataItem to JSON. + * Converts this Context to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @memberof google.cloud.aiplatform.v1beta1.Context * @instance * @returns {Object.} JSON object */ - DataItem.prototype.toJSON = function toJSON() { + Context.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DataItem; + return Context; })(); - v1beta1.DataLabelingJob = (function() { + v1beta1.CustomJob = (function() { /** - * Properties of a DataLabelingJob. + * Properties of a CustomJob. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDataLabelingJob - * @property {string|null} [name] DataLabelingJob name - * @property {string|null} [displayName] DataLabelingJob displayName - * @property {Array.|null} [datasets] DataLabelingJob datasets - * @property {Object.|null} [annotationLabels] DataLabelingJob annotationLabels - * @property {number|null} [labelerCount] DataLabelingJob labelerCount - * @property {string|null} [instructionUri] DataLabelingJob instructionUri - * @property {string|null} [inputsSchemaUri] DataLabelingJob inputsSchemaUri - * @property {google.protobuf.IValue|null} [inputs] DataLabelingJob inputs - * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] DataLabelingJob state - * @property {number|null} [labelingProgress] DataLabelingJob labelingProgress - * @property {google.type.IMoney|null} [currentSpend] DataLabelingJob currentSpend - * @property {google.protobuf.ITimestamp|null} [createTime] DataLabelingJob createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] DataLabelingJob updateTime - * @property {google.rpc.IStatus|null} [error] DataLabelingJob error - * @property {Object.|null} [labels] DataLabelingJob labels - * @property {Array.|null} [specialistPools] DataLabelingJob specialistPools - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] DataLabelingJob encryptionSpec - * @property {google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null} [activeLearningConfig] DataLabelingJob activeLearningConfig + * @interface ICustomJob + * @property {string|null} [name] CustomJob name + * @property {string|null} [displayName] CustomJob displayName + * @property {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null} [jobSpec] CustomJob jobSpec + * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] CustomJob state + * @property {google.protobuf.ITimestamp|null} [createTime] CustomJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] CustomJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] CustomJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] CustomJob updateTime + * @property {google.rpc.IStatus|null} [error] CustomJob error + * @property {Object.|null} [labels] CustomJob labels + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] CustomJob encryptionSpec + * @property {Object.|null} [webAccessUris] CustomJob webAccessUris */ /** - * Constructs a new DataLabelingJob. + * Constructs a new CustomJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DataLabelingJob. - * @implements IDataLabelingJob + * @classdesc Represents a CustomJob. + * @implements ICustomJob * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICustomJob=} [properties] Properties to set */ - function DataLabelingJob(properties) { - this.datasets = []; - this.annotationLabels = {}; + function CustomJob(properties) { this.labels = {}; - this.specialistPools = []; + this.webAccessUris = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -167692,244 +172079,182 @@ } /** - * DataLabelingJob name. + * CustomJob name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.name = ""; + CustomJob.prototype.name = ""; /** - * DataLabelingJob displayName. + * CustomJob displayName. * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance - */ - DataLabelingJob.prototype.displayName = ""; - - /** - * DataLabelingJob datasets. - * @member {Array.} datasets - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance - */ - DataLabelingJob.prototype.datasets = $util.emptyArray; - - /** - * DataLabelingJob annotationLabels. - * @member {Object.} annotationLabels - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance - */ - DataLabelingJob.prototype.annotationLabels = $util.emptyObject; - - /** - * DataLabelingJob labelerCount. - * @member {number} labelerCount - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance - */ - DataLabelingJob.prototype.labelerCount = 0; - - /** - * DataLabelingJob instructionUri. - * @member {string} instructionUri - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance - */ - DataLabelingJob.prototype.instructionUri = ""; - - /** - * DataLabelingJob inputsSchemaUri. - * @member {string} inputsSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.inputsSchemaUri = ""; + CustomJob.prototype.displayName = ""; /** - * DataLabelingJob inputs. - * @member {google.protobuf.IValue|null|undefined} inputs - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * CustomJob jobSpec. + * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} jobSpec + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.inputs = null; + CustomJob.prototype.jobSpec = null; /** - * DataLabelingJob state. + * CustomJob state. * @member {google.cloud.aiplatform.v1beta1.JobState} state - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.state = 0; + CustomJob.prototype.state = 0; /** - * DataLabelingJob labelingProgress. - * @member {number} labelingProgress - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * CustomJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.labelingProgress = 0; + CustomJob.prototype.createTime = null; /** - * DataLabelingJob currentSpend. - * @member {google.type.IMoney|null|undefined} currentSpend - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * CustomJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.currentSpend = null; + CustomJob.prototype.startTime = null; /** - * DataLabelingJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * CustomJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.createTime = null; + CustomJob.prototype.endTime = null; /** - * DataLabelingJob updateTime. + * CustomJob updateTime. * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.updateTime = null; + CustomJob.prototype.updateTime = null; /** - * DataLabelingJob error. + * CustomJob error. * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.error = null; + CustomJob.prototype.error = null; /** - * DataLabelingJob labels. + * CustomJob labels. * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob - * @instance - */ - DataLabelingJob.prototype.labels = $util.emptyObject; - - /** - * DataLabelingJob specialistPools. - * @member {Array.} specialistPools - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.specialistPools = $util.emptyArray; + CustomJob.prototype.labels = $util.emptyObject; /** - * DataLabelingJob encryptionSpec. + * CustomJob encryptionSpec. * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.encryptionSpec = null; + CustomJob.prototype.encryptionSpec = null; /** - * DataLabelingJob activeLearningConfig. - * @member {google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null|undefined} activeLearningConfig - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * CustomJob webAccessUris. + * @member {Object.} webAccessUris + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance */ - DataLabelingJob.prototype.activeLearningConfig = null; + CustomJob.prototype.webAccessUris = $util.emptyObject; /** - * Creates a new DataLabelingJob instance using the specified properties. + * Creates a new CustomJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static - * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob instance + * @param {google.cloud.aiplatform.v1beta1.ICustomJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob instance */ - DataLabelingJob.create = function create(properties) { - return new DataLabelingJob(properties); + CustomJob.create = function create(properties) { + return new CustomJob(properties); }; /** - * Encodes the specified DataLabelingJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. + * Encodes the specified CustomJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static - * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob} message DataLabelingJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICustomJob} message CustomJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataLabelingJob.encode = function encode(message, writer) { + CustomJob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.datasets != null && message.datasets.length) - for (var i = 0; i < message.datasets.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.datasets[i]); - if (message.labelerCount != null && Object.hasOwnProperty.call(message, "labelerCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.labelerCount); - if (message.instructionUri != null && Object.hasOwnProperty.call(message, "instructionUri")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.instructionUri); - if (message.inputsSchemaUri != null && Object.hasOwnProperty.call(message, "inputsSchemaUri")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.inputsSchemaUri); - if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) - $root.google.protobuf.Value.encode(message.inputs, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.jobSpec != null && Object.hasOwnProperty.call(message, "jobSpec")) + $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.encode(message.jobSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.state); if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.annotationLabels != null && Object.hasOwnProperty.call(message, "annotationLabels")) - for (var keys = Object.keys(message.annotationLabels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotationLabels[keys[i]]).ldelim(); - if (message.labelingProgress != null && Object.hasOwnProperty.call(message, "labelingProgress")) - writer.uint32(/* id 13, wireType 0 =*/104).int32(message.labelingProgress); - if (message.currentSpend != null && Object.hasOwnProperty.call(message, "currentSpend")) - $root.google.type.Money.encode(message.currentSpend, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.specialistPools != null && message.specialistPools.length) - for (var i = 0; i < message.specialistPools.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.specialistPools[i]); if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.activeLearningConfig != null && Object.hasOwnProperty.call(message, "activeLearningConfig")) - $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.encode(message.activeLearningConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.webAccessUris != null && Object.hasOwnProperty.call(message, "webAccessUris")) + for (var keys = Object.keys(message.webAccessUris), i = 0; i < keys.length; ++i) + writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webAccessUris[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified DataLabelingJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. + * Encodes the specified CustomJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static - * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob} message DataLabelingJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICustomJob} message CustomJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DataLabelingJob.encodeDelimited = function encodeDelimited(message, writer) { + CustomJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DataLabelingJob message from the specified reader or buffer. + * Decodes a CustomJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob + * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataLabelingJob.decode = function decode(reader, length) { + CustomJob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DataLabelingJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CustomJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -167939,61 +172264,25 @@ case 2: message.displayName = reader.string(); break; - case 3: - if (!(message.datasets && message.datasets.length)) - message.datasets = []; - message.datasets.push(reader.string()); - break; - case 12: - if (message.annotationLabels === $util.emptyObject) - message.annotationLabels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.annotationLabels[key] = value; - break; case 4: - message.labelerCount = reader.int32(); + message.jobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.decode(reader, reader.uint32()); break; case 5: - message.instructionUri = reader.string(); + message.state = reader.int32(); break; case 6: - message.inputsSchemaUri = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 7: - message.inputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 8: - message.state = reader.int32(); - break; - case 13: - message.labelingProgress = reader.int32(); - break; - case 14: - message.currentSpend = $root.google.type.Money.decode(reader, reader.uint32()); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 9: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 10: message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; - case 22: + case 10: message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); break; case 11: @@ -168018,16 +172307,30 @@ } message.labels[key] = value; break; - case 16: - if (!(message.specialistPools && message.specialistPools.length)) - message.specialistPools = []; - message.specialistPools.push(reader.string()); - break; - case 20: + case 12: message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; - case 21: - message.activeLearningConfig = $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.decode(reader, reader.uint32()); + case 16: + if (message.webAccessUris === $util.emptyObject) + message.webAccessUris = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.webAccessUris[key] = value; break; default: reader.skipType(tag & 7); @@ -168038,30 +172341,30 @@ }; /** - * Decodes a DataLabelingJob message from the specified reader or buffer, length delimited. + * Decodes a CustomJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob + * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DataLabelingJob.decodeDelimited = function decodeDelimited(reader) { + CustomJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DataLabelingJob message. + * Verifies a CustomJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DataLabelingJob.verify = function verify(message) { + CustomJob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -168070,34 +172373,10 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) if (!$util.isString(message.displayName)) return "displayName: string expected"; - if (message.datasets != null && message.hasOwnProperty("datasets")) { - if (!Array.isArray(message.datasets)) - return "datasets: array expected"; - for (var i = 0; i < message.datasets.length; ++i) - if (!$util.isString(message.datasets[i])) - return "datasets: string[] expected"; - } - if (message.annotationLabels != null && message.hasOwnProperty("annotationLabels")) { - if (!$util.isObject(message.annotationLabels)) - return "annotationLabels: object expected"; - var key = Object.keys(message.annotationLabels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.annotationLabels[key[i]])) - return "annotationLabels: string{k:string} expected"; - } - if (message.labelerCount != null && message.hasOwnProperty("labelerCount")) - if (!$util.isInteger(message.labelerCount)) - return "labelerCount: integer expected"; - if (message.instructionUri != null && message.hasOwnProperty("instructionUri")) - if (!$util.isString(message.instructionUri)) - return "instructionUri: string expected"; - if (message.inputsSchemaUri != null && message.hasOwnProperty("inputsSchemaUri")) - if (!$util.isString(message.inputsSchemaUri)) - return "inputsSchemaUri: string expected"; - if (message.inputs != null && message.hasOwnProperty("inputs")) { - var error = $root.google.protobuf.Value.verify(message.inputs); + if (message.jobSpec != null && message.hasOwnProperty("jobSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.verify(message.jobSpec); if (error) - return "inputs." + error; + return "jobSpec." + error; } if (message.state != null && message.hasOwnProperty("state")) switch (message.state) { @@ -168116,19 +172395,21 @@ case 10: break; } - if (message.labelingProgress != null && message.hasOwnProperty("labelingProgress")) - if (!$util.isInteger(message.labelingProgress)) - return "labelingProgress: integer expected"; - if (message.currentSpend != null && message.hasOwnProperty("currentSpend")) { - var error = $root.google.type.Money.verify(message.currentSpend); - if (error) - return "currentSpend." + error; - } if (message.createTime != null && message.hasOwnProperty("createTime")) { var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) return "createTime." + error; } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } if (message.updateTime != null && message.hasOwnProperty("updateTime")) { var error = $root.google.protobuf.Timestamp.verify(message.updateTime); if (error) @@ -168147,66 +172428,42 @@ if (!$util.isString(message.labels[key[i]])) return "labels: string{k:string} expected"; } - if (message.specialistPools != null && message.hasOwnProperty("specialistPools")) { - if (!Array.isArray(message.specialistPools)) - return "specialistPools: array expected"; - for (var i = 0; i < message.specialistPools.length; ++i) - if (!$util.isString(message.specialistPools[i])) - return "specialistPools: string[] expected"; - } if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); if (error) return "encryptionSpec." + error; } - if (message.activeLearningConfig != null && message.hasOwnProperty("activeLearningConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify(message.activeLearningConfig); - if (error) - return "activeLearningConfig." + error; + if (message.webAccessUris != null && message.hasOwnProperty("webAccessUris")) { + if (!$util.isObject(message.webAccessUris)) + return "webAccessUris: object expected"; + var key = Object.keys(message.webAccessUris); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.webAccessUris[key[i]])) + return "webAccessUris: string{k:string} expected"; } return null; }; /** - * Creates a DataLabelingJob message from a plain object. Also converts values to their respective internal types. + * Creates a CustomJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob + * @returns {google.cloud.aiplatform.v1beta1.CustomJob} CustomJob */ - DataLabelingJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DataLabelingJob) + CustomJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CustomJob) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DataLabelingJob(); + var message = new $root.google.cloud.aiplatform.v1beta1.CustomJob(); if (object.name != null) message.name = String(object.name); if (object.displayName != null) message.displayName = String(object.displayName); - if (object.datasets) { - if (!Array.isArray(object.datasets)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.datasets: array expected"); - message.datasets = []; - for (var i = 0; i < object.datasets.length; ++i) - message.datasets[i] = String(object.datasets[i]); - } - if (object.annotationLabels) { - if (typeof object.annotationLabels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.annotationLabels: object expected"); - message.annotationLabels = {}; - for (var keys = Object.keys(object.annotationLabels), i = 0; i < keys.length; ++i) - message.annotationLabels[keys[i]] = String(object.annotationLabels[keys[i]]); - } - if (object.labelerCount != null) - message.labelerCount = object.labelerCount | 0; - if (object.instructionUri != null) - message.instructionUri = String(object.instructionUri); - if (object.inputsSchemaUri != null) - message.inputsSchemaUri = String(object.inputsSchemaUri); - if (object.inputs != null) { - if (typeof object.inputs !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.inputs: object expected"); - message.inputs = $root.google.protobuf.Value.fromObject(object.inputs); + if (object.jobSpec != null) { + if (typeof object.jobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.jobSpec: object expected"); + message.jobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.fromObject(object.jobSpec); } switch (object.state) { case "JOB_STATE_UNSPECIFIED": @@ -168254,179 +172511,157 @@ message.state = 10; break; } - if (object.labelingProgress != null) - message.labelingProgress = object.labelingProgress | 0; - if (object.currentSpend != null) { - if (typeof object.currentSpend !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.currentSpend: object expected"); - message.currentSpend = $root.google.type.Money.fromObject(object.currentSpend); - } if (object.createTime != null) { if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.createTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.createTime: object expected"); message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } if (object.updateTime != null) { if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.updateTime: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.updateTime: object expected"); message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } if (object.error != null) { if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.error: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.error: object expected"); message.error = $root.google.rpc.Status.fromObject(object.error); } if (object.labels) { if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.labels: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.labels: object expected"); message.labels = {}; for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) message.labels[keys[i]] = String(object.labels[keys[i]]); } - if (object.specialistPools) { - if (!Array.isArray(object.specialistPools)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.specialistPools: array expected"); - message.specialistPools = []; - for (var i = 0; i < object.specialistPools.length; ++i) - message.specialistPools[i] = String(object.specialistPools[i]); - } if (object.encryptionSpec != null) { if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.encryptionSpec: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.encryptionSpec: object expected"); message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } - if (object.activeLearningConfig != null) { - if (typeof object.activeLearningConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.activeLearningConfig: object expected"); - message.activeLearningConfig = $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.fromObject(object.activeLearningConfig); + if (object.webAccessUris) { + if (typeof object.webAccessUris !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJob.webAccessUris: object expected"); + message.webAccessUris = {}; + for (var keys = Object.keys(object.webAccessUris), i = 0; i < keys.length; ++i) + message.webAccessUris[keys[i]] = String(object.webAccessUris[keys[i]]); } return message; }; /** - * Creates a plain object from a DataLabelingJob message. Also converts values to other types if specified. + * Creates a plain object from a CustomJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @static - * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} message DataLabelingJob + * @param {google.cloud.aiplatform.v1beta1.CustomJob} message CustomJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DataLabelingJob.toObject = function toObject(message, options) { + CustomJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.datasets = []; - object.specialistPools = []; - } if (options.objects || options.defaults) { object.labels = {}; - object.annotationLabels = {}; + object.webAccessUris = {}; } if (options.defaults) { object.name = ""; object.displayName = ""; - object.labelerCount = 0; - object.instructionUri = ""; - object.inputsSchemaUri = ""; - object.inputs = null; + object.jobSpec = null; object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; object.createTime = null; + object.startTime = null; + object.endTime = null; object.updateTime = null; - object.labelingProgress = 0; - object.currentSpend = null; - object.encryptionSpec = null; - object.activeLearningConfig = null; object.error = null; + object.encryptionSpec = null; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; if (message.displayName != null && message.hasOwnProperty("displayName")) object.displayName = message.displayName; - if (message.datasets && message.datasets.length) { - object.datasets = []; - for (var j = 0; j < message.datasets.length; ++j) - object.datasets[j] = message.datasets[j]; - } - if (message.labelerCount != null && message.hasOwnProperty("labelerCount")) - object.labelerCount = message.labelerCount; - if (message.instructionUri != null && message.hasOwnProperty("instructionUri")) - object.instructionUri = message.instructionUri; - if (message.inputsSchemaUri != null && message.hasOwnProperty("inputsSchemaUri")) - object.inputsSchemaUri = message.inputsSchemaUri; - if (message.inputs != null && message.hasOwnProperty("inputs")) - object.inputs = $root.google.protobuf.Value.toObject(message.inputs, options); + if (message.jobSpec != null && message.hasOwnProperty("jobSpec")) + object.jobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.toObject(message.jobSpec, options); if (message.state != null && message.hasOwnProperty("state")) object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; if (message.createTime != null && message.hasOwnProperty("createTime")) object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); if (message.updateTime != null && message.hasOwnProperty("updateTime")) object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); var keys2; if (message.labels && (keys2 = Object.keys(message.labels)).length) { object.labels = {}; for (var j = 0; j < keys2.length; ++j) object.labels[keys2[j]] = message.labels[keys2[j]]; } - if (message.annotationLabels && (keys2 = Object.keys(message.annotationLabels)).length) { - object.annotationLabels = {}; - for (var j = 0; j < keys2.length; ++j) - object.annotationLabels[keys2[j]] = message.annotationLabels[keys2[j]]; - } - if (message.labelingProgress != null && message.hasOwnProperty("labelingProgress")) - object.labelingProgress = message.labelingProgress; - if (message.currentSpend != null && message.hasOwnProperty("currentSpend")) - object.currentSpend = $root.google.type.Money.toObject(message.currentSpend, options); - if (message.specialistPools && message.specialistPools.length) { - object.specialistPools = []; - for (var j = 0; j < message.specialistPools.length; ++j) - object.specialistPools[j] = message.specialistPools[j]; - } if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.activeLearningConfig != null && message.hasOwnProperty("activeLearningConfig")) - object.activeLearningConfig = $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.toObject(message.activeLearningConfig, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.webAccessUris && (keys2 = Object.keys(message.webAccessUris)).length) { + object.webAccessUris = {}; + for (var j = 0; j < keys2.length; ++j) + object.webAccessUris[keys2[j]] = message.webAccessUris[keys2[j]]; + } return object; }; /** - * Converts this DataLabelingJob to JSON. + * Converts this CustomJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CustomJob * @instance * @returns {Object.} JSON object */ - DataLabelingJob.prototype.toJSON = function toJSON() { + CustomJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DataLabelingJob; + return CustomJob; })(); - v1beta1.ActiveLearningConfig = (function() { + v1beta1.CustomJobSpec = (function() { /** - * Properties of an ActiveLearningConfig. + * Properties of a CustomJobSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IActiveLearningConfig - * @property {number|Long|null} [maxDataItemCount] ActiveLearningConfig maxDataItemCount - * @property {number|null} [maxDataItemPercentage] ActiveLearningConfig maxDataItemPercentage - * @property {google.cloud.aiplatform.v1beta1.ISampleConfig|null} [sampleConfig] ActiveLearningConfig sampleConfig - * @property {google.cloud.aiplatform.v1beta1.ITrainingConfig|null} [trainingConfig] ActiveLearningConfig trainingConfig + * @interface ICustomJobSpec + * @property {Array.|null} [workerPoolSpecs] CustomJobSpec workerPoolSpecs + * @property {google.cloud.aiplatform.v1beta1.IScheduling|null} [scheduling] CustomJobSpec scheduling + * @property {string|null} [serviceAccount] CustomJobSpec serviceAccount + * @property {string|null} [network] CustomJobSpec network + * @property {Array.|null} [reservedIpRanges] CustomJobSpec reservedIpRanges + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [baseOutputDirectory] CustomJobSpec baseOutputDirectory + * @property {string|null} [tensorboard] CustomJobSpec tensorboard + * @property {boolean|null} [enableWebAccess] CustomJobSpec enableWebAccess */ /** - * Constructs a new ActiveLearningConfig. + * Constructs a new CustomJobSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ActiveLearningConfig. - * @implements IActiveLearningConfig + * @classdesc Represents a CustomJobSpec. + * @implements ICustomJobSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec=} [properties] Properties to set */ - function ActiveLearningConfig(properties) { + function CustomJobSpec(properties) { + this.workerPoolSpecs = []; + this.reservedIpRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -168434,128 +172669,172 @@ } /** - * ActiveLearningConfig maxDataItemCount. - * @member {number|Long|null|undefined} maxDataItemCount - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * CustomJobSpec workerPoolSpecs. + * @member {Array.} workerPoolSpecs + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ActiveLearningConfig.prototype.maxDataItemCount = null; + CustomJobSpec.prototype.workerPoolSpecs = $util.emptyArray; /** - * ActiveLearningConfig maxDataItemPercentage. - * @member {number|null|undefined} maxDataItemPercentage - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * CustomJobSpec scheduling. + * @member {google.cloud.aiplatform.v1beta1.IScheduling|null|undefined} scheduling + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ActiveLearningConfig.prototype.maxDataItemPercentage = null; + CustomJobSpec.prototype.scheduling = null; /** - * ActiveLearningConfig sampleConfig. - * @member {google.cloud.aiplatform.v1beta1.ISampleConfig|null|undefined} sampleConfig - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * CustomJobSpec serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ActiveLearningConfig.prototype.sampleConfig = null; + CustomJobSpec.prototype.serviceAccount = ""; /** - * ActiveLearningConfig trainingConfig. - * @member {google.cloud.aiplatform.v1beta1.ITrainingConfig|null|undefined} trainingConfig - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * CustomJobSpec network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - ActiveLearningConfig.prototype.trainingConfig = null; + CustomJobSpec.prototype.network = ""; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * CustomJobSpec reservedIpRanges. + * @member {Array.} reservedIpRanges + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @instance + */ + CustomJobSpec.prototype.reservedIpRanges = $util.emptyArray; /** - * ActiveLearningConfig humanLabelingBudget. - * @member {"maxDataItemCount"|"maxDataItemPercentage"|undefined} humanLabelingBudget - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * CustomJobSpec baseOutputDirectory. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} baseOutputDirectory + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance */ - Object.defineProperty(ActiveLearningConfig.prototype, "humanLabelingBudget", { - get: $util.oneOfGetter($oneOfFields = ["maxDataItemCount", "maxDataItemPercentage"]), - set: $util.oneOfSetter($oneOfFields) - }); + CustomJobSpec.prototype.baseOutputDirectory = null; /** - * Creates a new ActiveLearningConfig instance using the specified properties. + * CustomJobSpec tensorboard. + * @member {string} tensorboard + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @instance + */ + CustomJobSpec.prototype.tensorboard = ""; + + /** + * CustomJobSpec enableWebAccess. + * @member {boolean} enableWebAccess + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec + * @instance + */ + CustomJobSpec.prototype.enableWebAccess = false; + + /** + * Creates a new CustomJobSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig instance + * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec instance */ - ActiveLearningConfig.create = function create(properties) { - return new ActiveLearningConfig(properties); + CustomJobSpec.create = function create(properties) { + return new CustomJobSpec(properties); }; /** - * Encodes the specified ActiveLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. + * Encodes the specified CustomJobSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig} message ActiveLearningConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec} message CustomJobSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActiveLearningConfig.encode = function encode(message, writer) { + CustomJobSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.maxDataItemCount != null && Object.hasOwnProperty.call(message, "maxDataItemCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxDataItemCount); - if (message.maxDataItemPercentage != null && Object.hasOwnProperty.call(message, "maxDataItemPercentage")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxDataItemPercentage); - if (message.sampleConfig != null && Object.hasOwnProperty.call(message, "sampleConfig")) - $root.google.cloud.aiplatform.v1beta1.SampleConfig.encode(message.sampleConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingConfig != null && Object.hasOwnProperty.call(message, "trainingConfig")) - $root.google.cloud.aiplatform.v1beta1.TrainingConfig.encode(message.trainingConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.workerPoolSpecs != null && message.workerPoolSpecs.length) + for (var i = 0; i < message.workerPoolSpecs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.encode(message.workerPoolSpecs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.scheduling != null && Object.hasOwnProperty.call(message, "scheduling")) + $root.google.cloud.aiplatform.v1beta1.Scheduling.encode(message.scheduling, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.serviceAccount); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.network); + if (message.baseOutputDirectory != null && Object.hasOwnProperty.call(message, "baseOutputDirectory")) + $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.baseOutputDirectory, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.tensorboard != null && Object.hasOwnProperty.call(message, "tensorboard")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.tensorboard); + if (message.enableWebAccess != null && Object.hasOwnProperty.call(message, "enableWebAccess")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enableWebAccess); + if (message.reservedIpRanges != null && message.reservedIpRanges.length) + for (var i = 0; i < message.reservedIpRanges.length; ++i) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.reservedIpRanges[i]); return writer; }; /** - * Encodes the specified ActiveLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. + * Encodes the specified CustomJobSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CustomJobSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig} message ActiveLearningConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICustomJobSpec} message CustomJobSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ActiveLearningConfig.encodeDelimited = function encodeDelimited(message, writer) { + CustomJobSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ActiveLearningConfig message from the specified reader or buffer. + * Decodes a CustomJobSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig + * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ActiveLearningConfig.decode = function decode(reader, length) { + CustomJobSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CustomJobSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.maxDataItemCount = reader.int64(); - break; - case 2: - message.maxDataItemPercentage = reader.int32(); + if (!(message.workerPoolSpecs && message.workerPoolSpecs.length)) + message.workerPoolSpecs = []; + message.workerPoolSpecs.push($root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.decode(reader, reader.uint32())); break; case 3: - message.sampleConfig = $root.google.cloud.aiplatform.v1beta1.SampleConfig.decode(reader, reader.uint32()); + message.scheduling = $root.google.cloud.aiplatform.v1beta1.Scheduling.decode(reader, reader.uint32()); break; case 4: - message.trainingConfig = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.decode(reader, reader.uint32()); + message.serviceAccount = reader.string(); + break; + case 5: + message.network = reader.string(); + break; + case 13: + if (!(message.reservedIpRanges && message.reservedIpRanges.length)) + message.reservedIpRanges = []; + message.reservedIpRanges.push(reader.string()); + break; + case 6: + message.baseOutputDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + break; + case 7: + message.tensorboard = reader.string(); + break; + case 10: + message.enableWebAccess = reader.bool(); break; default: reader.skipType(tag & 7); @@ -168566,165 +172845,211 @@ }; /** - * Decodes an ActiveLearningConfig message from the specified reader or buffer, length delimited. + * Decodes a CustomJobSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig + * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ActiveLearningConfig.decodeDelimited = function decodeDelimited(reader) { + CustomJobSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ActiveLearningConfig message. + * Verifies a CustomJobSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ActiveLearningConfig.verify = function verify(message) { + CustomJobSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.maxDataItemCount != null && message.hasOwnProperty("maxDataItemCount")) { - properties.humanLabelingBudget = 1; - if (!$util.isInteger(message.maxDataItemCount) && !(message.maxDataItemCount && $util.isInteger(message.maxDataItemCount.low) && $util.isInteger(message.maxDataItemCount.high))) - return "maxDataItemCount: integer|Long expected"; - } - if (message.maxDataItemPercentage != null && message.hasOwnProperty("maxDataItemPercentage")) { - if (properties.humanLabelingBudget === 1) - return "humanLabelingBudget: multiple values"; - properties.humanLabelingBudget = 1; - if (!$util.isInteger(message.maxDataItemPercentage)) - return "maxDataItemPercentage: integer expected"; + if (message.workerPoolSpecs != null && message.hasOwnProperty("workerPoolSpecs")) { + if (!Array.isArray(message.workerPoolSpecs)) + return "workerPoolSpecs: array expected"; + for (var i = 0; i < message.workerPoolSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify(message.workerPoolSpecs[i]); + if (error) + return "workerPoolSpecs." + error; + } } - if (message.sampleConfig != null && message.hasOwnProperty("sampleConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.SampleConfig.verify(message.sampleConfig); + if (message.scheduling != null && message.hasOwnProperty("scheduling")) { + var error = $root.google.cloud.aiplatform.v1beta1.Scheduling.verify(message.scheduling); if (error) - return "sampleConfig." + error; + return "scheduling." + error; } - if (message.trainingConfig != null && message.hasOwnProperty("trainingConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.verify(message.trainingConfig); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { + if (!Array.isArray(message.reservedIpRanges)) + return "reservedIpRanges: array expected"; + for (var i = 0; i < message.reservedIpRanges.length; ++i) + if (!$util.isString(message.reservedIpRanges[i])) + return "reservedIpRanges: string[] expected"; + } + if (message.baseOutputDirectory != null && message.hasOwnProperty("baseOutputDirectory")) { + var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.baseOutputDirectory); if (error) - return "trainingConfig." + error; + return "baseOutputDirectory." + error; } + if (message.tensorboard != null && message.hasOwnProperty("tensorboard")) + if (!$util.isString(message.tensorboard)) + return "tensorboard: string expected"; + if (message.enableWebAccess != null && message.hasOwnProperty("enableWebAccess")) + if (typeof message.enableWebAccess !== "boolean") + return "enableWebAccess: boolean expected"; return null; }; /** - * Creates an ActiveLearningConfig message from a plain object. Also converts values to their respective internal types. + * Creates a CustomJobSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig + * @returns {google.cloud.aiplatform.v1beta1.CustomJobSpec} CustomJobSpec */ - ActiveLearningConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig) + CustomJobSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CustomJobSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig(); - if (object.maxDataItemCount != null) - if ($util.Long) - (message.maxDataItemCount = $util.Long.fromValue(object.maxDataItemCount)).unsigned = false; - else if (typeof object.maxDataItemCount === "string") - message.maxDataItemCount = parseInt(object.maxDataItemCount, 10); - else if (typeof object.maxDataItemCount === "number") - message.maxDataItemCount = object.maxDataItemCount; - else if (typeof object.maxDataItemCount === "object") - message.maxDataItemCount = new $util.LongBits(object.maxDataItemCount.low >>> 0, object.maxDataItemCount.high >>> 0).toNumber(); - if (object.maxDataItemPercentage != null) - message.maxDataItemPercentage = object.maxDataItemPercentage | 0; - if (object.sampleConfig != null) { - if (typeof object.sampleConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ActiveLearningConfig.sampleConfig: object expected"); - message.sampleConfig = $root.google.cloud.aiplatform.v1beta1.SampleConfig.fromObject(object.sampleConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.CustomJobSpec(); + if (object.workerPoolSpecs) { + if (!Array.isArray(object.workerPoolSpecs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.workerPoolSpecs: array expected"); + message.workerPoolSpecs = []; + for (var i = 0; i < object.workerPoolSpecs.length; ++i) { + if (typeof object.workerPoolSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.workerPoolSpecs: object expected"); + message.workerPoolSpecs[i] = $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.fromObject(object.workerPoolSpecs[i]); + } } - if (object.trainingConfig != null) { - if (typeof object.trainingConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ActiveLearningConfig.trainingConfig: object expected"); - message.trainingConfig = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.fromObject(object.trainingConfig); + if (object.scheduling != null) { + if (typeof object.scheduling !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.scheduling: object expected"); + message.scheduling = $root.google.cloud.aiplatform.v1beta1.Scheduling.fromObject(object.scheduling); + } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.network != null) + message.network = String(object.network); + if (object.reservedIpRanges) { + if (!Array.isArray(object.reservedIpRanges)) + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.reservedIpRanges: array expected"); + message.reservedIpRanges = []; + for (var i = 0; i < object.reservedIpRanges.length; ++i) + message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + } + if (object.baseOutputDirectory != null) { + if (typeof object.baseOutputDirectory !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CustomJobSpec.baseOutputDirectory: object expected"); + message.baseOutputDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.baseOutputDirectory); } + if (object.tensorboard != null) + message.tensorboard = String(object.tensorboard); + if (object.enableWebAccess != null) + message.enableWebAccess = Boolean(object.enableWebAccess); return message; }; /** - * Creates a plain object from an ActiveLearningConfig message. Also converts values to other types if specified. + * Creates a plain object from a CustomJobSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} message ActiveLearningConfig + * @param {google.cloud.aiplatform.v1beta1.CustomJobSpec} message CustomJobSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ActiveLearningConfig.toObject = function toObject(message, options) { + CustomJobSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.workerPoolSpecs = []; + object.reservedIpRanges = []; + } if (options.defaults) { - object.sampleConfig = null; - object.trainingConfig = null; + object.scheduling = null; + object.serviceAccount = ""; + object.network = ""; + object.baseOutputDirectory = null; + object.tensorboard = ""; + object.enableWebAccess = false; } - if (message.maxDataItemCount != null && message.hasOwnProperty("maxDataItemCount")) { - if (typeof message.maxDataItemCount === "number") - object.maxDataItemCount = options.longs === String ? String(message.maxDataItemCount) : message.maxDataItemCount; - else - object.maxDataItemCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxDataItemCount) : options.longs === Number ? new $util.LongBits(message.maxDataItemCount.low >>> 0, message.maxDataItemCount.high >>> 0).toNumber() : message.maxDataItemCount; - if (options.oneofs) - object.humanLabelingBudget = "maxDataItemCount"; + if (message.workerPoolSpecs && message.workerPoolSpecs.length) { + object.workerPoolSpecs = []; + for (var j = 0; j < message.workerPoolSpecs.length; ++j) + object.workerPoolSpecs[j] = $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec.toObject(message.workerPoolSpecs[j], options); } - if (message.maxDataItemPercentage != null && message.hasOwnProperty("maxDataItemPercentage")) { - object.maxDataItemPercentage = message.maxDataItemPercentage; - if (options.oneofs) - object.humanLabelingBudget = "maxDataItemPercentage"; + if (message.scheduling != null && message.hasOwnProperty("scheduling")) + object.scheduling = $root.google.cloud.aiplatform.v1beta1.Scheduling.toObject(message.scheduling, options); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.baseOutputDirectory != null && message.hasOwnProperty("baseOutputDirectory")) + object.baseOutputDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.baseOutputDirectory, options); + if (message.tensorboard != null && message.hasOwnProperty("tensorboard")) + object.tensorboard = message.tensorboard; + if (message.enableWebAccess != null && message.hasOwnProperty("enableWebAccess")) + object.enableWebAccess = message.enableWebAccess; + if (message.reservedIpRanges && message.reservedIpRanges.length) { + object.reservedIpRanges = []; + for (var j = 0; j < message.reservedIpRanges.length; ++j) + object.reservedIpRanges[j] = message.reservedIpRanges[j]; } - if (message.sampleConfig != null && message.hasOwnProperty("sampleConfig")) - object.sampleConfig = $root.google.cloud.aiplatform.v1beta1.SampleConfig.toObject(message.sampleConfig, options); - if (message.trainingConfig != null && message.hasOwnProperty("trainingConfig")) - object.trainingConfig = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.toObject(message.trainingConfig, options); return object; }; /** - * Converts this ActiveLearningConfig to JSON. + * Converts this CustomJobSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.CustomJobSpec * @instance * @returns {Object.} JSON object */ - ActiveLearningConfig.prototype.toJSON = function toJSON() { + CustomJobSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ActiveLearningConfig; + return CustomJobSpec; })(); - v1beta1.SampleConfig = (function() { + v1beta1.WorkerPoolSpec = (function() { /** - * Properties of a SampleConfig. + * Properties of a WorkerPoolSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISampleConfig - * @property {number|null} [initialBatchSamplePercentage] SampleConfig initialBatchSamplePercentage - * @property {number|null} [followingBatchSamplePercentage] SampleConfig followingBatchSamplePercentage - * @property {google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|null} [sampleStrategy] SampleConfig sampleStrategy + * @interface IWorkerPoolSpec + * @property {google.cloud.aiplatform.v1beta1.IContainerSpec|null} [containerSpec] WorkerPoolSpec containerSpec + * @property {google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null} [pythonPackageSpec] WorkerPoolSpec pythonPackageSpec + * @property {google.cloud.aiplatform.v1beta1.IMachineSpec|null} [machineSpec] WorkerPoolSpec machineSpec + * @property {number|Long|null} [replicaCount] WorkerPoolSpec replicaCount + * @property {Array.|null} [nfsMounts] WorkerPoolSpec nfsMounts + * @property {google.cloud.aiplatform.v1beta1.IDiskSpec|null} [diskSpec] WorkerPoolSpec diskSpec */ /** - * Constructs a new SampleConfig. + * Constructs a new WorkerPoolSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SampleConfig. - * @implements ISampleConfig + * @classdesc Represents a WorkerPoolSpec. + * @implements IWorkerPoolSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISampleConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec=} [properties] Properties to set */ - function SampleConfig(properties) { + function WorkerPoolSpec(properties) { + this.nfsMounts = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -168732,126 +173057,157 @@ } /** - * SampleConfig initialBatchSamplePercentage. - * @member {number|null|undefined} initialBatchSamplePercentage - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * WorkerPoolSpec containerSpec. + * @member {google.cloud.aiplatform.v1beta1.IContainerSpec|null|undefined} containerSpec + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @instance */ - SampleConfig.prototype.initialBatchSamplePercentage = null; + WorkerPoolSpec.prototype.containerSpec = null; /** - * SampleConfig followingBatchSamplePercentage. - * @member {number|null|undefined} followingBatchSamplePercentage - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * WorkerPoolSpec pythonPackageSpec. + * @member {google.cloud.aiplatform.v1beta1.IPythonPackageSpec|null|undefined} pythonPackageSpec + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @instance */ - SampleConfig.prototype.followingBatchSamplePercentage = null; + WorkerPoolSpec.prototype.pythonPackageSpec = null; /** - * SampleConfig sampleStrategy. - * @member {google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy} sampleStrategy - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * WorkerPoolSpec machineSpec. + * @member {google.cloud.aiplatform.v1beta1.IMachineSpec|null|undefined} machineSpec + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @instance */ - SampleConfig.prototype.sampleStrategy = 0; + WorkerPoolSpec.prototype.machineSpec = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * WorkerPoolSpec replicaCount. + * @member {number|Long} replicaCount + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @instance + */ + WorkerPoolSpec.prototype.replicaCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * SampleConfig initialBatchSampleSize. - * @member {"initialBatchSamplePercentage"|undefined} initialBatchSampleSize - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * WorkerPoolSpec nfsMounts. + * @member {Array.} nfsMounts + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @instance */ - Object.defineProperty(SampleConfig.prototype, "initialBatchSampleSize", { - get: $util.oneOfGetter($oneOfFields = ["initialBatchSamplePercentage"]), - set: $util.oneOfSetter($oneOfFields) - }); + WorkerPoolSpec.prototype.nfsMounts = $util.emptyArray; /** - * SampleConfig followingBatchSampleSize. - * @member {"followingBatchSamplePercentage"|undefined} followingBatchSampleSize - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * WorkerPoolSpec diskSpec. + * @member {google.cloud.aiplatform.v1beta1.IDiskSpec|null|undefined} diskSpec + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @instance */ - Object.defineProperty(SampleConfig.prototype, "followingBatchSampleSize", { - get: $util.oneOfGetter($oneOfFields = ["followingBatchSamplePercentage"]), + WorkerPoolSpec.prototype.diskSpec = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * WorkerPoolSpec task. + * @member {"containerSpec"|"pythonPackageSpec"|undefined} task + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec + * @instance + */ + Object.defineProperty(WorkerPoolSpec.prototype, "task", { + get: $util.oneOfGetter($oneOfFields = ["containerSpec", "pythonPackageSpec"]), set: $util.oneOfSetter($oneOfFields) }); /** - * Creates a new SampleConfig instance using the specified properties. + * Creates a new WorkerPoolSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISampleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig instance + * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec instance */ - SampleConfig.create = function create(properties) { - return new SampleConfig(properties); + WorkerPoolSpec.create = function create(properties) { + return new WorkerPoolSpec(properties); }; /** - * Encodes the specified SampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. + * Encodes the specified WorkerPoolSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISampleConfig} message SampleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec} message WorkerPoolSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SampleConfig.encode = function encode(message, writer) { + WorkerPoolSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.initialBatchSamplePercentage != null && Object.hasOwnProperty.call(message, "initialBatchSamplePercentage")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.initialBatchSamplePercentage); - if (message.followingBatchSamplePercentage != null && Object.hasOwnProperty.call(message, "followingBatchSamplePercentage")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.followingBatchSamplePercentage); - if (message.sampleStrategy != null && Object.hasOwnProperty.call(message, "sampleStrategy")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.sampleStrategy); + if (message.machineSpec != null && Object.hasOwnProperty.call(message, "machineSpec")) + $root.google.cloud.aiplatform.v1beta1.MachineSpec.encode(message.machineSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.replicaCount != null && Object.hasOwnProperty.call(message, "replicaCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.replicaCount); + if (message.nfsMounts != null && message.nfsMounts.length) + for (var i = 0; i < message.nfsMounts.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NfsMount.encode(message.nfsMounts[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.diskSpec != null && Object.hasOwnProperty.call(message, "diskSpec")) + $root.google.cloud.aiplatform.v1beta1.DiskSpec.encode(message.diskSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.containerSpec != null && Object.hasOwnProperty.call(message, "containerSpec")) + $root.google.cloud.aiplatform.v1beta1.ContainerSpec.encode(message.containerSpec, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.pythonPackageSpec != null && Object.hasOwnProperty.call(message, "pythonPackageSpec")) + $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.encode(message.pythonPackageSpec, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified SampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. + * Encodes the specified WorkerPoolSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.WorkerPoolSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ISampleConfig} message SampleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IWorkerPoolSpec} message WorkerPoolSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SampleConfig.encodeDelimited = function encodeDelimited(message, writer) { + WorkerPoolSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SampleConfig message from the specified reader or buffer. + * Decodes a WorkerPoolSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig + * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SampleConfig.decode = function decode(reader, length) { + WorkerPoolSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SampleConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 6: + message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ContainerSpec.decode(reader, reader.uint32()); + break; + case 7: + message.pythonPackageSpec = $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.decode(reader, reader.uint32()); + break; case 1: - message.initialBatchSamplePercentage = reader.int32(); + message.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.decode(reader, reader.uint32()); break; - case 3: - message.followingBatchSamplePercentage = reader.int32(); + case 2: + message.replicaCount = reader.int64(); + break; + case 4: + if (!(message.nfsMounts && message.nfsMounts.length)) + message.nfsMounts = []; + message.nfsMounts.push($root.google.cloud.aiplatform.v1beta1.NfsMount.decode(reader, reader.uint32())); break; case 5: - message.sampleStrategy = reader.int32(); + message.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -168862,159 +173218,219 @@ }; /** - * Decodes a SampleConfig message from the specified reader or buffer, length delimited. + * Decodes a WorkerPoolSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig + * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SampleConfig.decodeDelimited = function decodeDelimited(reader) { + WorkerPoolSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SampleConfig message. + * Verifies a WorkerPoolSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SampleConfig.verify = function verify(message) { + WorkerPoolSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; var properties = {}; - if (message.initialBatchSamplePercentage != null && message.hasOwnProperty("initialBatchSamplePercentage")) { - properties.initialBatchSampleSize = 1; - if (!$util.isInteger(message.initialBatchSamplePercentage)) - return "initialBatchSamplePercentage: integer expected"; + if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { + properties.task = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ContainerSpec.verify(message.containerSpec); + if (error) + return "containerSpec." + error; + } } - if (message.followingBatchSamplePercentage != null && message.hasOwnProperty("followingBatchSamplePercentage")) { - properties.followingBatchSampleSize = 1; - if (!$util.isInteger(message.followingBatchSamplePercentage)) - return "followingBatchSamplePercentage: integer expected"; + if (message.pythonPackageSpec != null && message.hasOwnProperty("pythonPackageSpec")) { + if (properties.task === 1) + return "task: multiple values"; + properties.task = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify(message.pythonPackageSpec); + if (error) + return "pythonPackageSpec." + error; + } } - if (message.sampleStrategy != null && message.hasOwnProperty("sampleStrategy")) - switch (message.sampleStrategy) { - default: - return "sampleStrategy: enum value expected"; - case 0: - case 1: - break; + if (message.machineSpec != null && message.hasOwnProperty("machineSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.MachineSpec.verify(message.machineSpec); + if (error) + return "machineSpec." + error; + } + if (message.replicaCount != null && message.hasOwnProperty("replicaCount")) + if (!$util.isInteger(message.replicaCount) && !(message.replicaCount && $util.isInteger(message.replicaCount.low) && $util.isInteger(message.replicaCount.high))) + return "replicaCount: integer|Long expected"; + if (message.nfsMounts != null && message.hasOwnProperty("nfsMounts")) { + if (!Array.isArray(message.nfsMounts)) + return "nfsMounts: array expected"; + for (var i = 0; i < message.nfsMounts.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NfsMount.verify(message.nfsMounts[i]); + if (error) + return "nfsMounts." + error; } + } + if (message.diskSpec != null && message.hasOwnProperty("diskSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.DiskSpec.verify(message.diskSpec); + if (error) + return "diskSpec." + error; + } return null; }; /** - * Creates a SampleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a WorkerPoolSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig + * @returns {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} WorkerPoolSpec */ - SampleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SampleConfig) + WorkerPoolSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SampleConfig(); - if (object.initialBatchSamplePercentage != null) - message.initialBatchSamplePercentage = object.initialBatchSamplePercentage | 0; - if (object.followingBatchSamplePercentage != null) - message.followingBatchSamplePercentage = object.followingBatchSamplePercentage | 0; - switch (object.sampleStrategy) { - case "SAMPLE_STRATEGY_UNSPECIFIED": - case 0: - message.sampleStrategy = 0; - break; - case "UNCERTAINTY": - case 1: - message.sampleStrategy = 1; - break; + var message = new $root.google.cloud.aiplatform.v1beta1.WorkerPoolSpec(); + if (object.containerSpec != null) { + if (typeof object.containerSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.containerSpec: object expected"); + message.containerSpec = $root.google.cloud.aiplatform.v1beta1.ContainerSpec.fromObject(object.containerSpec); + } + if (object.pythonPackageSpec != null) { + if (typeof object.pythonPackageSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.pythonPackageSpec: object expected"); + message.pythonPackageSpec = $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.fromObject(object.pythonPackageSpec); + } + if (object.machineSpec != null) { + if (typeof object.machineSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.machineSpec: object expected"); + message.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.fromObject(object.machineSpec); + } + if (object.replicaCount != null) + if ($util.Long) + (message.replicaCount = $util.Long.fromValue(object.replicaCount)).unsigned = false; + else if (typeof object.replicaCount === "string") + message.replicaCount = parseInt(object.replicaCount, 10); + else if (typeof object.replicaCount === "number") + message.replicaCount = object.replicaCount; + else if (typeof object.replicaCount === "object") + message.replicaCount = new $util.LongBits(object.replicaCount.low >>> 0, object.replicaCount.high >>> 0).toNumber(); + if (object.nfsMounts) { + if (!Array.isArray(object.nfsMounts)) + throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.nfsMounts: array expected"); + message.nfsMounts = []; + for (var i = 0; i < object.nfsMounts.length; ++i) { + if (typeof object.nfsMounts[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.nfsMounts: object expected"); + message.nfsMounts[i] = $root.google.cloud.aiplatform.v1beta1.NfsMount.fromObject(object.nfsMounts[i]); + } + } + if (object.diskSpec != null) { + if (typeof object.diskSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.WorkerPoolSpec.diskSpec: object expected"); + message.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.fromObject(object.diskSpec); } return message; }; /** - * Creates a plain object from a SampleConfig message. Also converts values to other types if specified. + * Creates a plain object from a WorkerPoolSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @static - * @param {google.cloud.aiplatform.v1beta1.SampleConfig} message SampleConfig + * @param {google.cloud.aiplatform.v1beta1.WorkerPoolSpec} message WorkerPoolSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SampleConfig.toObject = function toObject(message, options) { + WorkerPoolSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.sampleStrategy = options.enums === String ? "SAMPLE_STRATEGY_UNSPECIFIED" : 0; - if (message.initialBatchSamplePercentage != null && message.hasOwnProperty("initialBatchSamplePercentage")) { - object.initialBatchSamplePercentage = message.initialBatchSamplePercentage; + if (options.arrays || options.defaults) + object.nfsMounts = []; + if (options.defaults) { + object.machineSpec = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.replicaCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.replicaCount = options.longs === String ? "0" : 0; + object.diskSpec = null; + } + if (message.machineSpec != null && message.hasOwnProperty("machineSpec")) + object.machineSpec = $root.google.cloud.aiplatform.v1beta1.MachineSpec.toObject(message.machineSpec, options); + if (message.replicaCount != null && message.hasOwnProperty("replicaCount")) + if (typeof message.replicaCount === "number") + object.replicaCount = options.longs === String ? String(message.replicaCount) : message.replicaCount; + else + object.replicaCount = options.longs === String ? $util.Long.prototype.toString.call(message.replicaCount) : options.longs === Number ? new $util.LongBits(message.replicaCount.low >>> 0, message.replicaCount.high >>> 0).toNumber() : message.replicaCount; + if (message.nfsMounts && message.nfsMounts.length) { + object.nfsMounts = []; + for (var j = 0; j < message.nfsMounts.length; ++j) + object.nfsMounts[j] = $root.google.cloud.aiplatform.v1beta1.NfsMount.toObject(message.nfsMounts[j], options); + } + if (message.diskSpec != null && message.hasOwnProperty("diskSpec")) + object.diskSpec = $root.google.cloud.aiplatform.v1beta1.DiskSpec.toObject(message.diskSpec, options); + if (message.containerSpec != null && message.hasOwnProperty("containerSpec")) { + object.containerSpec = $root.google.cloud.aiplatform.v1beta1.ContainerSpec.toObject(message.containerSpec, options); if (options.oneofs) - object.initialBatchSampleSize = "initialBatchSamplePercentage"; + object.task = "containerSpec"; } - if (message.followingBatchSamplePercentage != null && message.hasOwnProperty("followingBatchSamplePercentage")) { - object.followingBatchSamplePercentage = message.followingBatchSamplePercentage; + if (message.pythonPackageSpec != null && message.hasOwnProperty("pythonPackageSpec")) { + object.pythonPackageSpec = $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec.toObject(message.pythonPackageSpec, options); if (options.oneofs) - object.followingBatchSampleSize = "followingBatchSamplePercentage"; + object.task = "pythonPackageSpec"; } - if (message.sampleStrategy != null && message.hasOwnProperty("sampleStrategy")) - object.sampleStrategy = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy[message.sampleStrategy] : message.sampleStrategy; return object; }; /** - * Converts this SampleConfig to JSON. + * Converts this WorkerPoolSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @memberof google.cloud.aiplatform.v1beta1.WorkerPoolSpec * @instance * @returns {Object.} JSON object */ - SampleConfig.prototype.toJSON = function toJSON() { + WorkerPoolSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * SampleStrategy enum. - * @name google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy - * @enum {number} - * @property {number} SAMPLE_STRATEGY_UNSPECIFIED=0 SAMPLE_STRATEGY_UNSPECIFIED value - * @property {number} UNCERTAINTY=1 UNCERTAINTY value - */ - SampleConfig.SampleStrategy = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SAMPLE_STRATEGY_UNSPECIFIED"] = 0; - values[valuesById[1] = "UNCERTAINTY"] = 1; - return values; - })(); - - return SampleConfig; + return WorkerPoolSpec; })(); - v1beta1.TrainingConfig = (function() { + v1beta1.ContainerSpec = (function() { /** - * Properties of a TrainingConfig. + * Properties of a ContainerSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ITrainingConfig - * @property {number|Long|null} [timeoutTrainingMilliHours] TrainingConfig timeoutTrainingMilliHours + * @interface IContainerSpec + * @property {string|null} [imageUri] ContainerSpec imageUri + * @property {Array.|null} [command] ContainerSpec command + * @property {Array.|null} [args] ContainerSpec args + * @property {Array.|null} [env] ContainerSpec env */ /** - * Constructs a new TrainingConfig. + * Constructs a new ContainerSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a TrainingConfig. - * @implements ITrainingConfig + * @classdesc Represents a ContainerSpec. + * @implements IContainerSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IContainerSpec=} [properties] Properties to set */ - function TrainingConfig(properties) { + function ContainerSpec(properties) { + this.command = []; + this.args = []; + this.env = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -169022,75 +173438,123 @@ } /** - * TrainingConfig timeoutTrainingMilliHours. - * @member {number|Long} timeoutTrainingMilliHours - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * ContainerSpec imageUri. + * @member {string} imageUri + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @instance */ - TrainingConfig.prototype.timeoutTrainingMilliHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ContainerSpec.prototype.imageUri = ""; /** - * Creates a new TrainingConfig instance using the specified properties. + * ContainerSpec command. + * @member {Array.} command + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @instance + */ + ContainerSpec.prototype.command = $util.emptyArray; + + /** + * ContainerSpec args. + * @member {Array.} args + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @instance + */ + ContainerSpec.prototype.args = $util.emptyArray; + + /** + * ContainerSpec env. + * @member {Array.} env + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec + * @instance + */ + ContainerSpec.prototype.env = $util.emptyArray; + + /** + * Creates a new ContainerSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig instance + * @param {google.cloud.aiplatform.v1beta1.IContainerSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec instance */ - TrainingConfig.create = function create(properties) { - return new TrainingConfig(properties); + ContainerSpec.create = function create(properties) { + return new ContainerSpec(properties); }; /** - * Encodes the specified TrainingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. + * Encodes the specified ContainerSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig} message TrainingConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IContainerSpec} message ContainerSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingConfig.encode = function encode(message, writer) { + ContainerSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.timeoutTrainingMilliHours != null && Object.hasOwnProperty.call(message, "timeoutTrainingMilliHours")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timeoutTrainingMilliHours); + if (message.imageUri != null && Object.hasOwnProperty.call(message, "imageUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.imageUri); + if (message.command != null && message.command.length) + for (var i = 0; i < message.command.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.command[i]); + if (message.args != null && message.args.length) + for (var i = 0; i < message.args.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.args[i]); + if (message.env != null && message.env.length) + for (var i = 0; i < message.env.length; ++i) + $root.google.cloud.aiplatform.v1beta1.EnvVar.encode(message.env[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified TrainingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. + * Encodes the specified ContainerSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ContainerSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig} message TrainingConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IContainerSpec} message ContainerSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - TrainingConfig.encodeDelimited = function encodeDelimited(message, writer) { + ContainerSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a TrainingConfig message from the specified reader or buffer. + * Decodes a ContainerSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig + * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingConfig.decode = function decode(reader, length) { + ContainerSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.TrainingConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ContainerSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.timeoutTrainingMilliHours = reader.int64(); + message.imageUri = reader.string(); + break; + case 2: + if (!(message.command && message.command.length)) + message.command = []; + message.command.push(reader.string()); + break; + case 3: + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); + break; + case 4: + if (!(message.env && message.env.length)) + message.env = []; + message.env.push($root.google.cloud.aiplatform.v1beta1.EnvVar.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -169101,131 +173565,181 @@ }; /** - * Decodes a TrainingConfig message from the specified reader or buffer, length delimited. + * Decodes a ContainerSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig + * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - TrainingConfig.decodeDelimited = function decodeDelimited(reader) { + ContainerSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a TrainingConfig message. + * Verifies a ContainerSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - TrainingConfig.verify = function verify(message) { + ContainerSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.timeoutTrainingMilliHours != null && message.hasOwnProperty("timeoutTrainingMilliHours")) - if (!$util.isInteger(message.timeoutTrainingMilliHours) && !(message.timeoutTrainingMilliHours && $util.isInteger(message.timeoutTrainingMilliHours.low) && $util.isInteger(message.timeoutTrainingMilliHours.high))) - return "timeoutTrainingMilliHours: integer|Long expected"; + if (message.imageUri != null && message.hasOwnProperty("imageUri")) + if (!$util.isString(message.imageUri)) + return "imageUri: string expected"; + if (message.command != null && message.hasOwnProperty("command")) { + if (!Array.isArray(message.command)) + return "command: array expected"; + for (var i = 0; i < message.command.length; ++i) + if (!$util.isString(message.command[i])) + return "command: string[] expected"; + } + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (var i = 0; i < message.args.length; ++i) + if (!$util.isString(message.args[i])) + return "args: string[] expected"; + } + if (message.env != null && message.hasOwnProperty("env")) { + if (!Array.isArray(message.env)) + return "env: array expected"; + for (var i = 0; i < message.env.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.EnvVar.verify(message.env[i]); + if (error) + return "env." + error; + } + } return null; }; /** - * Creates a TrainingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ContainerSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig + * @returns {google.cloud.aiplatform.v1beta1.ContainerSpec} ContainerSpec */ - TrainingConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.TrainingConfig) + ContainerSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ContainerSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.TrainingConfig(); - if (object.timeoutTrainingMilliHours != null) - if ($util.Long) - (message.timeoutTrainingMilliHours = $util.Long.fromValue(object.timeoutTrainingMilliHours)).unsigned = false; - else if (typeof object.timeoutTrainingMilliHours === "string") - message.timeoutTrainingMilliHours = parseInt(object.timeoutTrainingMilliHours, 10); - else if (typeof object.timeoutTrainingMilliHours === "number") - message.timeoutTrainingMilliHours = object.timeoutTrainingMilliHours; - else if (typeof object.timeoutTrainingMilliHours === "object") - message.timeoutTrainingMilliHours = new $util.LongBits(object.timeoutTrainingMilliHours.low >>> 0, object.timeoutTrainingMilliHours.high >>> 0).toNumber(); + var message = new $root.google.cloud.aiplatform.v1beta1.ContainerSpec(); + if (object.imageUri != null) + message.imageUri = String(object.imageUri); + if (object.command) { + if (!Array.isArray(object.command)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ContainerSpec.command: array expected"); + message.command = []; + for (var i = 0; i < object.command.length; ++i) + message.command[i] = String(object.command[i]); + } + if (object.args) { + if (!Array.isArray(object.args)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ContainerSpec.args: array expected"); + message.args = []; + for (var i = 0; i < object.args.length; ++i) + message.args[i] = String(object.args[i]); + } + if (object.env) { + if (!Array.isArray(object.env)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ContainerSpec.env: array expected"); + message.env = []; + for (var i = 0; i < object.env.length; ++i) { + if (typeof object.env[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ContainerSpec.env: object expected"); + message.env[i] = $root.google.cloud.aiplatform.v1beta1.EnvVar.fromObject(object.env[i]); + } + } return message; }; /** - * Creates a plain object from a TrainingConfig message. Also converts values to other types if specified. + * Creates a plain object from a ContainerSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @static - * @param {google.cloud.aiplatform.v1beta1.TrainingConfig} message TrainingConfig + * @param {google.cloud.aiplatform.v1beta1.ContainerSpec} message ContainerSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - TrainingConfig.toObject = function toObject(message, options) { + ContainerSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.command = []; + object.args = []; + object.env = []; + } if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.timeoutTrainingMilliHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.timeoutTrainingMilliHours = options.longs === String ? "0" : 0; - if (message.timeoutTrainingMilliHours != null && message.hasOwnProperty("timeoutTrainingMilliHours")) - if (typeof message.timeoutTrainingMilliHours === "number") - object.timeoutTrainingMilliHours = options.longs === String ? String(message.timeoutTrainingMilliHours) : message.timeoutTrainingMilliHours; - else - object.timeoutTrainingMilliHours = options.longs === String ? $util.Long.prototype.toString.call(message.timeoutTrainingMilliHours) : options.longs === Number ? new $util.LongBits(message.timeoutTrainingMilliHours.low >>> 0, message.timeoutTrainingMilliHours.high >>> 0).toNumber() : message.timeoutTrainingMilliHours; + object.imageUri = ""; + if (message.imageUri != null && message.hasOwnProperty("imageUri")) + object.imageUri = message.imageUri; + if (message.command && message.command.length) { + object.command = []; + for (var j = 0; j < message.command.length; ++j) + object.command[j] = message.command[j]; + } + if (message.args && message.args.length) { + object.args = []; + for (var j = 0; j < message.args.length; ++j) + object.args[j] = message.args[j]; + } + if (message.env && message.env.length) { + object.env = []; + for (var j = 0; j < message.env.length; ++j) + object.env[j] = $root.google.cloud.aiplatform.v1beta1.EnvVar.toObject(message.env[j], options); + } return object; }; /** - * Converts this TrainingConfig to JSON. + * Converts this ContainerSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ContainerSpec * @instance * @returns {Object.} JSON object */ - TrainingConfig.prototype.toJSON = function toJSON() { + ContainerSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return TrainingConfig; + return ContainerSpec; })(); - v1beta1.Dataset = (function() { + v1beta1.PythonPackageSpec = (function() { /** - * Properties of a Dataset. + * Properties of a PythonPackageSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDataset - * @property {string|null} [name] Dataset name - * @property {string|null} [displayName] Dataset displayName - * @property {string|null} [description] Dataset description - * @property {string|null} [metadataSchemaUri] Dataset metadataSchemaUri - * @property {google.protobuf.IValue|null} [metadata] Dataset metadata - * @property {google.protobuf.ITimestamp|null} [createTime] Dataset createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Dataset updateTime - * @property {string|null} [etag] Dataset etag - * @property {Object.|null} [labels] Dataset labels - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Dataset encryptionSpec + * @interface IPythonPackageSpec + * @property {string|null} [executorImageUri] PythonPackageSpec executorImageUri + * @property {Array.|null} [packageUris] PythonPackageSpec packageUris + * @property {string|null} [pythonModule] PythonPackageSpec pythonModule + * @property {Array.|null} [args] PythonPackageSpec args + * @property {Array.|null} [env] PythonPackageSpec env */ /** - * Constructs a new Dataset. + * Constructs a new PythonPackageSpec. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Dataset. - * @implements IDataset + * @classdesc Represents a PythonPackageSpec. + * @implements IPythonPackageSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDataset=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec=} [properties] Properties to set */ - function Dataset(properties) { - this.labels = {}; + function PythonPackageSpec(properties) { + this.packageUris = []; + this.args = []; + this.env = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -169233,212 +173747,136 @@ } /** - * Dataset name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Dataset - * @instance - */ - Dataset.prototype.name = ""; - - /** - * Dataset displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Dataset - * @instance - */ - Dataset.prototype.displayName = ""; - - /** - * Dataset description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Dataset - * @instance - */ - Dataset.prototype.description = ""; - - /** - * Dataset metadataSchemaUri. - * @member {string} metadataSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.Dataset - * @instance - */ - Dataset.prototype.metadataSchemaUri = ""; - - /** - * Dataset metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.Dataset - * @instance - */ - Dataset.prototype.metadata = null; - - /** - * Dataset createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * PythonPackageSpec executorImageUri. + * @member {string} executorImageUri + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance */ - Dataset.prototype.createTime = null; + PythonPackageSpec.prototype.executorImageUri = ""; /** - * Dataset updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * PythonPackageSpec packageUris. + * @member {Array.} packageUris + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance */ - Dataset.prototype.updateTime = null; + PythonPackageSpec.prototype.packageUris = $util.emptyArray; /** - * Dataset etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * PythonPackageSpec pythonModule. + * @member {string} pythonModule + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance */ - Dataset.prototype.etag = ""; + PythonPackageSpec.prototype.pythonModule = ""; /** - * Dataset labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * PythonPackageSpec args. + * @member {Array.} args + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance */ - Dataset.prototype.labels = $util.emptyObject; + PythonPackageSpec.prototype.args = $util.emptyArray; /** - * Dataset encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * PythonPackageSpec env. + * @member {Array.} env + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance */ - Dataset.prototype.encryptionSpec = null; + PythonPackageSpec.prototype.env = $util.emptyArray; /** - * Creates a new Dataset instance using the specified properties. + * Creates a new PythonPackageSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset instance + * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec instance */ - Dataset.create = function create(properties) { - return new Dataset(properties); + PythonPackageSpec.create = function create(properties) { + return new PythonPackageSpec(properties); }; /** - * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. + * Encodes the specified PythonPackageSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IDataset} message Dataset message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec} message PythonPackageSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Dataset.encode = function encode(message, writer) { + PythonPackageSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataSchemaUri); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.description); + if (message.executorImageUri != null && Object.hasOwnProperty.call(message, "executorImageUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.executorImageUri); + if (message.packageUris != null && message.packageUris.length) + for (var i = 0; i < message.packageUris.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.packageUris[i]); + if (message.pythonModule != null && Object.hasOwnProperty.call(message, "pythonModule")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.pythonModule); + if (message.args != null && message.args.length) + for (var i = 0; i < message.args.length; ++i) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.args[i]); + if (message.env != null && message.env.length) + for (var i = 0; i < message.env.length; ++i) + $root.google.cloud.aiplatform.v1beta1.EnvVar.encode(message.env[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. + * Encodes the specified PythonPackageSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PythonPackageSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static - * @param {google.cloud.aiplatform.v1beta1.IDataset} message Dataset message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPythonPackageSpec} message PythonPackageSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Dataset.encodeDelimited = function encodeDelimited(message, writer) { + PythonPackageSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Dataset message from the specified reader or buffer. + * Decodes a PythonPackageSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset + * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Dataset.decode = function decode(reader, length) { + PythonPackageSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Dataset(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.executorImageUri = reader.string(); break; case 2: - message.displayName = reader.string(); - break; - case 16: - message.description = reader.string(); + if (!(message.packageUris && message.packageUris.length)) + message.packageUris = []; + message.packageUris.push(reader.string()); break; case 3: - message.metadataSchemaUri = reader.string(); - break; - case 8: - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + message.pythonModule = reader.string(); break; case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.args && message.args.length)) + message.args = []; + message.args.push(reader.string()); break; case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - message.etag = reader.string(); - break; - case 7: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 11: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + if (!(message.env && message.env.length)) + message.env = []; + message.env.push($root.google.cloud.aiplatform.v1beta1.EnvVar.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -169449,218 +173887,184 @@ }; /** - * Decodes a Dataset message from the specified reader or buffer, length delimited. + * Decodes a PythonPackageSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset + * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Dataset.decodeDelimited = function decodeDelimited(reader) { + PythonPackageSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Dataset message. + * Verifies a PythonPackageSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Dataset.verify = function verify(message) { + PythonPackageSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - if (!$util.isString(message.metadataSchemaUri)) - return "metadataSchemaUri: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.executorImageUri != null && message.hasOwnProperty("executorImageUri")) + if (!$util.isString(message.executorImageUri)) + return "executorImageUri: string expected"; + if (message.packageUris != null && message.hasOwnProperty("packageUris")) { + if (!Array.isArray(message.packageUris)) + return "packageUris: array expected"; + for (var i = 0; i < message.packageUris.length; ++i) + if (!$util.isString(message.packageUris[i])) + return "packageUris: string[] expected"; } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + if (message.pythonModule != null && message.hasOwnProperty("pythonModule")) + if (!$util.isString(message.pythonModule)) + return "pythonModule: string expected"; + if (message.args != null && message.hasOwnProperty("args")) { + if (!Array.isArray(message.args)) + return "args: array expected"; + for (var i = 0; i < message.args.length; ++i) + if (!$util.isString(message.args[i])) + return "args: string[] expected"; } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; + if (message.env != null && message.hasOwnProperty("env")) { + if (!Array.isArray(message.env)) + return "env: array expected"; + for (var i = 0; i < message.env.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.EnvVar.verify(message.env[i]); + if (error) + return "env." + error; + } } return null; }; /** - * Creates a Dataset message from a plain object. Also converts values to their respective internal types. + * Creates a PythonPackageSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset + * @returns {google.cloud.aiplatform.v1beta1.PythonPackageSpec} PythonPackageSpec */ - Dataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Dataset) + PythonPackageSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Dataset(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.metadataSchemaUri != null) - message.metadataSchemaUri = String(object.metadataSchemaUri); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Dataset.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Dataset.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Dataset.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.cloud.aiplatform.v1beta1.PythonPackageSpec(); + if (object.executorImageUri != null) + message.executorImageUri = String(object.executorImageUri); + if (object.packageUris) { + if (!Array.isArray(object.packageUris)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PythonPackageSpec.packageUris: array expected"); + message.packageUris = []; + for (var i = 0; i < object.packageUris.length; ++i) + message.packageUris[i] = String(object.packageUris[i]); } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Dataset.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + if (object.pythonModule != null) + message.pythonModule = String(object.pythonModule); + if (object.args) { + if (!Array.isArray(object.args)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PythonPackageSpec.args: array expected"); + message.args = []; + for (var i = 0; i < object.args.length; ++i) + message.args[i] = String(object.args[i]); } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Dataset.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + if (object.env) { + if (!Array.isArray(object.env)) + throw TypeError(".google.cloud.aiplatform.v1beta1.PythonPackageSpec.env: array expected"); + message.env = []; + for (var i = 0; i < object.env.length; ++i) { + if (typeof object.env[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PythonPackageSpec.env: object expected"); + message.env[i] = $root.google.cloud.aiplatform.v1beta1.EnvVar.fromObject(object.env[i]); + } } return message; }; /** - * Creates a plain object from a Dataset message. Also converts values to other types if specified. + * Creates a plain object from a PythonPackageSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @static - * @param {google.cloud.aiplatform.v1beta1.Dataset} message Dataset + * @param {google.cloud.aiplatform.v1beta1.PythonPackageSpec} message PythonPackageSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Dataset.toObject = function toObject(message, options) { + PythonPackageSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; + if (options.arrays || options.defaults) { + object.packageUris = []; + object.args = []; + object.env = []; + } if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.metadataSchemaUri = ""; - object.createTime = null; - object.updateTime = null; - object.etag = ""; - object.metadata = null; - object.encryptionSpec = null; - object.description = ""; + object.executorImageUri = ""; + object.pythonModule = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - object.metadataSchemaUri = message.metadataSchemaUri; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + if (message.executorImageUri != null && message.hasOwnProperty("executorImageUri")) + object.executorImageUri = message.executorImageUri; + if (message.packageUris && message.packageUris.length) { + object.packageUris = []; + for (var j = 0; j < message.packageUris.length; ++j) + object.packageUris[j] = message.packageUris[j]; + } + if (message.pythonModule != null && message.hasOwnProperty("pythonModule")) + object.pythonModule = message.pythonModule; + if (message.args && message.args.length) { + object.args = []; + for (var j = 0; j < message.args.length; ++j) + object.args[j] = message.args[j]; + } + if (message.env && message.env.length) { + object.env = []; + for (var j = 0; j < message.env.length; ++j) + object.env[j] = $root.google.cloud.aiplatform.v1beta1.EnvVar.toObject(message.env[j], options); } - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; return object; }; /** - * Converts this Dataset to JSON. + * Converts this PythonPackageSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @memberof google.cloud.aiplatform.v1beta1.PythonPackageSpec * @instance * @returns {Object.} JSON object */ - Dataset.prototype.toJSON = function toJSON() { + PythonPackageSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Dataset; + return PythonPackageSpec; })(); - v1beta1.ImportDataConfig = (function() { + v1beta1.Scheduling = (function() { /** - * Properties of an ImportDataConfig. + * Properties of a Scheduling. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportDataConfig - * @property {google.cloud.aiplatform.v1beta1.IGcsSource|null} [gcsSource] ImportDataConfig gcsSource - * @property {Object.|null} [dataItemLabels] ImportDataConfig dataItemLabels - * @property {string|null} [importSchemaUri] ImportDataConfig importSchemaUri + * @interface IScheduling + * @property {google.protobuf.IDuration|null} [timeout] Scheduling timeout + * @property {boolean|null} [restartJobOnWorkerRestart] Scheduling restartJobOnWorkerRestart */ /** - * Constructs a new ImportDataConfig. + * Constructs a new Scheduling. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportDataConfig. - * @implements IImportDataConfig + * @classdesc Represents a Scheduling. + * @implements IScheduling * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IScheduling=} [properties] Properties to set */ - function ImportDataConfig(properties) { - this.dataItemLabels = {}; + function Scheduling(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -169668,135 +174072,88 @@ } /** - * ImportDataConfig gcsSource. - * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig - * @instance - */ - ImportDataConfig.prototype.gcsSource = null; - - /** - * ImportDataConfig dataItemLabels. - * @member {Object.} dataItemLabels - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig - * @instance - */ - ImportDataConfig.prototype.dataItemLabels = $util.emptyObject; - - /** - * ImportDataConfig importSchemaUri. - * @member {string} importSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * Scheduling timeout. + * @member {google.protobuf.IDuration|null|undefined} timeout + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @instance */ - ImportDataConfig.prototype.importSchemaUri = ""; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + Scheduling.prototype.timeout = null; /** - * ImportDataConfig source. - * @member {"gcsSource"|undefined} source - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * Scheduling restartJobOnWorkerRestart. + * @member {boolean} restartJobOnWorkerRestart + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @instance */ - Object.defineProperty(ImportDataConfig.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["gcsSource"]), - set: $util.oneOfSetter($oneOfFields) - }); + Scheduling.prototype.restartJobOnWorkerRestart = false; /** - * Creates a new ImportDataConfig instance using the specified properties. + * Creates a new Scheduling instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig instance + * @param {google.cloud.aiplatform.v1beta1.IScheduling=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling instance */ - ImportDataConfig.create = function create(properties) { - return new ImportDataConfig(properties); + Scheduling.create = function create(properties) { + return new Scheduling(properties); }; /** - * Encodes the specified ImportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. + * Encodes the specified Scheduling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig} message ImportDataConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IScheduling} message Scheduling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataConfig.encode = function encode(message, writer) { + Scheduling.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) - $root.google.cloud.aiplatform.v1beta1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.dataItemLabels != null && Object.hasOwnProperty.call(message, "dataItemLabels")) - for (var keys = Object.keys(message.dataItemLabels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.dataItemLabels[keys[i]]).ldelim(); - if (message.importSchemaUri != null && Object.hasOwnProperty.call(message, "importSchemaUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.importSchemaUri); + if (message.timeout != null && Object.hasOwnProperty.call(message, "timeout")) + $root.google.protobuf.Duration.encode(message.timeout, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.restartJobOnWorkerRestart != null && Object.hasOwnProperty.call(message, "restartJobOnWorkerRestart")) + writer.uint32(/* id 3, wireType 0 =*/24).bool(message.restartJobOnWorkerRestart); return writer; }; /** - * Encodes the specified ImportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. + * Encodes the specified Scheduling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Scheduling.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig} message ImportDataConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IScheduling} message Scheduling message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataConfig.encodeDelimited = function encodeDelimited(message, writer) { + Scheduling.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportDataConfig message from the specified reader or buffer. + * Decodes a Scheduling message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig + * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataConfig.decode = function decode(reader, length) { + Scheduling.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportDataConfig(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Scheduling(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.decode(reader, reader.uint32()); - break; - case 2: - if (message.dataItemLabels === $util.emptyObject) - message.dataItemLabels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.dataItemLabels[key] = value; + message.timeout = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; - case 4: - message.importSchemaUri = reader.string(); + case 3: + message.restartJobOnWorkerRestart = reader.bool(); break; default: reader.skipType(tag & 7); @@ -169807,150 +174164,127 @@ }; /** - * Decodes an ImportDataConfig message from the specified reader or buffer, length delimited. + * Decodes a Scheduling message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig + * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataConfig.decodeDelimited = function decodeDelimited(reader) { + Scheduling.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportDataConfig message. + * Verifies a Scheduling message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportDataConfig.verify = function verify(message) { + Scheduling.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - properties.source = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.GcsSource.verify(message.gcsSource); - if (error) - return "gcsSource." + error; - } - } - if (message.dataItemLabels != null && message.hasOwnProperty("dataItemLabels")) { - if (!$util.isObject(message.dataItemLabels)) - return "dataItemLabels: object expected"; - var key = Object.keys(message.dataItemLabels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.dataItemLabels[key[i]])) - return "dataItemLabels: string{k:string} expected"; + if (message.timeout != null && message.hasOwnProperty("timeout")) { + var error = $root.google.protobuf.Duration.verify(message.timeout); + if (error) + return "timeout." + error; } - if (message.importSchemaUri != null && message.hasOwnProperty("importSchemaUri")) - if (!$util.isString(message.importSchemaUri)) - return "importSchemaUri: string expected"; + if (message.restartJobOnWorkerRestart != null && message.hasOwnProperty("restartJobOnWorkerRestart")) + if (typeof message.restartJobOnWorkerRestart !== "boolean") + return "restartJobOnWorkerRestart: boolean expected"; return null; }; /** - * Creates an ImportDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates a Scheduling message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig + * @returns {google.cloud.aiplatform.v1beta1.Scheduling} Scheduling */ - ImportDataConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataConfig) + Scheduling.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Scheduling) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ImportDataConfig(); - if (object.gcsSource != null) { - if (typeof object.gcsSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataConfig.gcsSource: object expected"); - message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.fromObject(object.gcsSource); - } - if (object.dataItemLabels) { - if (typeof object.dataItemLabels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataConfig.dataItemLabels: object expected"); - message.dataItemLabels = {}; - for (var keys = Object.keys(object.dataItemLabels), i = 0; i < keys.length; ++i) - message.dataItemLabels[keys[i]] = String(object.dataItemLabels[keys[i]]); + var message = new $root.google.cloud.aiplatform.v1beta1.Scheduling(); + if (object.timeout != null) { + if (typeof object.timeout !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Scheduling.timeout: object expected"); + message.timeout = $root.google.protobuf.Duration.fromObject(object.timeout); } - if (object.importSchemaUri != null) - message.importSchemaUri = String(object.importSchemaUri); + if (object.restartJobOnWorkerRestart != null) + message.restartJobOnWorkerRestart = Boolean(object.restartJobOnWorkerRestart); return message; }; /** - * Creates a plain object from an ImportDataConfig message. Also converts values to other types if specified. + * Creates a plain object from a Scheduling message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @static - * @param {google.cloud.aiplatform.v1beta1.ImportDataConfig} message ImportDataConfig + * @param {google.cloud.aiplatform.v1beta1.Scheduling} message Scheduling * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportDataConfig.toObject = function toObject(message, options) { + Scheduling.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.dataItemLabels = {}; - if (options.defaults) - object.importSchemaUri = ""; - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - object.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.toObject(message.gcsSource, options); - if (options.oneofs) - object.source = "gcsSource"; - } - var keys2; - if (message.dataItemLabels && (keys2 = Object.keys(message.dataItemLabels)).length) { - object.dataItemLabels = {}; - for (var j = 0; j < keys2.length; ++j) - object.dataItemLabels[keys2[j]] = message.dataItemLabels[keys2[j]]; + if (options.defaults) { + object.timeout = null; + object.restartJobOnWorkerRestart = false; } - if (message.importSchemaUri != null && message.hasOwnProperty("importSchemaUri")) - object.importSchemaUri = message.importSchemaUri; + if (message.timeout != null && message.hasOwnProperty("timeout")) + object.timeout = $root.google.protobuf.Duration.toObject(message.timeout, options); + if (message.restartJobOnWorkerRestart != null && message.hasOwnProperty("restartJobOnWorkerRestart")) + object.restartJobOnWorkerRestart = message.restartJobOnWorkerRestart; return object; }; /** - * Converts this ImportDataConfig to JSON. + * Converts this Scheduling to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.Scheduling * @instance * @returns {Object.} JSON object */ - ImportDataConfig.prototype.toJSON = function toJSON() { + Scheduling.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportDataConfig; + return Scheduling; })(); - v1beta1.ExportDataConfig = (function() { + v1beta1.DataItem = (function() { /** - * Properties of an ExportDataConfig. + * Properties of a DataItem. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportDataConfig - * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcsDestination] ExportDataConfig gcsDestination - * @property {string|null} [annotationsFilter] ExportDataConfig annotationsFilter + * @interface IDataItem + * @property {string|null} [name] DataItem name + * @property {google.protobuf.ITimestamp|null} [createTime] DataItem createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] DataItem updateTime + * @property {Object.|null} [labels] DataItem labels + * @property {google.protobuf.IValue|null} [payload] DataItem payload + * @property {string|null} [etag] DataItem etag */ /** - * Constructs a new ExportDataConfig. + * Constructs a new DataItem. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportDataConfig. - * @implements IExportDataConfig + * @classdesc Represents a DataItem. + * @implements IDataItem * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDataItem=} [properties] Properties to set */ - function ExportDataConfig(properties) { + function DataItem(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -169958,102 +174292,160 @@ } /** - * ExportDataConfig gcsDestination. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcsDestination - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * DataItem name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @instance */ - ExportDataConfig.prototype.gcsDestination = null; + DataItem.prototype.name = ""; /** - * ExportDataConfig annotationsFilter. - * @member {string} annotationsFilter - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * DataItem createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @instance */ - ExportDataConfig.prototype.annotationsFilter = ""; + DataItem.prototype.createTime = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * DataItem updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @instance + */ + DataItem.prototype.updateTime = null; /** - * ExportDataConfig destination. - * @member {"gcsDestination"|undefined} destination - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * DataItem labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @instance */ - Object.defineProperty(ExportDataConfig.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcsDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); + DataItem.prototype.labels = $util.emptyObject; /** - * Creates a new ExportDataConfig instance using the specified properties. + * DataItem payload. + * @member {google.protobuf.IValue|null|undefined} payload + * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @instance + */ + DataItem.prototype.payload = null; + + /** + * DataItem etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.DataItem + * @instance + */ + DataItem.prototype.etag = ""; + + /** + * Creates a new DataItem instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig instance + * @param {google.cloud.aiplatform.v1beta1.IDataItem=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem instance */ - ExportDataConfig.create = function create(properties) { - return new ExportDataConfig(properties); + DataItem.create = function create(properties) { + return new DataItem(properties); }; /** - * Encodes the specified ExportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. + * Encodes the specified DataItem message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig} message ExportDataConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDataItem} message DataItem message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataConfig.encode = function encode(message, writer) { + DataItem.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) - $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.annotationsFilter); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.payload != null && Object.hasOwnProperty.call(message, "payload")) + $root.google.protobuf.Value.encode(message.payload, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.etag); return writer; }; /** - * Encodes the specified ExportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. + * Encodes the specified DataItem message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataItem.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig} message ExportDataConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDataItem} message DataItem message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataConfig.encodeDelimited = function encodeDelimited(message, writer) { + DataItem.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportDataConfig message from the specified reader or buffer. + * Decodes a DataItem message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig + * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataConfig.decode = function decode(reader, length) { + DataItem.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportDataConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DataItem(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 2: - message.annotationsFilter = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 4: + message.payload = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 7: + message.etag = reader.string(); break; default: reader.skipType(tag & 7); @@ -170064,581 +174456,542 @@ }; /** - * Decodes an ExportDataConfig message from the specified reader or buffer, length delimited. + * Decodes a DataItem message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig + * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataConfig.decodeDelimited = function decodeDelimited(reader) { + DataItem.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportDataConfig message. + * Verifies a DataItem message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportDataConfig.verify = function verify(message) { + DataItem.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.gcsDestination); - if (error) - return "gcsDestination." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; } - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - if (!$util.isString(message.annotationsFilter)) - return "annotationsFilter: string expected"; + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.payload != null && message.hasOwnProperty("payload")) { + var error = $root.google.protobuf.Value.verify(message.payload); + if (error) + return "payload." + error; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; return null; }; /** - * Creates an ExportDataConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DataItem message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig + * @returns {google.cloud.aiplatform.v1beta1.DataItem} DataItem */ - ExportDataConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataConfig) + DataItem.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DataItem) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportDataConfig(); - if (object.gcsDestination != null) { - if (typeof object.gcsDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportDataConfig.gcsDestination: object expected"); - message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.gcsDestination); + var message = new $root.google.cloud.aiplatform.v1beta1.DataItem(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataItem.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.annotationsFilter != null) - message.annotationsFilter = String(object.annotationsFilter); + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataItem.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataItem.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.payload != null) { + if (typeof object.payload !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataItem.payload: object expected"); + message.payload = $root.google.protobuf.Value.fromObject(object.payload); + } + if (object.etag != null) + message.etag = String(object.etag); return message; }; /** - * Creates a plain object from an ExportDataConfig message. Also converts values to other types if specified. + * Creates a plain object from a DataItem message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @static - * @param {google.cloud.aiplatform.v1beta1.ExportDataConfig} message ExportDataConfig + * @param {google.cloud.aiplatform.v1beta1.DataItem} message DataItem * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportDataConfig.toObject = function toObject(message, options) { + DataItem.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.annotationsFilter = ""; - if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { - object.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.gcsDestination, options); - if (options.oneofs) - object.destination = "gcsDestination"; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.payload = null; + object.updateTime = null; + object.etag = ""; } - if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) - object.annotationsFilter = message.annotationsFilter; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.payload != null && message.hasOwnProperty("payload")) + object.payload = $root.google.protobuf.Value.toObject(message.payload, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; return object; }; /** - * Converts this ExportDataConfig to JSON. + * Converts this DataItem to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @memberof google.cloud.aiplatform.v1beta1.DataItem * @instance * @returns {Object.} JSON object */ - ExportDataConfig.prototype.toJSON = function toJSON() { + DataItem.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportDataConfig; + return DataItem; })(); - v1beta1.DatasetService = (function() { + v1beta1.DataLabelingJob = (function() { /** - * Constructs a new DatasetService service. + * Properties of a DataLabelingJob. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DatasetService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @interface IDataLabelingJob + * @property {string|null} [name] DataLabelingJob name + * @property {string|null} [displayName] DataLabelingJob displayName + * @property {Array.|null} [datasets] DataLabelingJob datasets + * @property {Object.|null} [annotationLabels] DataLabelingJob annotationLabels + * @property {number|null} [labelerCount] DataLabelingJob labelerCount + * @property {string|null} [instructionUri] DataLabelingJob instructionUri + * @property {string|null} [inputsSchemaUri] DataLabelingJob inputsSchemaUri + * @property {google.protobuf.IValue|null} [inputs] DataLabelingJob inputs + * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] DataLabelingJob state + * @property {number|null} [labelingProgress] DataLabelingJob labelingProgress + * @property {google.type.IMoney|null} [currentSpend] DataLabelingJob currentSpend + * @property {google.protobuf.ITimestamp|null} [createTime] DataLabelingJob createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] DataLabelingJob updateTime + * @property {google.rpc.IStatus|null} [error] DataLabelingJob error + * @property {Object.|null} [labels] DataLabelingJob labels + * @property {Array.|null} [specialistPools] DataLabelingJob specialistPools + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] DataLabelingJob encryptionSpec + * @property {google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null} [activeLearningConfig] DataLabelingJob activeLearningConfig */ - function DatasetService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (DatasetService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DatasetService; /** - * Creates new DatasetService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {DatasetService} RPC service. Useful where requests and/or responses are streamed. + * Constructs a new DataLabelingJob. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DataLabelingJob. + * @implements IDataLabelingJob + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob=} [properties] Properties to set */ - DatasetService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + function DataLabelingJob(properties) { + this.datasets = []; + this.annotationLabels = {}; + this.labels = {}; + this.specialistPools = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#createDataset}. - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @typedef CreateDatasetCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * DataLabelingJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @instance */ + DataLabelingJob.prototype.name = ""; /** - * Calls CreateDataset. - * @function createDataset - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest} request CreateDatasetRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(DatasetService.prototype.createDataset = function createDataset(request, callback) { - return this.rpcCall(createDataset, $root.google.cloud.aiplatform.v1beta1.CreateDatasetRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateDataset" }); + DataLabelingJob.prototype.displayName = ""; /** - * Calls CreateDataset. - * @function createDataset - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob datasets. + * @member {Array.} datasets + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest} request CreateDatasetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + DataLabelingJob.prototype.datasets = $util.emptyArray; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#getDataset}. - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @typedef GetDatasetCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Dataset} [response] Dataset + * DataLabelingJob annotationLabels. + * @member {Object.} annotationLabels + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @instance */ + DataLabelingJob.prototype.annotationLabels = $util.emptyObject; /** - * Calls GetDataset. - * @function getDataset - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob labelerCount. + * @member {number} labelerCount + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest} request GetDatasetRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetCallback} callback Node-style callback called with the error, if any, and Dataset - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(DatasetService.prototype.getDataset = function getDataset(request, callback) { - return this.rpcCall(getDataset, $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest, $root.google.cloud.aiplatform.v1beta1.Dataset, request, callback); - }, "name", { value: "GetDataset" }); + DataLabelingJob.prototype.labelerCount = 0; /** - * Calls GetDataset. - * @function getDataset - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob instructionUri. + * @member {string} instructionUri + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest} request GetDatasetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + DataLabelingJob.prototype.instructionUri = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#updateDataset}. - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @typedef UpdateDatasetCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Dataset} [response] Dataset + * DataLabelingJob inputsSchemaUri. + * @member {string} inputsSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @instance */ + DataLabelingJob.prototype.inputsSchemaUri = ""; /** - * Calls UpdateDataset. - * @function updateDataset - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob inputs. + * @member {google.protobuf.IValue|null|undefined} inputs + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest} request UpdateDatasetRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.DatasetService.UpdateDatasetCallback} callback Node-style callback called with the error, if any, and Dataset - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(DatasetService.prototype.updateDataset = function updateDataset(request, callback) { - return this.rpcCall(updateDataset, $root.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest, $root.google.cloud.aiplatform.v1beta1.Dataset, request, callback); - }, "name", { value: "UpdateDataset" }); + DataLabelingJob.prototype.inputs = null; /** - * Calls UpdateDataset. - * @function updateDataset - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob state. + * @member {google.cloud.aiplatform.v1beta1.JobState} state + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest} request UpdateDatasetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + DataLabelingJob.prototype.state = 0; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listDatasets}. - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @typedef ListDatasetsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} [response] ListDatasetsResponse + * DataLabelingJob labelingProgress. + * @member {number} labelingProgress + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @instance */ + DataLabelingJob.prototype.labelingProgress = 0; /** - * Calls ListDatasets. - * @function listDatasets - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob currentSpend. + * @member {google.type.IMoney|null|undefined} currentSpend + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest} request ListDatasetsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetsCallback} callback Node-style callback called with the error, if any, and ListDatasetsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(DatasetService.prototype.listDatasets = function listDatasets(request, callback) { - return this.rpcCall(listDatasets, $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest, $root.google.cloud.aiplatform.v1beta1.ListDatasetsResponse, request, callback); - }, "name", { value: "ListDatasets" }); + DataLabelingJob.prototype.currentSpend = null; /** - * Calls ListDatasets. - * @function listDatasets - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest} request ListDatasetsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + DataLabelingJob.prototype.createTime = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#deleteDataset}. - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @typedef DeleteDatasetCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * DataLabelingJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob + * @instance */ + DataLabelingJob.prototype.updateTime = null; /** - * Calls DeleteDataset. - * @function deleteDataset - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest} request DeleteDatasetRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DatasetService.prototype.deleteDataset = function deleteDataset(request, callback) { - return this.rpcCall(deleteDataset, $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteDataset" }); - - /** - * Calls DeleteDataset. - * @function deleteDataset - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest} request DeleteDatasetRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#importData}. - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @typedef ImportDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ImportData. - * @function importData - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest} request ImportDataRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.DatasetService.ImportDataCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DatasetService.prototype.importData = function importData(request, callback) { - return this.rpcCall(importData, $root.google.cloud.aiplatform.v1beta1.ImportDataRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportData" }); - - /** - * Calls ImportData. - * @function importData - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest} request ImportDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#exportData}. - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @typedef ExportDataCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls ExportData. - * @function exportData - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest} request ExportDataRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.DatasetService.ExportDataCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DatasetService.prototype.exportData = function exportData(request, callback) { - return this.rpcCall(exportData, $root.google.cloud.aiplatform.v1beta1.ExportDataRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportData" }); - - /** - * Calls ExportData. - * @function exportData - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest} request ExportDataRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listDataItems}. - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @typedef ListDataItemsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} [response] ListDataItemsResponse - */ - - /** - * Calls ListDataItems. - * @function listDataItems - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest} request ListDataItemsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.DatasetService.ListDataItemsCallback} callback Node-style callback called with the error, if any, and ListDataItemsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DatasetService.prototype.listDataItems = function listDataItems(request, callback) { - return this.rpcCall(listDataItems, $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest, $root.google.cloud.aiplatform.v1beta1.ListDataItemsResponse, request, callback); - }, "name", { value: "ListDataItems" }); - - /** - * Calls ListDataItems. - * @function listDataItems - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest} request ListDataItemsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#getAnnotationSpec}. - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @typedef GetAnnotationSpecCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.AnnotationSpec} [response] AnnotationSpec - */ - - /** - * Calls GetAnnotationSpec. - * @function getAnnotationSpec - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest} request GetAnnotationSpecRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpecCallback} callback Node-style callback called with the error, if any, and AnnotationSpec - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(DatasetService.prototype.getAnnotationSpec = function getAnnotationSpec(request, callback) { - return this.rpcCall(getAnnotationSpec, $root.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, $root.google.cloud.aiplatform.v1beta1.AnnotationSpec, request, callback); - }, "name", { value: "GetAnnotationSpec" }); - - /** - * Calls GetAnnotationSpec. - * @function getAnnotationSpec - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest} request GetAnnotationSpecRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listAnnotations}. - * @memberof google.cloud.aiplatform.v1beta1.DatasetService - * @typedef ListAnnotationsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} [response] ListAnnotationsResponse */ + DataLabelingJob.prototype.error = null; /** - * Calls ListAnnotations. - * @function listAnnotations - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest} request ListAnnotationsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotationsCallback} callback Node-style callback called with the error, if any, and ListAnnotationsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(DatasetService.prototype.listAnnotations = function listAnnotations(request, callback) { - return this.rpcCall(listAnnotations, $root.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest, $root.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse, request, callback); - }, "name", { value: "ListAnnotations" }); + DataLabelingJob.prototype.labels = $util.emptyObject; /** - * Calls ListAnnotations. - * @function listAnnotations - * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * DataLabelingJob specialistPools. + * @member {Array.} specialistPools + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest} request ListAnnotationsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return DatasetService; - })(); - - v1beta1.CreateDatasetRequest = (function() { - - /** - * Properties of a CreateDatasetRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateDatasetRequest - * @property {string|null} [parent] CreateDatasetRequest parent - * @property {google.cloud.aiplatform.v1beta1.IDataset|null} [dataset] CreateDatasetRequest dataset - */ - - /** - * Constructs a new CreateDatasetRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateDatasetRequest. - * @implements ICreateDatasetRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest=} [properties] Properties to set */ - function CreateDatasetRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + DataLabelingJob.prototype.specialistPools = $util.emptyArray; /** - * CreateDatasetRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * DataLabelingJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - CreateDatasetRequest.prototype.parent = ""; + DataLabelingJob.prototype.encryptionSpec = null; /** - * CreateDatasetRequest dataset. - * @member {google.cloud.aiplatform.v1beta1.IDataset|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * DataLabelingJob activeLearningConfig. + * @member {google.cloud.aiplatform.v1beta1.IActiveLearningConfig|null|undefined} activeLearningConfig + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance */ - CreateDatasetRequest.prototype.dataset = null; + DataLabelingJob.prototype.activeLearningConfig = null; /** - * Creates a new CreateDatasetRequest instance using the specified properties. + * Creates a new DataLabelingJob instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob instance */ - CreateDatasetRequest.create = function create(properties) { - return new CreateDatasetRequest(properties); + DataLabelingJob.create = function create(properties) { + return new DataLabelingJob(properties); }; /** - * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. + * Encodes the specified DataLabelingJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest} message CreateDatasetRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob} message DataLabelingJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDatasetRequest.encode = function encode(message, writer) { + DataLabelingJob.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - $root.google.cloud.aiplatform.v1beta1.Dataset.encode(message.dataset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.datasets != null && message.datasets.length) + for (var i = 0; i < message.datasets.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.datasets[i]); + if (message.labelerCount != null && Object.hasOwnProperty.call(message, "labelerCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.labelerCount); + if (message.instructionUri != null && Object.hasOwnProperty.call(message, "instructionUri")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.instructionUri); + if (message.inputsSchemaUri != null && Object.hasOwnProperty.call(message, "inputsSchemaUri")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.inputsSchemaUri); + if (message.inputs != null && Object.hasOwnProperty.call(message, "inputs")) + $root.google.protobuf.Value.encode(message.inputs, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.annotationLabels != null && Object.hasOwnProperty.call(message, "annotationLabels")) + for (var keys = Object.keys(message.annotationLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.annotationLabels[keys[i]]).ldelim(); + if (message.labelingProgress != null && Object.hasOwnProperty.call(message, "labelingProgress")) + writer.uint32(/* id 13, wireType 0 =*/104).int32(message.labelingProgress); + if (message.currentSpend != null && Object.hasOwnProperty.call(message, "currentSpend")) + $root.google.type.Money.encode(message.currentSpend, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.specialistPools != null && message.specialistPools.length) + for (var i = 0; i < message.specialistPools.length; ++i) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.specialistPools[i]); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.activeLearningConfig != null && Object.hasOwnProperty.call(message, "activeLearningConfig")) + $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.encode(message.activeLearningConfig, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 22, wireType 2 =*/178).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. + * Encodes the specified DataLabelingJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DataLabelingJob.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest} message CreateDatasetRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDataLabelingJob} message DataLabelingJob message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + DataLabelingJob.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDatasetRequest message from the specified reader or buffer. + * Decodes a DataLabelingJob message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDatasetRequest.decode = function decode(reader, length) { + DataLabelingJob.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDatasetRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DataLabelingJob(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.decode(reader, reader.uint32()); + message.displayName = reader.string(); + break; + case 3: + if (!(message.datasets && message.datasets.length)) + message.datasets = []; + message.datasets.push(reader.string()); + break; + case 12: + if (message.annotationLabels === $util.emptyObject) + message.annotationLabels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.annotationLabels[key] = value; + break; + case 4: + message.labelerCount = reader.int32(); + break; + case 5: + message.instructionUri = reader.string(); + break; + case 6: + message.inputsSchemaUri = reader.string(); + break; + case 7: + message.inputs = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 8: + message.state = reader.int32(); + break; + case 13: + message.labelingProgress = reader.int32(); + break; + case 14: + message.currentSpend = $root.google.type.Money.decode(reader, reader.uint32()); + break; + case 9: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 10: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 22: + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + case 11: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 16: + if (!(message.specialistPools && message.specialistPools.length)) + message.specialistPools = []; + message.specialistPools.push(reader.string()); + break; + case 20: + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + case 21: + message.activeLearningConfig = $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -170649,121 +175002,395 @@ }; /** - * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a DataLabelingJob message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDatasetRequest.decodeDelimited = function decodeDelimited(reader) { + DataLabelingJob.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateDatasetRequest message. + * Verifies a DataLabelingJob message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateDatasetRequest.verify = function verify(message) { + DataLabelingJob.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - var error = $root.google.cloud.aiplatform.v1beta1.Dataset.verify(message.dataset); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.datasets != null && message.hasOwnProperty("datasets")) { + if (!Array.isArray(message.datasets)) + return "datasets: array expected"; + for (var i = 0; i < message.datasets.length; ++i) + if (!$util.isString(message.datasets[i])) + return "datasets: string[] expected"; + } + if (message.annotationLabels != null && message.hasOwnProperty("annotationLabels")) { + if (!$util.isObject(message.annotationLabels)) + return "annotationLabels: object expected"; + var key = Object.keys(message.annotationLabels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.annotationLabels[key[i]])) + return "annotationLabels: string{k:string} expected"; + } + if (message.labelerCount != null && message.hasOwnProperty("labelerCount")) + if (!$util.isInteger(message.labelerCount)) + return "labelerCount: integer expected"; + if (message.instructionUri != null && message.hasOwnProperty("instructionUri")) + if (!$util.isString(message.instructionUri)) + return "instructionUri: string expected"; + if (message.inputsSchemaUri != null && message.hasOwnProperty("inputsSchemaUri")) + if (!$util.isString(message.inputsSchemaUri)) + return "inputsSchemaUri: string expected"; + if (message.inputs != null && message.hasOwnProperty("inputs")) { + var error = $root.google.protobuf.Value.verify(message.inputs); if (error) - return "dataset." + error; + return "inputs." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; + } + if (message.labelingProgress != null && message.hasOwnProperty("labelingProgress")) + if (!$util.isInteger(message.labelingProgress)) + return "labelingProgress: integer expected"; + if (message.currentSpend != null && message.hasOwnProperty("currentSpend")) { + var error = $root.google.type.Money.verify(message.currentSpend); + if (error) + return "currentSpend." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.specialistPools != null && message.hasOwnProperty("specialistPools")) { + if (!Array.isArray(message.specialistPools)) + return "specialistPools: array expected"; + for (var i = 0; i < message.specialistPools.length; ++i) + if (!$util.isString(message.specialistPools[i])) + return "specialistPools: string[] expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.activeLearningConfig != null && message.hasOwnProperty("activeLearningConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify(message.activeLearningConfig); + if (error) + return "activeLearningConfig." + error; } return null; }; /** - * Creates a CreateDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DataLabelingJob message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.DataLabelingJob} DataLabelingJob */ - CreateDatasetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDatasetRequest) + DataLabelingJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DataLabelingJob) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateDatasetRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.dataset != null) { - if (typeof object.dataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDatasetRequest.dataset: object expected"); - message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.fromObject(object.dataset); + var message = new $root.google.cloud.aiplatform.v1beta1.DataLabelingJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.datasets) { + if (!Array.isArray(object.datasets)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.datasets: array expected"); + message.datasets = []; + for (var i = 0; i < object.datasets.length; ++i) + message.datasets[i] = String(object.datasets[i]); + } + if (object.annotationLabels) { + if (typeof object.annotationLabels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.annotationLabels: object expected"); + message.annotationLabels = {}; + for (var keys = Object.keys(object.annotationLabels), i = 0; i < keys.length; ++i) + message.annotationLabels[keys[i]] = String(object.annotationLabels[keys[i]]); + } + if (object.labelerCount != null) + message.labelerCount = object.labelerCount | 0; + if (object.instructionUri != null) + message.instructionUri = String(object.instructionUri); + if (object.inputsSchemaUri != null) + message.inputsSchemaUri = String(object.inputsSchemaUri); + if (object.inputs != null) { + if (typeof object.inputs !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.inputs: object expected"); + message.inputs = $root.google.protobuf.Value.fromObject(object.inputs); + } + switch (object.state) { + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + } + if (object.labelingProgress != null) + message.labelingProgress = object.labelingProgress | 0; + if (object.currentSpend != null) { + if (typeof object.currentSpend !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.currentSpend: object expected"); + message.currentSpend = $root.google.type.Money.fromObject(object.currentSpend); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.specialistPools) { + if (!Array.isArray(object.specialistPools)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.specialistPools: array expected"); + message.specialistPools = []; + for (var i = 0; i < object.specialistPools.length; ++i) + message.specialistPools[i] = String(object.specialistPools[i]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.activeLearningConfig != null) { + if (typeof object.activeLearningConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DataLabelingJob.activeLearningConfig: object expected"); + message.activeLearningConfig = $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.fromObject(object.activeLearningConfig); } return message; }; /** - * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. + * Creates a plain object from a DataLabelingJob message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @static - * @param {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} message CreateDatasetRequest + * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} message DataLabelingJob * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDatasetRequest.toObject = function toObject(message, options) { + DataLabelingJob.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.datasets = []; + object.specialistPools = []; + } + if (options.objects || options.defaults) { + object.labels = {}; + object.annotationLabels = {}; + } if (options.defaults) { - object.parent = ""; - object.dataset = null; + object.name = ""; + object.displayName = ""; + object.labelerCount = 0; + object.instructionUri = ""; + object.inputsSchemaUri = ""; + object.inputs = null; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.updateTime = null; + object.labelingProgress = 0; + object.currentSpend = null; + object.encryptionSpec = null; + object.activeLearningConfig = null; + object.error = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.toObject(message.dataset, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.datasets && message.datasets.length) { + object.datasets = []; + for (var j = 0; j < message.datasets.length; ++j) + object.datasets[j] = message.datasets[j]; + } + if (message.labelerCount != null && message.hasOwnProperty("labelerCount")) + object.labelerCount = message.labelerCount; + if (message.instructionUri != null && message.hasOwnProperty("instructionUri")) + object.instructionUri = message.instructionUri; + if (message.inputsSchemaUri != null && message.hasOwnProperty("inputsSchemaUri")) + object.inputsSchemaUri = message.inputsSchemaUri; + if (message.inputs != null && message.hasOwnProperty("inputs")) + object.inputs = $root.google.protobuf.Value.toObject(message.inputs, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.annotationLabels && (keys2 = Object.keys(message.annotationLabels)).length) { + object.annotationLabels = {}; + for (var j = 0; j < keys2.length; ++j) + object.annotationLabels[keys2[j]] = message.annotationLabels[keys2[j]]; + } + if (message.labelingProgress != null && message.hasOwnProperty("labelingProgress")) + object.labelingProgress = message.labelingProgress; + if (message.currentSpend != null && message.hasOwnProperty("currentSpend")) + object.currentSpend = $root.google.type.Money.toObject(message.currentSpend, options); + if (message.specialistPools && message.specialistPools.length) { + object.specialistPools = []; + for (var j = 0; j < message.specialistPools.length; ++j) + object.specialistPools[j] = message.specialistPools[j]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.activeLearningConfig != null && message.hasOwnProperty("activeLearningConfig")) + object.activeLearningConfig = $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig.toObject(message.activeLearningConfig, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); return object; }; /** - * Converts this CreateDatasetRequest to JSON. + * Converts this DataLabelingJob to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.DataLabelingJob * @instance * @returns {Object.} JSON object */ - CreateDatasetRequest.prototype.toJSON = function toJSON() { + DataLabelingJob.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateDatasetRequest; + return DataLabelingJob; })(); - v1beta1.CreateDatasetOperationMetadata = (function() { + v1beta1.ActiveLearningConfig = (function() { /** - * Properties of a CreateDatasetOperationMetadata. + * Properties of an ActiveLearningConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateDatasetOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateDatasetOperationMetadata genericMetadata + * @interface IActiveLearningConfig + * @property {number|Long|null} [maxDataItemCount] ActiveLearningConfig maxDataItemCount + * @property {number|null} [maxDataItemPercentage] ActiveLearningConfig maxDataItemPercentage + * @property {google.cloud.aiplatform.v1beta1.ISampleConfig|null} [sampleConfig] ActiveLearningConfig sampleConfig + * @property {google.cloud.aiplatform.v1beta1.ITrainingConfig|null} [trainingConfig] ActiveLearningConfig trainingConfig */ /** - * Constructs a new CreateDatasetOperationMetadata. + * Constructs a new ActiveLearningConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateDatasetOperationMetadata. - * @implements ICreateDatasetOperationMetadata + * @classdesc Represents an ActiveLearningConfig. + * @implements IActiveLearningConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig=} [properties] Properties to set */ - function CreateDatasetOperationMetadata(properties) { + function ActiveLearningConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -170771,75 +175398,128 @@ } /** - * CreateDatasetOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * ActiveLearningConfig maxDataItemCount. + * @member {number|Long|null|undefined} maxDataItemCount + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @instance */ - CreateDatasetOperationMetadata.prototype.genericMetadata = null; + ActiveLearningConfig.prototype.maxDataItemCount = null; /** - * Creates a new CreateDatasetOperationMetadata instance using the specified properties. + * ActiveLearningConfig maxDataItemPercentage. + * @member {number|null|undefined} maxDataItemPercentage + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @instance + */ + ActiveLearningConfig.prototype.maxDataItemPercentage = null; + + /** + * ActiveLearningConfig sampleConfig. + * @member {google.cloud.aiplatform.v1beta1.ISampleConfig|null|undefined} sampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @instance + */ + ActiveLearningConfig.prototype.sampleConfig = null; + + /** + * ActiveLearningConfig trainingConfig. + * @member {google.cloud.aiplatform.v1beta1.ITrainingConfig|null|undefined} trainingConfig + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @instance + */ + ActiveLearningConfig.prototype.trainingConfig = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ActiveLearningConfig humanLabelingBudget. + * @member {"maxDataItemCount"|"maxDataItemPercentage"|undefined} humanLabelingBudget + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig + * @instance + */ + Object.defineProperty(ActiveLearningConfig.prototype, "humanLabelingBudget", { + get: $util.oneOfGetter($oneOfFields = ["maxDataItemCount", "maxDataItemPercentage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ActiveLearningConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig instance */ - CreateDatasetOperationMetadata.create = function create(properties) { - return new CreateDatasetOperationMetadata(properties); + ActiveLearningConfig.create = function create(properties) { + return new ActiveLearningConfig(properties); }; /** - * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. + * Encodes the specified ActiveLearningConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata} message CreateDatasetOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig} message ActiveLearningConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDatasetOperationMetadata.encode = function encode(message, writer) { + ActiveLearningConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.maxDataItemCount != null && Object.hasOwnProperty.call(message, "maxDataItemCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxDataItemCount); + if (message.maxDataItemPercentage != null && Object.hasOwnProperty.call(message, "maxDataItemPercentage")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxDataItemPercentage); + if (message.sampleConfig != null && Object.hasOwnProperty.call(message, "sampleConfig")) + $root.google.cloud.aiplatform.v1beta1.SampleConfig.encode(message.sampleConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingConfig != null && Object.hasOwnProperty.call(message, "trainingConfig")) + $root.google.cloud.aiplatform.v1beta1.TrainingConfig.encode(message.trainingConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. + * Encodes the specified ActiveLearningConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ActiveLearningConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata} message CreateDatasetOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IActiveLearningConfig} message ActiveLearningConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateDatasetOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ActiveLearningConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer. + * Decodes an ActiveLearningConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDatasetOperationMetadata.decode = function decode(reader, length) { + ActiveLearningConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.maxDataItemCount = reader.int64(); + break; + case 2: + message.maxDataItemPercentage = reader.int32(); + break; + case 3: + message.sampleConfig = $root.google.cloud.aiplatform.v1beta1.SampleConfig.decode(reader, reader.uint32()); + break; + case 4: + message.trainingConfig = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -170850,113 +175530,165 @@ }; /** - * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an ActiveLearningConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateDatasetOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ActiveLearningConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateDatasetOperationMetadata message. + * Verifies an ActiveLearningConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateDatasetOperationMetadata.verify = function verify(message) { + ActiveLearningConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + var properties = {}; + if (message.maxDataItemCount != null && message.hasOwnProperty("maxDataItemCount")) { + properties.humanLabelingBudget = 1; + if (!$util.isInteger(message.maxDataItemCount) && !(message.maxDataItemCount && $util.isInteger(message.maxDataItemCount.low) && $util.isInteger(message.maxDataItemCount.high))) + return "maxDataItemCount: integer|Long expected"; + } + if (message.maxDataItemPercentage != null && message.hasOwnProperty("maxDataItemPercentage")) { + if (properties.humanLabelingBudget === 1) + return "humanLabelingBudget: multiple values"; + properties.humanLabelingBudget = 1; + if (!$util.isInteger(message.maxDataItemPercentage)) + return "maxDataItemPercentage: integer expected"; + } + if (message.sampleConfig != null && message.hasOwnProperty("sampleConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.SampleConfig.verify(message.sampleConfig); if (error) - return "genericMetadata." + error; + return "sampleConfig." + error; + } + if (message.trainingConfig != null && message.hasOwnProperty("trainingConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.verify(message.trainingConfig); + if (error) + return "trainingConfig." + error; } return null; }; /** - * Creates a CreateDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ActiveLearningConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} ActiveLearningConfig */ - CreateDatasetOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata) + ActiveLearningConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ActiveLearningConfig(); + if (object.maxDataItemCount != null) + if ($util.Long) + (message.maxDataItemCount = $util.Long.fromValue(object.maxDataItemCount)).unsigned = false; + else if (typeof object.maxDataItemCount === "string") + message.maxDataItemCount = parseInt(object.maxDataItemCount, 10); + else if (typeof object.maxDataItemCount === "number") + message.maxDataItemCount = object.maxDataItemCount; + else if (typeof object.maxDataItemCount === "object") + message.maxDataItemCount = new $util.LongBits(object.maxDataItemCount.low >>> 0, object.maxDataItemCount.high >>> 0).toNumber(); + if (object.maxDataItemPercentage != null) + message.maxDataItemPercentage = object.maxDataItemPercentage | 0; + if (object.sampleConfig != null) { + if (typeof object.sampleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ActiveLearningConfig.sampleConfig: object expected"); + message.sampleConfig = $root.google.cloud.aiplatform.v1beta1.SampleConfig.fromObject(object.sampleConfig); + } + if (object.trainingConfig != null) { + if (typeof object.trainingConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ActiveLearningConfig.trainingConfig: object expected"); + message.trainingConfig = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.fromObject(object.trainingConfig); } return message; }; /** - * Creates a plain object from a CreateDatasetOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an ActiveLearningConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @static - * @param {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} message CreateDatasetOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ActiveLearningConfig} message ActiveLearningConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateDatasetOperationMetadata.toObject = function toObject(message, options) { + ActiveLearningConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.sampleConfig = null; + object.trainingConfig = null; + } + if (message.maxDataItemCount != null && message.hasOwnProperty("maxDataItemCount")) { + if (typeof message.maxDataItemCount === "number") + object.maxDataItemCount = options.longs === String ? String(message.maxDataItemCount) : message.maxDataItemCount; + else + object.maxDataItemCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxDataItemCount) : options.longs === Number ? new $util.LongBits(message.maxDataItemCount.low >>> 0, message.maxDataItemCount.high >>> 0).toNumber() : message.maxDataItemCount; + if (options.oneofs) + object.humanLabelingBudget = "maxDataItemCount"; + } + if (message.maxDataItemPercentage != null && message.hasOwnProperty("maxDataItemPercentage")) { + object.maxDataItemPercentage = message.maxDataItemPercentage; + if (options.oneofs) + object.humanLabelingBudget = "maxDataItemPercentage"; + } + if (message.sampleConfig != null && message.hasOwnProperty("sampleConfig")) + object.sampleConfig = $root.google.cloud.aiplatform.v1beta1.SampleConfig.toObject(message.sampleConfig, options); + if (message.trainingConfig != null && message.hasOwnProperty("trainingConfig")) + object.trainingConfig = $root.google.cloud.aiplatform.v1beta1.TrainingConfig.toObject(message.trainingConfig, options); return object; }; /** - * Converts this CreateDatasetOperationMetadata to JSON. + * Converts this ActiveLearningConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ActiveLearningConfig * @instance * @returns {Object.} JSON object */ - CreateDatasetOperationMetadata.prototype.toJSON = function toJSON() { + ActiveLearningConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateDatasetOperationMetadata; + return ActiveLearningConfig; })(); - v1beta1.GetDatasetRequest = (function() { + v1beta1.SampleConfig = (function() { /** - * Properties of a GetDatasetRequest. + * Properties of a SampleConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetDatasetRequest - * @property {string|null} [name] GetDatasetRequest name - * @property {google.protobuf.IFieldMask|null} [readMask] GetDatasetRequest readMask + * @interface ISampleConfig + * @property {number|null} [initialBatchSamplePercentage] SampleConfig initialBatchSamplePercentage + * @property {number|null} [followingBatchSamplePercentage] SampleConfig followingBatchSamplePercentage + * @property {google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy|null} [sampleStrategy] SampleConfig sampleStrategy */ /** - * Constructs a new GetDatasetRequest. + * Constructs a new SampleConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetDatasetRequest. - * @implements IGetDatasetRequest + * @classdesc Represents a SampleConfig. + * @implements ISampleConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISampleConfig=} [properties] Properties to set */ - function GetDatasetRequest(properties) { + function SampleConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -170964,88 +175696,126 @@ } /** - * GetDatasetRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * SampleConfig initialBatchSamplePercentage. + * @member {number|null|undefined} initialBatchSamplePercentage + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @instance */ - GetDatasetRequest.prototype.name = ""; + SampleConfig.prototype.initialBatchSamplePercentage = null; /** - * GetDatasetRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * SampleConfig followingBatchSamplePercentage. + * @member {number|null|undefined} followingBatchSamplePercentage + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @instance */ - GetDatasetRequest.prototype.readMask = null; + SampleConfig.prototype.followingBatchSamplePercentage = null; /** - * Creates a new GetDatasetRequest instance using the specified properties. + * SampleConfig sampleStrategy. + * @member {google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy} sampleStrategy + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @instance + */ + SampleConfig.prototype.sampleStrategy = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * SampleConfig initialBatchSampleSize. + * @member {"initialBatchSamplePercentage"|undefined} initialBatchSampleSize + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @instance + */ + Object.defineProperty(SampleConfig.prototype, "initialBatchSampleSize", { + get: $util.oneOfGetter($oneOfFields = ["initialBatchSamplePercentage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * SampleConfig followingBatchSampleSize. + * @member {"followingBatchSamplePercentage"|undefined} followingBatchSampleSize + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig + * @instance + */ + Object.defineProperty(SampleConfig.prototype, "followingBatchSampleSize", { + get: $util.oneOfGetter($oneOfFields = ["followingBatchSamplePercentage"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new SampleConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest instance + * @param {google.cloud.aiplatform.v1beta1.ISampleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig instance */ - GetDatasetRequest.create = function create(properties) { - return new GetDatasetRequest(properties); + SampleConfig.create = function create(properties) { + return new SampleConfig(properties); }; /** - * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. + * Encodes the specified SampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest} message GetDatasetRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISampleConfig} message SampleConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDatasetRequest.encode = function encode(message, writer) { + SampleConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.initialBatchSamplePercentage != null && Object.hasOwnProperty.call(message, "initialBatchSamplePercentage")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.initialBatchSamplePercentage); + if (message.followingBatchSamplePercentage != null && Object.hasOwnProperty.call(message, "followingBatchSamplePercentage")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.followingBatchSamplePercentage); + if (message.sampleStrategy != null && Object.hasOwnProperty.call(message, "sampleStrategy")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.sampleStrategy); return writer; }; /** - * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. + * Encodes the specified SampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SampleConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest} message GetDatasetRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISampleConfig} message SampleConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + SampleConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetDatasetRequest message from the specified reader or buffer. + * Decodes a SampleConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDatasetRequest.decode = function decode(reader, length) { + SampleConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SampleConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.initialBatchSamplePercentage = reader.int32(); break; - case 2: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 3: + message.followingBatchSamplePercentage = reader.int32(); + break; + case 5: + message.sampleStrategy = reader.int32(); break; default: reader.skipType(tag & 7); @@ -171056,122 +175826,159 @@ }; /** - * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a SampleConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetDatasetRequest.decodeDelimited = function decodeDelimited(reader) { + SampleConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetDatasetRequest message. + * Verifies a SampleConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetDatasetRequest.verify = function verify(message) { + SampleConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; + var properties = {}; + if (message.initialBatchSamplePercentage != null && message.hasOwnProperty("initialBatchSamplePercentage")) { + properties.initialBatchSampleSize = 1; + if (!$util.isInteger(message.initialBatchSamplePercentage)) + return "initialBatchSamplePercentage: integer expected"; + } + if (message.followingBatchSamplePercentage != null && message.hasOwnProperty("followingBatchSamplePercentage")) { + properties.followingBatchSampleSize = 1; + if (!$util.isInteger(message.followingBatchSamplePercentage)) + return "followingBatchSamplePercentage: integer expected"; } + if (message.sampleStrategy != null && message.hasOwnProperty("sampleStrategy")) + switch (message.sampleStrategy) { + default: + return "sampleStrategy: enum value expected"; + case 0: + case 1: + break; + } return null; }; /** - * Creates a GetDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a SampleConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.SampleConfig} SampleConfig */ - GetDatasetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest) + SampleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SampleConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GetDatasetRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.SampleConfig(); + if (object.initialBatchSamplePercentage != null) + message.initialBatchSamplePercentage = object.initialBatchSamplePercentage | 0; + if (object.followingBatchSamplePercentage != null) + message.followingBatchSamplePercentage = object.followingBatchSamplePercentage | 0; + switch (object.sampleStrategy) { + case "SAMPLE_STRATEGY_UNSPECIFIED": + case 0: + message.sampleStrategy = 0; + break; + case "UNCERTAINTY": + case 1: + message.sampleStrategy = 1; + break; } return message; }; /** - * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. + * Creates a plain object from a SampleConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.GetDatasetRequest} message GetDatasetRequest + * @param {google.cloud.aiplatform.v1beta1.SampleConfig} message SampleConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetDatasetRequest.toObject = function toObject(message, options) { + SampleConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.readMask = null; + if (options.defaults) + object.sampleStrategy = options.enums === String ? "SAMPLE_STRATEGY_UNSPECIFIED" : 0; + if (message.initialBatchSamplePercentage != null && message.hasOwnProperty("initialBatchSamplePercentage")) { + object.initialBatchSamplePercentage = message.initialBatchSamplePercentage; + if (options.oneofs) + object.initialBatchSampleSize = "initialBatchSamplePercentage"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.followingBatchSamplePercentage != null && message.hasOwnProperty("followingBatchSamplePercentage")) { + object.followingBatchSamplePercentage = message.followingBatchSamplePercentage; + if (options.oneofs) + object.followingBatchSampleSize = "followingBatchSamplePercentage"; + } + if (message.sampleStrategy != null && message.hasOwnProperty("sampleStrategy")) + object.sampleStrategy = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy[message.sampleStrategy] : message.sampleStrategy; return object; }; /** - * Converts this GetDatasetRequest to JSON. + * Converts this SampleConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.SampleConfig * @instance * @returns {Object.} JSON object */ - GetDatasetRequest.prototype.toJSON = function toJSON() { + SampleConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetDatasetRequest; + /** + * SampleStrategy enum. + * @name google.cloud.aiplatform.v1beta1.SampleConfig.SampleStrategy + * @enum {number} + * @property {number} SAMPLE_STRATEGY_UNSPECIFIED=0 SAMPLE_STRATEGY_UNSPECIFIED value + * @property {number} UNCERTAINTY=1 UNCERTAINTY value + */ + SampleConfig.SampleStrategy = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SAMPLE_STRATEGY_UNSPECIFIED"] = 0; + values[valuesById[1] = "UNCERTAINTY"] = 1; + return values; + })(); + + return SampleConfig; })(); - v1beta1.UpdateDatasetRequest = (function() { + v1beta1.TrainingConfig = (function() { /** - * Properties of an UpdateDatasetRequest. + * Properties of a TrainingConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateDatasetRequest - * @property {google.cloud.aiplatform.v1beta1.IDataset|null} [dataset] UpdateDatasetRequest dataset - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDatasetRequest updateMask + * @interface ITrainingConfig + * @property {number|Long|null} [timeoutTrainingMilliHours] TrainingConfig timeoutTrainingMilliHours */ /** - * Constructs a new UpdateDatasetRequest. + * Constructs a new TrainingConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateDatasetRequest. - * @implements IUpdateDatasetRequest + * @classdesc Represents a TrainingConfig. + * @implements ITrainingConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig=} [properties] Properties to set */ - function UpdateDatasetRequest(properties) { + function TrainingConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171179,88 +175986,75 @@ } /** - * UpdateDatasetRequest dataset. - * @member {google.cloud.aiplatform.v1beta1.IDataset|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest - * @instance - */ - UpdateDatasetRequest.prototype.dataset = null; - - /** - * UpdateDatasetRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * TrainingConfig timeoutTrainingMilliHours. + * @member {number|Long} timeoutTrainingMilliHours + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @instance */ - UpdateDatasetRequest.prototype.updateMask = null; + TrainingConfig.prototype.timeoutTrainingMilliHours = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new UpdateDatasetRequest instance using the specified properties. + * Creates a new TrainingConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest instance + * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig instance */ - UpdateDatasetRequest.create = function create(properties) { - return new UpdateDatasetRequest(properties); + TrainingConfig.create = function create(properties) { + return new TrainingConfig(properties); }; /** - * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. + * Encodes the specified TrainingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest} message UpdateDatasetRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig} message TrainingConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDatasetRequest.encode = function encode(message, writer) { + TrainingConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - $root.google.cloud.aiplatform.v1beta1.Dataset.encode(message.dataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.timeoutTrainingMilliHours != null && Object.hasOwnProperty.call(message, "timeoutTrainingMilliHours")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.timeoutTrainingMilliHours); return writer; }; /** - * Encodes the specified UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. + * Encodes the specified TrainingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.TrainingConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest} message UpdateDatasetRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ITrainingConfig} message TrainingConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + TrainingConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateDatasetRequest message from the specified reader or buffer. + * Decodes a TrainingConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDatasetRequest.decode = function decode(reader, length) { + TrainingConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.TrainingConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.timeoutTrainingMilliHours = reader.int64(); break; default: reader.skipType(tag & 7); @@ -171271,131 +176065,131 @@ }; /** - * Decodes an UpdateDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes a TrainingConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateDatasetRequest.decodeDelimited = function decodeDelimited(reader) { + TrainingConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateDatasetRequest message. + * Verifies a TrainingConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateDatasetRequest.verify = function verify(message) { + TrainingConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - var error = $root.google.cloud.aiplatform.v1beta1.Dataset.verify(message.dataset); - if (error) - return "dataset." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.timeoutTrainingMilliHours != null && message.hasOwnProperty("timeoutTrainingMilliHours")) + if (!$util.isInteger(message.timeoutTrainingMilliHours) && !(message.timeoutTrainingMilliHours && $util.isInteger(message.timeoutTrainingMilliHours.low) && $util.isInteger(message.timeoutTrainingMilliHours.high))) + return "timeoutTrainingMilliHours: integer|Long expected"; return null; }; /** - * Creates an UpdateDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates a TrainingConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.TrainingConfig} TrainingConfig */ - UpdateDatasetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest) + TrainingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.TrainingConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest(); - if (object.dataset != null) { - if (typeof object.dataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.dataset: object expected"); - message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.fromObject(object.dataset); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.TrainingConfig(); + if (object.timeoutTrainingMilliHours != null) + if ($util.Long) + (message.timeoutTrainingMilliHours = $util.Long.fromValue(object.timeoutTrainingMilliHours)).unsigned = false; + else if (typeof object.timeoutTrainingMilliHours === "string") + message.timeoutTrainingMilliHours = parseInt(object.timeoutTrainingMilliHours, 10); + else if (typeof object.timeoutTrainingMilliHours === "number") + message.timeoutTrainingMilliHours = object.timeoutTrainingMilliHours; + else if (typeof object.timeoutTrainingMilliHours === "object") + message.timeoutTrainingMilliHours = new $util.LongBits(object.timeoutTrainingMilliHours.low >>> 0, object.timeoutTrainingMilliHours.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified. + * Creates a plain object from a TrainingConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} message UpdateDatasetRequest + * @param {google.cloud.aiplatform.v1beta1.TrainingConfig} message TrainingConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateDatasetRequest.toObject = function toObject(message, options) { + TrainingConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.dataset = null; - object.updateMask = null; - } - if (message.dataset != null && message.hasOwnProperty("dataset")) - object.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.toObject(message.dataset, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.timeoutTrainingMilliHours = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.timeoutTrainingMilliHours = options.longs === String ? "0" : 0; + if (message.timeoutTrainingMilliHours != null && message.hasOwnProperty("timeoutTrainingMilliHours")) + if (typeof message.timeoutTrainingMilliHours === "number") + object.timeoutTrainingMilliHours = options.longs === String ? String(message.timeoutTrainingMilliHours) : message.timeoutTrainingMilliHours; + else + object.timeoutTrainingMilliHours = options.longs === String ? $util.Long.prototype.toString.call(message.timeoutTrainingMilliHours) : options.longs === Number ? new $util.LongBits(message.timeoutTrainingMilliHours.low >>> 0, message.timeoutTrainingMilliHours.high >>> 0).toNumber() : message.timeoutTrainingMilliHours; return object; }; /** - * Converts this UpdateDatasetRequest to JSON. + * Converts this TrainingConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.TrainingConfig * @instance * @returns {Object.} JSON object */ - UpdateDatasetRequest.prototype.toJSON = function toJSON() { + TrainingConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateDatasetRequest; + return TrainingConfig; })(); - v1beta1.ListDatasetsRequest = (function() { + v1beta1.Dataset = (function() { /** - * Properties of a ListDatasetsRequest. + * Properties of a Dataset. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDatasetsRequest - * @property {string|null} [parent] ListDatasetsRequest parent - * @property {string|null} [filter] ListDatasetsRequest filter - * @property {number|null} [pageSize] ListDatasetsRequest pageSize - * @property {string|null} [pageToken] ListDatasetsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListDatasetsRequest readMask - * @property {string|null} [orderBy] ListDatasetsRequest orderBy + * @interface IDataset + * @property {string|null} [name] Dataset name + * @property {string|null} [displayName] Dataset displayName + * @property {string|null} [description] Dataset description + * @property {string|null} [metadataSchemaUri] Dataset metadataSchemaUri + * @property {google.protobuf.IValue|null} [metadata] Dataset metadata + * @property {google.protobuf.ITimestamp|null} [createTime] Dataset createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Dataset updateTime + * @property {string|null} [etag] Dataset etag + * @property {Object.|null} [labels] Dataset labels + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Dataset encryptionSpec */ /** - * Constructs a new ListDatasetsRequest. + * Constructs a new Dataset. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDatasetsRequest. - * @implements IListDatasetsRequest + * @classdesc Represents a Dataset. + * @implements IDataset * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDataset=} [properties] Properties to set */ - function ListDatasetsRequest(properties) { + function Dataset(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171403,140 +176197,212 @@ } /** - * ListDatasetsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * Dataset name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance */ - ListDatasetsRequest.prototype.parent = ""; + Dataset.prototype.name = ""; /** - * ListDatasetsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * Dataset displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance */ - ListDatasetsRequest.prototype.filter = ""; + Dataset.prototype.displayName = ""; /** - * ListDatasetsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * Dataset description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance */ - ListDatasetsRequest.prototype.pageSize = 0; + Dataset.prototype.description = ""; /** - * ListDatasetsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * Dataset metadataSchemaUri. + * @member {string} metadataSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance */ - ListDatasetsRequest.prototype.pageToken = ""; + Dataset.prototype.metadataSchemaUri = ""; /** - * ListDatasetsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * Dataset metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance */ - ListDatasetsRequest.prototype.readMask = null; + Dataset.prototype.metadata = null; /** - * ListDatasetsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * Dataset createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance */ - ListDatasetsRequest.prototype.orderBy = ""; + Dataset.prototype.createTime = null; /** - * Creates a new ListDatasetsRequest instance using the specified properties. + * Dataset updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @instance + */ + Dataset.prototype.updateTime = null; + + /** + * Dataset etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @instance + */ + Dataset.prototype.etag = ""; + + /** + * Dataset labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @instance + */ + Dataset.prototype.labels = $util.emptyObject; + + /** + * Dataset encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.Dataset + * @instance + */ + Dataset.prototype.encryptionSpec = null; + + /** + * Creates a new Dataset instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDataset=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset instance */ - ListDatasetsRequest.create = function create(properties) { - return new ListDatasetsRequest(properties); + Dataset.create = function create(properties) { + return new Dataset(properties); }; /** - * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. + * Encodes the specified Dataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest} message ListDatasetsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDataset} message Dataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDatasetsRequest.encode = function encode(message, writer) { + Dataset.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.metadataSchemaUri); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.description); return writer; }; /** - * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. + * Encodes the specified Dataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Dataset.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest} message ListDatasetsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDataset} message Dataset message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDatasetsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Dataset.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDatasetsRequest message from the specified reader or buffer. + * Decodes a Dataset message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest + * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDatasetsRequest.decode = function decode(reader, length) { + Dataset.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Dataset(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.filter = reader.string(); + message.displayName = reader.string(); + break; + case 16: + message.description = reader.string(); break; case 3: - message.pageSize = reader.int32(); + message.metadataSchemaUri = reader.string(); + break; + case 8: + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; case 4: - message.pageToken = reader.string(); + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 6: - message.orderBy = reader.string(); + message.etag = reader.string(); + break; + case 7: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 11: + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -171547,155 +176413,218 @@ }; /** - * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited. + * Decodes a Dataset message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest + * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDatasetsRequest.decodeDelimited = function decodeDelimited(reader) { + Dataset.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDatasetsRequest message. + * Verifies a Dataset message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDatasetsRequest.verify = function verify(message) { + Dataset.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + if (!$util.isString(message.metadataSchemaUri)) + return "metadataSchemaUri: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); if (error) - return "readMask." + error; + return "metadata." + error; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListDatasetsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Dataset message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest + * @returns {google.cloud.aiplatform.v1beta1.Dataset} Dataset */ - ListDatasetsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest) + Dataset.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Dataset) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDatasetsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.Dataset(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.metadataSchemaUri != null) + message.metadataSchemaUri = String(object.metadataSchemaUri); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Dataset.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Dataset.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Dataset.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Dataset.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Dataset.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified. + * Creates a plain object from a Dataset message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @static - * @param {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} message ListDatasetsRequest + * @param {google.cloud.aiplatform.v1beta1.Dataset} message Dataset * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDatasetsRequest.toObject = function toObject(message, options) { + Dataset.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - object.orderBy = ""; + object.name = ""; + object.displayName = ""; + object.metadataSchemaUri = ""; + object.createTime = null; + object.updateTime = null; + object.etag = ""; + object.metadata = null; + object.encryptionSpec = null; + object.description = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + object.metadataSchemaUri = message.metadataSchemaUri; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this ListDatasetsRequest to JSON. + * Converts this Dataset to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @memberof google.cloud.aiplatform.v1beta1.Dataset * @instance * @returns {Object.} JSON object */ - ListDatasetsRequest.prototype.toJSON = function toJSON() { + Dataset.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDatasetsRequest; + return Dataset; })(); - v1beta1.ListDatasetsResponse = (function() { + v1beta1.ImportDataConfig = (function() { /** - * Properties of a ListDatasetsResponse. + * Properties of an ImportDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDatasetsResponse - * @property {Array.|null} [datasets] ListDatasetsResponse datasets - * @property {string|null} [nextPageToken] ListDatasetsResponse nextPageToken + * @interface IImportDataConfig + * @property {google.cloud.aiplatform.v1beta1.IGcsSource|null} [gcsSource] ImportDataConfig gcsSource + * @property {Object.|null} [dataItemLabels] ImportDataConfig dataItemLabels + * @property {string|null} [importSchemaUri] ImportDataConfig importSchemaUri */ /** - * Constructs a new ListDatasetsResponse. + * Constructs a new ImportDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDatasetsResponse. - * @implements IListDatasetsResponse + * @classdesc Represents an ImportDataConfig. + * @implements IImportDataConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig=} [properties] Properties to set */ - function ListDatasetsResponse(properties) { - this.datasets = []; + function ImportDataConfig(properties) { + this.dataItemLabels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171703,91 +176632,135 @@ } /** - * ListDatasetsResponse datasets. - * @member {Array.} datasets - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * ImportDataConfig gcsSource. + * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @instance */ - ListDatasetsResponse.prototype.datasets = $util.emptyArray; + ImportDataConfig.prototype.gcsSource = null; /** - * ListDatasetsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * ImportDataConfig dataItemLabels. + * @member {Object.} dataItemLabels + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @instance */ - ListDatasetsResponse.prototype.nextPageToken = ""; + ImportDataConfig.prototype.dataItemLabels = $util.emptyObject; /** - * Creates a new ListDatasetsResponse instance using the specified properties. + * ImportDataConfig importSchemaUri. + * @member {string} importSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @instance + */ + ImportDataConfig.prototype.importSchemaUri = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ImportDataConfig source. + * @member {"gcsSource"|undefined} source + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig + * @instance + */ + Object.defineProperty(ImportDataConfig.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["gcsSource"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ImportDataConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig instance */ - ListDatasetsResponse.create = function create(properties) { - return new ListDatasetsResponse(properties); + ImportDataConfig.create = function create(properties) { + return new ImportDataConfig(properties); }; /** - * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. + * Encodes the specified ImportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse} message ListDatasetsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig} message ImportDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDatasetsResponse.encode = function encode(message, writer) { + ImportDataConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.datasets != null && message.datasets.length) - for (var i = 0; i < message.datasets.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Dataset.encode(message.datasets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) + $root.google.cloud.aiplatform.v1beta1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.dataItemLabels != null && Object.hasOwnProperty.call(message, "dataItemLabels")) + for (var keys = Object.keys(message.dataItemLabels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.dataItemLabels[keys[i]]).ldelim(); + if (message.importSchemaUri != null && Object.hasOwnProperty.call(message, "importSchemaUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.importSchemaUri); return writer; }; /** - * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. + * Encodes the specified ImportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse} message ListDatasetsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportDataConfig} message ImportDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDatasetsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ImportDataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDatasetsResponse message from the specified reader or buffer. + * Decodes an ImportDataConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse + * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDatasetsResponse.decode = function decode(reader, length) { + ImportDataConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDatasetsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportDataConfig(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.datasets && message.datasets.length)) - message.datasets = []; - message.datasets.push($root.google.cloud.aiplatform.v1beta1.Dataset.decode(reader, reader.uint32())); + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.decode(reader, reader.uint32()); break; case 2: - message.nextPageToken = reader.string(); + if (message.dataItemLabels === $util.emptyObject) + message.dataItemLabels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.dataItemLabels[key] = value; + break; + case 4: + message.importSchemaUri = reader.string(); break; default: reader.skipType(tag & 7); @@ -171798,133 +176771,150 @@ }; /** - * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportDataConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse + * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDatasetsResponse.decodeDelimited = function decodeDelimited(reader) { + ImportDataConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDatasetsResponse message. + * Verifies an ImportDataConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDatasetsResponse.verify = function verify(message) { + ImportDataConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.datasets != null && message.hasOwnProperty("datasets")) { - if (!Array.isArray(message.datasets)) - return "datasets: array expected"; - for (var i = 0; i < message.datasets.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Dataset.verify(message.datasets[i]); + var properties = {}; + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GcsSource.verify(message.gcsSource); if (error) - return "datasets." + error; + return "gcsSource." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.dataItemLabels != null && message.hasOwnProperty("dataItemLabels")) { + if (!$util.isObject(message.dataItemLabels)) + return "dataItemLabels: object expected"; + var key = Object.keys(message.dataItemLabels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.dataItemLabels[key[i]])) + return "dataItemLabels: string{k:string} expected"; + } + if (message.importSchemaUri != null && message.hasOwnProperty("importSchemaUri")) + if (!$util.isString(message.importSchemaUri)) + return "importSchemaUri: string expected"; return null; }; /** - * Creates a ListDatasetsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse + * @returns {google.cloud.aiplatform.v1beta1.ImportDataConfig} ImportDataConfig */ - ListDatasetsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDatasetsResponse) + ImportDataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDatasetsResponse(); - if (object.datasets) { - if (!Array.isArray(object.datasets)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDatasetsResponse.datasets: array expected"); - message.datasets = []; - for (var i = 0; i < object.datasets.length; ++i) { - if (typeof object.datasets[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDatasetsResponse.datasets: object expected"); - message.datasets[i] = $root.google.cloud.aiplatform.v1beta1.Dataset.fromObject(object.datasets[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ImportDataConfig(); + if (object.gcsSource != null) { + if (typeof object.gcsSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataConfig.gcsSource: object expected"); + message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.fromObject(object.gcsSource); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.dataItemLabels) { + if (typeof object.dataItemLabels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataConfig.dataItemLabels: object expected"); + message.dataItemLabels = {}; + for (var keys = Object.keys(object.dataItemLabels), i = 0; i < keys.length; ++i) + message.dataItemLabels[keys[i]] = String(object.dataItemLabels[keys[i]]); + } + if (object.importSchemaUri != null) + message.importSchemaUri = String(object.importSchemaUri); return message; }; /** - * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. + * Creates a plain object from an ImportDataConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} message ListDatasetsResponse + * @param {google.cloud.aiplatform.v1beta1.ImportDataConfig} message ImportDataConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDatasetsResponse.toObject = function toObject(message, options) { + ImportDataConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.datasets = []; + if (options.objects || options.defaults) + object.dataItemLabels = {}; if (options.defaults) - object.nextPageToken = ""; - if (message.datasets && message.datasets.length) { - object.datasets = []; - for (var j = 0; j < message.datasets.length; ++j) - object.datasets[j] = $root.google.cloud.aiplatform.v1beta1.Dataset.toObject(message.datasets[j], options); + object.importSchemaUri = ""; + if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { + object.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.toObject(message.gcsSource, options); + if (options.oneofs) + object.source = "gcsSource"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + var keys2; + if (message.dataItemLabels && (keys2 = Object.keys(message.dataItemLabels)).length) { + object.dataItemLabels = {}; + for (var j = 0; j < keys2.length; ++j) + object.dataItemLabels[keys2[j]] = message.dataItemLabels[keys2[j]]; + } + if (message.importSchemaUri != null && message.hasOwnProperty("importSchemaUri")) + object.importSchemaUri = message.importSchemaUri; return object; }; /** - * Converts this ListDatasetsResponse to JSON. + * Converts this ImportDataConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataConfig * @instance * @returns {Object.} JSON object */ - ListDatasetsResponse.prototype.toJSON = function toJSON() { + ImportDataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDatasetsResponse; + return ImportDataConfig; })(); - v1beta1.DeleteDatasetRequest = (function() { + v1beta1.ExportDataConfig = (function() { /** - * Properties of a DeleteDatasetRequest. + * Properties of an ExportDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteDatasetRequest - * @property {string|null} [name] DeleteDatasetRequest name + * @interface IExportDataConfig + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcsDestination] ExportDataConfig gcsDestination + * @property {string|null} [annotationsFilter] ExportDataConfig annotationsFilter */ /** - * Constructs a new DeleteDatasetRequest. + * Constructs a new ExportDataConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteDatasetRequest. - * @implements IDeleteDatasetRequest + * @classdesc Represents an ExportDataConfig. + * @implements IExportDataConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig=} [properties] Properties to set */ - function DeleteDatasetRequest(properties) { + function ExportDataConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -171932,75 +176922,102 @@ } /** - * DeleteDatasetRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * ExportDataConfig gcsDestination. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcsDestination + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @instance */ - DeleteDatasetRequest.prototype.name = ""; + ExportDataConfig.prototype.gcsDestination = null; /** - * Creates a new DeleteDatasetRequest instance using the specified properties. + * ExportDataConfig annotationsFilter. + * @member {string} annotationsFilter + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @instance + */ + ExportDataConfig.prototype.annotationsFilter = ""; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExportDataConfig destination. + * @member {"gcsDestination"|undefined} destination + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig + * @instance + */ + Object.defineProperty(ExportDataConfig.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["gcsDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExportDataConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest instance + * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig instance */ - DeleteDatasetRequest.create = function create(properties) { - return new DeleteDatasetRequest(properties); + ExportDataConfig.create = function create(properties) { + return new ExportDataConfig(properties); }; /** - * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. + * Encodes the specified ExportDataConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest} message DeleteDatasetRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig} message ExportDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDatasetRequest.encode = function encode(message, writer) { + ExportDataConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) + $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.annotationsFilter); return writer; }; /** - * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. + * Encodes the specified ExportDataConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest} message DeleteDatasetRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportDataConfig} message ExportDataConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportDataConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDatasetRequest message from the specified reader or buffer. + * Decodes an ExportDataConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDatasetRequest.decode = function decode(reader, length) { + ExportDataConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportDataConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + break; + case 2: + message.annotationsFilter = reader.string(); break; default: reader.skipType(tag & 7); @@ -172011,109 +177028,525 @@ }; /** - * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportDataConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDatasetRequest.decodeDelimited = function decodeDelimited(reader) { + ExportDataConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDatasetRequest message. + * Verifies an ExportDataConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDatasetRequest.verify = function verify(message) { + ExportDataConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + var properties = {}; + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.gcsDestination); + if (error) + return "gcsDestination." + error; + } + } + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + if (!$util.isString(message.annotationsFilter)) + return "annotationsFilter: string expected"; return null; }; /** - * Creates a DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest + * @returns {google.cloud.aiplatform.v1beta1.ExportDataConfig} ExportDataConfig */ - DeleteDatasetRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest) + ExportDataConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportDataConfig(); + if (object.gcsDestination != null) { + if (typeof object.gcsDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportDataConfig.gcsDestination: object expected"); + message.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.gcsDestination); + } + if (object.annotationsFilter != null) + message.annotationsFilter = String(object.annotationsFilter); return message; }; /** - * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportDataConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} message DeleteDatasetRequest + * @param {google.cloud.aiplatform.v1beta1.ExportDataConfig} message ExportDataConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDatasetRequest.toObject = function toObject(message, options) { + ExportDataConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.annotationsFilter = ""; + if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { + object.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.gcsDestination, options); + if (options.oneofs) + object.destination = "gcsDestination"; + } + if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) + object.annotationsFilter = message.annotationsFilter; return object; }; /** - * Converts this DeleteDatasetRequest to JSON. + * Converts this ExportDataConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportDataConfig * @instance * @returns {Object.} JSON object */ - DeleteDatasetRequest.prototype.toJSON = function toJSON() { + ExportDataConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteDatasetRequest; + return ExportDataConfig; })(); - v1beta1.ImportDataRequest = (function() { + v1beta1.DatasetService = (function() { /** - * Properties of an ImportDataRequest. + * Constructs a new DatasetService service. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportDataRequest - * @property {string|null} [name] ImportDataRequest name - * @property {Array.|null} [importConfigs] ImportDataRequest importConfigs + * @classdesc Represents a DatasetService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function DatasetService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (DatasetService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = DatasetService; /** - * Constructs a new ImportDataRequest. + * Creates new DatasetService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {DatasetService} RPC service. Useful where requests and/or responses are streamed. + */ + DatasetService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#createDataset}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef CreateDatasetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateDataset. + * @function createDataset + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest} request CreateDatasetRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.CreateDatasetCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.createDataset = function createDataset(request, callback) { + return this.rpcCall(createDataset, $root.google.cloud.aiplatform.v1beta1.CreateDatasetRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateDataset" }); + + /** + * Calls CreateDataset. + * @function createDataset + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest} request CreateDatasetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#getDataset}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef GetDatasetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Dataset} [response] Dataset + */ + + /** + * Calls GetDataset. + * @function getDataset + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest} request GetDatasetRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.GetDatasetCallback} callback Node-style callback called with the error, if any, and Dataset + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.getDataset = function getDataset(request, callback) { + return this.rpcCall(getDataset, $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest, $root.google.cloud.aiplatform.v1beta1.Dataset, request, callback); + }, "name", { value: "GetDataset" }); + + /** + * Calls GetDataset. + * @function getDataset + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest} request GetDatasetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#updateDataset}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef UpdateDatasetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Dataset} [response] Dataset + */ + + /** + * Calls UpdateDataset. + * @function updateDataset + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest} request UpdateDatasetRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.UpdateDatasetCallback} callback Node-style callback called with the error, if any, and Dataset + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.updateDataset = function updateDataset(request, callback) { + return this.rpcCall(updateDataset, $root.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest, $root.google.cloud.aiplatform.v1beta1.Dataset, request, callback); + }, "name", { value: "UpdateDataset" }); + + /** + * Calls UpdateDataset. + * @function updateDataset + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest} request UpdateDatasetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listDatasets}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef ListDatasetsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} [response] ListDatasetsResponse + */ + + /** + * Calls ListDatasets. + * @function listDatasets + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest} request ListDatasetsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.ListDatasetsCallback} callback Node-style callback called with the error, if any, and ListDatasetsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.listDatasets = function listDatasets(request, callback) { + return this.rpcCall(listDatasets, $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest, $root.google.cloud.aiplatform.v1beta1.ListDatasetsResponse, request, callback); + }, "name", { value: "ListDatasets" }); + + /** + * Calls ListDatasets. + * @function listDatasets + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest} request ListDatasetsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#deleteDataset}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef DeleteDatasetCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteDataset. + * @function deleteDataset + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest} request DeleteDatasetRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.DeleteDatasetCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.deleteDataset = function deleteDataset(request, callback) { + return this.rpcCall(deleteDataset, $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteDataset" }); + + /** + * Calls DeleteDataset. + * @function deleteDataset + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest} request DeleteDatasetRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#importData}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef ImportDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ImportData. + * @function importData + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest} request ImportDataRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.ImportDataCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.importData = function importData(request, callback) { + return this.rpcCall(importData, $root.google.cloud.aiplatform.v1beta1.ImportDataRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportData" }); + + /** + * Calls ImportData. + * @function importData + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest} request ImportDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#exportData}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef ExportDataCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportData. + * @function exportData + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest} request ExportDataRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.ExportDataCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.exportData = function exportData(request, callback) { + return this.rpcCall(exportData, $root.google.cloud.aiplatform.v1beta1.ExportDataRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportData" }); + + /** + * Calls ExportData. + * @function exportData + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest} request ExportDataRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listDataItems}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef ListDataItemsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} [response] ListDataItemsResponse + */ + + /** + * Calls ListDataItems. + * @function listDataItems + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest} request ListDataItemsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.ListDataItemsCallback} callback Node-style callback called with the error, if any, and ListDataItemsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.listDataItems = function listDataItems(request, callback) { + return this.rpcCall(listDataItems, $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest, $root.google.cloud.aiplatform.v1beta1.ListDataItemsResponse, request, callback); + }, "name", { value: "ListDataItems" }); + + /** + * Calls ListDataItems. + * @function listDataItems + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest} request ListDataItemsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listSavedQueries}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef ListSavedQueriesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse} [response] ListSavedQueriesResponse + */ + + /** + * Calls ListSavedQueries. + * @function listSavedQueries + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest} request ListSavedQueriesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueriesCallback} callback Node-style callback called with the error, if any, and ListSavedQueriesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.listSavedQueries = function listSavedQueries(request, callback) { + return this.rpcCall(listSavedQueries, $root.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest, $root.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse, request, callback); + }, "name", { value: "ListSavedQueries" }); + + /** + * Calls ListSavedQueries. + * @function listSavedQueries + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest} request ListSavedQueriesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#getAnnotationSpec}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef GetAnnotationSpecCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.AnnotationSpec} [response] AnnotationSpec + */ + + /** + * Calls GetAnnotationSpec. + * @function getAnnotationSpec + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest} request GetAnnotationSpecRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.GetAnnotationSpecCallback} callback Node-style callback called with the error, if any, and AnnotationSpec + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.getAnnotationSpec = function getAnnotationSpec(request, callback) { + return this.rpcCall(getAnnotationSpec, $root.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest, $root.google.cloud.aiplatform.v1beta1.AnnotationSpec, request, callback); + }, "name", { value: "GetAnnotationSpec" }); + + /** + * Calls GetAnnotationSpec. + * @function getAnnotationSpec + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest} request GetAnnotationSpecRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.DatasetService#listAnnotations}. + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @typedef ListAnnotationsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} [response] ListAnnotationsResponse + */ + + /** + * Calls ListAnnotations. + * @function listAnnotations + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest} request ListAnnotationsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.DatasetService.ListAnnotationsCallback} callback Node-style callback called with the error, if any, and ListAnnotationsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(DatasetService.prototype.listAnnotations = function listAnnotations(request, callback) { + return this.rpcCall(listAnnotations, $root.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest, $root.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse, request, callback); + }, "name", { value: "ListAnnotations" }); + + /** + * Calls ListAnnotations. + * @function listAnnotations + * @memberof google.cloud.aiplatform.v1beta1.DatasetService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest} request ListAnnotationsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return DatasetService; + })(); + + v1beta1.CreateDatasetRequest = (function() { + + /** + * Properties of a CreateDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportDataRequest. - * @implements IImportDataRequest + * @interface ICreateDatasetRequest + * @property {string|null} [parent] CreateDatasetRequest parent + * @property {google.cloud.aiplatform.v1beta1.IDataset|null} [dataset] CreateDatasetRequest dataset + */ + + /** + * Constructs a new CreateDatasetRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateDatasetRequest. + * @implements ICreateDatasetRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest=} [properties] Properties to set */ - function ImportDataRequest(properties) { - this.importConfigs = []; + function CreateDatasetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172121,91 +177554,88 @@ } /** - * ImportDataRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * CreateDatasetRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @instance */ - ImportDataRequest.prototype.name = ""; + CreateDatasetRequest.prototype.parent = ""; /** - * ImportDataRequest importConfigs. - * @member {Array.} importConfigs - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * CreateDatasetRequest dataset. + * @member {google.cloud.aiplatform.v1beta1.IDataset|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @instance */ - ImportDataRequest.prototype.importConfigs = $util.emptyArray; + CreateDatasetRequest.prototype.dataset = null; /** - * Creates a new ImportDataRequest instance using the specified properties. + * Creates a new CreateDatasetRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest instance */ - ImportDataRequest.create = function create(properties) { - return new ImportDataRequest(properties); + CreateDatasetRequest.create = function create(properties) { + return new CreateDatasetRequest(properties); }; /** - * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. + * Encodes the specified CreateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest} message ImportDataRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest} message CreateDatasetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataRequest.encode = function encode(message, writer) { + CreateDatasetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.importConfigs != null && message.importConfigs.length) - for (var i = 0; i < message.importConfigs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ImportDataConfig.encode(message.importConfigs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + $root.google.cloud.aiplatform.v1beta1.Dataset.encode(message.dataset, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. + * Encodes the specified CreateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest} message ImportDataRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetRequest} message CreateDatasetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportDataRequest message from the specified reader or buffer. + * Decodes a CreateDatasetRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataRequest.decode = function decode(reader, length) { + CreateDatasetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportDataRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDatasetRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - if (!(message.importConfigs && message.importConfigs.length)) - message.importConfigs = []; - message.importConfigs.push($root.google.cloud.aiplatform.v1beta1.ImportDataConfig.decode(reader, reader.uint32())); + message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -172216,132 +177646,121 @@ }; /** - * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDatasetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataRequest.decodeDelimited = function decodeDelimited(reader) { + CreateDatasetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportDataRequest message. + * Verifies a CreateDatasetRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportDataRequest.verify = function verify(message) { + CreateDatasetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.importConfigs != null && message.hasOwnProperty("importConfigs")) { - if (!Array.isArray(message.importConfigs)) - return "importConfigs: array expected"; - for (var i = 0; i < message.importConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ImportDataConfig.verify(message.importConfigs[i]); - if (error) - return "importConfigs." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.dataset != null && message.hasOwnProperty("dataset")) { + var error = $root.google.cloud.aiplatform.v1beta1.Dataset.verify(message.dataset); + if (error) + return "dataset." + error; } return null; }; /** - * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDatasetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} CreateDatasetRequest */ - ImportDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataRequest) + CreateDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDatasetRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ImportDataRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.importConfigs) { - if (!Array.isArray(object.importConfigs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataRequest.importConfigs: array expected"); - message.importConfigs = []; - for (var i = 0; i < object.importConfigs.length; ++i) { - if (typeof object.importConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataRequest.importConfigs: object expected"); - message.importConfigs[i] = $root.google.cloud.aiplatform.v1beta1.ImportDataConfig.fromObject(object.importConfigs[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.CreateDatasetRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataset != null) { + if (typeof object.dataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDatasetRequest.dataset: object expected"); + message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.fromObject(object.dataset); } return message; }; /** - * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateDatasetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ImportDataRequest} message ImportDataRequest + * @param {google.cloud.aiplatform.v1beta1.CreateDatasetRequest} message CreateDatasetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportDataRequest.toObject = function toObject(message, options) { + CreateDatasetRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.importConfigs = []; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.importConfigs && message.importConfigs.length) { - object.importConfigs = []; - for (var j = 0; j < message.importConfigs.length; ++j) - object.importConfigs[j] = $root.google.cloud.aiplatform.v1beta1.ImportDataConfig.toObject(message.importConfigs[j], options); + if (options.defaults) { + object.parent = ""; + object.dataset = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.toObject(message.dataset, options); return object; }; /** - * Converts this ImportDataRequest to JSON. + * Converts this CreateDatasetRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetRequest * @instance * @returns {Object.} JSON object */ - ImportDataRequest.prototype.toJSON = function toJSON() { + CreateDatasetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportDataRequest; + return CreateDatasetRequest; })(); - v1beta1.ImportDataResponse = (function() { + v1beta1.CreateDatasetOperationMetadata = (function() { /** - * Properties of an ImportDataResponse. + * Properties of a CreateDatasetOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportDataResponse + * @interface ICreateDatasetOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateDatasetOperationMetadata genericMetadata */ /** - * Constructs a new ImportDataResponse. + * Constructs a new CreateDatasetOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportDataResponse. - * @implements IImportDataResponse + * @classdesc Represents a CreateDatasetOperationMetadata. + * @implements ICreateDatasetOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata=} [properties] Properties to set */ - function ImportDataResponse(properties) { + function CreateDatasetOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172349,63 +177768,76 @@ } /** - * Creates a new ImportDataResponse instance using the specified properties. + * CreateDatasetOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata + * @instance + */ + CreateDatasetOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CreateDatasetOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata instance */ - ImportDataResponse.create = function create(properties) { - return new ImportDataResponse(properties); + CreateDatasetOperationMetadata.create = function create(properties) { + return new CreateDatasetOperationMetadata(properties); }; /** - * Encodes the specified ImportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. + * Encodes the specified CreateDatasetOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse} message ImportDataResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata} message CreateDatasetOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataResponse.encode = function encode(message, writer) { + CreateDatasetOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ImportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. + * Encodes the specified CreateDatasetOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse} message ImportDataResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDatasetOperationMetadata} message CreateDatasetOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateDatasetOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportDataResponse message from the specified reader or buffer. + * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataResponse.decode = function decode(reader, length) { + CreateDatasetOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportDataResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -172415,94 +177847,113 @@ }; /** - * Decodes an ImportDataResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateDatasetOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataResponse.decodeDelimited = function decodeDelimited(reader) { + CreateDatasetOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportDataResponse message. + * Verifies a CreateDatasetOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportDataResponse.verify = function verify(message) { + CreateDatasetOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } return null; }; /** - * Creates an ImportDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDatasetOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} CreateDatasetOperationMetadata */ - ImportDataResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataResponse) + CreateDatasetOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata) return object; - return new $root.google.cloud.aiplatform.v1beta1.ImportDataResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; }; /** - * Creates a plain object from an ImportDataResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateDatasetOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ImportDataResponse} message ImportDataResponse + * @param {google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata} message CreateDatasetOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportDataResponse.toObject = function toObject() { - return {}; + CreateDatasetOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; }; /** - * Converts this ImportDataResponse to JSON. + * Converts this CreateDatasetOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateDatasetOperationMetadata * @instance * @returns {Object.} JSON object */ - ImportDataResponse.prototype.toJSON = function toJSON() { + CreateDatasetOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportDataResponse; + return CreateDatasetOperationMetadata; })(); - v1beta1.ImportDataOperationMetadata = (function() { + v1beta1.GetDatasetRequest = (function() { /** - * Properties of an ImportDataOperationMetadata. + * Properties of a GetDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportDataOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ImportDataOperationMetadata genericMetadata + * @interface IGetDatasetRequest + * @property {string|null} [name] GetDatasetRequest name + * @property {google.protobuf.IFieldMask|null} [readMask] GetDatasetRequest readMask */ /** - * Constructs a new ImportDataOperationMetadata. + * Constructs a new GetDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportDataOperationMetadata. - * @implements IImportDataOperationMetadata + * @classdesc Represents a GetDatasetRequest. + * @implements IGetDatasetRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest=} [properties] Properties to set */ - function ImportDataOperationMetadata(properties) { + function GetDatasetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172510,75 +177961,88 @@ } /** - * ImportDataOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * GetDatasetRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @instance */ - ImportDataOperationMetadata.prototype.genericMetadata = null; + GetDatasetRequest.prototype.name = ""; /** - * Creates a new ImportDataOperationMetadata instance using the specified properties. + * GetDatasetRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest + * @instance + */ + GetDatasetRequest.prototype.readMask = null; + + /** + * Creates a new GetDatasetRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest instance */ - ImportDataOperationMetadata.create = function create(properties) { - return new ImportDataOperationMetadata(properties); + GetDatasetRequest.create = function create(properties) { + return new GetDatasetRequest(properties); }; /** - * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. + * Encodes the specified GetDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata} message ImportDataOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest} message GetDatasetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataOperationMetadata.encode = function encode(message, writer) { + GetDatasetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. + * Encodes the specified GetDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDatasetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata} message ImportDataOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetDatasetRequest} message GetDatasetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportDataOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + GetDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportDataOperationMetadata message from the specified reader or buffer. + * Decodes a GetDatasetRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataOperationMetadata.decode = function decode(reader, length) { + GetDatasetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + case 2: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -172589,113 +178053,122 @@ }; /** - * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetDatasetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportDataOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + GetDatasetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportDataOperationMetadata message. + * Verifies a GetDatasetRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportDataOperationMetadata.verify = function verify(message) { + GetDatasetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "genericMetadata." + error; + return "readMask." + error; } return null; }; /** - * Creates an ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetDatasetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.GetDatasetRequest} GetDatasetRequest */ - ImportDataOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata) + GetDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.GetDatasetRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GetDatasetRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a GetDatasetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} message ImportDataOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.GetDatasetRequest} message GetDatasetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportDataOperationMetadata.toObject = function toObject(message, options) { + GetDatasetRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.name = ""; + object.readMask = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ImportDataOperationMetadata to JSON. + * Converts this GetDatasetRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetDatasetRequest * @instance * @returns {Object.} JSON object */ - ImportDataOperationMetadata.prototype.toJSON = function toJSON() { + GetDatasetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportDataOperationMetadata; + return GetDatasetRequest; })(); - v1beta1.ExportDataRequest = (function() { + v1beta1.UpdateDatasetRequest = (function() { /** - * Properties of an ExportDataRequest. + * Properties of an UpdateDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportDataRequest - * @property {string|null} [name] ExportDataRequest name - * @property {google.cloud.aiplatform.v1beta1.IExportDataConfig|null} [exportConfig] ExportDataRequest exportConfig + * @interface IUpdateDatasetRequest + * @property {google.cloud.aiplatform.v1beta1.IDataset|null} [dataset] UpdateDatasetRequest dataset + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateDatasetRequest updateMask */ /** - * Constructs a new ExportDataRequest. + * Constructs a new UpdateDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportDataRequest. - * @implements IExportDataRequest + * @classdesc Represents an UpdateDatasetRequest. + * @implements IUpdateDatasetRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest=} [properties] Properties to set */ - function ExportDataRequest(properties) { + function UpdateDatasetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172703,88 +178176,88 @@ } /** - * ExportDataRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * UpdateDatasetRequest dataset. + * @member {google.cloud.aiplatform.v1beta1.IDataset|null|undefined} dataset + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @instance */ - ExportDataRequest.prototype.name = ""; + UpdateDatasetRequest.prototype.dataset = null; /** - * ExportDataRequest exportConfig. - * @member {google.cloud.aiplatform.v1beta1.IExportDataConfig|null|undefined} exportConfig - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * UpdateDatasetRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @instance */ - ExportDataRequest.prototype.exportConfig = null; + UpdateDatasetRequest.prototype.updateMask = null; /** - * Creates a new ExportDataRequest instance using the specified properties. + * Creates a new UpdateDatasetRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest instance */ - ExportDataRequest.create = function create(properties) { - return new ExportDataRequest(properties); + UpdateDatasetRequest.create = function create(properties) { + return new UpdateDatasetRequest(properties); }; /** - * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. + * Encodes the specified UpdateDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest} message ExportDataRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest} message UpdateDatasetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataRequest.encode = function encode(message, writer) { + UpdateDatasetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.exportConfig != null && Object.hasOwnProperty.call(message, "exportConfig")) - $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.encode(message.exportConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) + $root.google.cloud.aiplatform.v1beta1.Dataset.encode(message.dataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. + * Encodes the specified UpdateDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest} message ExportDataRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateDatasetRequest} message UpdateDatasetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportDataRequest message from the specified reader or buffer. + * Decodes an UpdateDatasetRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataRequest.decode = function decode(reader, length) { + UpdateDatasetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportDataRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.decode(reader, reader.uint32()); break; case 2: - message.exportConfig = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -172795,122 +178268,131 @@ }; /** - * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateDatasetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateDatasetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportDataRequest message. + * Verifies an UpdateDatasetRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportDataRequest.verify = function verify(message) { + UpdateDatasetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.exportConfig != null && message.hasOwnProperty("exportConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.verify(message.exportConfig); + if (message.dataset != null && message.hasOwnProperty("dataset")) { + var error = $root.google.cloud.aiplatform.v1beta1.Dataset.verify(message.dataset); if (error) - return "exportConfig." + error; + return "dataset." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates an ExportDataRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateDatasetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} UpdateDatasetRequest */ - ExportDataRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataRequest) + UpdateDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportDataRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.exportConfig != null) { - if (typeof object.exportConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportDataRequest.exportConfig: object expected"); - message.exportConfig = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.fromObject(object.exportConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateDatasetRequest(); + if (object.dataset != null) { + if (typeof object.dataset !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.dataset: object expected"); + message.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.fromObject(object.dataset); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateDatasetRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateDatasetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ExportDataRequest} message ExportDataRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateDatasetRequest} message UpdateDatasetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportDataRequest.toObject = function toObject(message, options) { + UpdateDatasetRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.exportConfig = null; + object.dataset = null; + object.updateMask = null; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.exportConfig != null && message.hasOwnProperty("exportConfig")) - object.exportConfig = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.toObject(message.exportConfig, options); + if (message.dataset != null && message.hasOwnProperty("dataset")) + object.dataset = $root.google.cloud.aiplatform.v1beta1.Dataset.toObject(message.dataset, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ExportDataRequest to JSON. + * Converts this UpdateDatasetRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateDatasetRequest * @instance * @returns {Object.} JSON object */ - ExportDataRequest.prototype.toJSON = function toJSON() { + UpdateDatasetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportDataRequest; + return UpdateDatasetRequest; })(); - v1beta1.ExportDataResponse = (function() { + v1beta1.ListDatasetsRequest = (function() { /** - * Properties of an ExportDataResponse. + * Properties of a ListDatasetsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportDataResponse - * @property {Array.|null} [exportedFiles] ExportDataResponse exportedFiles + * @interface IListDatasetsRequest + * @property {string|null} [parent] ListDatasetsRequest parent + * @property {string|null} [filter] ListDatasetsRequest filter + * @property {number|null} [pageSize] ListDatasetsRequest pageSize + * @property {string|null} [pageToken] ListDatasetsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListDatasetsRequest readMask + * @property {string|null} [orderBy] ListDatasetsRequest orderBy */ /** - * Constructs a new ExportDataResponse. + * Constructs a new ListDatasetsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportDataResponse. - * @implements IExportDataResponse + * @classdesc Represents a ListDatasetsRequest. + * @implements IListDatasetsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest=} [properties] Properties to set */ - function ExportDataResponse(properties) { - this.exportedFiles = []; + function ListDatasetsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -172918,78 +178400,140 @@ } /** - * ExportDataResponse exportedFiles. - * @member {Array.} exportedFiles - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * ListDatasetsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @instance */ - ExportDataResponse.prototype.exportedFiles = $util.emptyArray; + ListDatasetsRequest.prototype.parent = ""; /** - * Creates a new ExportDataResponse instance using the specified properties. + * ListDatasetsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @instance + */ + ListDatasetsRequest.prototype.filter = ""; + + /** + * ListDatasetsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @instance + */ + ListDatasetsRequest.prototype.pageSize = 0; + + /** + * ListDatasetsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @instance + */ + ListDatasetsRequest.prototype.pageToken = ""; + + /** + * ListDatasetsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @instance + */ + ListDatasetsRequest.prototype.readMask = null; + + /** + * ListDatasetsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest + * @instance + */ + ListDatasetsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListDatasetsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest instance */ - ExportDataResponse.create = function create(properties) { - return new ExportDataResponse(properties); + ListDatasetsRequest.create = function create(properties) { + return new ListDatasetsRequest(properties); }; /** - * Encodes the specified ExportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. + * Encodes the specified ListDatasetsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse} message ExportDataResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest} message ListDatasetsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataResponse.encode = function encode(message, writer) { + ListDatasetsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.exportedFiles != null && message.exportedFiles.length) - for (var i = 0; i < message.exportedFiles.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportedFiles[i]); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified ExportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. + * Encodes the specified ListDatasetsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse} message ExportDataResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsRequest} message ListDatasetsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListDatasetsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportDataResponse message from the specified reader or buffer. + * Decodes a ListDatasetsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataResponse.decode = function decode(reader, length) { + ListDatasetsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportDataResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.exportedFiles && message.exportedFiles.length)) - message.exportedFiles = []; - message.exportedFiles.push(reader.string()); + message.parent = reader.string(); + break; + case 2: + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 6: + message.orderBy = reader.string(); break; default: reader.skipType(tag & 7); @@ -173000,120 +178544,155 @@ }; /** - * Decodes an ExportDataResponse message from the specified reader or buffer, length delimited. + * Decodes a ListDatasetsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataResponse.decodeDelimited = function decodeDelimited(reader) { + ListDatasetsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportDataResponse message. + * Verifies a ListDatasetsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportDataResponse.verify = function verify(message) { + ListDatasetsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.exportedFiles != null && message.hasOwnProperty("exportedFiles")) { - if (!Array.isArray(message.exportedFiles)) - return "exportedFiles: array expected"; - for (var i = 0; i < message.exportedFiles.length; ++i) - if (!$util.isString(message.exportedFiles[i])) - return "exportedFiles: string[] expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates an ExportDataResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListDatasetsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} ListDatasetsRequest */ - ExportDataResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataResponse) + ListDatasetsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportDataResponse(); - if (object.exportedFiles) { - if (!Array.isArray(object.exportedFiles)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportDataResponse.exportedFiles: array expected"); - message.exportedFiles = []; - for (var i = 0; i < object.exportedFiles.length; ++i) - message.exportedFiles[i] = String(object.exportedFiles[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDatasetsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDatasetsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from an ExportDataResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListDatasetsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ExportDataResponse} message ExportDataResponse + * @param {google.cloud.aiplatform.v1beta1.ListDatasetsRequest} message ListDatasetsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportDataResponse.toObject = function toObject(message, options) { + ListDatasetsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.exportedFiles = []; - if (message.exportedFiles && message.exportedFiles.length) { - object.exportedFiles = []; - for (var j = 0; j < message.exportedFiles.length; ++j) - object.exportedFiles[j] = message.exportedFiles[j]; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this ExportDataResponse to JSON. + * Converts this ListDatasetsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsRequest * @instance * @returns {Object.} JSON object */ - ExportDataResponse.prototype.toJSON = function toJSON() { + ListDatasetsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportDataResponse; + return ListDatasetsRequest; })(); - v1beta1.ExportDataOperationMetadata = (function() { + v1beta1.ListDatasetsResponse = (function() { /** - * Properties of an ExportDataOperationMetadata. + * Properties of a ListDatasetsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportDataOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportDataOperationMetadata genericMetadata - * @property {string|null} [gcsOutputDirectory] ExportDataOperationMetadata gcsOutputDirectory + * @interface IListDatasetsResponse + * @property {Array.|null} [datasets] ListDatasetsResponse datasets + * @property {string|null} [nextPageToken] ListDatasetsResponse nextPageToken */ /** - * Constructs a new ExportDataOperationMetadata. + * Constructs a new ListDatasetsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportDataOperationMetadata. - * @implements IExportDataOperationMetadata + * @classdesc Represents a ListDatasetsResponse. + * @implements IListDatasetsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse=} [properties] Properties to set */ - function ExportDataOperationMetadata(properties) { + function ListDatasetsResponse(properties) { + this.datasets = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173121,88 +178700,91 @@ } /** - * ExportDataOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * ListDatasetsResponse datasets. + * @member {Array.} datasets + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @instance */ - ExportDataOperationMetadata.prototype.genericMetadata = null; + ListDatasetsResponse.prototype.datasets = $util.emptyArray; /** - * ExportDataOperationMetadata gcsOutputDirectory. - * @member {string} gcsOutputDirectory - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * ListDatasetsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @instance */ - ExportDataOperationMetadata.prototype.gcsOutputDirectory = ""; + ListDatasetsResponse.prototype.nextPageToken = ""; /** - * Creates a new ExportDataOperationMetadata instance using the specified properties. + * Creates a new ListDatasetsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse instance */ - ExportDataOperationMetadata.create = function create(properties) { - return new ExportDataOperationMetadata(properties); + ListDatasetsResponse.create = function create(properties) { + return new ListDatasetsResponse(properties); }; /** - * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. + * Encodes the specified ListDatasetsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata} message ExportDataOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse} message ListDatasetsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataOperationMetadata.encode = function encode(message, writer) { + ListDatasetsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); + if (message.datasets != null && message.datasets.length) + for (var i = 0; i < message.datasets.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Dataset.encode(message.datasets[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. + * Encodes the specified ListDatasetsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDatasetsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata} message ExportDataOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDatasetsResponse} message ListDatasetsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportDataOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListDatasetsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportDataOperationMetadata message from the specified reader or buffer. + * Decodes a ListDatasetsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataOperationMetadata.decode = function decode(reader, length) { + ListDatasetsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDatasetsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.datasets && message.datasets.length)) + message.datasets = []; + message.datasets.push($root.google.cloud.aiplatform.v1beta1.Dataset.decode(reader, reader.uint32())); break; case 2: - message.gcsOutputDirectory = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -173213,126 +178795,133 @@ }; /** - * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListDatasetsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportDataOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListDatasetsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportDataOperationMetadata message. + * Verifies a ListDatasetsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportDataOperationMetadata.verify = function verify(message) { + ListDatasetsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; + if (message.datasets != null && message.hasOwnProperty("datasets")) { + if (!Array.isArray(message.datasets)) + return "datasets: array expected"; + for (var i = 0; i < message.datasets.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Dataset.verify(message.datasets[i]); + if (error) + return "datasets." + error; + } } - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - if (!$util.isString(message.gcsOutputDirectory)) - return "gcsOutputDirectory: string expected"; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListDatasetsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} ListDatasetsResponse */ - ExportDataOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata) + ListDatasetsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDatasetsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDatasetsResponse(); + if (object.datasets) { + if (!Array.isArray(object.datasets)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDatasetsResponse.datasets: array expected"); + message.datasets = []; + for (var i = 0; i < object.datasets.length; ++i) { + if (typeof object.datasets[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDatasetsResponse.datasets: object expected"); + message.datasets[i] = $root.google.cloud.aiplatform.v1beta1.Dataset.fromObject(object.datasets[i]); + } } - if (object.gcsOutputDirectory != null) - message.gcsOutputDirectory = String(object.gcsOutputDirectory); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListDatasetsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} message ExportDataOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListDatasetsResponse} message ListDatasetsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportDataOperationMetadata.toObject = function toObject(message, options) { + ListDatasetsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.gcsOutputDirectory = ""; + if (options.arrays || options.defaults) + object.datasets = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.datasets && message.datasets.length) { + object.datasets = []; + for (var j = 0; j < message.datasets.length; ++j) + object.datasets[j] = $root.google.cloud.aiplatform.v1beta1.Dataset.toObject(message.datasets[j], options); } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) - object.gcsOutputDirectory = message.gcsOutputDirectory; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ExportDataOperationMetadata to JSON. + * Converts this ListDatasetsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListDatasetsResponse * @instance * @returns {Object.} JSON object */ - ExportDataOperationMetadata.prototype.toJSON = function toJSON() { + ListDatasetsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportDataOperationMetadata; + return ListDatasetsResponse; })(); - v1beta1.ListDataItemsRequest = (function() { + v1beta1.DeleteDatasetRequest = (function() { /** - * Properties of a ListDataItemsRequest. + * Properties of a DeleteDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataItemsRequest - * @property {string|null} [parent] ListDataItemsRequest parent - * @property {string|null} [filter] ListDataItemsRequest filter - * @property {number|null} [pageSize] ListDataItemsRequest pageSize - * @property {string|null} [pageToken] ListDataItemsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListDataItemsRequest readMask - * @property {string|null} [orderBy] ListDataItemsRequest orderBy + * @interface IDeleteDatasetRequest + * @property {string|null} [name] DeleteDatasetRequest name */ /** - * Constructs a new ListDataItemsRequest. + * Constructs a new DeleteDatasetRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataItemsRequest. - * @implements IListDataItemsRequest + * @classdesc Represents a DeleteDatasetRequest. + * @implements IDeleteDatasetRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest=} [properties] Properties to set */ - function ListDataItemsRequest(properties) { + function DeleteDatasetRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173340,140 +178929,75 @@ } /** - * ListDataItemsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest - * @instance - */ - ListDataItemsRequest.prototype.parent = ""; - - /** - * ListDataItemsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest - * @instance - */ - ListDataItemsRequest.prototype.filter = ""; - - /** - * ListDataItemsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest - * @instance - */ - ListDataItemsRequest.prototype.pageSize = 0; - - /** - * ListDataItemsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest - * @instance - */ - ListDataItemsRequest.prototype.pageToken = ""; - - /** - * ListDataItemsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest - * @instance - */ - ListDataItemsRequest.prototype.readMask = null; - - /** - * ListDataItemsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * DeleteDatasetRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @instance */ - ListDataItemsRequest.prototype.orderBy = ""; + DeleteDatasetRequest.prototype.name = ""; /** - * Creates a new ListDataItemsRequest instance using the specified properties. + * Creates a new DeleteDatasetRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest instance */ - ListDataItemsRequest.create = function create(properties) { - return new ListDataItemsRequest(properties); + DeleteDatasetRequest.create = function create(properties) { + return new DeleteDatasetRequest(properties); }; /** - * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. + * Encodes the specified DeleteDatasetRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest} message ListDataItemsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest} message DeleteDatasetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataItemsRequest.encode = function encode(message, writer) { + DeleteDatasetRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. + * Encodes the specified DeleteDatasetRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDatasetRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest} message ListDataItemsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteDatasetRequest} message DeleteDatasetRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataItemsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDatasetRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataItemsRequest message from the specified reader or buffer. + * Decodes a DeleteDatasetRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataItemsRequest.decode = function decode(reader, length) { + DeleteDatasetRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - case 6: - message.orderBy = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -173484,155 +179008,109 @@ }; /** - * Decodes a ListDataItemsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDatasetRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataItemsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteDatasetRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataItemsRequest message. + * Verifies a DeleteDatasetRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataItemsRequest.verify = function verify(message) { + DeleteDatasetRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListDataItemsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDatasetRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} DeleteDatasetRequest */ - ListDataItemsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest) + DeleteDatasetRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataItemsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDatasetRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteDatasetRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} message ListDataItemsRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteDatasetRequest} message DeleteDatasetRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataItemsRequest.toObject = function toObject(message, options) { + DeleteDatasetRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListDataItemsRequest to JSON. + * Converts this DeleteDatasetRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDatasetRequest * @instance * @returns {Object.} JSON object */ - ListDataItemsRequest.prototype.toJSON = function toJSON() { + DeleteDatasetRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDataItemsRequest; + return DeleteDatasetRequest; })(); - v1beta1.ListDataItemsResponse = (function() { + v1beta1.ImportDataRequest = (function() { /** - * Properties of a ListDataItemsResponse. + * Properties of an ImportDataRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataItemsResponse - * @property {Array.|null} [dataItems] ListDataItemsResponse dataItems - * @property {string|null} [nextPageToken] ListDataItemsResponse nextPageToken + * @interface IImportDataRequest + * @property {string|null} [name] ImportDataRequest name + * @property {Array.|null} [importConfigs] ImportDataRequest importConfigs */ /** - * Constructs a new ListDataItemsResponse. + * Constructs a new ImportDataRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataItemsResponse. - * @implements IListDataItemsResponse + * @classdesc Represents an ImportDataRequest. + * @implements IImportDataRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest=} [properties] Properties to set */ - function ListDataItemsResponse(properties) { - this.dataItems = []; + function ImportDataRequest(properties) { + this.importConfigs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173640,91 +179118,91 @@ } /** - * ListDataItemsResponse dataItems. - * @member {Array.} dataItems - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * ImportDataRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @instance */ - ListDataItemsResponse.prototype.dataItems = $util.emptyArray; + ImportDataRequest.prototype.name = ""; /** - * ListDataItemsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * ImportDataRequest importConfigs. + * @member {Array.} importConfigs + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @instance */ - ListDataItemsResponse.prototype.nextPageToken = ""; + ImportDataRequest.prototype.importConfigs = $util.emptyArray; /** - * Creates a new ListDataItemsResponse instance using the specified properties. + * Creates a new ImportDataRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest instance */ - ListDataItemsResponse.create = function create(properties) { - return new ListDataItemsResponse(properties); + ImportDataRequest.create = function create(properties) { + return new ImportDataRequest(properties); }; /** - * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. + * Encodes the specified ImportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse} message ListDataItemsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest} message ImportDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataItemsResponse.encode = function encode(message, writer) { + ImportDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.dataItems != null && message.dataItems.length) - for (var i = 0; i < message.dataItems.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DataItem.encode(message.dataItems[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.importConfigs != null && message.importConfigs.length) + for (var i = 0; i < message.importConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ImportDataConfig.encode(message.importConfigs[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. + * Encodes the specified ImportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse} message ListDataItemsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportDataRequest} message ImportDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListDataItemsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ImportDataRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListDataItemsResponse message from the specified reader or buffer. + * Decodes an ImportDataRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse + * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataItemsResponse.decode = function decode(reader, length) { + ImportDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataItemsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportDataRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.dataItems && message.dataItems.length)) - message.dataItems = []; - message.dataItems.push($root.google.cloud.aiplatform.v1beta1.DataItem.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + if (!(message.importConfigs && message.importConfigs.length)) + message.importConfigs = []; + message.importConfigs.push($root.google.cloud.aiplatform.v1beta1.ImportDataConfig.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -173735,134 +179213,132 @@ }; /** - * Decodes a ListDataItemsResponse message from the specified reader or buffer, length delimited. + * Decodes an ImportDataRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse + * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListDataItemsResponse.decodeDelimited = function decodeDelimited(reader) { + ImportDataRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListDataItemsResponse message. + * Verifies an ImportDataRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListDataItemsResponse.verify = function verify(message) { + ImportDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.dataItems != null && message.hasOwnProperty("dataItems")) { - if (!Array.isArray(message.dataItems)) - return "dataItems: array expected"; - for (var i = 0; i < message.dataItems.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DataItem.verify(message.dataItems[i]); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.importConfigs != null && message.hasOwnProperty("importConfigs")) { + if (!Array.isArray(message.importConfigs)) + return "importConfigs: array expected"; + for (var i = 0; i < message.importConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ImportDataConfig.verify(message.importConfigs[i]); if (error) - return "dataItems." + error; + return "importConfigs." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListDataItemsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse + * @returns {google.cloud.aiplatform.v1beta1.ImportDataRequest} ImportDataRequest */ - ListDataItemsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataItemsResponse) + ImportDataRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDataItemsResponse(); - if (object.dataItems) { - if (!Array.isArray(object.dataItems)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataItemsResponse.dataItems: array expected"); - message.dataItems = []; - for (var i = 0; i < object.dataItems.length; ++i) { - if (typeof object.dataItems[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataItemsResponse.dataItems: object expected"); - message.dataItems[i] = $root.google.cloud.aiplatform.v1beta1.DataItem.fromObject(object.dataItems[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ImportDataRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.importConfigs) { + if (!Array.isArray(object.importConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataRequest.importConfigs: array expected"); + message.importConfigs = []; + for (var i = 0; i < object.importConfigs.length; ++i) { + if (typeof object.importConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataRequest.importConfigs: object expected"); + message.importConfigs[i] = $root.google.cloud.aiplatform.v1beta1.ImportDataConfig.fromObject(object.importConfigs[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListDataItemsResponse message. Also converts values to other types if specified. + * Creates a plain object from an ImportDataRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} message ListDataItemsResponse + * @param {google.cloud.aiplatform.v1beta1.ImportDataRequest} message ImportDataRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListDataItemsResponse.toObject = function toObject(message, options) { + ImportDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.dataItems = []; + object.importConfigs = []; if (options.defaults) - object.nextPageToken = ""; - if (message.dataItems && message.dataItems.length) { - object.dataItems = []; - for (var j = 0; j < message.dataItems.length; ++j) - object.dataItems[j] = $root.google.cloud.aiplatform.v1beta1.DataItem.toObject(message.dataItems[j], options); + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.importConfigs && message.importConfigs.length) { + object.importConfigs = []; + for (var j = 0; j < message.importConfigs.length; ++j) + object.importConfigs[j] = $root.google.cloud.aiplatform.v1beta1.ImportDataConfig.toObject(message.importConfigs[j], options); } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListDataItemsResponse to JSON. + * Converts this ImportDataRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse + * @memberof google.cloud.aiplatform.v1beta1.ImportDataRequest * @instance * @returns {Object.} JSON object */ - ListDataItemsResponse.prototype.toJSON = function toJSON() { + ImportDataRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListDataItemsResponse; + return ImportDataRequest; })(); - v1beta1.GetAnnotationSpecRequest = (function() { + v1beta1.ImportDataResponse = (function() { /** - * Properties of a GetAnnotationSpecRequest. + * Properties of an ImportDataResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetAnnotationSpecRequest - * @property {string|null} [name] GetAnnotationSpecRequest name - * @property {google.protobuf.IFieldMask|null} [readMask] GetAnnotationSpecRequest readMask + * @interface IImportDataResponse */ /** - * Constructs a new GetAnnotationSpecRequest. + * Constructs a new ImportDataResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetAnnotationSpecRequest. - * @implements IGetAnnotationSpecRequest + * @classdesc Represents an ImportDataResponse. + * @implements IImportDataResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse=} [properties] Properties to set */ - function GetAnnotationSpecRequest(properties) { + function ImportDataResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -173870,89 +179346,63 @@ } /** - * GetAnnotationSpecRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest - * @instance - */ - GetAnnotationSpecRequest.prototype.name = ""; - - /** - * GetAnnotationSpecRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest - * @instance - */ - GetAnnotationSpecRequest.prototype.readMask = null; - - /** - * Creates a new GetAnnotationSpecRequest instance using the specified properties. + * Creates a new ImportDataResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest instance + * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse instance */ - GetAnnotationSpecRequest.create = function create(properties) { - return new GetAnnotationSpecRequest(properties); + ImportDataResponse.create = function create(properties) { + return new ImportDataResponse(properties); }; /** - * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. + * Encodes the specified ImportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest} message GetAnnotationSpecRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse} message ImportDataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAnnotationSpecRequest.encode = function encode(message, writer) { + ImportDataResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. + * Encodes the specified ImportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest} message GetAnnotationSpecRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportDataResponse} message ImportDataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetAnnotationSpecRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportDataResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. + * Decodes an ImportDataResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAnnotationSpecRequest.decode = function decode(reader, length) { + ImportDataResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportDataResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -173962,126 +179412,94 @@ }; /** - * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportDataResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetAnnotationSpecRequest.decodeDelimited = function decodeDelimited(reader) { + ImportDataResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetAnnotationSpecRequest message. + * Verifies an ImportDataResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetAnnotationSpecRequest.verify = function verify(message) { + ImportDataResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } return null; }; /** - * Creates a GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportDataResponse} ImportDataResponse */ - GetAnnotationSpecRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest) + ImportDataResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - return message; + return new $root.google.cloud.aiplatform.v1beta1.ImportDataResponse(); }; /** - * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportDataResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} message GetAnnotationSpecRequest + * @param {google.cloud.aiplatform.v1beta1.ImportDataResponse} message ImportDataResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetAnnotationSpecRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.name = ""; - object.readMask = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - return object; + ImportDataResponse.toObject = function toObject() { + return {}; }; /** - * Converts this GetAnnotationSpecRequest to JSON. + * Converts this ImportDataResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataResponse * @instance * @returns {Object.} JSON object */ - GetAnnotationSpecRequest.prototype.toJSON = function toJSON() { + ImportDataResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetAnnotationSpecRequest; + return ImportDataResponse; })(); - v1beta1.ListAnnotationsRequest = (function() { + v1beta1.ImportDataOperationMetadata = (function() { /** - * Properties of a ListAnnotationsRequest. + * Properties of an ImportDataOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListAnnotationsRequest - * @property {string|null} [parent] ListAnnotationsRequest parent - * @property {string|null} [filter] ListAnnotationsRequest filter - * @property {number|null} [pageSize] ListAnnotationsRequest pageSize - * @property {string|null} [pageToken] ListAnnotationsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListAnnotationsRequest readMask - * @property {string|null} [orderBy] ListAnnotationsRequest orderBy + * @interface IImportDataOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ImportDataOperationMetadata genericMetadata */ /** - * Constructs a new ListAnnotationsRequest. + * Constructs a new ImportDataOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListAnnotationsRequest. - * @implements IListAnnotationsRequest + * @classdesc Represents an ImportDataOperationMetadata. + * @implements IImportDataOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata=} [properties] Properties to set */ - function ListAnnotationsRequest(properties) { + function ImportDataOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174089,140 +179507,75 @@ } /** - * ListAnnotationsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest - * @instance - */ - ListAnnotationsRequest.prototype.parent = ""; - - /** - * ListAnnotationsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest - * @instance - */ - ListAnnotationsRequest.prototype.filter = ""; - - /** - * ListAnnotationsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest - * @instance - */ - ListAnnotationsRequest.prototype.pageSize = 0; - - /** - * ListAnnotationsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest - * @instance - */ - ListAnnotationsRequest.prototype.pageToken = ""; - - /** - * ListAnnotationsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest - * @instance - */ - ListAnnotationsRequest.prototype.readMask = null; - - /** - * ListAnnotationsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * ImportDataOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @instance */ - ListAnnotationsRequest.prototype.orderBy = ""; + ImportDataOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ListAnnotationsRequest instance using the specified properties. + * Creates a new ImportDataOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata instance */ - ListAnnotationsRequest.create = function create(properties) { - return new ListAnnotationsRequest(properties); + ImportDataOperationMetadata.create = function create(properties) { + return new ImportDataOperationMetadata(properties); }; /** - * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. + * Encodes the specified ImportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest} message ListAnnotationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata} message ImportDataOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAnnotationsRequest.encode = function encode(message, writer) { + ImportDataOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. + * Encodes the specified ImportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest} message ListAnnotationsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportDataOperationMetadata} message ImportDataOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAnnotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportDataOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer. + * Decodes an ImportDataOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAnnotationsRequest.decode = function decode(reader, length) { + ImportDataOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - case 6: - message.orderBy = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -174233,155 +179586,113 @@ }; /** - * Decodes a ListAnnotationsRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportDataOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAnnotationsRequest.decodeDelimited = function decodeDelimited(reader) { + ImportDataOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAnnotationsRequest message. + * Verifies an ImportDataOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAnnotationsRequest.verify = function verify(message) { + ImportDataOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "readMask." + error; + return "genericMetadata." + error; } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; return null; }; /** - * Creates a ListAnnotationsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} ImportDataOperationMetadata */ - ListAnnotationsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest) + ImportDataOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a ListAnnotationsRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportDataOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} message ListAnnotationsRequest + * @param {google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata} message ImportDataOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAnnotationsRequest.toObject = function toObject(message, options) { + ImportDataOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this ListAnnotationsRequest to JSON. + * Converts this ImportDataOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportDataOperationMetadata * @instance * @returns {Object.} JSON object */ - ListAnnotationsRequest.prototype.toJSON = function toJSON() { + ImportDataOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAnnotationsRequest; + return ImportDataOperationMetadata; })(); - v1beta1.ListAnnotationsResponse = (function() { + v1beta1.ExportDataRequest = (function() { /** - * Properties of a ListAnnotationsResponse. + * Properties of an ExportDataRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListAnnotationsResponse - * @property {Array.|null} [annotations] ListAnnotationsResponse annotations - * @property {string|null} [nextPageToken] ListAnnotationsResponse nextPageToken + * @interface IExportDataRequest + * @property {string|null} [name] ExportDataRequest name + * @property {google.cloud.aiplatform.v1beta1.IExportDataConfig|null} [exportConfig] ExportDataRequest exportConfig */ /** - * Constructs a new ListAnnotationsResponse. + * Constructs a new ExportDataRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListAnnotationsResponse. - * @implements IListAnnotationsResponse + * @classdesc Represents an ExportDataRequest. + * @implements IExportDataRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest=} [properties] Properties to set */ - function ListAnnotationsResponse(properties) { - this.annotations = []; + function ExportDataRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174389,91 +179700,88 @@ } /** - * ListAnnotationsResponse annotations. - * @member {Array.} annotations - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * ExportDataRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @instance */ - ListAnnotationsResponse.prototype.annotations = $util.emptyArray; + ExportDataRequest.prototype.name = ""; /** - * ListAnnotationsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * ExportDataRequest exportConfig. + * @member {google.cloud.aiplatform.v1beta1.IExportDataConfig|null|undefined} exportConfig + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @instance */ - ListAnnotationsResponse.prototype.nextPageToken = ""; + ExportDataRequest.prototype.exportConfig = null; /** - * Creates a new ListAnnotationsResponse instance using the specified properties. + * Creates a new ExportDataRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest instance */ - ListAnnotationsResponse.create = function create(properties) { - return new ListAnnotationsResponse(properties); + ExportDataRequest.create = function create(properties) { + return new ExportDataRequest(properties); }; /** - * Encodes the specified ListAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. + * Encodes the specified ExportDataRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse} message ListAnnotationsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest} message ExportDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAnnotationsResponse.encode = function encode(message, writer) { + ExportDataRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.annotations != null && message.annotations.length) - for (var i = 0; i < message.annotations.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Annotation.encode(message.annotations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.exportConfig != null && Object.hasOwnProperty.call(message, "exportConfig")) + $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.encode(message.exportConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. + * Encodes the specified ExportDataRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse} message ListAnnotationsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportDataRequest} message ExportDataRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListAnnotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExportDataRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListAnnotationsResponse message from the specified reader or buffer. + * Decodes an ExportDataRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse + * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAnnotationsResponse.decode = function decode(reader, length) { + ExportDataRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportDataRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.annotations && message.annotations.length)) - message.annotations = []; - message.annotations.push($root.google.cloud.aiplatform.v1beta1.Annotation.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.exportConfig = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -174484,136 +179792,122 @@ }; /** - * Decodes a ListAnnotationsResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportDataRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse + * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListAnnotationsResponse.decodeDelimited = function decodeDelimited(reader) { + ExportDataRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListAnnotationsResponse message. + * Verifies an ExportDataRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListAnnotationsResponse.verify = function verify(message) { + ExportDataRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.annotations != null && message.hasOwnProperty("annotations")) { - if (!Array.isArray(message.annotations)) - return "annotations: array expected"; - for (var i = 0; i < message.annotations.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Annotation.verify(message.annotations[i]); - if (error) - return "annotations." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.exportConfig != null && message.hasOwnProperty("exportConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.verify(message.exportConfig); + if (error) + return "exportConfig." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListAnnotationsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse + * @returns {google.cloud.aiplatform.v1beta1.ExportDataRequest} ExportDataRequest */ - ListAnnotationsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) + ExportDataRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse(); - if (object.annotations) { - if (!Array.isArray(object.annotations)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.annotations: array expected"); - message.annotations = []; - for (var i = 0; i < object.annotations.length; ++i) { - if (typeof object.annotations[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.annotations: object expected"); - message.annotations[i] = $root.google.cloud.aiplatform.v1beta1.Annotation.fromObject(object.annotations[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ExportDataRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.exportConfig != null) { + if (typeof object.exportConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportDataRequest.exportConfig: object expected"); + message.exportConfig = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.fromObject(object.exportConfig); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListAnnotationsResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExportDataRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} message ListAnnotationsResponse + * @param {google.cloud.aiplatform.v1beta1.ExportDataRequest} message ExportDataRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListAnnotationsResponse.toObject = function toObject(message, options) { + ExportDataRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.annotations = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.annotations && message.annotations.length) { - object.annotations = []; - for (var j = 0; j < message.annotations.length; ++j) - object.annotations[j] = $root.google.cloud.aiplatform.v1beta1.Annotation.toObject(message.annotations[j], options); + if (options.defaults) { + object.name = ""; + object.exportConfig = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.exportConfig != null && message.hasOwnProperty("exportConfig")) + object.exportConfig = $root.google.cloud.aiplatform.v1beta1.ExportDataConfig.toObject(message.exportConfig, options); return object; }; /** - * Converts this ListAnnotationsResponse to JSON. + * Converts this ExportDataRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportDataRequest * @instance * @returns {Object.} JSON object */ - ListAnnotationsResponse.prototype.toJSON = function toJSON() { + ExportDataRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListAnnotationsResponse; + return ExportDataRequest; })(); - v1beta1.GenericOperationMetadata = (function() { + v1beta1.ExportDataResponse = (function() { /** - * Properties of a GenericOperationMetadata. + * Properties of an ExportDataResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGenericOperationMetadata - * @property {Array.|null} [partialFailures] GenericOperationMetadata partialFailures - * @property {google.protobuf.ITimestamp|null} [createTime] GenericOperationMetadata createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] GenericOperationMetadata updateTime + * @interface IExportDataResponse + * @property {Array.|null} [exportedFiles] ExportDataResponse exportedFiles */ /** - * Constructs a new GenericOperationMetadata. + * Constructs a new ExportDataResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GenericOperationMetadata. - * @implements IGenericOperationMetadata + * @classdesc Represents an ExportDataResponse. + * @implements IExportDataResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse=} [properties] Properties to set */ - function GenericOperationMetadata(properties) { - this.partialFailures = []; + function ExportDataResponse(properties) { + this.exportedFiles = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174621,104 +179915,78 @@ } /** - * GenericOperationMetadata partialFailures. - * @member {Array.} partialFailures - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata - * @instance - */ - GenericOperationMetadata.prototype.partialFailures = $util.emptyArray; - - /** - * GenericOperationMetadata createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata - * @instance - */ - GenericOperationMetadata.prototype.createTime = null; - - /** - * GenericOperationMetadata updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * ExportDataResponse exportedFiles. + * @member {Array.} exportedFiles + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @instance */ - GenericOperationMetadata.prototype.updateTime = null; + ExportDataResponse.prototype.exportedFiles = $util.emptyArray; /** - * Creates a new GenericOperationMetadata instance using the specified properties. + * Creates a new ExportDataResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse instance */ - GenericOperationMetadata.create = function create(properties) { - return new GenericOperationMetadata(properties); + ExportDataResponse.create = function create(properties) { + return new ExportDataResponse(properties); }; /** - * Encodes the specified GenericOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. + * Encodes the specified ExportDataResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata} message GenericOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse} message ExportDataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenericOperationMetadata.encode = function encode(message, writer) { + ExportDataResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.partialFailures != null && message.partialFailures.length) - for (var i = 0; i < message.partialFailures.length; ++i) - $root.google.rpc.Status.encode(message.partialFailures[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.exportedFiles != null && message.exportedFiles.length) + for (var i = 0; i < message.exportedFiles.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.exportedFiles[i]); return writer; }; /** - * Encodes the specified GenericOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. + * Encodes the specified ExportDataResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata} message GenericOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportDataResponse} message ExportDataResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GenericOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ExportDataResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer. + * Decodes an ExportDataResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenericOperationMetadata.decode = function decode(reader, length) { + ExportDataResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportDataResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.partialFailures && message.partialFailures.length)) - message.partialFailures = []; - message.partialFailures.push($root.google.rpc.Status.decode(reader, reader.uint32())); - break; - case 2: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 3: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + if (!(message.exportedFiles && message.exportedFiles.length)) + message.exportedFiles = []; + message.exportedFiles.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -174729,152 +179997,120 @@ }; /** - * Decodes a GenericOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an ExportDataResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GenericOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ExportDataResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GenericOperationMetadata message. + * Verifies an ExportDataResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GenericOperationMetadata.verify = function verify(message) { + ExportDataResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.partialFailures != null && message.hasOwnProperty("partialFailures")) { - if (!Array.isArray(message.partialFailures)) - return "partialFailures: array expected"; - for (var i = 0; i < message.partialFailures.length; ++i) { - var error = $root.google.rpc.Status.verify(message.partialFailures[i]); - if (error) - return "partialFailures." + error; - } - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; + if (message.exportedFiles != null && message.hasOwnProperty("exportedFiles")) { + if (!Array.isArray(message.exportedFiles)) + return "exportedFiles: array expected"; + for (var i = 0; i < message.exportedFiles.length; ++i) + if (!$util.isString(message.exportedFiles[i])) + return "exportedFiles: string[] expected"; } return null; }; /** - * Creates a GenericOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ExportDataResponse} ExportDataResponse */ - GenericOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata) + ExportDataResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata(); - if (object.partialFailures) { - if (!Array.isArray(object.partialFailures)) - throw TypeError(".google.cloud.aiplatform.v1beta1.GenericOperationMetadata.partialFailures: array expected"); - message.partialFailures = []; - for (var i = 0; i < object.partialFailures.length; ++i) { - if (typeof object.partialFailures[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenericOperationMetadata.partialFailures: object expected"); - message.partialFailures[i] = $root.google.rpc.Status.fromObject(object.partialFailures[i]); - } - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenericOperationMetadata.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.GenericOperationMetadata.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportDataResponse(); + if (object.exportedFiles) { + if (!Array.isArray(object.exportedFiles)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportDataResponse.exportedFiles: array expected"); + message.exportedFiles = []; + for (var i = 0; i < object.exportedFiles.length; ++i) + message.exportedFiles[i] = String(object.exportedFiles[i]); } return message; }; /** - * Creates a plain object from a GenericOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an ExportDataResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} message GenericOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ExportDataResponse} message ExportDataResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GenericOperationMetadata.toObject = function toObject(message, options) { + ExportDataResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.partialFailures = []; - if (options.defaults) { - object.createTime = null; - object.updateTime = null; - } - if (message.partialFailures && message.partialFailures.length) { - object.partialFailures = []; - for (var j = 0; j < message.partialFailures.length; ++j) - object.partialFailures[j] = $root.google.rpc.Status.toObject(message.partialFailures[j], options); + object.exportedFiles = []; + if (message.exportedFiles && message.exportedFiles.length) { + object.exportedFiles = []; + for (var j = 0; j < message.exportedFiles.length; ++j) + object.exportedFiles[j] = message.exportedFiles[j]; } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this GenericOperationMetadata to JSON. + * Converts this ExportDataResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataResponse * @instance * @returns {Object.} JSON object */ - GenericOperationMetadata.prototype.toJSON = function toJSON() { + ExportDataResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GenericOperationMetadata; + return ExportDataResponse; })(); - v1beta1.DeleteOperationMetadata = (function() { + v1beta1.ExportDataOperationMetadata = (function() { /** - * Properties of a DeleteOperationMetadata. + * Properties of an ExportDataOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeleteOperationMetadata genericMetadata + * @interface IExportDataOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportDataOperationMetadata genericMetadata + * @property {string|null} [gcsOutputDirectory] ExportDataOperationMetadata gcsOutputDirectory */ /** - * Constructs a new DeleteOperationMetadata. + * Constructs a new ExportDataOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteOperationMetadata. - * @implements IDeleteOperationMetadata + * @classdesc Represents an ExportDataOperationMetadata. + * @implements IExportDataOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata=} [properties] Properties to set */ - function DeleteOperationMetadata(properties) { + function ExportDataOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -174882,76 +180118,89 @@ } /** - * DeleteOperationMetadata genericMetadata. + * ExportDataOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @instance */ - DeleteOperationMetadata.prototype.genericMetadata = null; + ExportDataOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new DeleteOperationMetadata instance using the specified properties. + * ExportDataOperationMetadata gcsOutputDirectory. + * @member {string} gcsOutputDirectory + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata + * @instance + */ + ExportDataOperationMetadata.prototype.gcsOutputDirectory = ""; + + /** + * Creates a new ExportDataOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata instance */ - DeleteOperationMetadata.create = function create(properties) { - return new DeleteOperationMetadata(properties); + ExportDataOperationMetadata.create = function create(properties) { + return new ExportDataOperationMetadata(properties); }; /** - * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. + * Encodes the specified ExportDataOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata} message DeleteOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata} message ExportDataOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteOperationMetadata.encode = function encode(message, writer) { + ExportDataOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.gcsOutputDirectory != null && Object.hasOwnProperty.call(message, "gcsOutputDirectory")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.gcsOutputDirectory); return writer; }; /** - * Encodes the specified DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. + * Encodes the specified ExportDataOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata} message DeleteOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportDataOperationMetadata} message ExportDataOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ExportDataOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteOperationMetadata message from the specified reader or buffer. + * Decodes an ExportDataOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteOperationMetadata.decode = function decode(reader, length) { + ExportDataOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; + case 2: + message.gcsOutputDirectory = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -174961,30 +180210,30 @@ }; /** - * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an ExportDataOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ExportDataOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteOperationMetadata message. + * Verifies an ExportDataOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteOperationMetadata.verify = function verify(message) { + ExportDataOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -174992,82 +180241,95 @@ if (error) return "genericMetadata." + error; } + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + if (!$util.isString(message.gcsOutputDirectory)) + return "gcsOutputDirectory: string expected"; return null; }; /** - * Creates a DeleteOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an ExportDataOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} ExportDataOperationMetadata */ - DeleteOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata) + ExportDataOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata(); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } + if (object.gcsOutputDirectory != null) + message.gcsOutputDirectory = String(object.gcsOutputDirectory); return message; }; /** - * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an ExportDataOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} message DeleteOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata} message ExportDataOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteOperationMetadata.toObject = function toObject(message, options) { + ExportDataOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) + if (options.defaults) { object.genericMetadata = null; + object.gcsOutputDirectory = ""; + } if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.gcsOutputDirectory != null && message.hasOwnProperty("gcsOutputDirectory")) + object.gcsOutputDirectory = message.gcsOutputDirectory; return object; }; /** - * Converts this DeleteOperationMetadata to JSON. + * Converts this ExportDataOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportDataOperationMetadata * @instance * @returns {Object.} JSON object */ - DeleteOperationMetadata.prototype.toJSON = function toJSON() { + ExportDataOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteOperationMetadata; + return ExportDataOperationMetadata; })(); - v1beta1.DeployedIndexRef = (function() { + v1beta1.ListDataItemsRequest = (function() { /** - * Properties of a DeployedIndexRef. + * Properties of a ListDataItemsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedIndexRef - * @property {string|null} [indexEndpoint] DeployedIndexRef indexEndpoint - * @property {string|null} [deployedIndexId] DeployedIndexRef deployedIndexId - */ - - /** - * Constructs a new DeployedIndexRef. + * @interface IListDataItemsRequest + * @property {string|null} [parent] ListDataItemsRequest parent + * @property {string|null} [filter] ListDataItemsRequest filter + * @property {number|null} [pageSize] ListDataItemsRequest pageSize + * @property {string|null} [pageToken] ListDataItemsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListDataItemsRequest readMask + * @property {string|null} [orderBy] ListDataItemsRequest orderBy + */ + + /** + * Constructs a new ListDataItemsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedIndexRef. - * @implements IDeployedIndexRef + * @classdesc Represents a ListDataItemsRequest. + * @implements IListDataItemsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest=} [properties] Properties to set */ - function DeployedIndexRef(properties) { + function ListDataItemsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175075,88 +180337,140 @@ } /** - * DeployedIndexRef indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * ListDataItemsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @instance */ - DeployedIndexRef.prototype.indexEndpoint = ""; + ListDataItemsRequest.prototype.parent = ""; /** - * DeployedIndexRef deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * ListDataItemsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @instance */ - DeployedIndexRef.prototype.deployedIndexId = ""; + ListDataItemsRequest.prototype.filter = ""; /** - * Creates a new DeployedIndexRef instance using the specified properties. + * ListDataItemsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @instance + */ + ListDataItemsRequest.prototype.pageSize = 0; + + /** + * ListDataItemsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @instance + */ + ListDataItemsRequest.prototype.pageToken = ""; + + /** + * ListDataItemsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @instance + */ + ListDataItemsRequest.prototype.readMask = null; + + /** + * ListDataItemsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest + * @instance + */ + ListDataItemsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListDataItemsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef instance + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest instance */ - DeployedIndexRef.create = function create(properties) { - return new DeployedIndexRef(properties); + ListDataItemsRequest.create = function create(properties) { + return new ListDataItemsRequest(properties); }; /** - * Encodes the specified DeployedIndexRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. + * Encodes the specified ListDataItemsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef} message DeployedIndexRef message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest} message ListDataItemsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndexRef.encode = function encode(message, writer) { + ListDataItemsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified DeployedIndexRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. + * Encodes the specified ListDataItemsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef} message DeployedIndexRef message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsRequest} message ListDataItemsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedIndexRef.encodeDelimited = function encodeDelimited(message, writer) { + ListDataItemsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer. + * Decodes a ListDataItemsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndexRef.decode = function decode(reader, length) { + ListDataItemsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.indexEndpoint = reader.string(); + message.parent = reader.string(); break; case 2: - message.deployedIndexId = reader.string(); + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 6: + message.orderBy = reader.string(); break; default: reader.skipType(tag & 7); @@ -175167,132 +180481,155 @@ }; /** - * Decodes a DeployedIndexRef message from the specified reader or buffer, length delimited. + * Decodes a ListDataItemsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedIndexRef.decodeDelimited = function decodeDelimited(reader) { + ListDataItemsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployedIndexRef message. + * Verifies a ListDataItemsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedIndexRef.verify = function verify(message) { + ListDataItemsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a DeployedIndexRef message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataItemsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} ListDataItemsRequest */ - DeployedIndexRef.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef) + ListDataItemsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataItemsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataItemsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a DeployedIndexRef message. Also converts values to other types if specified. + * Creates a plain object from a ListDataItemsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexRef} message DeployedIndexRef + * @param {google.cloud.aiplatform.v1beta1.ListDataItemsRequest} message ListDataItemsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedIndexRef.toObject = function toObject(message, options) { + ListDataItemsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndexId = ""; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this DeployedIndexRef to JSON. + * Converts this ListDataItemsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsRequest * @instance * @returns {Object.} JSON object */ - DeployedIndexRef.prototype.toJSON = function toJSON() { + ListDataItemsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployedIndexRef; + return ListDataItemsRequest; })(); - v1beta1.Endpoint = (function() { + v1beta1.ListDataItemsResponse = (function() { /** - * Properties of an Endpoint. + * Properties of a ListDataItemsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IEndpoint - * @property {string|null} [name] Endpoint name - * @property {string|null} [displayName] Endpoint displayName - * @property {string|null} [description] Endpoint description - * @property {Array.|null} [deployedModels] Endpoint deployedModels - * @property {Object.|null} [trafficSplit] Endpoint trafficSplit - * @property {string|null} [etag] Endpoint etag - * @property {Object.|null} [labels] Endpoint labels - * @property {google.protobuf.ITimestamp|null} [createTime] Endpoint createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Endpoint updateTime - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Endpoint encryptionSpec - * @property {string|null} [network] Endpoint network - * @property {boolean|null} [enablePrivateServiceConnect] Endpoint enablePrivateServiceConnect - * @property {string|null} [modelDeploymentMonitoringJob] Endpoint modelDeploymentMonitoringJob - * @property {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null} [predictRequestResponseLoggingConfig] Endpoint predictRequestResponseLoggingConfig + * @interface IListDataItemsResponse + * @property {Array.|null} [dataItems] ListDataItemsResponse dataItems + * @property {string|null} [nextPageToken] ListDataItemsResponse nextPageToken */ /** - * Constructs a new Endpoint. + * Constructs a new ListDataItemsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Endpoint. - * @implements IEndpoint + * @classdesc Represents a ListDataItemsResponse. + * @implements IListDataItemsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IEndpoint=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse=} [properties] Properties to set */ - function Endpoint(properties) { - this.deployedModels = []; - this.trafficSplit = {}; - this.labels = {}; + function ListDataItemsResponse(properties) { + this.dataItems = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175300,287 +180637,91 @@ } /** - * Endpoint name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.name = ""; - - /** - * Endpoint displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.displayName = ""; - - /** - * Endpoint description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.description = ""; - - /** - * Endpoint deployedModels. - * @member {Array.} deployedModels - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.deployedModels = $util.emptyArray; - - /** - * Endpoint trafficSplit. - * @member {Object.} trafficSplit - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.trafficSplit = $util.emptyObject; - - /** - * Endpoint etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.etag = ""; - - /** - * Endpoint labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.labels = $util.emptyObject; - - /** - * Endpoint createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.createTime = null; - - /** - * Endpoint updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.updateTime = null; - - /** - * Endpoint encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.encryptionSpec = null; - - /** - * Endpoint network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.network = ""; - - /** - * Endpoint enablePrivateServiceConnect. - * @member {boolean} enablePrivateServiceConnect - * @memberof google.cloud.aiplatform.v1beta1.Endpoint - * @instance - */ - Endpoint.prototype.enablePrivateServiceConnect = false; - - /** - * Endpoint modelDeploymentMonitoringJob. - * @member {string} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * ListDataItemsResponse dataItems. + * @member {Array.} dataItems + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @instance */ - Endpoint.prototype.modelDeploymentMonitoringJob = ""; + ListDataItemsResponse.prototype.dataItems = $util.emptyArray; /** - * Endpoint predictRequestResponseLoggingConfig. - * @member {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null|undefined} predictRequestResponseLoggingConfig - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * ListDataItemsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @instance */ - Endpoint.prototype.predictRequestResponseLoggingConfig = null; + ListDataItemsResponse.prototype.nextPageToken = ""; /** - * Creates a new Endpoint instance using the specified properties. + * Creates a new ListDataItemsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IEndpoint=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint instance + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse instance */ - Endpoint.create = function create(properties) { - return new Endpoint(properties); + ListDataItemsResponse.create = function create(properties) { + return new ListDataItemsResponse(properties); }; /** - * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. + * Encodes the specified ListDataItemsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IEndpoint} message Endpoint message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse} message ListDataItemsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Endpoint.encode = function encode(message, writer) { + ListDataItemsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.deployedModels != null && message.deployedModels.length) - for (var i = 0; i < message.deployedModels.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DeployedModel.encode(message.deployedModels[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.trafficSplit != null && Object.hasOwnProperty.call(message, "trafficSplit")) - for (var keys = Object.keys(message.trafficSplit), i = 0; i < keys.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.trafficSplit[keys[i]]).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.network); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.modelDeploymentMonitoringJob); - if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) - writer.uint32(/* id 17, wireType 0 =*/136).bool(message.enablePrivateServiceConnect); - if (message.predictRequestResponseLoggingConfig != null && Object.hasOwnProperty.call(message, "predictRequestResponseLoggingConfig")) - $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.encode(message.predictRequestResponseLoggingConfig, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); + if (message.dataItems != null && message.dataItems.length) + for (var i = 0; i < message.dataItems.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DataItem.encode(message.dataItems[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. + * Encodes the specified ListDataItemsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataItemsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IEndpoint} message Endpoint message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataItemsResponse} message ListDataItemsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Endpoint.encodeDelimited = function encodeDelimited(message, writer) { + ListDataItemsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Endpoint message from the specified reader or buffer. + * Decodes a ListDataItemsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Endpoint.decode = function decode(reader, length) { + ListDataItemsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Endpoint(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataItemsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.dataItems && message.dataItems.length)) + message.dataItems = []; + message.dataItems.push($root.google.cloud.aiplatform.v1beta1.DataItem.decode(reader, reader.uint32())); break; case 2: - message.displayName = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - if (!(message.deployedModels && message.deployedModels.length)) - message.deployedModels = []; - message.deployedModels.push($root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32())); - break; - case 5: - if (message.trafficSplit === $util.emptyObject) - message.trafficSplit = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.int32(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.trafficSplit[key] = value; - break; - case 6: - message.etag = reader.string(); - break; - case 7: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 8: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 10: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); - break; - case 13: - message.network = reader.string(); - break; - case 17: - message.enablePrivateServiceConnect = reader.bool(); - break; - case 14: - message.modelDeploymentMonitoringJob = reader.string(); - break; - case 18: - message.predictRequestResponseLoggingConfig = $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -175591,290 +180732,138 @@ }; /** - * Decodes an Endpoint message from the specified reader or buffer, length delimited. + * Decodes a ListDataItemsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Endpoint.decodeDelimited = function decodeDelimited(reader) { + ListDataItemsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Endpoint message. + * Verifies a ListDataItemsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Endpoint.verify = function verify(message) { + ListDataItemsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.deployedModels != null && message.hasOwnProperty("deployedModels")) { - if (!Array.isArray(message.deployedModels)) - return "deployedModels: array expected"; - for (var i = 0; i < message.deployedModels.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedModel.verify(message.deployedModels[i]); + if (message.dataItems != null && message.hasOwnProperty("dataItems")) { + if (!Array.isArray(message.dataItems)) + return "dataItems: array expected"; + for (var i = 0; i < message.dataItems.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DataItem.verify(message.dataItems[i]); if (error) - return "deployedModels." + error; + return "dataItems." + error; } } - if (message.trafficSplit != null && message.hasOwnProperty("trafficSplit")) { - if (!$util.isObject(message.trafficSplit)) - return "trafficSplit: object expected"; - var key = Object.keys(message.trafficSplit); - for (var i = 0; i < key.length; ++i) - if (!$util.isInteger(message.trafficSplit[key[i]])) - return "trafficSplit: integer{k:string} expected"; - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - if (typeof message.enablePrivateServiceConnect !== "boolean") - return "enablePrivateServiceConnect: boolean expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - if (!$util.isString(message.modelDeploymentMonitoringJob)) - return "modelDeploymentMonitoringJob: string expected"; - if (message.predictRequestResponseLoggingConfig != null && message.hasOwnProperty("predictRequestResponseLoggingConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify(message.predictRequestResponseLoggingConfig); - if (error) - return "predictRequestResponseLoggingConfig." + error; - } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an Endpoint message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataItemsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint + * @returns {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} ListDataItemsResponse */ - Endpoint.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Endpoint) + ListDataItemsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataItemsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Endpoint(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.deployedModels) { - if (!Array.isArray(object.deployedModels)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.deployedModels: array expected"); - message.deployedModels = []; - for (var i = 0; i < object.deployedModels.length; ++i) { - if (typeof object.deployedModels[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.deployedModels: object expected"); - message.deployedModels[i] = $root.google.cloud.aiplatform.v1beta1.DeployedModel.fromObject(object.deployedModels[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataItemsResponse(); + if (object.dataItems) { + if (!Array.isArray(object.dataItems)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataItemsResponse.dataItems: array expected"); + message.dataItems = []; + for (var i = 0; i < object.dataItems.length; ++i) { + if (typeof object.dataItems[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataItemsResponse.dataItems: object expected"); + message.dataItems[i] = $root.google.cloud.aiplatform.v1beta1.DataItem.fromObject(object.dataItems[i]); } } - if (object.trafficSplit) { - if (typeof object.trafficSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.trafficSplit: object expected"); - message.trafficSplit = {}; - for (var keys = Object.keys(object.trafficSplit), i = 0; i < keys.length; ++i) - message.trafficSplit[keys[i]] = object.trafficSplit[keys[i]] | 0; - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); - } - if (object.network != null) - message.network = String(object.network); - if (object.enablePrivateServiceConnect != null) - message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); - if (object.modelDeploymentMonitoringJob != null) - message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); - if (object.predictRequestResponseLoggingConfig != null) { - if (typeof object.predictRequestResponseLoggingConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.predictRequestResponseLoggingConfig: object expected"); - message.predictRequestResponseLoggingConfig = $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.fromObject(object.predictRequestResponseLoggingConfig); - } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an Endpoint message. Also converts values to other types if specified. + * Creates a plain object from a ListDataItemsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.Endpoint} message Endpoint + * @param {google.cloud.aiplatform.v1beta1.ListDataItemsResponse} message ListDataItemsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Endpoint.toObject = function toObject(message, options) { + ListDataItemsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.deployedModels = []; - if (options.objects || options.defaults) { - object.trafficSplit = {}; - object.labels = {}; - } - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.encryptionSpec = null; - object.network = ""; - object.modelDeploymentMonitoringJob = ""; - object.enablePrivateServiceConnect = false; - object.predictRequestResponseLoggingConfig = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.deployedModels && message.deployedModels.length) { - object.deployedModels = []; - for (var j = 0; j < message.deployedModels.length; ++j) - object.deployedModels[j] = $root.google.cloud.aiplatform.v1beta1.DeployedModel.toObject(message.deployedModels[j], options); - } - var keys2; - if (message.trafficSplit && (keys2 = Object.keys(message.trafficSplit)).length) { - object.trafficSplit = {}; - for (var j = 0; j < keys2.length; ++j) - object.trafficSplit[keys2[j]] = message.trafficSplit[keys2[j]]; - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.dataItems = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.dataItems && message.dataItems.length) { + object.dataItems = []; + for (var j = 0; j < message.dataItems.length; ++j) + object.dataItems[j] = $root.google.cloud.aiplatform.v1beta1.DataItem.toObject(message.dataItems[j], options); } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; - if (message.predictRequestResponseLoggingConfig != null && message.hasOwnProperty("predictRequestResponseLoggingConfig")) - object.predictRequestResponseLoggingConfig = $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.toObject(message.predictRequestResponseLoggingConfig, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this Endpoint to JSON. + * Converts this ListDataItemsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @memberof google.cloud.aiplatform.v1beta1.ListDataItemsResponse * @instance * @returns {Object.} JSON object */ - Endpoint.prototype.toJSON = function toJSON() { + ListDataItemsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Endpoint; + return ListDataItemsResponse; })(); - v1beta1.DeployedModel = (function() { + v1beta1.ListSavedQueriesRequest = (function() { /** - * Properties of a DeployedModel. + * Properties of a ListSavedQueriesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedModel - * @property {google.cloud.aiplatform.v1beta1.IDedicatedResources|null} [dedicatedResources] DeployedModel dedicatedResources - * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] DeployedModel automaticResources - * @property {string|null} [id] DeployedModel id - * @property {string|null} [model] DeployedModel model - * @property {string|null} [modelVersionId] DeployedModel modelVersionId - * @property {string|null} [displayName] DeployedModel displayName - * @property {google.protobuf.ITimestamp|null} [createTime] DeployedModel createTime - * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] DeployedModel explanationSpec - * @property {string|null} [serviceAccount] DeployedModel serviceAccount - * @property {boolean|null} [enableContainerLogging] DeployedModel enableContainerLogging - * @property {boolean|null} [enableAccessLogging] DeployedModel enableAccessLogging - * @property {google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null} [privateEndpoints] DeployedModel privateEndpoints + * @interface IListSavedQueriesRequest + * @property {string|null} [parent] ListSavedQueriesRequest parent + * @property {string|null} [filter] ListSavedQueriesRequest filter + * @property {number|null} [pageSize] ListSavedQueriesRequest pageSize + * @property {string|null} [pageToken] ListSavedQueriesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListSavedQueriesRequest readMask + * @property {string|null} [orderBy] ListSavedQueriesRequest orderBy */ /** - * Constructs a new DeployedModel. + * Constructs a new ListSavedQueriesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedModel. - * @implements IDeployedModel + * @classdesc Represents a ListSavedQueriesRequest. + * @implements IListSavedQueriesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedModel=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest=} [properties] Properties to set */ - function DeployedModel(properties) { + function ListSavedQueriesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -175882,232 +180871,140 @@ } /** - * DeployedModel dedicatedResources. - * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel - * @instance - */ - DeployedModel.prototype.dedicatedResources = null; - - /** - * DeployedModel automaticResources. - * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel - * @instance - */ - DeployedModel.prototype.automaticResources = null; - - /** - * DeployedModel id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel - * @instance - */ - DeployedModel.prototype.id = ""; - - /** - * DeployedModel model. - * @member {string} model - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel - * @instance - */ - DeployedModel.prototype.model = ""; - - /** - * DeployedModel modelVersionId. - * @member {string} modelVersionId - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel - * @instance - */ - DeployedModel.prototype.modelVersionId = ""; - - /** - * DeployedModel displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel - * @instance - */ - DeployedModel.prototype.displayName = ""; - - /** - * DeployedModel createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel - * @instance - */ - DeployedModel.prototype.createTime = null; - - /** - * DeployedModel explanationSpec. - * @member {google.cloud.aiplatform.v1beta1.IExplanationSpec|null|undefined} explanationSpec - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * ListSavedQueriesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @instance */ - DeployedModel.prototype.explanationSpec = null; + ListSavedQueriesRequest.prototype.parent = ""; /** - * DeployedModel serviceAccount. - * @member {string} serviceAccount - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * ListSavedQueriesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @instance */ - DeployedModel.prototype.serviceAccount = ""; + ListSavedQueriesRequest.prototype.filter = ""; /** - * DeployedModel enableContainerLogging. - * @member {boolean} enableContainerLogging - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * ListSavedQueriesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @instance */ - DeployedModel.prototype.enableContainerLogging = false; + ListSavedQueriesRequest.prototype.pageSize = 0; /** - * DeployedModel enableAccessLogging. - * @member {boolean} enableAccessLogging - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * ListSavedQueriesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @instance */ - DeployedModel.prototype.enableAccessLogging = false; + ListSavedQueriesRequest.prototype.pageToken = ""; /** - * DeployedModel privateEndpoints. - * @member {google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null|undefined} privateEndpoints - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * ListSavedQueriesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @instance */ - DeployedModel.prototype.privateEndpoints = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListSavedQueriesRequest.prototype.readMask = null; /** - * DeployedModel predictionResources. - * @member {"dedicatedResources"|"automaticResources"|undefined} predictionResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * ListSavedQueriesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @instance */ - Object.defineProperty(DeployedModel.prototype, "predictionResources", { - get: $util.oneOfGetter($oneOfFields = ["dedicatedResources", "automaticResources"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListSavedQueriesRequest.prototype.orderBy = ""; /** - * Creates a new DeployedModel instance using the specified properties. + * Creates a new ListSavedQueriesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedModel=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel instance + * @param {google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest} ListSavedQueriesRequest instance */ - DeployedModel.create = function create(properties) { - return new DeployedModel(properties); + ListSavedQueriesRequest.create = function create(properties) { + return new ListSavedQueriesRequest(properties); }; /** - * Encodes the specified DeployedModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. + * Encodes the specified ListSavedQueriesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedModel} message DeployedModel message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest} message ListSavedQueriesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedModel.encode = function encode(message, writer) { + ListSavedQueriesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.model != null && Object.hasOwnProperty.call(message, "model")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) - $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) - $root.google.cloud.aiplatform.v1beta1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) - $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.serviceAccount); - if (message.enableContainerLogging != null && Object.hasOwnProperty.call(message, "enableContainerLogging")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.enableContainerLogging); - if (message.enableAccessLogging != null && Object.hasOwnProperty.call(message, "enableAccessLogging")) - writer.uint32(/* id 13, wireType 0 =*/104).bool(message.enableAccessLogging); - if (message.privateEndpoints != null && Object.hasOwnProperty.call(message, "privateEndpoints")) - $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) - writer.uint32(/* id 18, wireType 2 =*/146).string(message.modelVersionId); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified DeployedModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. + * Encodes the specified ListSavedQueriesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedModel} message DeployedModel message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest} message ListSavedQueriesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployedModel.encodeDelimited = function encodeDelimited(message, writer) { + ListSavedQueriesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployedModel message from the specified reader or buffer. + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel + * @returns {google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest} ListSavedQueriesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedModel.decode = function decode(reader, length) { + ListSavedQueriesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedModel(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 7: - message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.decode(reader, reader.uint32()); - break; - case 8: - message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); - break; case 1: - message.id = reader.string(); + message.parent = reader.string(); break; case 2: - message.model = reader.string(); - break; - case 18: - message.modelVersionId = reader.string(); + message.filter = reader.string(); break; case 3: - message.displayName = reader.string(); - break; - case 6: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.decode(reader, reader.uint32()); - break; - case 11: - message.serviceAccount = reader.string(); + message.pageSize = reader.int32(); break; - case 12: - message.enableContainerLogging = reader.bool(); + case 4: + message.pageToken = reader.string(); break; - case 13: - message.enableAccessLogging = reader.bool(); + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; - case 14: - message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.decode(reader, reader.uint32()); + case 6: + message.orderBy = reader.string(); break; default: reader.skipType(tag & 7); @@ -176118,237 +181015,155 @@ }; /** - * Decodes a DeployedModel message from the specified reader or buffer, length delimited. + * Decodes a ListSavedQueriesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel + * @returns {google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest} ListSavedQueriesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployedModel.decodeDelimited = function decodeDelimited(reader) { + ListSavedQueriesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployedModel message. + * Verifies a ListSavedQueriesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployedModel.verify = function verify(message) { + ListSavedQueriesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { - properties.predictionResources = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.verify(message.dedicatedResources); - if (error) - return "dedicatedResources." + error; - } - } - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { - if (properties.predictionResources === 1) - return "predictionResources: multiple values"; - properties.predictionResources = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); - if (error) - return "automaticResources." + error; - } - } - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.model != null && message.hasOwnProperty("model")) - if (!$util.isString(message.model)) - return "model: string expected"; - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - if (!$util.isString(message.modelVersionId)) - return "modelVersionId: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.verify(message.explanationSpec); - if (error) - return "explanationSpec." + error; - } - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - if (!$util.isString(message.serviceAccount)) - return "serviceAccount: string expected"; - if (message.enableContainerLogging != null && message.hasOwnProperty("enableContainerLogging")) - if (typeof message.enableContainerLogging !== "boolean") - return "enableContainerLogging: boolean expected"; - if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) - if (typeof message.enableAccessLogging !== "boolean") - return "enableAccessLogging: boolean expected"; - if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) { - var error = $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify(message.privateEndpoints); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "privateEndpoints." + error; + return "readMask." + error; } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a DeployedModel message from a plain object. Also converts values to their respective internal types. + * Creates a ListSavedQueriesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel + * @returns {google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest} ListSavedQueriesRequest */ - DeployedModel.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedModel) + ListSavedQueriesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedModel(); - if (object.dedicatedResources != null) { - if (typeof object.dedicatedResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.dedicatedResources: object expected"); - message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.fromObject(object.dedicatedResources); - } - if (object.automaticResources != null) { - if (typeof object.automaticResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.automaticResources: object expected"); - message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); - } - if (object.id != null) - message.id = String(object.id); - if (object.model != null) - message.model = String(object.model); - if (object.modelVersionId != null) - message.modelVersionId = String(object.modelVersionId); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.explanationSpec != null) { - if (typeof object.explanationSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.explanationSpec: object expected"); - message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.fromObject(object.explanationSpec); - } - if (object.serviceAccount != null) - message.serviceAccount = String(object.serviceAccount); - if (object.enableContainerLogging != null) - message.enableContainerLogging = Boolean(object.enableContainerLogging); - if (object.enableAccessLogging != null) - message.enableAccessLogging = Boolean(object.enableAccessLogging); - if (object.privateEndpoints != null) { - if (typeof object.privateEndpoints !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.privateEndpoints: object expected"); - message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.fromObject(object.privateEndpoints); + var message = new $root.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a DeployedModel message. Also converts values to other types if specified. + * Creates a plain object from a ListSavedQueriesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedModel} message DeployedModel + * @param {google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest} message ListSavedQueriesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployedModel.toObject = function toObject(message, options) { + ListSavedQueriesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.id = ""; - object.model = ""; - object.displayName = ""; - object.createTime = null; - object.explanationSpec = null; - object.serviceAccount = ""; - object.enableContainerLogging = false; - object.enableAccessLogging = false; - object.privateEndpoints = null; - object.modelVersionId = ""; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.model != null && message.hasOwnProperty("model")) - object.model = message.model; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { - object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); - if (options.oneofs) - object.predictionResources = "dedicatedResources"; - } - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { - object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); - if (options.oneofs) - object.predictionResources = "automaticResources"; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; } - if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) - object.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.toObject(message.explanationSpec, options); - if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) - object.serviceAccount = message.serviceAccount; - if (message.enableContainerLogging != null && message.hasOwnProperty("enableContainerLogging")) - object.enableContainerLogging = message.enableContainerLogging; - if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) - object.enableAccessLogging = message.enableAccessLogging; - if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) - object.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.toObject(message.privateEndpoints, options); - if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) - object.modelVersionId = message.modelVersionId; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this DeployedModel to JSON. + * Converts this ListSavedQueriesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest * @instance * @returns {Object.} JSON object */ - DeployedModel.prototype.toJSON = function toJSON() { + ListSavedQueriesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployedModel; + return ListSavedQueriesRequest; })(); - v1beta1.PrivateEndpoints = (function() { + v1beta1.ListSavedQueriesResponse = (function() { /** - * Properties of a PrivateEndpoints. + * Properties of a ListSavedQueriesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPrivateEndpoints - * @property {string|null} [predictHttpUri] PrivateEndpoints predictHttpUri - * @property {string|null} [explainHttpUri] PrivateEndpoints explainHttpUri - * @property {string|null} [healthHttpUri] PrivateEndpoints healthHttpUri - * @property {string|null} [serviceAttachment] PrivateEndpoints serviceAttachment + * @interface IListSavedQueriesResponse + * @property {Array.|null} [savedQueries] ListSavedQueriesResponse savedQueries + * @property {string|null} [nextPageToken] ListSavedQueriesResponse nextPageToken */ /** - * Constructs a new PrivateEndpoints. + * Constructs a new ListSavedQueriesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PrivateEndpoints. - * @implements IPrivateEndpoints + * @classdesc Represents a ListSavedQueriesResponse. + * @implements IListSavedQueriesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse=} [properties] Properties to set */ - function PrivateEndpoints(properties) { + function ListSavedQueriesResponse(properties) { + this.savedQueries = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -176356,114 +181171,91 @@ } /** - * PrivateEndpoints predictHttpUri. - * @member {string} predictHttpUri - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @instance - */ - PrivateEndpoints.prototype.predictHttpUri = ""; - - /** - * PrivateEndpoints explainHttpUri. - * @member {string} explainHttpUri - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints - * @instance - */ - PrivateEndpoints.prototype.explainHttpUri = ""; - - /** - * PrivateEndpoints healthHttpUri. - * @member {string} healthHttpUri - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * ListSavedQueriesResponse savedQueries. + * @member {Array.} savedQueries + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @instance */ - PrivateEndpoints.prototype.healthHttpUri = ""; + ListSavedQueriesResponse.prototype.savedQueries = $util.emptyArray; /** - * PrivateEndpoints serviceAttachment. - * @member {string} serviceAttachment - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * ListSavedQueriesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @instance */ - PrivateEndpoints.prototype.serviceAttachment = ""; + ListSavedQueriesResponse.prototype.nextPageToken = ""; /** - * Creates a new PrivateEndpoints instance using the specified properties. + * Creates a new ListSavedQueriesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints instance + * @param {google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse} ListSavedQueriesResponse instance */ - PrivateEndpoints.create = function create(properties) { - return new PrivateEndpoints(properties); + ListSavedQueriesResponse.create = function create(properties) { + return new ListSavedQueriesResponse(properties); }; /** - * Encodes the specified PrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. + * Encodes the specified ListSavedQueriesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints} message PrivateEndpoints message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse} message ListSavedQueriesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateEndpoints.encode = function encode(message, writer) { + ListSavedQueriesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.predictHttpUri != null && Object.hasOwnProperty.call(message, "predictHttpUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.predictHttpUri); - if (message.explainHttpUri != null && Object.hasOwnProperty.call(message, "explainHttpUri")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.explainHttpUri); - if (message.healthHttpUri != null && Object.hasOwnProperty.call(message, "healthHttpUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.healthHttpUri); - if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.serviceAttachment); + if (message.savedQueries != null && message.savedQueries.length) + for (var i = 0; i < message.savedQueries.length; ++i) + $root.google.cloud.aiplatform.v1beta1.SavedQuery.encode(message.savedQueries[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified PrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. + * Encodes the specified ListSavedQueriesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints} message PrivateEndpoints message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse} message ListSavedQueriesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { + ListSavedQueriesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PrivateEndpoints message from the specified reader or buffer. + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints + * @returns {google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse} ListSavedQueriesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateEndpoints.decode = function decode(reader, length) { + ListSavedQueriesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.predictHttpUri = reader.string(); + if (!(message.savedQueries && message.savedQueries.length)) + message.savedQueries = []; + message.savedQueries.push($root.google.cloud.aiplatform.v1beta1.SavedQuery.decode(reader, reader.uint32())); break; case 2: - message.explainHttpUri = reader.string(); - break; - case 3: - message.healthHttpUri = reader.string(); - break; - case 4: - message.serviceAttachment = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -176474,134 +181266,134 @@ }; /** - * Decodes a PrivateEndpoints message from the specified reader or buffer, length delimited. + * Decodes a ListSavedQueriesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints + * @returns {google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse} ListSavedQueriesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { + ListSavedQueriesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PrivateEndpoints message. + * Verifies a ListSavedQueriesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PrivateEndpoints.verify = function verify(message) { + ListSavedQueriesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.predictHttpUri != null && message.hasOwnProperty("predictHttpUri")) - if (!$util.isString(message.predictHttpUri)) - return "predictHttpUri: string expected"; - if (message.explainHttpUri != null && message.hasOwnProperty("explainHttpUri")) - if (!$util.isString(message.explainHttpUri)) - return "explainHttpUri: string expected"; - if (message.healthHttpUri != null && message.hasOwnProperty("healthHttpUri")) - if (!$util.isString(message.healthHttpUri)) - return "healthHttpUri: string expected"; - if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) - if (!$util.isString(message.serviceAttachment)) - return "serviceAttachment: string expected"; + if (message.savedQueries != null && message.hasOwnProperty("savedQueries")) { + if (!Array.isArray(message.savedQueries)) + return "savedQueries: array expected"; + for (var i = 0; i < message.savedQueries.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.SavedQuery.verify(message.savedQueries[i]); + if (error) + return "savedQueries." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a PrivateEndpoints message from a plain object. Also converts values to their respective internal types. + * Creates a ListSavedQueriesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints + * @returns {google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse} ListSavedQueriesResponse */ - PrivateEndpoints.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints) + ListSavedQueriesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints(); - if (object.predictHttpUri != null) - message.predictHttpUri = String(object.predictHttpUri); - if (object.explainHttpUri != null) - message.explainHttpUri = String(object.explainHttpUri); - if (object.healthHttpUri != null) - message.healthHttpUri = String(object.healthHttpUri); - if (object.serviceAttachment != null) - message.serviceAttachment = String(object.serviceAttachment); + var message = new $root.google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse(); + if (object.savedQueries) { + if (!Array.isArray(object.savedQueries)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.savedQueries: array expected"); + message.savedQueries = []; + for (var i = 0; i < object.savedQueries.length; ++i) { + if (typeof object.savedQueries[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse.savedQueries: object expected"); + message.savedQueries[i] = $root.google.cloud.aiplatform.v1beta1.SavedQuery.fromObject(object.savedQueries[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a PrivateEndpoints message. Also converts values to other types if specified. + * Creates a plain object from a ListSavedQueriesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.PrivateEndpoints} message PrivateEndpoints + * @param {google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse} message ListSavedQueriesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PrivateEndpoints.toObject = function toObject(message, options) { + ListSavedQueriesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.predictHttpUri = ""; - object.explainHttpUri = ""; - object.healthHttpUri = ""; - object.serviceAttachment = ""; + if (options.arrays || options.defaults) + object.savedQueries = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.savedQueries && message.savedQueries.length) { + object.savedQueries = []; + for (var j = 0; j < message.savedQueries.length; ++j) + object.savedQueries[j] = $root.google.cloud.aiplatform.v1beta1.SavedQuery.toObject(message.savedQueries[j], options); } - if (message.predictHttpUri != null && message.hasOwnProperty("predictHttpUri")) - object.predictHttpUri = message.predictHttpUri; - if (message.explainHttpUri != null && message.hasOwnProperty("explainHttpUri")) - object.explainHttpUri = message.explainHttpUri; - if (message.healthHttpUri != null && message.hasOwnProperty("healthHttpUri")) - object.healthHttpUri = message.healthHttpUri; - if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) - object.serviceAttachment = message.serviceAttachment; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this PrivateEndpoints to JSON. + * Converts this ListSavedQueriesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse * @instance * @returns {Object.} JSON object */ - PrivateEndpoints.prototype.toJSON = function toJSON() { + ListSavedQueriesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PrivateEndpoints; + return ListSavedQueriesResponse; })(); - v1beta1.PredictRequestResponseLoggingConfig = (function() { + v1beta1.GetAnnotationSpecRequest = (function() { /** - * Properties of a PredictRequestResponseLoggingConfig. + * Properties of a GetAnnotationSpecRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPredictRequestResponseLoggingConfig - * @property {boolean|null} [enabled] PredictRequestResponseLoggingConfig enabled - * @property {number|null} [samplingRate] PredictRequestResponseLoggingConfig samplingRate - * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigqueryDestination] PredictRequestResponseLoggingConfig bigqueryDestination + * @interface IGetAnnotationSpecRequest + * @property {string|null} [name] GetAnnotationSpecRequest name + * @property {google.protobuf.IFieldMask|null} [readMask] GetAnnotationSpecRequest readMask */ /** - * Constructs a new PredictRequestResponseLoggingConfig. + * Constructs a new GetAnnotationSpecRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PredictRequestResponseLoggingConfig. - * @implements IPredictRequestResponseLoggingConfig + * @classdesc Represents a GetAnnotationSpecRequest. + * @implements IGetAnnotationSpecRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest=} [properties] Properties to set */ - function PredictRequestResponseLoggingConfig(properties) { + function GetAnnotationSpecRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -176609,101 +181401,88 @@ } /** - * PredictRequestResponseLoggingConfig enabled. - * @member {boolean} enabled - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig - * @instance - */ - PredictRequestResponseLoggingConfig.prototype.enabled = false; - - /** - * PredictRequestResponseLoggingConfig samplingRate. - * @member {number} samplingRate - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * GetAnnotationSpecRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @instance */ - PredictRequestResponseLoggingConfig.prototype.samplingRate = 0; + GetAnnotationSpecRequest.prototype.name = ""; /** - * PredictRequestResponseLoggingConfig bigqueryDestination. - * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * GetAnnotationSpecRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @instance */ - PredictRequestResponseLoggingConfig.prototype.bigqueryDestination = null; + GetAnnotationSpecRequest.prototype.readMask = null; /** - * Creates a new PredictRequestResponseLoggingConfig instance using the specified properties. + * Creates a new GetAnnotationSpecRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} PredictRequestResponseLoggingConfig instance + * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest instance */ - PredictRequestResponseLoggingConfig.create = function create(properties) { - return new PredictRequestResponseLoggingConfig(properties); + GetAnnotationSpecRequest.create = function create(properties) { + return new GetAnnotationSpecRequest(properties); }; /** - * Encodes the specified PredictRequestResponseLoggingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. + * Encodes the specified GetAnnotationSpecRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig} message PredictRequestResponseLoggingConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest} message GetAnnotationSpecRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictRequestResponseLoggingConfig.encode = function encode(message, writer) { + GetAnnotationSpecRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); - if (message.samplingRate != null && Object.hasOwnProperty.call(message, "samplingRate")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.samplingRate); - if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) - $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified PredictRequestResponseLoggingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. + * Encodes the specified GetAnnotationSpecRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig} message PredictRequestResponseLoggingConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetAnnotationSpecRequest} message GetAnnotationSpecRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PredictRequestResponseLoggingConfig.encodeDelimited = function encodeDelimited(message, writer) { + GetAnnotationSpecRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer. + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} PredictRequestResponseLoggingConfig + * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictRequestResponseLoggingConfig.decode = function decode(reader, length) { + GetAnnotationSpecRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enabled = reader.bool(); + message.name = reader.string(); break; case 2: - message.samplingRate = reader.double(); - break; - case 3: - message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -176714,488 +181493,247 @@ }; /** - * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer, length delimited. + * Decodes a GetAnnotationSpecRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} PredictRequestResponseLoggingConfig + * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PredictRequestResponseLoggingConfig.decodeDelimited = function decodeDelimited(reader) { + GetAnnotationSpecRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PredictRequestResponseLoggingConfig message. + * Verifies a GetAnnotationSpecRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PredictRequestResponseLoggingConfig.verify = function verify(message) { + GetAnnotationSpecRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enabled != null && message.hasOwnProperty("enabled")) - if (typeof message.enabled !== "boolean") - return "enabled: boolean expected"; - if (message.samplingRate != null && message.hasOwnProperty("samplingRate")) - if (typeof message.samplingRate !== "number") - return "samplingRate: number expected"; - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigqueryDestination); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "bigqueryDestination." + error; + return "readMask." + error; } return null; }; /** - * Creates a PredictRequestResponseLoggingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a GetAnnotationSpecRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} PredictRequestResponseLoggingConfig + * @returns {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} GetAnnotationSpecRequest */ - PredictRequestResponseLoggingConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) + GetAnnotationSpecRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig(); - if (object.enabled != null) - message.enabled = Boolean(object.enabled); - if (object.samplingRate != null) - message.samplingRate = Number(object.samplingRate); - if (object.bigqueryDestination != null) { - if (typeof object.bigqueryDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.bigqueryDestination: object expected"); - message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigqueryDestination); + var message = new $root.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a PredictRequestResponseLoggingConfig message. Also converts values to other types if specified. + * Creates a plain object from a GetAnnotationSpecRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} message PredictRequestResponseLoggingConfig + * @param {google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest} message GetAnnotationSpecRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PredictRequestResponseLoggingConfig.toObject = function toObject(message, options) { + GetAnnotationSpecRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.enabled = false; - object.samplingRate = 0; - object.bigqueryDestination = null; + object.name = ""; + object.readMask = null; } - if (message.enabled != null && message.hasOwnProperty("enabled")) - object.enabled = message.enabled; - if (message.samplingRate != null && message.hasOwnProperty("samplingRate")) - object.samplingRate = options.json && !isFinite(message.samplingRate) ? String(message.samplingRate) : message.samplingRate; - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) - object.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.bigqueryDestination, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this PredictRequestResponseLoggingConfig to JSON. + * Converts this GetAnnotationSpecRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest * @instance * @returns {Object.} JSON object */ - PredictRequestResponseLoggingConfig.prototype.toJSON = function toJSON() { + GetAnnotationSpecRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PredictRequestResponseLoggingConfig; + return GetAnnotationSpecRequest; })(); - v1beta1.EndpointService = (function() { + v1beta1.ListAnnotationsRequest = (function() { /** - * Constructs a new EndpointService service. + * Properties of a ListAnnotationsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an EndpointService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function EndpointService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (EndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EndpointService; - - /** - * Creates new EndpointService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {EndpointService} RPC service. Useful where requests and/or responses are streamed. - */ - EndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#createEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @typedef CreateEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateEndpoint. - * @function createEndpoint - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest} request CreateEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpointCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EndpointService.prototype.createEndpoint = function createEndpoint(request, callback) { - return this.rpcCall(createEndpoint, $root.google.cloud.aiplatform.v1beta1.CreateEndpointRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateEndpoint" }); - - /** - * Calls CreateEndpoint. - * @function createEndpoint - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest} request CreateEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#getEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @typedef GetEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Endpoint} [response] Endpoint - */ - - /** - * Calls GetEndpoint. - * @function getEndpoint - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest} request GetEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.EndpointService.GetEndpointCallback} callback Node-style callback called with the error, if any, and Endpoint - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EndpointService.prototype.getEndpoint = function getEndpoint(request, callback) { - return this.rpcCall(getEndpoint, $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest, $root.google.cloud.aiplatform.v1beta1.Endpoint, request, callback); - }, "name", { value: "GetEndpoint" }); - - /** - * Calls GetEndpoint. - * @function getEndpoint - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest} request GetEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#listEndpoints}. - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @typedef ListEndpointsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} [response] ListEndpointsResponse - */ - - /** - * Calls ListEndpoints. - * @function listEndpoints - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest} request ListEndpointsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.EndpointService.ListEndpointsCallback} callback Node-style callback called with the error, if any, and ListEndpointsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EndpointService.prototype.listEndpoints = function listEndpoints(request, callback) { - return this.rpcCall(listEndpoints, $root.google.cloud.aiplatform.v1beta1.ListEndpointsRequest, $root.google.cloud.aiplatform.v1beta1.ListEndpointsResponse, request, callback); - }, "name", { value: "ListEndpoints" }); - - /** - * Calls ListEndpoints. - * @function listEndpoints - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest} request ListEndpointsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#updateEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @typedef UpdateEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Endpoint} [response] Endpoint - */ - - /** - * Calls UpdateEndpoint. - * @function updateEndpoint - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest} request UpdateEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointCallback} callback Node-style callback called with the error, if any, and Endpoint - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EndpointService.prototype.updateEndpoint = function updateEndpoint(request, callback) { - return this.rpcCall(updateEndpoint, $root.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest, $root.google.cloud.aiplatform.v1beta1.Endpoint, request, callback); - }, "name", { value: "UpdateEndpoint" }); - - /** - * Calls UpdateEndpoint. - * @function updateEndpoint - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest} request UpdateEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#deleteEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @typedef DeleteEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteEndpoint. - * @function deleteEndpoint - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest} request DeleteEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpointCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(EndpointService.prototype.deleteEndpoint = function deleteEndpoint(request, callback) { - return this.rpcCall(deleteEndpoint, $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteEndpoint" }); - - /** - * Calls DeleteEndpoint. - * @function deleteEndpoint - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest} request DeleteEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#deployModel}. - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @typedef DeployModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @interface IListAnnotationsRequest + * @property {string|null} [parent] ListAnnotationsRequest parent + * @property {string|null} [filter] ListAnnotationsRequest filter + * @property {number|null} [pageSize] ListAnnotationsRequest pageSize + * @property {string|null} [pageToken] ListAnnotationsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListAnnotationsRequest readMask + * @property {string|null} [orderBy] ListAnnotationsRequest orderBy */ /** - * Calls DeployModel. - * @function deployModel - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest} request DeployModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.EndpointService.DeployModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Constructs a new ListAnnotationsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListAnnotationsRequest. + * @implements IListAnnotationsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest=} [properties] Properties to set */ - Object.defineProperty(EndpointService.prototype.deployModel = function deployModel(request, callback) { - return this.rpcCall(deployModel, $root.google.cloud.aiplatform.v1beta1.DeployModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeployModel" }); + function ListAnnotationsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls DeployModel. - * @function deployModel - * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * ListAnnotationsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest} request DeployModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#undeployModel}. - * @memberof google.cloud.aiplatform.v1beta1.EndpointService - * @typedef UndeployModelCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + ListAnnotationsRequest.prototype.parent = ""; /** - * Calls UndeployModel. - * @function undeployModel - * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * ListAnnotationsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest} request UndeployModelRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.EndpointService.UndeployModelCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(EndpointService.prototype.undeployModel = function undeployModel(request, callback) { - return this.rpcCall(undeployModel, $root.google.cloud.aiplatform.v1beta1.UndeployModelRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UndeployModel" }); + ListAnnotationsRequest.prototype.filter = ""; /** - * Calls UndeployModel. - * @function undeployModel - * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * ListAnnotationsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest} request UndeployModelRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return EndpointService; - })(); - - v1beta1.CreateEndpointRequest = (function() { - - /** - * Properties of a CreateEndpointRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateEndpointRequest - * @property {string|null} [parent] CreateEndpointRequest parent - * @property {google.cloud.aiplatform.v1beta1.IEndpoint|null} [endpoint] CreateEndpointRequest endpoint - * @property {string|null} [endpointId] CreateEndpointRequest endpointId - */ - - /** - * Constructs a new CreateEndpointRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateEndpointRequest. - * @implements ICreateEndpointRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest=} [properties] Properties to set */ - function CreateEndpointRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ListAnnotationsRequest.prototype.pageSize = 0; /** - * CreateEndpointRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * ListAnnotationsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @instance */ - CreateEndpointRequest.prototype.parent = ""; + ListAnnotationsRequest.prototype.pageToken = ""; /** - * CreateEndpointRequest endpoint. - * @member {google.cloud.aiplatform.v1beta1.IEndpoint|null|undefined} endpoint - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * ListAnnotationsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @instance */ - CreateEndpointRequest.prototype.endpoint = null; + ListAnnotationsRequest.prototype.readMask = null; /** - * CreateEndpointRequest endpointId. - * @member {string} endpointId - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * ListAnnotationsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @instance */ - CreateEndpointRequest.prototype.endpointId = ""; + ListAnnotationsRequest.prototype.orderBy = ""; /** - * Creates a new CreateEndpointRequest instance using the specified properties. + * Creates a new ListAnnotationsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest instance */ - CreateEndpointRequest.create = function create(properties) { - return new CreateEndpointRequest(properties); + ListAnnotationsRequest.create = function create(properties) { + return new ListAnnotationsRequest(properties); }; /** - * Encodes the specified CreateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. + * Encodes the specified ListAnnotationsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest} message CreateEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest} message ListAnnotationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEndpointRequest.encode = function encode(message, writer) { + ListAnnotationsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - $root.google.cloud.aiplatform.v1beta1.Endpoint.encode(message.endpoint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.endpointId != null && Object.hasOwnProperty.call(message, "endpointId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.endpointId); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified CreateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. + * Encodes the specified ListAnnotationsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest} message CreateEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsRequest} message ListAnnotationsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListAnnotationsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEndpointRequest message from the specified reader or buffer. + * Decodes a ListAnnotationsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEndpointRequest.decode = function decode(reader, length) { + ListAnnotationsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -177203,10 +181741,19 @@ message.parent = reader.string(); break; case 2: - message.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); break; case 4: - message.endpointId = reader.string(); + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 6: + message.orderBy = reader.string(); break; default: reader.skipType(tag & 7); @@ -177217,129 +181764,155 @@ }; /** - * Decodes a CreateEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a ListAnnotationsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + ListAnnotationsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEndpointRequest message. + * Verifies a ListAnnotationsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEndpointRequest.verify = function verify(message) { + ListAnnotationsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) { - var error = $root.google.cloud.aiplatform.v1beta1.Endpoint.verify(message.endpoint); + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "endpoint." + error; + return "readMask." + error; } - if (message.endpointId != null && message.hasOwnProperty("endpointId")) - if (!$util.isString(message.endpointId)) - return "endpointId: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a CreateEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListAnnotationsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} ListAnnotationsRequest */ - CreateEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEndpointRequest) + ListAnnotationsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateEndpointRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.endpoint != null) { - if (typeof object.endpoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateEndpointRequest.endpoint: object expected"); - message.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.fromObject(object.endpoint); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListAnnotationsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } - if (object.endpointId != null) - message.endpointId = String(object.endpointId); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a CreateEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListAnnotationsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} message CreateEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.ListAnnotationsRequest} message ListAnnotationsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEndpointRequest.toObject = function toObject(message, options) { + ListAnnotationsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.endpoint = null; - object.endpointId = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.toObject(message.endpoint, options); - if (message.endpointId != null && message.hasOwnProperty("endpointId")) - object.endpointId = message.endpointId; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this CreateEndpointRequest to JSON. + * Converts this ListAnnotationsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsRequest * @instance * @returns {Object.} JSON object */ - CreateEndpointRequest.prototype.toJSON = function toJSON() { + ListAnnotationsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEndpointRequest; + return ListAnnotationsRequest; })(); - v1beta1.CreateEndpointOperationMetadata = (function() { + v1beta1.ListAnnotationsResponse = (function() { /** - * Properties of a CreateEndpointOperationMetadata. + * Properties of a ListAnnotationsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateEndpointOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateEndpointOperationMetadata genericMetadata + * @interface IListAnnotationsResponse + * @property {Array.|null} [annotations] ListAnnotationsResponse annotations + * @property {string|null} [nextPageToken] ListAnnotationsResponse nextPageToken */ /** - * Constructs a new CreateEndpointOperationMetadata. + * Constructs a new ListAnnotationsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateEndpointOperationMetadata. - * @implements ICreateEndpointOperationMetadata + * @classdesc Represents a ListAnnotationsResponse. + * @implements IListAnnotationsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse=} [properties] Properties to set */ - function CreateEndpointOperationMetadata(properties) { + function ListAnnotationsResponse(properties) { + this.annotations = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177347,75 +181920,91 @@ } /** - * CreateEndpointOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * ListAnnotationsResponse annotations. + * @member {Array.} annotations + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @instance */ - CreateEndpointOperationMetadata.prototype.genericMetadata = null; + ListAnnotationsResponse.prototype.annotations = $util.emptyArray; /** - * Creates a new CreateEndpointOperationMetadata instance using the specified properties. + * ListAnnotationsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse + * @instance + */ + ListAnnotationsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListAnnotationsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse instance */ - CreateEndpointOperationMetadata.create = function create(properties) { - return new CreateEndpointOperationMetadata(properties); + ListAnnotationsResponse.create = function create(properties) { + return new ListAnnotationsResponse(properties); }; /** - * Encodes the specified CreateEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. + * Encodes the specified ListAnnotationsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata} message CreateEndpointOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse} message ListAnnotationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEndpointOperationMetadata.encode = function encode(message, writer) { + ListAnnotationsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.annotations != null && message.annotations.length) + for (var i = 0; i < message.annotations.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Annotation.encode(message.annotations[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. + * Encodes the specified ListAnnotationsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata} message CreateEndpointOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListAnnotationsResponse} message ListAnnotationsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListAnnotationsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer. + * Decodes a ListAnnotationsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEndpointOperationMetadata.decode = function decode(reader, length) { + ListAnnotationsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.annotations && message.annotations.length)) + message.annotations = []; + message.annotations.push($root.google.cloud.aiplatform.v1beta1.Annotation.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -177426,112 +182015,136 @@ }; /** - * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListAnnotationsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListAnnotationsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEndpointOperationMetadata message. + * Verifies a ListAnnotationsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEndpointOperationMetadata.verify = function verify(message) { + ListAnnotationsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; + if (message.annotations != null && message.hasOwnProperty("annotations")) { + if (!Array.isArray(message.annotations)) + return "annotations: array expected"; + for (var i = 0; i < message.annotations.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Annotation.verify(message.annotations[i]); + if (error) + return "annotations." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListAnnotationsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} ListAnnotationsResponse */ - CreateEndpointOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata) + ListAnnotationsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListAnnotationsResponse(); + if (object.annotations) { + if (!Array.isArray(object.annotations)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.annotations: array expected"); + message.annotations = []; + for (var i = 0; i < object.annotations.length; ++i) { + if (typeof object.annotations[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListAnnotationsResponse.annotations: object expected"); + message.annotations[i] = $root.google.cloud.aiplatform.v1beta1.Annotation.fromObject(object.annotations[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateEndpointOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListAnnotationsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} message CreateEndpointOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListAnnotationsResponse} message ListAnnotationsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEndpointOperationMetadata.toObject = function toObject(message, options) { + ListAnnotationsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.annotations = []; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.nextPageToken = ""; + if (message.annotations && message.annotations.length) { + object.annotations = []; + for (var j = 0; j < message.annotations.length; ++j) + object.annotations[j] = $root.google.cloud.aiplatform.v1beta1.Annotation.toObject(message.annotations[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateEndpointOperationMetadata to JSON. + * Converts this ListAnnotationsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListAnnotationsResponse * @instance * @returns {Object.} JSON object */ - CreateEndpointOperationMetadata.prototype.toJSON = function toJSON() { + ListAnnotationsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEndpointOperationMetadata; + return ListAnnotationsResponse; })(); - v1beta1.GetEndpointRequest = (function() { + v1beta1.GenericOperationMetadata = (function() { /** - * Properties of a GetEndpointRequest. + * Properties of a GenericOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetEndpointRequest - * @property {string|null} [name] GetEndpointRequest name + * @interface IGenericOperationMetadata + * @property {Array.|null} [partialFailures] GenericOperationMetadata partialFailures + * @property {google.protobuf.ITimestamp|null} [createTime] GenericOperationMetadata createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] GenericOperationMetadata updateTime */ /** - * Constructs a new GetEndpointRequest. + * Constructs a new GenericOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetEndpointRequest. - * @implements IGetEndpointRequest + * @classdesc Represents a GenericOperationMetadata. + * @implements IGenericOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata=} [properties] Properties to set */ - function GetEndpointRequest(properties) { + function GenericOperationMetadata(properties) { + this.partialFailures = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177539,75 +182152,104 @@ } /** - * GetEndpointRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * GenericOperationMetadata partialFailures. + * @member {Array.} partialFailures + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @instance */ - GetEndpointRequest.prototype.name = ""; + GenericOperationMetadata.prototype.partialFailures = $util.emptyArray; /** - * Creates a new GetEndpointRequest instance using the specified properties. + * GenericOperationMetadata createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @instance + */ + GenericOperationMetadata.prototype.createTime = null; + + /** + * GenericOperationMetadata updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata + * @instance + */ + GenericOperationMetadata.prototype.updateTime = null; + + /** + * Creates a new GenericOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata instance */ - GetEndpointRequest.create = function create(properties) { - return new GetEndpointRequest(properties); + GenericOperationMetadata.create = function create(properties) { + return new GenericOperationMetadata(properties); }; /** - * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. + * Encodes the specified GenericOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest} message GetEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata} message GenericOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEndpointRequest.encode = function encode(message, writer) { + GenericOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.partialFailures != null && message.partialFailures.length) + for (var i = 0; i < message.partialFailures.length; ++i) + $root.google.rpc.Status.encode(message.partialFailures[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. + * Encodes the specified GenericOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest} message GetEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata} message GenericOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + GenericOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer. + * Decodes a GenericOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEndpointRequest.decode = function decode(reader, length) { + GenericOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.partialFailures && message.partialFailures.length)) + message.partialFailures = []; + message.partialFailures.push($root.google.rpc.Status.decode(reader, reader.uint32())); + break; + case 2: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 3: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -177618,111 +182260,152 @@ }; /** - * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a GenericOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + GenericOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEndpointRequest message. + * Verifies a GenericOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEndpointRequest.verify = function verify(message) { + GenericOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.partialFailures != null && message.hasOwnProperty("partialFailures")) { + if (!Array.isArray(message.partialFailures)) + return "partialFailures: array expected"; + for (var i = 0; i < message.partialFailures.length; ++i) { + var error = $root.google.rpc.Status.verify(message.partialFailures[i]); + if (error) + return "partialFailures." + error; + } + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } return null; }; /** - * Creates a GetEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GenericOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} GenericOperationMetadata */ - GetEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest) + GenericOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata(); + if (object.partialFailures) { + if (!Array.isArray(object.partialFailures)) + throw TypeError(".google.cloud.aiplatform.v1beta1.GenericOperationMetadata.partialFailures: array expected"); + message.partialFailures = []; + for (var i = 0; i < object.partialFailures.length; ++i) { + if (typeof object.partialFailures[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenericOperationMetadata.partialFailures: object expected"); + message.partialFailures[i] = $root.google.rpc.Status.fromObject(object.partialFailures[i]); + } + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenericOperationMetadata.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.GenericOperationMetadata.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } return message; }; /** - * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a GenericOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.GetEndpointRequest} message GetEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.GenericOperationMetadata} message GenericOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEndpointRequest.toObject = function toObject(message, options) { + GenericOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.partialFailures = []; + if (options.defaults) { + object.createTime = null; + object.updateTime = null; + } + if (message.partialFailures && message.partialFailures.length) { + object.partialFailures = []; + for (var j = 0; j < message.partialFailures.length; ++j) + object.partialFailures[j] = $root.google.rpc.Status.toObject(message.partialFailures[j], options); + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this GetEndpointRequest to JSON. + * Converts this GenericOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.GenericOperationMetadata * @instance * @returns {Object.} JSON object */ - GetEndpointRequest.prototype.toJSON = function toJSON() { + GenericOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEndpointRequest; + return GenericOperationMetadata; })(); - v1beta1.ListEndpointsRequest = (function() { + v1beta1.DeleteOperationMetadata = (function() { /** - * Properties of a ListEndpointsRequest. + * Properties of a DeleteOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListEndpointsRequest - * @property {string|null} [parent] ListEndpointsRequest parent - * @property {string|null} [filter] ListEndpointsRequest filter - * @property {number|null} [pageSize] ListEndpointsRequest pageSize - * @property {string|null} [pageToken] ListEndpointsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListEndpointsRequest readMask + * @interface IDeleteOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeleteOperationMetadata genericMetadata */ /** - * Constructs a new ListEndpointsRequest. + * Constructs a new DeleteOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListEndpointsRequest. - * @implements IListEndpointsRequest + * @classdesc Represents a DeleteOperationMetadata. + * @implements IDeleteOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata=} [properties] Properties to set */ - function ListEndpointsRequest(properties) { + function DeleteOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -177730,127 +182413,75 @@ } /** - * ListEndpointsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @instance - */ - ListEndpointsRequest.prototype.parent = ""; - - /** - * ListEndpointsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @instance - */ - ListEndpointsRequest.prototype.filter = ""; - - /** - * ListEndpointsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @instance - */ - ListEndpointsRequest.prototype.pageSize = 0; - - /** - * ListEndpointsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest - * @instance - */ - ListEndpointsRequest.prototype.pageToken = ""; - - /** - * ListEndpointsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * DeleteOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @instance */ - ListEndpointsRequest.prototype.readMask = null; + DeleteOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ListEndpointsRequest instance using the specified properties. + * Creates a new DeleteOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata instance */ - ListEndpointsRequest.create = function create(properties) { - return new ListEndpointsRequest(properties); + DeleteOperationMetadata.create = function create(properties) { + return new DeleteOperationMetadata(properties); }; /** - * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. + * Encodes the specified DeleteOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest} message ListEndpointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata} message DeleteOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEndpointsRequest.encode = function encode(message, writer) { + DeleteOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. + * Encodes the specified DeleteOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest} message ListEndpointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteOperationMetadata} message DeleteOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer. + * Decodes a DeleteOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEndpointsRequest.decode = function decode(reader, length) { + DeleteOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -177861,147 +182492,121 @@ }; /** - * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEndpointsRequest message. + * Verifies a DeleteOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEndpointsRequest.verify = function verify(message) { + DeleteOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "readMask." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates a ListEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} DeleteOperationMetadata */ - ListEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEndpointsRequest) + DeleteOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListEndpointsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListEndpointsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeleteOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a ListEndpointsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} message ListEndpointsRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteOperationMetadata} message DeleteOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEndpointsRequest.toObject = function toObject(message, options) { + DeleteOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this ListEndpointsRequest to JSON. + * Converts this DeleteOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteOperationMetadata * @instance * @returns {Object.} JSON object */ - ListEndpointsRequest.prototype.toJSON = function toJSON() { + DeleteOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEndpointsRequest; + return DeleteOperationMetadata; })(); - v1beta1.ListEndpointsResponse = (function() { + v1beta1.SavedQuery = (function() { /** - * Properties of a ListEndpointsResponse. + * Properties of a SavedQuery. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListEndpointsResponse - * @property {Array.|null} [endpoints] ListEndpointsResponse endpoints - * @property {string|null} [nextPageToken] ListEndpointsResponse nextPageToken + * @interface ISavedQuery + * @property {string|null} [name] SavedQuery name + * @property {string|null} [displayName] SavedQuery displayName + * @property {google.protobuf.IValue|null} [metadata] SavedQuery metadata + * @property {google.protobuf.ITimestamp|null} [createTime] SavedQuery createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] SavedQuery updateTime + * @property {string|null} [annotationFilter] SavedQuery annotationFilter + * @property {string|null} [problemType] SavedQuery problemType + * @property {number|null} [annotationSpecCount] SavedQuery annotationSpecCount + * @property {string|null} [etag] SavedQuery etag + * @property {boolean|null} [supportAutomlTraining] SavedQuery supportAutomlTraining */ /** - * Constructs a new ListEndpointsResponse. + * Constructs a new SavedQuery. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListEndpointsResponse. - * @implements IListEndpointsResponse + * @classdesc Represents a SavedQuery. + * @implements ISavedQuery * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISavedQuery=} [properties] Properties to set */ - function ListEndpointsResponse(properties) { - this.endpoints = []; + function SavedQuery(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178009,91 +182614,192 @@ } /** - * ListEndpointsResponse endpoints. - * @member {Array.} endpoints - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * SavedQuery name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @instance */ - ListEndpointsResponse.prototype.endpoints = $util.emptyArray; + SavedQuery.prototype.name = ""; /** - * ListEndpointsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * SavedQuery displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @instance */ - ListEndpointsResponse.prototype.nextPageToken = ""; + SavedQuery.prototype.displayName = ""; /** - * Creates a new ListEndpointsResponse instance using the specified properties. + * SavedQuery metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery + * @instance + */ + SavedQuery.prototype.metadata = null; + + /** + * SavedQuery createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery + * @instance + */ + SavedQuery.prototype.createTime = null; + + /** + * SavedQuery updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery + * @instance + */ + SavedQuery.prototype.updateTime = null; + + /** + * SavedQuery annotationFilter. + * @member {string} annotationFilter + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery + * @instance + */ + SavedQuery.prototype.annotationFilter = ""; + + /** + * SavedQuery problemType. + * @member {string} problemType + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery + * @instance + */ + SavedQuery.prototype.problemType = ""; + + /** + * SavedQuery annotationSpecCount. + * @member {number} annotationSpecCount + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery + * @instance + */ + SavedQuery.prototype.annotationSpecCount = 0; + + /** + * SavedQuery etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery + * @instance + */ + SavedQuery.prototype.etag = ""; + + /** + * SavedQuery supportAutomlTraining. + * @member {boolean} supportAutomlTraining + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery + * @instance + */ + SavedQuery.prototype.supportAutomlTraining = false; + + /** + * Creates a new SavedQuery instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @static - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ISavedQuery=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SavedQuery} SavedQuery instance */ - ListEndpointsResponse.create = function create(properties) { - return new ListEndpointsResponse(properties); + SavedQuery.create = function create(properties) { + return new SavedQuery(properties); }; /** - * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. + * Encodes the specified SavedQuery message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @static - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse} message ListEndpointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISavedQuery} message SavedQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEndpointsResponse.encode = function encode(message, writer) { + SavedQuery.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoints != null && message.endpoints.length) - for (var i = 0; i < message.endpoints.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Endpoint.encode(message.endpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.annotationFilter != null && Object.hasOwnProperty.call(message, "annotationFilter")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.annotationFilter); + if (message.problemType != null && Object.hasOwnProperty.call(message, "problemType")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.problemType); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); + if (message.supportAutomlTraining != null && Object.hasOwnProperty.call(message, "supportAutomlTraining")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.supportAutomlTraining); + if (message.annotationSpecCount != null && Object.hasOwnProperty.call(message, "annotationSpecCount")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.annotationSpecCount); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. + * Encodes the specified SavedQuery message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SavedQuery.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @static - * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse} message ListEndpointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISavedQuery} message SavedQuery message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + SavedQuery.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEndpointsResponse message from the specified reader or buffer. + * Decodes a SavedQuery message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.SavedQuery} SavedQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEndpointsResponse.decode = function decode(reader, length) { + SavedQuery.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListEndpointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SavedQuery(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.endpoints && message.endpoints.length)) - message.endpoints = []; - message.endpoints.push($root.google.cloud.aiplatform.v1beta1.Endpoint.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.displayName = reader.string(); + break; + case 12: + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.annotationFilter = reader.string(); + break; + case 6: + message.problemType = reader.string(); + break; + case 10: + message.annotationSpecCount = reader.int32(); + break; + case 8: + message.etag = reader.string(); + break; + case 9: + message.supportAutomlTraining = reader.bool(); break; default: reader.skipType(tag & 7); @@ -178104,134 +182810,196 @@ }; /** - * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes a SavedQuery message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.SavedQuery} SavedQuery * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { + SavedQuery.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEndpointsResponse message. + * Verifies a SavedQuery message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEndpointsResponse.verify = function verify(message) { + SavedQuery.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoints != null && message.hasOwnProperty("endpoints")) { - if (!Array.isArray(message.endpoints)) - return "endpoints: array expected"; - for (var i = 0; i < message.endpoints.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Endpoint.verify(message.endpoints[i]); - if (error) - return "endpoints." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); + if (error) + return "metadata." + error; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.annotationFilter != null && message.hasOwnProperty("annotationFilter")) + if (!$util.isString(message.annotationFilter)) + return "annotationFilter: string expected"; + if (message.problemType != null && message.hasOwnProperty("problemType")) + if (!$util.isString(message.problemType)) + return "problemType: string expected"; + if (message.annotationSpecCount != null && message.hasOwnProperty("annotationSpecCount")) + if (!$util.isInteger(message.annotationSpecCount)) + return "annotationSpecCount: integer expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.supportAutomlTraining != null && message.hasOwnProperty("supportAutomlTraining")) + if (typeof message.supportAutomlTraining !== "boolean") + return "supportAutomlTraining: boolean expected"; return null; }; /** - * Creates a ListEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a SavedQuery message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.SavedQuery} SavedQuery */ - ListEndpointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEndpointsResponse) + SavedQuery.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SavedQuery) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListEndpointsResponse(); - if (object.endpoints) { - if (!Array.isArray(object.endpoints)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListEndpointsResponse.endpoints: array expected"); - message.endpoints = []; - for (var i = 0; i < object.endpoints.length; ++i) { - if (typeof object.endpoints[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListEndpointsResponse.endpoints: object expected"); - message.endpoints[i] = $root.google.cloud.aiplatform.v1beta1.Endpoint.fromObject(object.endpoints[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.SavedQuery(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SavedQuery.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SavedQuery.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SavedQuery.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.annotationFilter != null) + message.annotationFilter = String(object.annotationFilter); + if (object.problemType != null) + message.problemType = String(object.problemType); + if (object.annotationSpecCount != null) + message.annotationSpecCount = object.annotationSpecCount | 0; + if (object.etag != null) + message.etag = String(object.etag); + if (object.supportAutomlTraining != null) + message.supportAutomlTraining = Boolean(object.supportAutomlTraining); return message; }; /** - * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified. + * Creates a plain object from a SavedQuery message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @static - * @param {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} message ListEndpointsResponse + * @param {google.cloud.aiplatform.v1beta1.SavedQuery} message SavedQuery * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEndpointsResponse.toObject = function toObject(message, options) { + SavedQuery.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.endpoints = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.endpoints && message.endpoints.length) { - object.endpoints = []; - for (var j = 0; j < message.endpoints.length; ++j) - object.endpoints[j] = $root.google.cloud.aiplatform.v1beta1.Endpoint.toObject(message.endpoints[j], options); + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.createTime = null; + object.updateTime = null; + object.annotationFilter = ""; + object.problemType = ""; + object.etag = ""; + object.supportAutomlTraining = false; + object.annotationSpecCount = 0; + object.metadata = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.annotationFilter != null && message.hasOwnProperty("annotationFilter")) + object.annotationFilter = message.annotationFilter; + if (message.problemType != null && message.hasOwnProperty("problemType")) + object.problemType = message.problemType; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.supportAutomlTraining != null && message.hasOwnProperty("supportAutomlTraining")) + object.supportAutomlTraining = message.supportAutomlTraining; + if (message.annotationSpecCount != null && message.hasOwnProperty("annotationSpecCount")) + object.annotationSpecCount = message.annotationSpecCount; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); return object; }; /** - * Converts this ListEndpointsResponse to JSON. + * Converts this SavedQuery to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.SavedQuery * @instance * @returns {Object.} JSON object */ - ListEndpointsResponse.prototype.toJSON = function toJSON() { + SavedQuery.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEndpointsResponse; + return SavedQuery; })(); - v1beta1.UpdateEndpointRequest = (function() { + v1beta1.DeployedIndexRef = (function() { /** - * Properties of an UpdateEndpointRequest. + * Properties of a DeployedIndexRef. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateEndpointRequest - * @property {google.cloud.aiplatform.v1beta1.IEndpoint|null} [endpoint] UpdateEndpointRequest endpoint - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEndpointRequest updateMask + * @interface IDeployedIndexRef + * @property {string|null} [indexEndpoint] DeployedIndexRef indexEndpoint + * @property {string|null} [deployedIndexId] DeployedIndexRef deployedIndexId */ /** - * Constructs a new UpdateEndpointRequest. + * Constructs a new DeployedIndexRef. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateEndpointRequest. - * @implements IUpdateEndpointRequest + * @classdesc Represents a DeployedIndexRef. + * @implements IDeployedIndexRef * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef=} [properties] Properties to set */ - function UpdateEndpointRequest(properties) { + function DeployedIndexRef(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178239,88 +183007,88 @@ } /** - * UpdateEndpointRequest endpoint. - * @member {google.cloud.aiplatform.v1beta1.IEndpoint|null|undefined} endpoint - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * DeployedIndexRef indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @instance */ - UpdateEndpointRequest.prototype.endpoint = null; + DeployedIndexRef.prototype.indexEndpoint = ""; /** - * UpdateEndpointRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * DeployedIndexRef deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @instance */ - UpdateEndpointRequest.prototype.updateMask = null; + DeployedIndexRef.prototype.deployedIndexId = ""; /** - * Creates a new UpdateEndpointRequest instance using the specified properties. + * Creates a new DeployedIndexRef instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef instance */ - UpdateEndpointRequest.create = function create(properties) { - return new UpdateEndpointRequest(properties); + DeployedIndexRef.create = function create(properties) { + return new DeployedIndexRef(properties); }; /** - * Encodes the specified UpdateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. + * Encodes the specified DeployedIndexRef message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest} message UpdateEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef} message DeployedIndexRef message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEndpointRequest.encode = function encode(message, writer) { + DeployedIndexRef.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - $root.google.cloud.aiplatform.v1beta1.Endpoint.encode(message.endpoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified UpdateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. + * Encodes the specified DeployedIndexRef message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest} message UpdateEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexRef} message DeployedIndexRef message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeployedIndexRef.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEndpointRequest message from the specified reader or buffer. + * Decodes a DeployedIndexRef message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEndpointRequest.decode = function decode(reader, length) { + DeployedIndexRef.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.decode(reader, reader.uint32()); + message.indexEndpoint = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.deployedIndexId = reader.string(); break; default: reader.skipType(tag & 7); @@ -178331,126 +183099,132 @@ }; /** - * Decodes an UpdateEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployedIndexRef message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + DeployedIndexRef.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEndpointRequest message. + * Verifies a DeployedIndexRef message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEndpointRequest.verify = function verify(message) { + DeployedIndexRef.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) { - var error = $root.google.cloud.aiplatform.v1beta1.Endpoint.verify(message.endpoint); - if (error) - return "endpoint." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates an UpdateEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedIndexRef message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexRef} DeployedIndexRef */ - UpdateEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest) + DeployedIndexRef.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest(); - if (object.endpoint != null) { - if (typeof object.endpoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.endpoint: object expected"); - message.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.fromObject(object.endpoint); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from an UpdateEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeployedIndexRef message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} message UpdateEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexRef} message DeployedIndexRef * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEndpointRequest.toObject = function toObject(message, options) { + DeployedIndexRef.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.endpoint = null; - object.updateMask = null; + object.indexEndpoint = ""; + object.deployedIndexId = ""; } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.toObject(message.endpoint, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this UpdateEndpointRequest to JSON. + * Converts this DeployedIndexRef to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexRef * @instance * @returns {Object.} JSON object */ - UpdateEndpointRequest.prototype.toJSON = function toJSON() { + DeployedIndexRef.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEndpointRequest; + return DeployedIndexRef; })(); - v1beta1.DeleteEndpointRequest = (function() { + v1beta1.Endpoint = (function() { /** - * Properties of a DeleteEndpointRequest. + * Properties of an Endpoint. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteEndpointRequest - * @property {string|null} [name] DeleteEndpointRequest name + * @interface IEndpoint + * @property {string|null} [name] Endpoint name + * @property {string|null} [displayName] Endpoint displayName + * @property {string|null} [description] Endpoint description + * @property {Array.|null} [deployedModels] Endpoint deployedModels + * @property {Object.|null} [trafficSplit] Endpoint trafficSplit + * @property {string|null} [etag] Endpoint etag + * @property {Object.|null} [labels] Endpoint labels + * @property {google.protobuf.ITimestamp|null} [createTime] Endpoint createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Endpoint updateTime + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Endpoint encryptionSpec + * @property {string|null} [network] Endpoint network + * @property {boolean|null} [enablePrivateServiceConnect] Endpoint enablePrivateServiceConnect + * @property {string|null} [modelDeploymentMonitoringJob] Endpoint modelDeploymentMonitoringJob + * @property {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null} [predictRequestResponseLoggingConfig] Endpoint predictRequestResponseLoggingConfig */ /** - * Constructs a new DeleteEndpointRequest. + * Constructs a new Endpoint. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteEndpointRequest. - * @implements IDeleteEndpointRequest + * @classdesc Represents an Endpoint. + * @implements IEndpoint * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IEndpoint=} [properties] Properties to set */ - function DeleteEndpointRequest(properties) { + function Endpoint(properties) { + this.deployedModels = []; + this.trafficSplit = {}; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178458,291 +183232,221 @@ } /** - * DeleteEndpointRequest name. + * Endpoint name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - DeleteEndpointRequest.prototype.name = ""; + Endpoint.prototype.name = ""; /** - * Creates a new DeleteEndpointRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest instance - */ - DeleteEndpointRequest.create = function create(properties) { - return new DeleteEndpointRequest(properties); - }; - - /** - * Encodes the specified DeleteEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest} message DeleteEndpointRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Endpoint displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - DeleteEndpointRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + Endpoint.prototype.displayName = ""; /** - * Encodes the specified DeleteEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest} message DeleteEndpointRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Endpoint description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - DeleteEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Endpoint.prototype.description = ""; /** - * Decodes a DeleteEndpointRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Endpoint deployedModels. + * @member {Array.} deployedModels + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - DeleteEndpointRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + Endpoint.prototype.deployedModels = $util.emptyArray; /** - * Decodes a DeleteEndpointRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Endpoint trafficSplit. + * @member {Object.} trafficSplit + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - DeleteEndpointRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Endpoint.prototype.trafficSplit = $util.emptyObject; /** - * Verifies a DeleteEndpointRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Endpoint etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - DeleteEndpointRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Endpoint.prototype.etag = ""; /** - * Creates a DeleteEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest + * Endpoint labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - DeleteEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; + Endpoint.prototype.labels = $util.emptyObject; /** - * Creates a plain object from a DeleteEndpointRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} message DeleteEndpointRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Endpoint createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - DeleteEndpointRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + Endpoint.prototype.createTime = null; /** - * Converts this DeleteEndpointRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * Endpoint updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance - * @returns {Object.} JSON object */ - DeleteEndpointRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteEndpointRequest; - })(); - - v1beta1.DeployModelRequest = (function() { + Endpoint.prototype.updateTime = null; /** - * Properties of a DeployModelRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployModelRequest - * @property {string|null} [endpoint] DeployModelRequest endpoint - * @property {google.cloud.aiplatform.v1beta1.IDeployedModel|null} [deployedModel] DeployModelRequest deployedModel - * @property {Object.|null} [trafficSplit] DeployModelRequest trafficSplit + * Endpoint encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ + Endpoint.prototype.encryptionSpec = null; /** - * Constructs a new DeployModelRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployModelRequest. - * @implements IDeployModelRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest=} [properties] Properties to set + * Endpoint network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.Endpoint + * @instance */ - function DeployModelRequest(properties) { - this.trafficSplit = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Endpoint.prototype.network = ""; /** - * DeployModelRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * Endpoint enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - DeployModelRequest.prototype.endpoint = ""; + Endpoint.prototype.enablePrivateServiceConnect = false; /** - * DeployModelRequest deployedModel. - * @member {google.cloud.aiplatform.v1beta1.IDeployedModel|null|undefined} deployedModel - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * Endpoint modelDeploymentMonitoringJob. + * @member {string} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - DeployModelRequest.prototype.deployedModel = null; + Endpoint.prototype.modelDeploymentMonitoringJob = ""; /** - * DeployModelRequest trafficSplit. - * @member {Object.} trafficSplit - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * Endpoint predictRequestResponseLoggingConfig. + * @member {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig|null|undefined} predictRequestResponseLoggingConfig + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance */ - DeployModelRequest.prototype.trafficSplit = $util.emptyObject; + Endpoint.prototype.predictRequestResponseLoggingConfig = null; /** - * Creates a new DeployModelRequest instance using the specified properties. + * Creates a new Endpoint instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IEndpoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint instance */ - DeployModelRequest.create = function create(properties) { - return new DeployModelRequest(properties); + Endpoint.create = function create(properties) { + return new Endpoint(properties); }; /** - * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. + * Encodes the specified Endpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest} message DeployModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IEndpoint} message Endpoint message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployModelRequest.encode = function encode(message, writer) { + Endpoint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.deployedModel != null && Object.hasOwnProperty.call(message, "deployedModel")) - $root.google.cloud.aiplatform.v1beta1.DeployedModel.encode(message.deployedModel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.deployedModels != null && message.deployedModels.length) + for (var i = 0; i < message.deployedModels.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DeployedModel.encode(message.deployedModels[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); if (message.trafficSplit != null && Object.hasOwnProperty.call(message, "trafficSplit")) for (var keys = Object.keys(message.trafficSplit), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.trafficSplit[keys[i]]).ldelim(); + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.trafficSplit[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 7, wireType 2 =*/58).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.network); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.modelDeploymentMonitoringJob); + if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) + writer.uint32(/* id 17, wireType 0 =*/136).bool(message.enablePrivateServiceConnect); + if (message.predictRequestResponseLoggingConfig != null && Object.hasOwnProperty.call(message, "predictRequestResponseLoggingConfig")) + $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.encode(message.predictRequestResponseLoggingConfig, writer.uint32(/* id 18, wireType 2 =*/146).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. + * Encodes the specified Endpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Endpoint.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest} message DeployModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IEndpoint} message Endpoint message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + Endpoint.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployModelRequest message from the specified reader or buffer. + * Decodes an Endpoint message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest + * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployModelRequest.decode = function decode(reader, length) { + Endpoint.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployModelRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Endpoint(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.endpoint = reader.string(); + message.name = reader.string(); break; case 2: - message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32()); + message.displayName = reader.string(); break; case 3: + message.description = reader.string(); + break; + case 4: + if (!(message.deployedModels && message.deployedModels.length)) + message.deployedModels = []; + message.deployedModels.push($root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32())); + break; + case 5: if (message.trafficSplit === $util.emptyObject) message.trafficSplit = {}; var end2 = reader.uint32() + reader.pos; @@ -178764,6 +183468,52 @@ } message.trafficSplit[key] = value; break; + case 6: + message.etag = reader.string(); + break; + case 7: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 8: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 10: + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + case 13: + message.network = reader.string(); + break; + case 17: + message.enablePrivateServiceConnect = reader.bool(); + break; + case 14: + message.modelDeploymentMonitoringJob = reader.string(); + break; + case 18: + message.predictRequestResponseLoggingConfig = $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.decode(reader, reader.uint32()); + break; default: reader.skipType(tag & 7); break; @@ -178773,39 +183523,49 @@ }; /** - * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited. + * Decodes an Endpoint message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest + * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployModelRequest.decodeDelimited = function decodeDelimited(reader) { + Endpoint.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployModelRequest message. + * Verifies an Endpoint message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployModelRequest.verify = function verify(message) { + Endpoint.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.deployedModel != null && message.hasOwnProperty("deployedModel")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedModel.verify(message.deployedModel); - if (error) - return "deployedModel." + error; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.deployedModels != null && message.hasOwnProperty("deployedModels")) { + if (!Array.isArray(message.deployedModels)) + return "deployedModels: array expected"; + for (var i = 0; i < message.deployedModels.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedModel.verify(message.deployedModels[i]); + if (error) + return "deployedModels." + error; + } } if (message.trafficSplit != null && message.hasOwnProperty("trafficSplit")) { if (!$util.isObject(message.trafficSplit)) @@ -178815,102 +183575,238 @@ if (!$util.isInteger(message.trafficSplit[key[i]])) return "trafficSplit: integer{k:string} expected"; } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + if (typeof message.enablePrivateServiceConnect !== "boolean") + return "enablePrivateServiceConnect: boolean expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + if (!$util.isString(message.modelDeploymentMonitoringJob)) + return "modelDeploymentMonitoringJob: string expected"; + if (message.predictRequestResponseLoggingConfig != null && message.hasOwnProperty("predictRequestResponseLoggingConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify(message.predictRequestResponseLoggingConfig); + if (error) + return "predictRequestResponseLoggingConfig." + error; + } return null; }; /** - * Creates a DeployModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Endpoint message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest + * @returns {google.cloud.aiplatform.v1beta1.Endpoint} Endpoint */ - DeployModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelRequest) + Endpoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Endpoint) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployModelRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.deployedModel != null) { - if (typeof object.deployedModel !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployModelRequest.deployedModel: object expected"); - message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.fromObject(object.deployedModel); + var message = new $root.google.cloud.aiplatform.v1beta1.Endpoint(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.deployedModels) { + if (!Array.isArray(object.deployedModels)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.deployedModels: array expected"); + message.deployedModels = []; + for (var i = 0; i < object.deployedModels.length; ++i) { + if (typeof object.deployedModels[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.deployedModels: object expected"); + message.deployedModels[i] = $root.google.cloud.aiplatform.v1beta1.DeployedModel.fromObject(object.deployedModels[i]); + } } if (object.trafficSplit) { if (typeof object.trafficSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployModelRequest.trafficSplit: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.trafficSplit: object expected"); message.trafficSplit = {}; for (var keys = Object.keys(object.trafficSplit), i = 0; i < keys.length; ++i) message.trafficSplit[keys[i]] = object.trafficSplit[keys[i]] | 0; } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.network != null) + message.network = String(object.network); + if (object.enablePrivateServiceConnect != null) + message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); + if (object.modelDeploymentMonitoringJob != null) + message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); + if (object.predictRequestResponseLoggingConfig != null) { + if (typeof object.predictRequestResponseLoggingConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Endpoint.predictRequestResponseLoggingConfig: object expected"); + message.predictRequestResponseLoggingConfig = $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.fromObject(object.predictRequestResponseLoggingConfig); + } return message; }; /** - * Creates a plain object from a DeployModelRequest message. Also converts values to other types if specified. + * Creates a plain object from an Endpoint message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @static - * @param {google.cloud.aiplatform.v1beta1.DeployModelRequest} message DeployModelRequest + * @param {google.cloud.aiplatform.v1beta1.Endpoint} message Endpoint * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployModelRequest.toObject = function toObject(message, options) { + Endpoint.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) + if (options.arrays || options.defaults) + object.deployedModels = []; + if (options.objects || options.defaults) { object.trafficSplit = {}; + object.labels = {}; + } if (options.defaults) { - object.endpoint = ""; - object.deployedModel = null; + object.name = ""; + object.displayName = ""; + object.description = ""; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.encryptionSpec = null; + object.network = ""; + object.modelDeploymentMonitoringJob = ""; + object.enablePrivateServiceConnect = false; + object.predictRequestResponseLoggingConfig = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.deployedModels && message.deployedModels.length) { + object.deployedModels = []; + for (var j = 0; j < message.deployedModels.length; ++j) + object.deployedModels[j] = $root.google.cloud.aiplatform.v1beta1.DeployedModel.toObject(message.deployedModels[j], options); } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.deployedModel != null && message.hasOwnProperty("deployedModel")) - object.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.toObject(message.deployedModel, options); var keys2; if (message.trafficSplit && (keys2 = Object.keys(message.trafficSplit)).length) { object.trafficSplit = {}; for (var j = 0; j < keys2.length; ++j) object.trafficSplit[keys2[j]] = message.trafficSplit[keys2[j]]; } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; + if (message.predictRequestResponseLoggingConfig != null && message.hasOwnProperty("predictRequestResponseLoggingConfig")) + object.predictRequestResponseLoggingConfig = $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.toObject(message.predictRequestResponseLoggingConfig, options); return object; }; /** - * Converts this DeployModelRequest to JSON. + * Converts this Endpoint to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.Endpoint * @instance * @returns {Object.} JSON object */ - DeployModelRequest.prototype.toJSON = function toJSON() { + Endpoint.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployModelRequest; + return Endpoint; })(); - v1beta1.DeployModelResponse = (function() { + v1beta1.DeployedModel = (function() { /** - * Properties of a DeployModelResponse. + * Properties of a DeployedModel. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployModelResponse - * @property {google.cloud.aiplatform.v1beta1.IDeployedModel|null} [deployedModel] DeployModelResponse deployedModel + * @interface IDeployedModel + * @property {google.cloud.aiplatform.v1beta1.IDedicatedResources|null} [dedicatedResources] DeployedModel dedicatedResources + * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] DeployedModel automaticResources + * @property {string|null} [id] DeployedModel id + * @property {string|null} [model] DeployedModel model + * @property {string|null} [modelVersionId] DeployedModel modelVersionId + * @property {string|null} [displayName] DeployedModel displayName + * @property {google.protobuf.ITimestamp|null} [createTime] DeployedModel createTime + * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] DeployedModel explanationSpec + * @property {string|null} [serviceAccount] DeployedModel serviceAccount + * @property {boolean|null} [enableContainerLogging] DeployedModel enableContainerLogging + * @property {boolean|null} [enableAccessLogging] DeployedModel enableAccessLogging + * @property {google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null} [privateEndpoints] DeployedModel privateEndpoints */ /** - * Constructs a new DeployModelResponse. + * Constructs a new DeployedModel. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployModelResponse. - * @implements IDeployModelResponse + * @classdesc Represents a DeployedModel. + * @implements IDeployedModel * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployedModel=} [properties] Properties to set */ - function DeployModelResponse(properties) { + function DeployedModel(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -178918,75 +183814,232 @@ } /** - * DeployModelResponse deployedModel. - * @member {google.cloud.aiplatform.v1beta1.IDeployedModel|null|undefined} deployedModel - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * DeployedModel dedicatedResources. + * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @instance */ - DeployModelResponse.prototype.deployedModel = null; + DeployedModel.prototype.dedicatedResources = null; /** - * Creates a new DeployModelResponse instance using the specified properties. + * DeployedModel automaticResources. + * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.automaticResources = null; + + /** + * DeployedModel id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.id = ""; + + /** + * DeployedModel model. + * @member {string} model + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.model = ""; + + /** + * DeployedModel modelVersionId. + * @member {string} modelVersionId + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.modelVersionId = ""; + + /** + * DeployedModel displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.displayName = ""; + + /** + * DeployedModel createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.createTime = null; + + /** + * DeployedModel explanationSpec. + * @member {google.cloud.aiplatform.v1beta1.IExplanationSpec|null|undefined} explanationSpec + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.explanationSpec = null; + + /** + * DeployedModel serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.serviceAccount = ""; + + /** + * DeployedModel enableContainerLogging. + * @member {boolean} enableContainerLogging + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.enableContainerLogging = false; + + /** + * DeployedModel enableAccessLogging. + * @member {boolean} enableAccessLogging + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.enableAccessLogging = false; + + /** + * DeployedModel privateEndpoints. + * @member {google.cloud.aiplatform.v1beta1.IPrivateEndpoints|null|undefined} privateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + DeployedModel.prototype.privateEndpoints = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DeployedModel predictionResources. + * @member {"dedicatedResources"|"automaticResources"|undefined} predictionResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel + * @instance + */ + Object.defineProperty(DeployedModel.prototype, "predictionResources", { + get: $util.oneOfGetter($oneOfFields = ["dedicatedResources", "automaticResources"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DeployedModel instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeployedModel=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel instance */ - DeployModelResponse.create = function create(properties) { - return new DeployModelResponse(properties); + DeployedModel.create = function create(properties) { + return new DeployedModel(properties); }; /** - * Encodes the specified DeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. + * Encodes the specified DeployedModel message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse} message DeployModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployedModel} message DeployedModel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployModelResponse.encode = function encode(message, writer) { + DeployedModel.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedModel != null && Object.hasOwnProperty.call(message, "deployedModel")) - $root.google.cloud.aiplatform.v1beta1.DeployedModel.encode(message.deployedModel, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.model != null && Object.hasOwnProperty.call(message, "model")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.model); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) + $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) + $root.google.cloud.aiplatform.v1beta1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.explanationSpec != null && Object.hasOwnProperty.call(message, "explanationSpec")) + $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.serviceAccount); + if (message.enableContainerLogging != null && Object.hasOwnProperty.call(message, "enableContainerLogging")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.enableContainerLogging); + if (message.enableAccessLogging != null && Object.hasOwnProperty.call(message, "enableAccessLogging")) + writer.uint32(/* id 13, wireType 0 =*/104).bool(message.enableAccessLogging); + if (message.privateEndpoints != null && Object.hasOwnProperty.call(message, "privateEndpoints")) + $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.modelVersionId != null && Object.hasOwnProperty.call(message, "modelVersionId")) + writer.uint32(/* id 18, wireType 2 =*/146).string(message.modelVersionId); return writer; }; /** - * Encodes the specified DeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. + * Encodes the specified DeployedModel message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedModel.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse} message DeployModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployedModel} message DeployedModel message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeployedModel.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployModelResponse message from the specified reader or buffer. + * Decodes a DeployedModel message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse + * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployModelResponse.decode = function decode(reader, length) { + DeployedModel.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployModelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedModel(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 7: + message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.decode(reader, reader.uint32()); + break; + case 8: + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); + break; case 1: - message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32()); + message.id = reader.string(); + break; + case 2: + message.model = reader.string(); + break; + case 18: + message.modelVersionId = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 6: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.decode(reader, reader.uint32()); + break; + case 11: + message.serviceAccount = reader.string(); + break; + case 12: + message.enableContainerLogging = reader.bool(); + break; + case 13: + message.enableAccessLogging = reader.bool(); + break; + case 14: + message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -178997,112 +184050,237 @@ }; /** - * Decodes a DeployModelResponse message from the specified reader or buffer, length delimited. + * Decodes a DeployedModel message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse + * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployModelResponse.decodeDelimited = function decodeDelimited(reader) { + DeployedModel.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployModelResponse message. + * Verifies a DeployedModel message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployModelResponse.verify = function verify(message) { + DeployedModel.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedModel != null && message.hasOwnProperty("deployedModel")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedModel.verify(message.deployedModel); + var properties = {}; + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { + properties.predictionResources = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.verify(message.dedicatedResources); + if (error) + return "dedicatedResources." + error; + } + } + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { + if (properties.predictionResources === 1) + return "predictionResources: multiple values"; + properties.predictionResources = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); + if (error) + return "automaticResources." + error; + } + } + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.model != null && message.hasOwnProperty("model")) + if (!$util.isString(message.model)) + return "model: string expected"; + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + if (!$util.isString(message.modelVersionId)) + return "modelVersionId: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "deployedModel." + error; + return "createTime." + error; + } + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.verify(message.explanationSpec); + if (error) + return "explanationSpec." + error; + } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; + if (message.enableContainerLogging != null && message.hasOwnProperty("enableContainerLogging")) + if (typeof message.enableContainerLogging !== "boolean") + return "enableContainerLogging: boolean expected"; + if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) + if (typeof message.enableAccessLogging !== "boolean") + return "enableAccessLogging: boolean expected"; + if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) { + var error = $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify(message.privateEndpoints); + if (error) + return "privateEndpoints." + error; } return null; }; /** - * Creates a DeployModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedModel message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse + * @returns {google.cloud.aiplatform.v1beta1.DeployedModel} DeployedModel */ - DeployModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelResponse) + DeployedModel.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedModel) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployModelResponse(); - if (object.deployedModel != null) { - if (typeof object.deployedModel !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployModelResponse.deployedModel: object expected"); - message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.fromObject(object.deployedModel); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedModel(); + if (object.dedicatedResources != null) { + if (typeof object.dedicatedResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.dedicatedResources: object expected"); + message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.fromObject(object.dedicatedResources); + } + if (object.automaticResources != null) { + if (typeof object.automaticResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.automaticResources: object expected"); + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); + } + if (object.id != null) + message.id = String(object.id); + if (object.model != null) + message.model = String(object.model); + if (object.modelVersionId != null) + message.modelVersionId = String(object.modelVersionId); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.explanationSpec != null) { + if (typeof object.explanationSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.explanationSpec: object expected"); + message.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.fromObject(object.explanationSpec); + } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); + if (object.enableContainerLogging != null) + message.enableContainerLogging = Boolean(object.enableContainerLogging); + if (object.enableAccessLogging != null) + message.enableAccessLogging = Boolean(object.enableAccessLogging); + if (object.privateEndpoints != null) { + if (typeof object.privateEndpoints !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedModel.privateEndpoints: object expected"); + message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.fromObject(object.privateEndpoints); } return message; }; /** - * Creates a plain object from a DeployModelResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeployedModel message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @static - * @param {google.cloud.aiplatform.v1beta1.DeployModelResponse} message DeployModelResponse + * @param {google.cloud.aiplatform.v1beta1.DeployedModel} message DeployedModel * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployModelResponse.toObject = function toObject(message, options) { + DeployedModel.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.deployedModel = null; - if (message.deployedModel != null && message.hasOwnProperty("deployedModel")) - object.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.toObject(message.deployedModel, options); + if (options.defaults) { + object.id = ""; + object.model = ""; + object.displayName = ""; + object.createTime = null; + object.explanationSpec = null; + object.serviceAccount = ""; + object.enableContainerLogging = false; + object.enableAccessLogging = false; + object.privateEndpoints = null; + object.modelVersionId = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.model != null && message.hasOwnProperty("model")) + object.model = message.model; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { + object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); + if (options.oneofs) + object.predictionResources = "dedicatedResources"; + } + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { + object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); + if (options.oneofs) + object.predictionResources = "automaticResources"; + } + if (message.explanationSpec != null && message.hasOwnProperty("explanationSpec")) + object.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.toObject(message.explanationSpec, options); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; + if (message.enableContainerLogging != null && message.hasOwnProperty("enableContainerLogging")) + object.enableContainerLogging = message.enableContainerLogging; + if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) + object.enableAccessLogging = message.enableAccessLogging; + if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) + object.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints.toObject(message.privateEndpoints, options); + if (message.modelVersionId != null && message.hasOwnProperty("modelVersionId")) + object.modelVersionId = message.modelVersionId; return object; }; /** - * Converts this DeployModelResponse to JSON. + * Converts this DeployedModel to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.DeployedModel * @instance * @returns {Object.} JSON object */ - DeployModelResponse.prototype.toJSON = function toJSON() { + DeployedModel.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployModelResponse; + return DeployedModel; })(); - v1beta1.DeployModelOperationMetadata = (function() { + v1beta1.PrivateEndpoints = (function() { /** - * Properties of a DeployModelOperationMetadata. + * Properties of a PrivateEndpoints. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployModelOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployModelOperationMetadata genericMetadata + * @interface IPrivateEndpoints + * @property {string|null} [predictHttpUri] PrivateEndpoints predictHttpUri + * @property {string|null} [explainHttpUri] PrivateEndpoints explainHttpUri + * @property {string|null} [healthHttpUri] PrivateEndpoints healthHttpUri + * @property {string|null} [serviceAttachment] PrivateEndpoints serviceAttachment */ /** - * Constructs a new DeployModelOperationMetadata. + * Constructs a new PrivateEndpoints. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployModelOperationMetadata. - * @implements IDeployModelOperationMetadata + * @classdesc Represents a PrivateEndpoints. + * @implements IPrivateEndpoints * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints=} [properties] Properties to set */ - function DeployModelOperationMetadata(properties) { + function PrivateEndpoints(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179110,75 +184288,114 @@ } /** - * DeployModelOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * PrivateEndpoints predictHttpUri. + * @member {string} predictHttpUri + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @instance */ - DeployModelOperationMetadata.prototype.genericMetadata = null; + PrivateEndpoints.prototype.predictHttpUri = ""; /** - * Creates a new DeployModelOperationMetadata instance using the specified properties. + * PrivateEndpoints explainHttpUri. + * @member {string} explainHttpUri + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @instance + */ + PrivateEndpoints.prototype.explainHttpUri = ""; + + /** + * PrivateEndpoints healthHttpUri. + * @member {string} healthHttpUri + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @instance + */ + PrivateEndpoints.prototype.healthHttpUri = ""; + + /** + * PrivateEndpoints serviceAttachment. + * @member {string} serviceAttachment + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints + * @instance + */ + PrivateEndpoints.prototype.serviceAttachment = ""; + + /** + * Creates a new PrivateEndpoints instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints instance */ - DeployModelOperationMetadata.create = function create(properties) { - return new DeployModelOperationMetadata(properties); + PrivateEndpoints.create = function create(properties) { + return new PrivateEndpoints(properties); }; /** - * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. + * Encodes the specified PrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata} message DeployModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints} message PrivateEndpoints message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployModelOperationMetadata.encode = function encode(message, writer) { + PrivateEndpoints.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.predictHttpUri != null && Object.hasOwnProperty.call(message, "predictHttpUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.predictHttpUri); + if (message.explainHttpUri != null && Object.hasOwnProperty.call(message, "explainHttpUri")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.explainHttpUri); + if (message.healthHttpUri != null && Object.hasOwnProperty.call(message, "healthHttpUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.healthHttpUri); + if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.serviceAttachment); return writer; }; /** - * Encodes the specified DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. + * Encodes the specified PrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PrivateEndpoints.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata} message DeployModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPrivateEndpoints} message PrivateEndpoints message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + PrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployModelOperationMetadata message from the specified reader or buffer. + * Decodes a PrivateEndpoints message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployModelOperationMetadata.decode = function decode(reader, length) { + PrivateEndpoints.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.predictHttpUri = reader.string(); + break; + case 2: + message.explainHttpUri = reader.string(); + break; + case 3: + message.healthHttpUri = reader.string(); + break; + case 4: + message.serviceAttachment = reader.string(); break; default: reader.skipType(tag & 7); @@ -179189,115 +184406,134 @@ }; /** - * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a PrivateEndpoints message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + PrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployModelOperationMetadata message. + * Verifies a PrivateEndpoints message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployModelOperationMetadata.verify = function verify(message) { + PrivateEndpoints.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } + if (message.predictHttpUri != null && message.hasOwnProperty("predictHttpUri")) + if (!$util.isString(message.predictHttpUri)) + return "predictHttpUri: string expected"; + if (message.explainHttpUri != null && message.hasOwnProperty("explainHttpUri")) + if (!$util.isString(message.explainHttpUri)) + return "explainHttpUri: string expected"; + if (message.healthHttpUri != null && message.hasOwnProperty("healthHttpUri")) + if (!$util.isString(message.healthHttpUri)) + return "healthHttpUri: string expected"; + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + if (!$util.isString(message.serviceAttachment)) + return "serviceAttachment: string expected"; return null; }; /** - * Creates a DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a PrivateEndpoints message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.PrivateEndpoints} PrivateEndpoints */ - DeployModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata) + PrivateEndpoints.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1beta1.PrivateEndpoints(); + if (object.predictHttpUri != null) + message.predictHttpUri = String(object.predictHttpUri); + if (object.explainHttpUri != null) + message.explainHttpUri = String(object.explainHttpUri); + if (object.healthHttpUri != null) + message.healthHttpUri = String(object.healthHttpUri); + if (object.serviceAttachment != null) + message.serviceAttachment = String(object.serviceAttachment); return message; }; /** - * Creates a plain object from a DeployModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a PrivateEndpoints message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} message DeployModelOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.PrivateEndpoints} message PrivateEndpoints * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployModelOperationMetadata.toObject = function toObject(message, options) { + PrivateEndpoints.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.predictHttpUri = ""; + object.explainHttpUri = ""; + object.healthHttpUri = ""; + object.serviceAttachment = ""; + } + if (message.predictHttpUri != null && message.hasOwnProperty("predictHttpUri")) + object.predictHttpUri = message.predictHttpUri; + if (message.explainHttpUri != null && message.hasOwnProperty("explainHttpUri")) + object.explainHttpUri = message.explainHttpUri; + if (message.healthHttpUri != null && message.hasOwnProperty("healthHttpUri")) + object.healthHttpUri = message.healthHttpUri; + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + object.serviceAttachment = message.serviceAttachment; return object; }; /** - * Converts this DeployModelOperationMetadata to JSON. + * Converts this PrivateEndpoints to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.PrivateEndpoints * @instance * @returns {Object.} JSON object */ - DeployModelOperationMetadata.prototype.toJSON = function toJSON() { + PrivateEndpoints.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployModelOperationMetadata; + return PrivateEndpoints; })(); - v1beta1.UndeployModelRequest = (function() { + v1beta1.PredictRequestResponseLoggingConfig = (function() { /** - * Properties of an UndeployModelRequest. + * Properties of a PredictRequestResponseLoggingConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployModelRequest - * @property {string|null} [endpoint] UndeployModelRequest endpoint - * @property {string|null} [deployedModelId] UndeployModelRequest deployedModelId - * @property {Object.|null} [trafficSplit] UndeployModelRequest trafficSplit + * @interface IPredictRequestResponseLoggingConfig + * @property {boolean|null} [enabled] PredictRequestResponseLoggingConfig enabled + * @property {number|null} [samplingRate] PredictRequestResponseLoggingConfig samplingRate + * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigqueryDestination] PredictRequestResponseLoggingConfig bigqueryDestination */ /** - * Constructs a new UndeployModelRequest. + * Constructs a new PredictRequestResponseLoggingConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployModelRequest. - * @implements IUndeployModelRequest + * @classdesc Represents a PredictRequestResponseLoggingConfig. + * @implements IPredictRequestResponseLoggingConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig=} [properties] Properties to set */ - function UndeployModelRequest(properties) { - this.trafficSplit = {}; + function PredictRequestResponseLoggingConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179305,121 +184541,101 @@ } /** - * UndeployModelRequest endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * PredictRequestResponseLoggingConfig enabled. + * @member {boolean} enabled + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @instance */ - UndeployModelRequest.prototype.endpoint = ""; + PredictRequestResponseLoggingConfig.prototype.enabled = false; /** - * UndeployModelRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * PredictRequestResponseLoggingConfig samplingRate. + * @member {number} samplingRate + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @instance */ - UndeployModelRequest.prototype.deployedModelId = ""; + PredictRequestResponseLoggingConfig.prototype.samplingRate = 0; /** - * UndeployModelRequest trafficSplit. - * @member {Object.} trafficSplit - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * PredictRequestResponseLoggingConfig bigqueryDestination. + * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @instance */ - UndeployModelRequest.prototype.trafficSplit = $util.emptyObject; + PredictRequestResponseLoggingConfig.prototype.bigqueryDestination = null; /** - * Creates a new UndeployModelRequest instance using the specified properties. + * Creates a new PredictRequestResponseLoggingConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest instance + * @param {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} PredictRequestResponseLoggingConfig instance */ - UndeployModelRequest.create = function create(properties) { - return new UndeployModelRequest(properties); + PredictRequestResponseLoggingConfig.create = function create(properties) { + return new PredictRequestResponseLoggingConfig(properties); }; /** - * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. + * Encodes the specified PredictRequestResponseLoggingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest} message UndeployModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig} message PredictRequestResponseLoggingConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployModelRequest.encode = function encode(message, writer) { + PredictRequestResponseLoggingConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.trafficSplit != null && Object.hasOwnProperty.call(message, "trafficSplit")) - for (var keys = Object.keys(message.trafficSplit), i = 0; i < keys.length; ++i) - writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.trafficSplit[keys[i]]).ldelim(); + if (message.enabled != null && Object.hasOwnProperty.call(message, "enabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enabled); + if (message.samplingRate != null && Object.hasOwnProperty.call(message, "samplingRate")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.samplingRate); + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. + * Encodes the specified PredictRequestResponseLoggingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest} message UndeployModelRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IPredictRequestResponseLoggingConfig} message PredictRequestResponseLoggingConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployModelRequest.encodeDelimited = function encodeDelimited(message, writer) { + PredictRequestResponseLoggingConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployModelRequest message from the specified reader or buffer. + * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest + * @returns {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} PredictRequestResponseLoggingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployModelRequest.decode = function decode(reader, length) { + PredictRequestResponseLoggingConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployModelRequest(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.endpoint = reader.string(); + message.enabled = reader.bool(); break; case 2: - message.deployedModelId = reader.string(); + message.samplingRate = reader.double(); break; case 3: - if (message.trafficSplit === $util.emptyObject) - message.trafficSplit = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = 0; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.int32(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.trafficSplit[key] = value; + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -179430,138 +184646,397 @@ }; /** - * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited. + * Decodes a PredictRequestResponseLoggingConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest + * @returns {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} PredictRequestResponseLoggingConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployModelRequest.decodeDelimited = function decodeDelimited(reader) { + PredictRequestResponseLoggingConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployModelRequest message. + * Verifies a PredictRequestResponseLoggingConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployModelRequest.verify = function verify(message) { + PredictRequestResponseLoggingConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.trafficSplit != null && message.hasOwnProperty("trafficSplit")) { - if (!$util.isObject(message.trafficSplit)) - return "trafficSplit: object expected"; - var key = Object.keys(message.trafficSplit); - for (var i = 0; i < key.length; ++i) - if (!$util.isInteger(message.trafficSplit[key[i]])) - return "trafficSplit: integer{k:string} expected"; + if (message.enabled != null && message.hasOwnProperty("enabled")) + if (typeof message.enabled !== "boolean") + return "enabled: boolean expected"; + if (message.samplingRate != null && message.hasOwnProperty("samplingRate")) + if (typeof message.samplingRate !== "number") + return "samplingRate: number expected"; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; } return null; }; /** - * Creates an UndeployModelRequest message from a plain object. Also converts values to their respective internal types. + * Creates a PredictRequestResponseLoggingConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest + * @returns {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} PredictRequestResponseLoggingConfig */ - UndeployModelRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelRequest) + PredictRequestResponseLoggingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UndeployModelRequest(); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.trafficSplit) { - if (typeof object.trafficSplit !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UndeployModelRequest.trafficSplit: object expected"); - message.trafficSplit = {}; - for (var keys = Object.keys(object.trafficSplit), i = 0; i < keys.length; ++i) - message.trafficSplit[keys[i]] = object.trafficSplit[keys[i]] | 0; + var message = new $root.google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig(); + if (object.enabled != null) + message.enabled = Boolean(object.enabled); + if (object.samplingRate != null) + message.samplingRate = Number(object.samplingRate); + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigqueryDestination); } return message; }; /** - * Creates a plain object from an UndeployModelRequest message. Also converts values to other types if specified. + * Creates a plain object from a PredictRequestResponseLoggingConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployModelRequest} message UndeployModelRequest + * @param {google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig} message PredictRequestResponseLoggingConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployModelRequest.toObject = function toObject(message, options) { + PredictRequestResponseLoggingConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.trafficSplit = {}; if (options.defaults) { - object.endpoint = ""; - object.deployedModelId = ""; - } - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - var keys2; - if (message.trafficSplit && (keys2 = Object.keys(message.trafficSplit)).length) { - object.trafficSplit = {}; - for (var j = 0; j < keys2.length; ++j) - object.trafficSplit[keys2[j]] = message.trafficSplit[keys2[j]]; + object.enabled = false; + object.samplingRate = 0; + object.bigqueryDestination = null; } + if (message.enabled != null && message.hasOwnProperty("enabled")) + object.enabled = message.enabled; + if (message.samplingRate != null && message.hasOwnProperty("samplingRate")) + object.samplingRate = options.json && !isFinite(message.samplingRate) ? String(message.samplingRate) : message.samplingRate; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) + object.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.bigqueryDestination, options); return object; }; /** - * Converts this UndeployModelRequest to JSON. + * Converts this PredictRequestResponseLoggingConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest + * @memberof google.cloud.aiplatform.v1beta1.PredictRequestResponseLoggingConfig * @instance * @returns {Object.} JSON object */ - UndeployModelRequest.prototype.toJSON = function toJSON() { + PredictRequestResponseLoggingConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployModelRequest; + return PredictRequestResponseLoggingConfig; })(); - v1beta1.UndeployModelResponse = (function() { + v1beta1.EndpointService = (function() { /** - * Properties of an UndeployModelResponse. + * Constructs a new EndpointService service. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployModelResponse + * @classdesc Represents an EndpointService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function EndpointService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (EndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = EndpointService; + + /** + * Creates new EndpointService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {EndpointService} RPC service. Useful where requests and/or responses are streamed. */ + EndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * Constructs a new UndeployModelResponse. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#createEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @typedef CreateEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls CreateEndpoint. + * @function createEndpoint + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest} request CreateEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.EndpointService.CreateEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EndpointService.prototype.createEndpoint = function createEndpoint(request, callback) { + return this.rpcCall(createEndpoint, $root.google.cloud.aiplatform.v1beta1.CreateEndpointRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateEndpoint" }); + + /** + * Calls CreateEndpoint. + * @function createEndpoint + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest} request CreateEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#getEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @typedef GetEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Endpoint} [response] Endpoint + */ + + /** + * Calls GetEndpoint. + * @function getEndpoint + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest} request GetEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.EndpointService.GetEndpointCallback} callback Node-style callback called with the error, if any, and Endpoint + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EndpointService.prototype.getEndpoint = function getEndpoint(request, callback) { + return this.rpcCall(getEndpoint, $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest, $root.google.cloud.aiplatform.v1beta1.Endpoint, request, callback); + }, "name", { value: "GetEndpoint" }); + + /** + * Calls GetEndpoint. + * @function getEndpoint + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest} request GetEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#listEndpoints}. + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @typedef ListEndpointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} [response] ListEndpointsResponse + */ + + /** + * Calls ListEndpoints. + * @function listEndpoints + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest} request ListEndpointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.EndpointService.ListEndpointsCallback} callback Node-style callback called with the error, if any, and ListEndpointsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EndpointService.prototype.listEndpoints = function listEndpoints(request, callback) { + return this.rpcCall(listEndpoints, $root.google.cloud.aiplatform.v1beta1.ListEndpointsRequest, $root.google.cloud.aiplatform.v1beta1.ListEndpointsResponse, request, callback); + }, "name", { value: "ListEndpoints" }); + + /** + * Calls ListEndpoints. + * @function listEndpoints + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest} request ListEndpointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#updateEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @typedef UpdateEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Endpoint} [response] Endpoint + */ + + /** + * Calls UpdateEndpoint. + * @function updateEndpoint + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest} request UpdateEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.EndpointService.UpdateEndpointCallback} callback Node-style callback called with the error, if any, and Endpoint + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EndpointService.prototype.updateEndpoint = function updateEndpoint(request, callback) { + return this.rpcCall(updateEndpoint, $root.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest, $root.google.cloud.aiplatform.v1beta1.Endpoint, request, callback); + }, "name", { value: "UpdateEndpoint" }); + + /** + * Calls UpdateEndpoint. + * @function updateEndpoint + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest} request UpdateEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#deleteEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @typedef DeleteEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteEndpoint. + * @function deleteEndpoint + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest} request DeleteEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.EndpointService.DeleteEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EndpointService.prototype.deleteEndpoint = function deleteEndpoint(request, callback) { + return this.rpcCall(deleteEndpoint, $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteEndpoint" }); + + /** + * Calls DeleteEndpoint. + * @function deleteEndpoint + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest} request DeleteEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#deployModel}. + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @typedef DeployModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeployModel. + * @function deployModel + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest} request DeployModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.EndpointService.DeployModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EndpointService.prototype.deployModel = function deployModel(request, callback) { + return this.rpcCall(deployModel, $root.google.cloud.aiplatform.v1beta1.DeployModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeployModel" }); + + /** + * Calls DeployModel. + * @function deployModel + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest} request DeployModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.EndpointService#undeployModel}. + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @typedef UndeployModelCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UndeployModel. + * @function undeployModel + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest} request UndeployModelRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.EndpointService.UndeployModelCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(EndpointService.prototype.undeployModel = function undeployModel(request, callback) { + return this.rpcCall(undeployModel, $root.google.cloud.aiplatform.v1beta1.UndeployModelRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UndeployModel" }); + + /** + * Calls UndeployModel. + * @function undeployModel + * @memberof google.cloud.aiplatform.v1beta1.EndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest} request UndeployModelRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return EndpointService; + })(); + + v1beta1.CreateEndpointRequest = (function() { + + /** + * Properties of a CreateEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployModelResponse. - * @implements IUndeployModelResponse + * @interface ICreateEndpointRequest + * @property {string|null} [parent] CreateEndpointRequest parent + * @property {google.cloud.aiplatform.v1beta1.IEndpoint|null} [endpoint] CreateEndpointRequest endpoint + * @property {string|null} [endpointId] CreateEndpointRequest endpointId + */ + + /** + * Constructs a new CreateEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateEndpointRequest. + * @implements ICreateEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest=} [properties] Properties to set */ - function UndeployModelResponse(properties) { + function CreateEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179569,63 +185044,102 @@ } /** - * Creates a new UndeployModelResponse instance using the specified properties. + * CreateEndpointRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @instance + */ + CreateEndpointRequest.prototype.parent = ""; + + /** + * CreateEndpointRequest endpoint. + * @member {google.cloud.aiplatform.v1beta1.IEndpoint|null|undefined} endpoint + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @instance + */ + CreateEndpointRequest.prototype.endpoint = null; + + /** + * CreateEndpointRequest endpointId. + * @member {string} endpointId + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest + * @instance + */ + CreateEndpointRequest.prototype.endpointId = ""; + + /** + * Creates a new CreateEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest instance */ - UndeployModelResponse.create = function create(properties) { - return new UndeployModelResponse(properties); + CreateEndpointRequest.create = function create(properties) { + return new CreateEndpointRequest(properties); }; /** - * Encodes the specified UndeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. + * Encodes the specified CreateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse} message UndeployModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest} message CreateEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployModelResponse.encode = function encode(message, writer) { + CreateEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + $root.google.cloud.aiplatform.v1beta1.Endpoint.encode(message.endpoint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.endpointId != null && Object.hasOwnProperty.call(message, "endpointId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.endpointId); return writer; }; /** - * Encodes the specified UndeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. + * Encodes the specified CreateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse} message UndeployModelResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointRequest} message CreateEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployModelResponse message from the specified reader or buffer. + * Decodes a CreateEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployModelResponse.decode = function decode(reader, length) { + CreateEndpointRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployModelResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateEndpointRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.decode(reader, reader.uint32()); + break; + case 4: + message.endpointId = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -179635,94 +185149,129 @@ }; /** - * Decodes an UndeployModelResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployModelResponse.decodeDelimited = function decodeDelimited(reader) { + CreateEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployModelResponse message. + * Verifies a CreateEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployModelResponse.verify = function verify(message) { + CreateEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.Endpoint.verify(message.endpoint); + if (error) + return "endpoint." + error; + } + if (message.endpointId != null && message.hasOwnProperty("endpointId")) + if (!$util.isString(message.endpointId)) + return "endpointId: string expected"; return null; }; /** - * Creates an UndeployModelResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEndpointRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} CreateEndpointRequest */ - UndeployModelResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelResponse) + CreateEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEndpointRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.UndeployModelResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateEndpointRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.endpoint != null) { + if (typeof object.endpoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateEndpointRequest.endpoint: object expected"); + message.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.fromObject(object.endpoint); + } + if (object.endpointId != null) + message.endpointId = String(object.endpointId); + return message; }; /** - * Creates a plain object from an UndeployModelResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployModelResponse} message UndeployModelResponse + * @param {google.cloud.aiplatform.v1beta1.CreateEndpointRequest} message CreateEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployModelResponse.toObject = function toObject() { - return {}; + CreateEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.endpoint = null; + object.endpointId = ""; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.toObject(message.endpoint, options); + if (message.endpointId != null && message.hasOwnProperty("endpointId")) + object.endpointId = message.endpointId; + return object; }; /** - * Converts this UndeployModelResponse to JSON. + * Converts this CreateEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointRequest * @instance * @returns {Object.} JSON object */ - UndeployModelResponse.prototype.toJSON = function toJSON() { + CreateEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployModelResponse; + return CreateEndpointRequest; })(); - v1beta1.UndeployModelOperationMetadata = (function() { + v1beta1.CreateEndpointOperationMetadata = (function() { /** - * Properties of an UndeployModelOperationMetadata. + * Properties of a CreateEndpointOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployModelOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployModelOperationMetadata genericMetadata + * @interface ICreateEndpointOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateEndpointOperationMetadata genericMetadata */ /** - * Constructs a new UndeployModelOperationMetadata. + * Constructs a new CreateEndpointOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployModelOperationMetadata. - * @implements IUndeployModelOperationMetadata + * @classdesc Represents a CreateEndpointOperationMetadata. + * @implements ICreateEndpointOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata=} [properties] Properties to set */ - function UndeployModelOperationMetadata(properties) { + function CreateEndpointOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179730,35 +185279,35 @@ } /** - * UndeployModelOperationMetadata genericMetadata. + * CreateEndpointOperationMetadata genericMetadata. * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @instance */ - UndeployModelOperationMetadata.prototype.genericMetadata = null; + CreateEndpointOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new UndeployModelOperationMetadata instance using the specified properties. + * Creates a new CreateEndpointOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata instance */ - UndeployModelOperationMetadata.create = function create(properties) { - return new UndeployModelOperationMetadata(properties); + CreateEndpointOperationMetadata.create = function create(properties) { + return new CreateEndpointOperationMetadata(properties); }; /** - * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. + * Encodes the specified CreateEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata} message UndeployModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata} message CreateEndpointOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployModelOperationMetadata.encode = function encode(message, writer) { + CreateEndpointOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) @@ -179767,33 +185316,33 @@ }; /** - * Encodes the specified UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. + * Encodes the specified CreateEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata} message UndeployModelOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateEndpointOperationMetadata} message CreateEndpointOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer. + * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployModelOperationMetadata.decode = function decode(reader, length) { + CreateEndpointOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -179809,30 +185358,30 @@ }; /** - * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateEndpointOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployModelOperationMetadata message. + * Verifies a CreateEndpointOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployModelOperationMetadata.verify = function verify(message) { + CreateEndpointOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { @@ -179844,35 +185393,35 @@ }; /** - * Creates an UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} CreateEndpointOperationMetadata */ - UndeployModelOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata) + CreateEndpointOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata(); if (object.genericMetadata != null) { if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.genericMetadata: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata.genericMetadata: object expected"); message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from an UndeployModelOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a CreateEndpointOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} message UndeployModelOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata} message CreateEndpointOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployModelOperationMetadata.toObject = function toObject(message, options) { + CreateEndpointOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -179884,44 +185433,37 @@ }; /** - * Converts this UndeployModelOperationMetadata to JSON. + * Converts this CreateEndpointOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEndpointOperationMetadata * @instance * @returns {Object.} JSON object */ - UndeployModelOperationMetadata.prototype.toJSON = function toJSON() { + CreateEndpointOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployModelOperationMetadata; + return CreateEndpointOperationMetadata; })(); - v1beta1.EntityType = (function() { + v1beta1.GetEndpointRequest = (function() { /** - * Properties of an EntityType. + * Properties of a GetEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IEntityType - * @property {string|null} [name] EntityType name - * @property {string|null} [description] EntityType description - * @property {google.protobuf.ITimestamp|null} [createTime] EntityType createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] EntityType updateTime - * @property {Object.|null} [labels] EntityType labels - * @property {string|null} [etag] EntityType etag - * @property {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null} [monitoringConfig] EntityType monitoringConfig + * @interface IGetEndpointRequest + * @property {string|null} [name] GetEndpointRequest name */ /** - * Constructs a new EntityType. + * Constructs a new GetEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an EntityType. - * @implements IEntityType + * @classdesc Represents a GetEndpointRequest. + * @implements IGetEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IEntityType=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest=} [properties] Properties to set */ - function EntityType(properties) { - this.labels = {}; + function GetEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -179929,173 +185471,318 @@ } /** - * EntityType name. + * GetEndpointRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest * @instance */ - EntityType.prototype.name = ""; + GetEndpointRequest.prototype.name = ""; /** - * EntityType description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.EntityType - * @instance + * Creates a new GetEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest instance */ - EntityType.prototype.description = ""; + GetEndpointRequest.create = function create(properties) { + return new GetEndpointRequest(properties); + }; /** - * EntityType createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.EntityType - * @instance + * Encodes the specified GetEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest} message GetEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - EntityType.prototype.createTime = null; + GetEndpointRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * EntityType updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.EntityType - * @instance + * Encodes the specified GetEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetEndpointRequest} message GetEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - EntityType.prototype.updateTime = null; + GetEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * EntityType labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * Decodes a GetEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEndpointRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetEndpointRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetEndpointRequest} GetEndpointRequest + */ + GetEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetEndpointRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetEndpointRequest} message GetEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetEndpointRequest * @instance + * @returns {Object.} JSON object */ - EntityType.prototype.labels = $util.emptyObject; + GetEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetEndpointRequest; + })(); + + v1beta1.ListEndpointsRequest = (function() { /** - * EntityType etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * Properties of a ListEndpointsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListEndpointsRequest + * @property {string|null} [parent] ListEndpointsRequest parent + * @property {string|null} [filter] ListEndpointsRequest filter + * @property {number|null} [pageSize] ListEndpointsRequest pageSize + * @property {string|null} [pageToken] ListEndpointsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListEndpointsRequest readMask + */ + + /** + * Constructs a new ListEndpointsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListEndpointsRequest. + * @implements IListEndpointsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest=} [properties] Properties to set + */ + function ListEndpointsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListEndpointsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @instance */ - EntityType.prototype.etag = ""; + ListEndpointsRequest.prototype.parent = ""; /** - * EntityType monitoringConfig. - * @member {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null|undefined} monitoringConfig - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * ListEndpointsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @instance */ - EntityType.prototype.monitoringConfig = null; + ListEndpointsRequest.prototype.filter = ""; /** - * Creates a new EntityType instance using the specified properties. + * ListEndpointsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @instance + */ + ListEndpointsRequest.prototype.pageSize = 0; + + /** + * ListEndpointsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @instance + */ + ListEndpointsRequest.prototype.pageToken = ""; + + /** + * ListEndpointsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest + * @instance + */ + ListEndpointsRequest.prototype.readMask = null; + + /** + * Creates a new ListEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IEntityType=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType instance + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest instance */ - EntityType.create = function create(properties) { - return new EntityType(properties); + ListEndpointsRequest.create = function create(properties) { + return new ListEndpointsRequest(properties); }; /** - * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. + * Encodes the specified ListEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IEntityType} message EntityType message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest} message ListEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EntityType.encode = function encode(message, writer) { + ListEndpointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.etag); - if (message.monitoringConfig != null && Object.hasOwnProperty.call(message, "monitoringConfig")) - $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.encode(message.monitoringConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. + * Encodes the specified ListEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IEntityType} message EntityType message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsRequest} message ListEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - EntityType.encodeDelimited = function encodeDelimited(message, writer) { + ListEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an EntityType message from the specified reader or buffer. + * Decodes a ListEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityType.decode = function decode(reader, length) { + ListEndpointsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.EntityType(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListEndpointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); break; case 2: - message.description = reader.string(); + message.filter = reader.string(); break; case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 7: - message.etag = reader.string(); + message.pageToken = reader.string(); break; - case 8: - message.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.decode(reader, reader.uint32()); + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -180106,189 +185793,147 @@ }; /** - * Decodes an EntityType message from the specified reader or buffer, length delimited. + * Decodes a ListEndpointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - EntityType.decodeDelimited = function decodeDelimited(reader) { + ListEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an EntityType message. + * Verifies a ListEndpointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - EntityType.verify = function verify(message) { + ListEndpointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify(message.monitoringConfig); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "monitoringConfig." + error; + return "readMask." + error; } return null; }; /** - * Creates an EntityType message from a plain object. Also converts values to their respective internal types. + * Creates a ListEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} ListEndpointsRequest */ - EntityType.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.EntityType) + ListEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEndpointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.EntityType(); - if (object.name != null) - message.name = String(object.name); - if (object.description != null) - message.description = String(object.description); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.EntityType.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.EntityType.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.EntityType.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.monitoringConfig != null) { - if (typeof object.monitoringConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.EntityType.monitoringConfig: object expected"); - message.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.fromObject(object.monitoringConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.ListEndpointsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListEndpointsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from an EntityType message. Also converts values to other types if specified. + * Creates a plain object from a ListEndpointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.EntityType} message EntityType + * @param {google.cloud.aiplatform.v1beta1.ListEndpointsRequest} message ListEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - EntityType.toObject = function toObject(message, options) { + ListEndpointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.description = ""; - object.createTime = null; - object.updateTime = null; - object.etag = ""; - object.monitoringConfig = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) - object.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.toObject(message.monitoringConfig, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this EntityType to JSON. + * Converts this ListEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsRequest * @instance * @returns {Object.} JSON object */ - EntityType.prototype.toJSON = function toJSON() { + ListEndpointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return EntityType; + return ListEndpointsRequest; })(); - v1beta1.FeaturestoreMonitoringConfig = (function() { + v1beta1.ListEndpointsResponse = (function() { /** - * Properties of a FeaturestoreMonitoringConfig. + * Properties of a ListEndpointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeaturestoreMonitoringConfig - * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null} [snapshotAnalysis] FeaturestoreMonitoringConfig snapshotAnalysis - * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null} [importFeaturesAnalysis] FeaturestoreMonitoringConfig importFeaturesAnalysis - * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null} [numericalThresholdConfig] FeaturestoreMonitoringConfig numericalThresholdConfig - * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null} [categoricalThresholdConfig] FeaturestoreMonitoringConfig categoricalThresholdConfig + * @interface IListEndpointsResponse + * @property {Array.|null} [endpoints] ListEndpointsResponse endpoints + * @property {string|null} [nextPageToken] ListEndpointsResponse nextPageToken */ /** - * Constructs a new FeaturestoreMonitoringConfig. + * Constructs a new ListEndpointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeaturestoreMonitoringConfig. - * @implements IFeaturestoreMonitoringConfig + * @classdesc Represents a ListEndpointsResponse. + * @implements IListEndpointsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse=} [properties] Properties to set */ - function FeaturestoreMonitoringConfig(properties) { + function ListEndpointsResponse(properties) { + this.endpoints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -180296,114 +185941,318 @@ } /** - * FeaturestoreMonitoringConfig snapshotAnalysis. - * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null|undefined} snapshotAnalysis - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * ListEndpointsResponse endpoints. + * @member {Array.} endpoints + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @instance */ - FeaturestoreMonitoringConfig.prototype.snapshotAnalysis = null; + ListEndpointsResponse.prototype.endpoints = $util.emptyArray; /** - * FeaturestoreMonitoringConfig importFeaturesAnalysis. - * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null|undefined} importFeaturesAnalysis - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * ListEndpointsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @instance */ - FeaturestoreMonitoringConfig.prototype.importFeaturesAnalysis = null; + ListEndpointsResponse.prototype.nextPageToken = ""; /** - * FeaturestoreMonitoringConfig numericalThresholdConfig. - * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null|undefined} numericalThresholdConfig - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * Creates a new ListEndpointsResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse instance + */ + ListEndpointsResponse.create = function create(properties) { + return new ListEndpointsResponse(properties); + }; + + /** + * Encodes the specified ListEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse} message ListEndpointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEndpointsResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endpoints != null && message.endpoints.length) + for (var i = 0; i < message.endpoints.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Endpoint.encode(message.endpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified ListEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEndpointsResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListEndpointsResponse} message ListEndpointsResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListEndpointsResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEndpointsResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListEndpointsResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.endpoints && message.endpoints.length)) + message.endpoints = []; + message.endpoints.push($root.google.cloud.aiplatform.v1beta1.Endpoint.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListEndpointsResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListEndpointsResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListEndpointsResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.endpoints != null && message.hasOwnProperty("endpoints")) { + if (!Array.isArray(message.endpoints)) + return "endpoints: array expected"; + for (var i = 0; i < message.endpoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Endpoint.verify(message.endpoints[i]); + if (error) + return "endpoints." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a ListEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} ListEndpointsResponse + */ + ListEndpointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEndpointsResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListEndpointsResponse(); + if (object.endpoints) { + if (!Array.isArray(object.endpoints)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListEndpointsResponse.endpoints: array expected"); + message.endpoints = []; + for (var i = 0; i < object.endpoints.length; ++i) { + if (typeof object.endpoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListEndpointsResponse.endpoints: object expected"); + message.endpoints[i] = $root.google.cloud.aiplatform.v1beta1.Endpoint.fromObject(object.endpoints[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a ListEndpointsResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ListEndpointsResponse} message ListEndpointsResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListEndpointsResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.endpoints = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.endpoints && message.endpoints.length) { + object.endpoints = []; + for (var j = 0; j < message.endpoints.length; ++j) + object.endpoints[j] = $root.google.cloud.aiplatform.v1beta1.Endpoint.toObject(message.endpoints[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this ListEndpointsResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListEndpointsResponse * @instance + * @returns {Object.} JSON object */ - FeaturestoreMonitoringConfig.prototype.numericalThresholdConfig = null; + ListEndpointsResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ListEndpointsResponse; + })(); + + v1beta1.UpdateEndpointRequest = (function() { /** - * FeaturestoreMonitoringConfig categoricalThresholdConfig. - * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null|undefined} categoricalThresholdConfig - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * Properties of an UpdateEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpdateEndpointRequest + * @property {google.cloud.aiplatform.v1beta1.IEndpoint|null} [endpoint] UpdateEndpointRequest endpoint + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEndpointRequest updateMask + */ + + /** + * Constructs a new UpdateEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpdateEndpointRequest. + * @implements IUpdateEndpointRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest=} [properties] Properties to set + */ + function UpdateEndpointRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * UpdateEndpointRequest endpoint. + * @member {google.cloud.aiplatform.v1beta1.IEndpoint|null|undefined} endpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @instance */ - FeaturestoreMonitoringConfig.prototype.categoricalThresholdConfig = null; + UpdateEndpointRequest.prototype.endpoint = null; /** - * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. + * UpdateEndpointRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest + * @instance + */ + UpdateEndpointRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest instance */ - FeaturestoreMonitoringConfig.create = function create(properties) { - return new FeaturestoreMonitoringConfig(properties); + UpdateEndpointRequest.create = function create(properties) { + return new UpdateEndpointRequest(properties); }; /** - * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. + * Encodes the specified UpdateEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig} message FeaturestoreMonitoringConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest} message UpdateEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeaturestoreMonitoringConfig.encode = function encode(message, writer) { + UpdateEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.snapshotAnalysis != null && Object.hasOwnProperty.call(message, "snapshotAnalysis")) - $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.encode(message.snapshotAnalysis, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.importFeaturesAnalysis != null && Object.hasOwnProperty.call(message, "importFeaturesAnalysis")) - $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.encode(message.importFeaturesAnalysis, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.numericalThresholdConfig != null && Object.hasOwnProperty.call(message, "numericalThresholdConfig")) - $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.encode(message.numericalThresholdConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.categoricalThresholdConfig != null && Object.hasOwnProperty.call(message, "categoricalThresholdConfig")) - $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.encode(message.categoricalThresholdConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + $root.google.cloud.aiplatform.v1beta1.Endpoint.encode(message.endpoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. + * Encodes the specified UpdateEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig} message FeaturestoreMonitoringConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateEndpointRequest} message UpdateEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeaturestoreMonitoringConfig.encodeDelimited = function encodeDelimited(message, writer) { + UpdateEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. + * Decodes an UpdateEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig + * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeaturestoreMonitoringConfig.decode = function decode(reader, length) { + UpdateEndpointRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.snapshotAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.decode(reader, reader.uint32()); + message.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.decode(reader, reader.uint32()); break; case 2: - message.importFeaturesAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.decode(reader, reader.uint32()); - break; - case 3: - message.numericalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.decode(reader, reader.uint32()); - break; - case 4: - message.categoricalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -180414,913 +186263,316 @@ }; /** - * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig + * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeaturestoreMonitoringConfig.decodeDelimited = function decodeDelimited(reader) { + UpdateEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeaturestoreMonitoringConfig message. + * Verifies an UpdateEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeaturestoreMonitoringConfig.verify = function verify(message) { + UpdateEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.snapshotAnalysis != null && message.hasOwnProperty("snapshotAnalysis")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify(message.snapshotAnalysis); - if (error) - return "snapshotAnalysis." + error; - } - if (message.importFeaturesAnalysis != null && message.hasOwnProperty("importFeaturesAnalysis")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify(message.importFeaturesAnalysis); - if (error) - return "importFeaturesAnalysis." + error; - } - if (message.numericalThresholdConfig != null && message.hasOwnProperty("numericalThresholdConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify(message.numericalThresholdConfig); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.Endpoint.verify(message.endpoint); if (error) - return "numericalThresholdConfig." + error; + return "endpoint." + error; } - if (message.categoricalThresholdConfig != null && message.hasOwnProperty("categoricalThresholdConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify(message.categoricalThresholdConfig); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); if (error) - return "categoricalThresholdConfig." + error; + return "updateMask." + error; } return null; }; /** - * Creates a FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEndpointRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig + * @returns {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} UpdateEndpointRequest */ - FeaturestoreMonitoringConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) + UpdateEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig(); - if (object.snapshotAnalysis != null) { - if (typeof object.snapshotAnalysis !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.snapshotAnalysis: object expected"); - message.snapshotAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.fromObject(object.snapshotAnalysis); - } - if (object.importFeaturesAnalysis != null) { - if (typeof object.importFeaturesAnalysis !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.importFeaturesAnalysis: object expected"); - message.importFeaturesAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.fromObject(object.importFeaturesAnalysis); - } - if (object.numericalThresholdConfig != null) { - if (typeof object.numericalThresholdConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.numericalThresholdConfig: object expected"); - message.numericalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.fromObject(object.numericalThresholdConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateEndpointRequest(); + if (object.endpoint != null) { + if (typeof object.endpoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.endpoint: object expected"); + message.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.fromObject(object.endpoint); } - if (object.categoricalThresholdConfig != null) { - if (typeof object.categoricalThresholdConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.categoricalThresholdConfig: object expected"); - message.categoricalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.fromObject(object.categoricalThresholdConfig); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateEndpointRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a FeaturestoreMonitoringConfig message. Also converts values to other types if specified. + * Creates a plain object from an UpdateEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} message FeaturestoreMonitoringConfig + * @param {google.cloud.aiplatform.v1beta1.UpdateEndpointRequest} message UpdateEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeaturestoreMonitoringConfig.toObject = function toObject(message, options) { + UpdateEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.snapshotAnalysis = null; - object.importFeaturesAnalysis = null; - object.numericalThresholdConfig = null; - object.categoricalThresholdConfig = null; + object.endpoint = null; + object.updateMask = null; } - if (message.snapshotAnalysis != null && message.hasOwnProperty("snapshotAnalysis")) - object.snapshotAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.toObject(message.snapshotAnalysis, options); - if (message.importFeaturesAnalysis != null && message.hasOwnProperty("importFeaturesAnalysis")) - object.importFeaturesAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.toObject(message.importFeaturesAnalysis, options); - if (message.numericalThresholdConfig != null && message.hasOwnProperty("numericalThresholdConfig")) - object.numericalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.toObject(message.numericalThresholdConfig, options); - if (message.categoricalThresholdConfig != null && message.hasOwnProperty("categoricalThresholdConfig")) - object.categoricalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.toObject(message.categoricalThresholdConfig, options); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = $root.google.cloud.aiplatform.v1beta1.Endpoint.toObject(message.endpoint, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this FeaturestoreMonitoringConfig to JSON. + * Converts this UpdateEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateEndpointRequest * @instance * @returns {Object.} JSON object */ - FeaturestoreMonitoringConfig.prototype.toJSON = function toJSON() { + UpdateEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - FeaturestoreMonitoringConfig.SnapshotAnalysis = (function() { + return UpdateEndpointRequest; + })(); - /** - * Properties of a SnapshotAnalysis. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - * @interface ISnapshotAnalysis - * @property {boolean|null} [disabled] SnapshotAnalysis disabled - * @property {google.protobuf.IDuration|null} [monitoringInterval] SnapshotAnalysis monitoringInterval - * @property {number|null} [monitoringIntervalDays] SnapshotAnalysis monitoringIntervalDays - * @property {number|null} [stalenessDays] SnapshotAnalysis stalenessDays - */ + v1beta1.DeleteEndpointRequest = (function() { - /** - * Constructs a new SnapshotAnalysis. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - * @classdesc Represents a SnapshotAnalysis. - * @implements ISnapshotAnalysis - * @constructor - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis=} [properties] Properties to set - */ - function SnapshotAnalysis(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a DeleteEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteEndpointRequest + * @property {string|null} [name] DeleteEndpointRequest name + */ - /** - * SnapshotAnalysis disabled. - * @member {boolean} disabled - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @instance - */ - SnapshotAnalysis.prototype.disabled = false; + /** + * Constructs a new DeleteEndpointRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteEndpointRequest. + * @implements IDeleteEndpointRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest=} [properties] Properties to set + */ + function DeleteEndpointRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SnapshotAnalysis monitoringInterval. - * @member {google.protobuf.IDuration|null|undefined} monitoringInterval - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @instance - */ - SnapshotAnalysis.prototype.monitoringInterval = null; + /** + * DeleteEndpointRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @instance + */ + DeleteEndpointRequest.prototype.name = ""; - /** - * SnapshotAnalysis monitoringIntervalDays. - * @member {number} monitoringIntervalDays - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @instance - */ - SnapshotAnalysis.prototype.monitoringIntervalDays = 0; + /** + * Creates a new DeleteEndpointRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest instance + */ + DeleteEndpointRequest.create = function create(properties) { + return new DeleteEndpointRequest(properties); + }; - /** - * SnapshotAnalysis stalenessDays. - * @member {number} stalenessDays - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @instance - */ - SnapshotAnalysis.prototype.stalenessDays = 0; + /** + * Encodes the specified DeleteEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest} message DeleteEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEndpointRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; - /** - * Creates a new SnapshotAnalysis instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} SnapshotAnalysis instance - */ - SnapshotAnalysis.create = function create(properties) { - return new SnapshotAnalysis(properties); - }; + /** + * Encodes the specified DeleteEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEndpointRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeleteEndpointRequest} message DeleteEndpointRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DeleteEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Encodes the specified SnapshotAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis} message SnapshotAnalysis message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SnapshotAnalysis.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); - if (message.monitoringInterval != null && Object.hasOwnProperty.call(message, "monitoringInterval")) - $root.google.protobuf.Duration.encode(message.monitoringInterval, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.monitoringIntervalDays != null && Object.hasOwnProperty.call(message, "monitoringIntervalDays")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.monitoringIntervalDays); - if (message.stalenessDays != null && Object.hasOwnProperty.call(message, "stalenessDays")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.stalenessDays); - return writer; - }; - - /** - * Encodes the specified SnapshotAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis} message SnapshotAnalysis message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SnapshotAnalysis.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SnapshotAnalysis message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} SnapshotAnalysis - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SnapshotAnalysis.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.disabled = reader.bool(); - break; - case 2: - message.monitoringInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 3: - message.monitoringIntervalDays = reader.int32(); - break; - case 4: - message.stalenessDays = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SnapshotAnalysis message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} SnapshotAnalysis - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SnapshotAnalysis.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SnapshotAnalysis message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SnapshotAnalysis.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.disabled != null && message.hasOwnProperty("disabled")) - if (typeof message.disabled !== "boolean") - return "disabled: boolean expected"; - if (message.monitoringInterval != null && message.hasOwnProperty("monitoringInterval")) { - var error = $root.google.protobuf.Duration.verify(message.monitoringInterval); - if (error) - return "monitoringInterval." + error; - } - if (message.monitoringIntervalDays != null && message.hasOwnProperty("monitoringIntervalDays")) - if (!$util.isInteger(message.monitoringIntervalDays)) - return "monitoringIntervalDays: integer expected"; - if (message.stalenessDays != null && message.hasOwnProperty("stalenessDays")) - if (!$util.isInteger(message.stalenessDays)) - return "stalenessDays: integer expected"; - return null; - }; - - /** - * Creates a SnapshotAnalysis message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} SnapshotAnalysis - */ - SnapshotAnalysis.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis(); - if (object.disabled != null) - message.disabled = Boolean(object.disabled); - if (object.monitoringInterval != null) { - if (typeof object.monitoringInterval !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoringInterval: object expected"); - message.monitoringInterval = $root.google.protobuf.Duration.fromObject(object.monitoringInterval); - } - if (object.monitoringIntervalDays != null) - message.monitoringIntervalDays = object.monitoringIntervalDays | 0; - if (object.stalenessDays != null) - message.stalenessDays = object.stalenessDays | 0; - return message; - }; - - /** - * Creates a plain object from a SnapshotAnalysis message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} message SnapshotAnalysis - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SnapshotAnalysis.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.disabled = false; - object.monitoringInterval = null; - object.monitoringIntervalDays = 0; - object.stalenessDays = 0; - } - if (message.disabled != null && message.hasOwnProperty("disabled")) - object.disabled = message.disabled; - if (message.monitoringInterval != null && message.hasOwnProperty("monitoringInterval")) - object.monitoringInterval = $root.google.protobuf.Duration.toObject(message.monitoringInterval, options); - if (message.monitoringIntervalDays != null && message.hasOwnProperty("monitoringIntervalDays")) - object.monitoringIntervalDays = message.monitoringIntervalDays; - if (message.stalenessDays != null && message.hasOwnProperty("stalenessDays")) - object.stalenessDays = message.stalenessDays; - return object; - }; - - /** - * Converts this SnapshotAnalysis to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis - * @instance - * @returns {Object.} JSON object - */ - SnapshotAnalysis.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SnapshotAnalysis; - })(); - - FeaturestoreMonitoringConfig.ImportFeaturesAnalysis = (function() { - - /** - * Properties of an ImportFeaturesAnalysis. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - * @interface IImportFeaturesAnalysis - * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|null} [state] ImportFeaturesAnalysis state - * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|null} [anomalyDetectionBaseline] ImportFeaturesAnalysis anomalyDetectionBaseline - */ - - /** - * Constructs a new ImportFeaturesAnalysis. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - * @classdesc Represents an ImportFeaturesAnalysis. - * @implements IImportFeaturesAnalysis - * @constructor - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis=} [properties] Properties to set - */ - function ImportFeaturesAnalysis(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ImportFeaturesAnalysis state. - * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State} state - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @instance - */ - ImportFeaturesAnalysis.prototype.state = 0; - - /** - * ImportFeaturesAnalysis anomalyDetectionBaseline. - * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline} anomalyDetectionBaseline - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @instance - */ - ImportFeaturesAnalysis.prototype.anomalyDetectionBaseline = 0; - - /** - * Creates a new ImportFeaturesAnalysis instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis} ImportFeaturesAnalysis instance - */ - ImportFeaturesAnalysis.create = function create(properties) { - return new ImportFeaturesAnalysis(properties); - }; - - /** - * Encodes the specified ImportFeaturesAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis} message ImportFeaturesAnalysis message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportFeaturesAnalysis.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); - if (message.anomalyDetectionBaseline != null && Object.hasOwnProperty.call(message, "anomalyDetectionBaseline")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.anomalyDetectionBaseline); - return writer; - }; - - /** - * Encodes the specified ImportFeaturesAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis} message ImportFeaturesAnalysis message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ImportFeaturesAnalysis.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis} ImportFeaturesAnalysis - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportFeaturesAnalysis.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.state = reader.int32(); - break; - case 2: - message.anomalyDetectionBaseline = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis} ImportFeaturesAnalysis - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ImportFeaturesAnalysis.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an ImportFeaturesAnalysis message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ImportFeaturesAnalysis.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.anomalyDetectionBaseline != null && message.hasOwnProperty("anomalyDetectionBaseline")) - switch (message.anomalyDetectionBaseline) { - default: - return "anomalyDetectionBaseline: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - return null; - }; - - /** - * Creates an ImportFeaturesAnalysis message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis} ImportFeaturesAnalysis - */ - ImportFeaturesAnalysis.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis(); - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "DEFAULT": - case 1: - message.state = 1; - break; - case "ENABLED": - case 2: - message.state = 2; - break; - case "DISABLED": - case 3: - message.state = 3; - break; - } - switch (object.anomalyDetectionBaseline) { - case "BASELINE_UNSPECIFIED": - case 0: - message.anomalyDetectionBaseline = 0; - break; - case "LATEST_STATS": + /** + * Decodes a DeleteEndpointRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEndpointRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 1: - message.anomalyDetectionBaseline = 1; - break; - case "MOST_RECENT_SNAPSHOT_STATS": - case 2: - message.anomalyDetectionBaseline = 2; + message.name = reader.string(); break; - case "PREVIOUS_IMPORT_FEATURES_STATS": - case 3: - message.anomalyDetectionBaseline = 3; + default: + reader.skipType(tag & 7); break; } - return message; - }; - - /** - * Creates a plain object from an ImportFeaturesAnalysis message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis} message ImportFeaturesAnalysis - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ImportFeaturesAnalysis.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.anomalyDetectionBaseline = options.enums === String ? "BASELINE_UNSPECIFIED" : 0; - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State[message.state] : message.state; - if (message.anomalyDetectionBaseline != null && message.hasOwnProperty("anomalyDetectionBaseline")) - object.anomalyDetectionBaseline = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline[message.anomalyDetectionBaseline] : message.anomalyDetectionBaseline; - return object; - }; - - /** - * Converts this ImportFeaturesAnalysis to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis - * @instance - * @returns {Object.} JSON object - */ - ImportFeaturesAnalysis.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * State enum. - * @name google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} DEFAULT=1 DEFAULT value - * @property {number} ENABLED=2 ENABLED value - * @property {number} DISABLED=3 DISABLED value - */ - ImportFeaturesAnalysis.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "DEFAULT"] = 1; - values[valuesById[2] = "ENABLED"] = 2; - values[valuesById[3] = "DISABLED"] = 3; - return values; - })(); - - /** - * Baseline enum. - * @name google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline - * @enum {number} - * @property {number} BASELINE_UNSPECIFIED=0 BASELINE_UNSPECIFIED value - * @property {number} LATEST_STATS=1 LATEST_STATS value - * @property {number} MOST_RECENT_SNAPSHOT_STATS=2 MOST_RECENT_SNAPSHOT_STATS value - * @property {number} PREVIOUS_IMPORT_FEATURES_STATS=3 PREVIOUS_IMPORT_FEATURES_STATS value - */ - ImportFeaturesAnalysis.Baseline = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "BASELINE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LATEST_STATS"] = 1; - values[valuesById[2] = "MOST_RECENT_SNAPSHOT_STATS"] = 2; - values[valuesById[3] = "PREVIOUS_IMPORT_FEATURES_STATS"] = 3; - return values; - })(); - - return ImportFeaturesAnalysis; - })(); - - FeaturestoreMonitoringConfig.ThresholdConfig = (function() { - - /** - * Properties of a ThresholdConfig. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - * @interface IThresholdConfig - * @property {number|null} [value] ThresholdConfig value - */ - - /** - * Constructs a new ThresholdConfig. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig - * @classdesc Represents a ThresholdConfig. - * @implements IThresholdConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig=} [properties] Properties to set - */ - function ThresholdConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; } + return message; + }; - /** - * ThresholdConfig value. - * @member {number|null|undefined} value - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @instance - */ - ThresholdConfig.prototype.value = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ThresholdConfig threshold. - * @member {"value"|undefined} threshold - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @instance - */ - Object.defineProperty(ThresholdConfig.prototype, "threshold", { - get: $util.oneOfGetter($oneOfFields = ["value"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ThresholdConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig} ThresholdConfig instance - */ - ThresholdConfig.create = function create(properties) { - return new ThresholdConfig(properties); - }; - - /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig} message ThresholdConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThresholdConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); - return writer; - }; - - /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig} message ThresholdConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ThresholdConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig} ThresholdConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThresholdConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = reader.double(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig} ThresholdConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ThresholdConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ThresholdConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ThresholdConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.threshold = 1; - if (typeof message.value !== "number") - return "value: number expected"; - } - return null; - }; + /** + * Decodes a DeleteEndpointRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DeleteEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig} ThresholdConfig - */ - ThresholdConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig(); - if (object.value != null) - message.value = Number(object.value); - return message; - }; + /** + * Verifies a DeleteEndpointRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DeleteEndpointRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; - /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig} message ThresholdConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ThresholdConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.value != null && message.hasOwnProperty("value")) { - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (options.oneofs) - object.threshold = "value"; - } + /** + * Creates a DeleteEndpointRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} DeleteEndpointRequest + */ + DeleteEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteEndpointRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; - /** - * Converts this ThresholdConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig - * @instance - * @returns {Object.} JSON object - */ - ThresholdConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a DeleteEndpointRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.DeleteEndpointRequest} message DeleteEndpointRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DeleteEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; - return ThresholdConfig; - })(); + /** + * Converts this DeleteEndpointRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeleteEndpointRequest + * @instance + * @returns {Object.} JSON object + */ + DeleteEndpointRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return FeaturestoreMonitoringConfig; + return DeleteEndpointRequest; })(); - v1beta1.Event = (function() { + v1beta1.DeployModelRequest = (function() { /** - * Properties of an Event. + * Properties of a DeployModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IEvent - * @property {string|null} [artifact] Event artifact - * @property {string|null} [execution] Event execution - * @property {google.protobuf.ITimestamp|null} [eventTime] Event eventTime - * @property {google.cloud.aiplatform.v1beta1.Event.Type|null} [type] Event type - * @property {Object.|null} [labels] Event labels + * @interface IDeployModelRequest + * @property {string|null} [endpoint] DeployModelRequest endpoint + * @property {google.cloud.aiplatform.v1beta1.IDeployedModel|null} [deployedModel] DeployModelRequest deployedModel + * @property {Object.|null} [trafficSplit] DeployModelRequest trafficSplit */ /** - * Constructs a new Event. + * Constructs a new DeployModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Event. - * @implements IEvent + * @classdesc Represents a DeployModelRequest. + * @implements IDeployModelRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IEvent=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest=} [properties] Properties to set */ - function Event(properties) { - this.labels = {}; + function DeployModelRequest(properties) { + this.trafficSplit = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181328,132 +186580,106 @@ } /** - * Event artifact. - * @member {string} artifact - * @memberof google.cloud.aiplatform.v1beta1.Event - * @instance - */ - Event.prototype.artifact = ""; - - /** - * Event execution. - * @member {string} execution - * @memberof google.cloud.aiplatform.v1beta1.Event - * @instance - */ - Event.prototype.execution = ""; - - /** - * Event eventTime. - * @member {google.protobuf.ITimestamp|null|undefined} eventTime - * @memberof google.cloud.aiplatform.v1beta1.Event + * DeployModelRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @instance */ - Event.prototype.eventTime = null; + DeployModelRequest.prototype.endpoint = ""; /** - * Event type. - * @member {google.cloud.aiplatform.v1beta1.Event.Type} type - * @memberof google.cloud.aiplatform.v1beta1.Event + * DeployModelRequest deployedModel. + * @member {google.cloud.aiplatform.v1beta1.IDeployedModel|null|undefined} deployedModel + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @instance */ - Event.prototype.type = 0; + DeployModelRequest.prototype.deployedModel = null; /** - * Event labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Event + * DeployModelRequest trafficSplit. + * @member {Object.} trafficSplit + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @instance */ - Event.prototype.labels = $util.emptyObject; + DeployModelRequest.prototype.trafficSplit = $util.emptyObject; /** - * Creates a new Event instance using the specified properties. + * Creates a new DeployModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IEvent=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Event} Event instance + * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest instance */ - Event.create = function create(properties) { - return new Event(properties); + DeployModelRequest.create = function create(properties) { + return new DeployModelRequest(properties); }; /** - * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. + * Encodes the specified DeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IEvent} message Event message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest} message DeployModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Event.encode = function encode(message, writer) { + DeployModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); - if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.execution); - if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) - $root.google.protobuf.Timestamp.encode(message.eventTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.type); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.deployedModel != null && Object.hasOwnProperty.call(message, "deployedModel")) + $root.google.cloud.aiplatform.v1beta1.DeployedModel.encode(message.deployedModel, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.trafficSplit != null && Object.hasOwnProperty.call(message, "trafficSplit")) + for (var keys = Object.keys(message.trafficSplit), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.trafficSplit[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. + * Encodes the specified DeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IEvent} message Event message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployModelRequest} message DeployModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Event.encodeDelimited = function encodeDelimited(message, writer) { + DeployModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Event message from the specified reader or buffer. + * Decodes a DeployModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Event} Event + * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Event.decode = function decode(reader, length) { + DeployModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Event(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployModelRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.artifact = reader.string(); + message.endpoint = reader.string(); break; case 2: - message.execution = reader.string(); + message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32()); break; case 3: - message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 4: - message.type = reader.int32(); - break; - case 5: - if (message.labels === $util.emptyObject) - message.labels = {}; + if (message.trafficSplit === $util.emptyObject) + message.trafficSplit = {}; var end2 = reader.uint32() + reader.pos; key = ""; - value = ""; + value = 0; while (reader.pos < end2) { var tag2 = reader.uint32(); switch (tag2 >>> 3) { @@ -181461,14 +186687,14 @@ key = reader.string(); break; case 2: - value = reader.string(); + value = reader.int32(); break; default: reader.skipType(tag2 & 7); break; } } - message.labels[key] = value; + message.trafficSplit[key] = value; break; default: reader.skipType(tag & 7); @@ -181479,205 +186705,144 @@ }; /** - * Decodes an Event message from the specified reader or buffer, length delimited. + * Decodes a DeployModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Event} Event + * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Event.decodeDelimited = function decodeDelimited(reader) { + DeployModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Event message. + * Verifies a DeployModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Event.verify = function verify(message) { + DeployModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.artifact != null && message.hasOwnProperty("artifact")) - if (!$util.isString(message.artifact)) - return "artifact: string expected"; - if (message.execution != null && message.hasOwnProperty("execution")) - if (!$util.isString(message.execution)) - return "execution: string expected"; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.eventTime); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.deployedModel != null && message.hasOwnProperty("deployedModel")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedModel.verify(message.deployedModel); if (error) - return "eventTime." + error; + return "deployedModel." + error; } - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); + if (message.trafficSplit != null && message.hasOwnProperty("trafficSplit")) { + if (!$util.isObject(message.trafficSplit)) + return "trafficSplit: object expected"; + var key = Object.keys(message.trafficSplit); for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + if (!$util.isInteger(message.trafficSplit[key[i]])) + return "trafficSplit: integer{k:string} expected"; } return null; }; /** - * Creates an Event message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Event} Event + * @returns {google.cloud.aiplatform.v1beta1.DeployModelRequest} DeployModelRequest */ - Event.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Event) + DeployModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Event(); - if (object.artifact != null) - message.artifact = String(object.artifact); - if (object.execution != null) - message.execution = String(object.execution); - if (object.eventTime != null) { - if (typeof object.eventTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Event.eventTime: object expected"); - message.eventTime = $root.google.protobuf.Timestamp.fromObject(object.eventTime); - } - switch (object.type) { - case "TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "INPUT": - case 1: - message.type = 1; - break; - case "OUTPUT": - case 2: - message.type = 2; - break; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployModelRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.deployedModel != null) { + if (typeof object.deployedModel !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployModelRequest.deployedModel: object expected"); + message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.fromObject(object.deployedModel); } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Event.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + if (object.trafficSplit) { + if (typeof object.trafficSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployModelRequest.trafficSplit: object expected"); + message.trafficSplit = {}; + for (var keys = Object.keys(object.trafficSplit), i = 0; i < keys.length; ++i) + message.trafficSplit[keys[i]] = object.trafficSplit[keys[i]] | 0; } return message; }; /** - * Creates a plain object from an Event message. Also converts values to other types if specified. + * Creates a plain object from a DeployModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Event} message Event + * @param {google.cloud.aiplatform.v1beta1.DeployModelRequest} message DeployModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Event.toObject = function toObject(message, options) { + DeployModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.objects || options.defaults) - object.labels = {}; + object.trafficSplit = {}; if (options.defaults) { - object.artifact = ""; - object.execution = ""; - object.eventTime = null; - object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + object.endpoint = ""; + object.deployedModel = null; } - if (message.artifact != null && message.hasOwnProperty("artifact")) - object.artifact = message.artifact; - if (message.execution != null && message.hasOwnProperty("execution")) - object.execution = message.execution; - if (message.eventTime != null && message.hasOwnProperty("eventTime")) - object.eventTime = $root.google.protobuf.Timestamp.toObject(message.eventTime, options); - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Event.Type[message.type] : message.type; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.deployedModel != null && message.hasOwnProperty("deployedModel")) + object.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.toObject(message.deployedModel, options); var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; + if (message.trafficSplit && (keys2 = Object.keys(message.trafficSplit)).length) { + object.trafficSplit = {}; for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.trafficSplit[keys2[j]] = message.trafficSplit[keys2[j]]; } return object; }; /** - * Converts this Event to JSON. + * Converts this DeployModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Event + * @memberof google.cloud.aiplatform.v1beta1.DeployModelRequest * @instance * @returns {Object.} JSON object */ - Event.prototype.toJSON = function toJSON() { + DeployModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * Type enum. - * @name google.cloud.aiplatform.v1beta1.Event.Type - * @enum {number} - * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value - * @property {number} INPUT=1 INPUT value - * @property {number} OUTPUT=2 OUTPUT value - */ - Event.Type = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "INPUT"] = 1; - values[valuesById[2] = "OUTPUT"] = 2; - return values; - })(); - - return Event; + return DeployModelRequest; })(); - v1beta1.Execution = (function() { + v1beta1.DeployModelResponse = (function() { /** - * Properties of an Execution. + * Properties of a DeployModelResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExecution - * @property {string|null} [name] Execution name - * @property {string|null} [displayName] Execution displayName - * @property {google.cloud.aiplatform.v1beta1.Execution.State|null} [state] Execution state - * @property {string|null} [etag] Execution etag - * @property {Object.|null} [labels] Execution labels - * @property {google.protobuf.ITimestamp|null} [createTime] Execution createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Execution updateTime - * @property {string|null} [schemaTitle] Execution schemaTitle - * @property {string|null} [schemaVersion] Execution schemaVersion - * @property {google.protobuf.IStruct|null} [metadata] Execution metadata - * @property {string|null} [description] Execution description + * @interface IDeployModelResponse + * @property {google.cloud.aiplatform.v1beta1.IDeployedModel|null} [deployedModel] DeployModelResponse deployedModel */ /** - * Constructs a new Execution. + * Constructs a new DeployModelResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Execution. - * @implements IExecution + * @classdesc Represents a DeployModelResponse. + * @implements IDeployModelResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExecution=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse=} [properties] Properties to set */ - function Execution(properties) { - this.labels = {}; + function DeployModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -181685,225 +186850,267 @@ } /** - * Execution name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Execution + * DeployModelResponse deployedModel. + * @member {google.cloud.aiplatform.v1beta1.IDeployedModel|null|undefined} deployedModel + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse * @instance */ - Execution.prototype.name = ""; + DeployModelResponse.prototype.deployedModel = null; /** - * Execution displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Execution - * @instance + * Creates a new DeployModelResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse instance */ - Execution.prototype.displayName = ""; + DeployModelResponse.create = function create(properties) { + return new DeployModelResponse(properties); + }; /** - * Execution state. - * @member {google.cloud.aiplatform.v1beta1.Execution.State} state - * @memberof google.cloud.aiplatform.v1beta1.Execution - * @instance + * Encodes the specified DeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse} message DeployModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Execution.prototype.state = 0; + DeployModelResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.deployedModel != null && Object.hasOwnProperty.call(message, "deployedModel")) + $root.google.cloud.aiplatform.v1beta1.DeployedModel.encode(message.deployedModel, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * Execution etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Execution - * @instance + * Encodes the specified DeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IDeployModelResponse} message DeployModelResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Execution.prototype.etag = ""; + DeployModelResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Execution labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Execution - * @instance + * Decodes a DeployModelResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Execution.prototype.labels = $util.emptyObject; + DeployModelResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployModelResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Execution createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Execution - * @instance + * Decodes a DeployModelResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Execution.prototype.createTime = null; + DeployModelResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Execution updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Execution - * @instance + * Verifies a DeployModelResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Execution.prototype.updateTime = null; + DeployModelResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.deployedModel != null && message.hasOwnProperty("deployedModel")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedModel.verify(message.deployedModel); + if (error) + return "deployedModel." + error; + } + return null; + }; /** - * Execution schemaTitle. - * @member {string} schemaTitle - * @memberof google.cloud.aiplatform.v1beta1.Execution - * @instance + * Creates a DeployModelResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeployModelResponse} DeployModelResponse */ - Execution.prototype.schemaTitle = ""; + DeployModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployModelResponse(); + if (object.deployedModel != null) { + if (typeof object.deployedModel !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployModelResponse.deployedModel: object expected"); + message.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.fromObject(object.deployedModel); + } + return message; + }; /** - * Execution schemaVersion. - * @member {string} schemaVersion - * @memberof google.cloud.aiplatform.v1beta1.Execution - * @instance + * Creates a plain object from a DeployModelResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployModelResponse} message DeployModelResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Execution.prototype.schemaVersion = ""; + DeployModelResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.deployedModel = null; + if (message.deployedModel != null && message.hasOwnProperty("deployedModel")) + object.deployedModel = $root.google.cloud.aiplatform.v1beta1.DeployedModel.toObject(message.deployedModel, options); + return object; + }; /** - * Execution metadata. - * @member {google.protobuf.IStruct|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.Execution + * Converts this DeployModelResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployModelResponse * @instance + * @returns {Object.} JSON object */ - Execution.prototype.metadata = null; + DeployModelResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return DeployModelResponse; + })(); + + v1beta1.DeployModelOperationMetadata = (function() { /** - * Execution description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Execution + * Properties of a DeployModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeployModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployModelOperationMetadata genericMetadata + */ + + /** + * Constructs a new DeployModelOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeployModelOperationMetadata. + * @implements IDeployModelOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata=} [properties] Properties to set + */ + function DeployModelOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DeployModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @instance */ - Execution.prototype.description = ""; + DeployModelOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new Execution instance using the specified properties. + * Creates a new DeployModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExecution=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution instance + * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata instance */ - Execution.create = function create(properties) { - return new Execution(properties); + DeployModelOperationMetadata.create = function create(properties) { + return new DeployModelOperationMetadata(properties); }; /** - * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. + * Encodes the specified DeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExecution} message Execution message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata} message DeployModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Execution.encode = function encode(message, writer) { + DeployModelOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.schemaTitle != null && Object.hasOwnProperty.call(message, "schemaTitle")) - writer.uint32(/* id 13, wireType 2 =*/106).string(message.schemaTitle); - if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) - writer.uint32(/* id 14, wireType 2 =*/114).string(message.schemaVersion); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.description); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. + * Encodes the specified DeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IExecution} message Execution message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployModelOperationMetadata} message DeployModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Execution.encodeDelimited = function encodeDelimited(message, writer) { + DeployModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Execution message from the specified reader or buffer. + * Decodes a DeployModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution + * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Execution.decode = function decode(reader, length) { + DeployModelOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Execution(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 6: - message.state = reader.int32(); - break; - case 9: - message.etag = reader.string(); - break; - case 10: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 11: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 13: - message.schemaTitle = reader.string(); - break; - case 14: - message.schemaVersion = reader.string(); - break; - case 15: - message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); - break; - case 16: - message.description = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -181914,293 +187121,115 @@ }; /** - * Decodes an Execution message from the specified reader or buffer, length delimited. + * Decodes a DeployModelOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution + * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Execution.decodeDelimited = function decodeDelimited(reader) { + DeployModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Execution message. + * Verifies a DeployModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Execution.verify = function verify(message) { + DeployModelOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - break; - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) - if (!$util.isString(message.schemaTitle)) - return "schemaTitle: string expected"; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - if (!$util.isString(message.schemaVersion)) - return "schemaVersion: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Struct.verify(message.metadata); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "metadata." + error; + return "genericMetadata." + error; } - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; return null; }; /** - * Creates an Execution message from a plain object. Also converts values to their respective internal types. + * Creates a DeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution + * @returns {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} DeployModelOperationMetadata */ - Execution.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Execution) + DeployModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Execution(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "NEW": - case 1: - message.state = 1; - break; - case "RUNNING": - case 2: - message.state = 2; - break; - case "COMPLETE": - case 3: - message.state = 3; - break; - case "FAILED": - case 4: - message.state = 4; - break; - case "CACHED": - case 5: - message.state = 5; - break; - case "CANCELLED": - case 6: - message.state = 6; - break; - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Execution.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Execution.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Execution.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.schemaTitle != null) - message.schemaTitle = String(object.schemaTitle); - if (object.schemaVersion != null) - message.schemaVersion = String(object.schemaVersion); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Execution.metadata: object expected"); - message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.description != null) - message.description = String(object.description); return message; }; /** - * Creates a plain object from an Execution message. Also converts values to other types if specified. + * Creates a plain object from a DeployModelOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.Execution} message Execution + * @param {google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata} message DeployModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Execution.toObject = function toObject(message, options) { + DeployModelOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.schemaTitle = ""; - object.schemaVersion = ""; - object.metadata = null; - object.description = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Execution.State[message.state] : message.state; - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) - object.schemaTitle = message.schemaTitle; - if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) - object.schemaVersion = message.schemaVersion; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this Execution to JSON. + * Converts this DeployModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Execution + * @memberof google.cloud.aiplatform.v1beta1.DeployModelOperationMetadata * @instance * @returns {Object.} JSON object */ - Execution.prototype.toJSON = function toJSON() { + DeployModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * State enum. - * @name google.cloud.aiplatform.v1beta1.Execution.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} NEW=1 NEW value - * @property {number} RUNNING=2 RUNNING value - * @property {number} COMPLETE=3 COMPLETE value - * @property {number} FAILED=4 FAILED value - * @property {number} CACHED=5 CACHED value - * @property {number} CANCELLED=6 CANCELLED value - */ - Execution.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "NEW"] = 1; - values[valuesById[2] = "RUNNING"] = 2; - values[valuesById[3] = "COMPLETE"] = 3; - values[valuesById[4] = "FAILED"] = 4; - values[valuesById[5] = "CACHED"] = 5; - values[valuesById[6] = "CANCELLED"] = 6; - return values; - })(); - - return Execution; + return DeployModelOperationMetadata; })(); - v1beta1.Feature = (function() { + v1beta1.UndeployModelRequest = (function() { /** - * Properties of a Feature. + * Properties of an UndeployModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeature - * @property {string|null} [name] Feature name - * @property {string|null} [description] Feature description - * @property {google.cloud.aiplatform.v1beta1.Feature.ValueType|null} [valueType] Feature valueType - * @property {google.protobuf.ITimestamp|null} [createTime] Feature createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Feature updateTime - * @property {Object.|null} [labels] Feature labels - * @property {string|null} [etag] Feature etag - * @property {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null} [monitoringConfig] Feature monitoringConfig - * @property {boolean|null} [disableMonitoring] Feature disableMonitoring - * @property {Array.|null} [monitoringStats] Feature monitoringStats - * @property {Array.|null} [monitoringStatsAnomalies] Feature monitoringStatsAnomalies + * @interface IUndeployModelRequest + * @property {string|null} [endpoint] UndeployModelRequest endpoint + * @property {string|null} [deployedModelId] UndeployModelRequest deployedModelId + * @property {Object.|null} [trafficSplit] UndeployModelRequest trafficSplit */ /** - * Constructs a new Feature. + * Constructs a new UndeployModelRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Feature. - * @implements IFeature + * @classdesc Represents an UndeployModelRequest. + * @implements IUndeployModelRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeature=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest=} [properties] Properties to set */ - function Feature(properties) { - this.labels = {}; - this.monitoringStats = []; - this.monitoringStatsAnomalies = []; + function UndeployModelRequest(properties) { + this.trafficSplit = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -182208,197 +187237,106 @@ } /** - * Feature name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @instance - */ - Feature.prototype.name = ""; - - /** - * Feature description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @instance - */ - Feature.prototype.description = ""; - - /** - * Feature valueType. - * @member {google.cloud.aiplatform.v1beta1.Feature.ValueType} valueType - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @instance - */ - Feature.prototype.valueType = 0; - - /** - * Feature createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @instance - */ - Feature.prototype.createTime = null; - - /** - * Feature updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @instance - */ - Feature.prototype.updateTime = null; - - /** - * Feature labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @instance - */ - Feature.prototype.labels = $util.emptyObject; - - /** - * Feature etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @instance - */ - Feature.prototype.etag = ""; - - /** - * Feature monitoringConfig. - * @member {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null|undefined} monitoringConfig - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @instance - */ - Feature.prototype.monitoringConfig = null; - - /** - * Feature disableMonitoring. - * @member {boolean} disableMonitoring - * @memberof google.cloud.aiplatform.v1beta1.Feature + * UndeployModelRequest endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @instance */ - Feature.prototype.disableMonitoring = false; + UndeployModelRequest.prototype.endpoint = ""; /** - * Feature monitoringStats. - * @member {Array.} monitoringStats - * @memberof google.cloud.aiplatform.v1beta1.Feature + * UndeployModelRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @instance */ - Feature.prototype.monitoringStats = $util.emptyArray; + UndeployModelRequest.prototype.deployedModelId = ""; /** - * Feature monitoringStatsAnomalies. - * @member {Array.} monitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1beta1.Feature + * UndeployModelRequest trafficSplit. + * @member {Object.} trafficSplit + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @instance */ - Feature.prototype.monitoringStatsAnomalies = $util.emptyArray; + UndeployModelRequest.prototype.trafficSplit = $util.emptyObject; /** - * Creates a new Feature instance using the specified properties. + * Creates a new UndeployModelRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeature=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest instance */ - Feature.create = function create(properties) { - return new Feature(properties); + UndeployModelRequest.create = function create(properties) { + return new UndeployModelRequest(properties); }; /** - * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. + * Encodes the specified UndeployModelRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeature} message Feature message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest} message UndeployModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Feature.encode = function encode(message, writer) { + UndeployModelRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); - if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.valueType); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 7, wireType 2 =*/58).string(message.etag); - if (message.monitoringConfig != null && Object.hasOwnProperty.call(message, "monitoringConfig")) - $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.encode(message.monitoringConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.monitoringStats != null && message.monitoringStats.length) - for (var i = 0; i < message.monitoringStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.monitoringStats[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.monitoringStatsAnomalies != null && message.monitoringStatsAnomalies.length) - for (var i = 0; i < message.monitoringStatsAnomalies.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.encode(message.monitoringStatsAnomalies[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.disableMonitoring != null && Object.hasOwnProperty.call(message, "disableMonitoring")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableMonitoring); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.endpoint); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.trafficSplit != null && Object.hasOwnProperty.call(message, "trafficSplit")) + for (var keys = Object.keys(message.trafficSplit), i = 0; i < keys.length; ++i) + writer.uint32(/* id 3, wireType 2 =*/26).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 0 =*/16).int32(message.trafficSplit[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. + * Encodes the specified UndeployModelRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeature} message Feature message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelRequest} message UndeployModelRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Feature.encodeDelimited = function encodeDelimited(message, writer) { + UndeployModelRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Feature message from the specified reader or buffer. + * Decodes an UndeployModelRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Feature.decode = function decode(reader, length) { + UndeployModelRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Feature(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployModelRequest(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.endpoint = reader.string(); break; case 2: - message.description = reader.string(); + message.deployedModelId = reader.string(); break; case 3: - message.valueType = reader.int32(); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 6: - if (message.labels === $util.emptyObject) - message.labels = {}; + if (message.trafficSplit === $util.emptyObject) + message.trafficSplit = {}; var end2 = reader.uint32() + reader.pos; key = ""; - value = ""; + value = 0; while (reader.pos < end2) { var tag2 = reader.uint32(); switch (tag2 >>> 3) { @@ -182406,33 +187344,14 @@ key = reader.string(); break; case 2: - value = reader.string(); + value = reader.int32(); break; default: reader.skipType(tag2 & 7); break; } } - message.labels[key] = value; - break; - case 7: - message.etag = reader.string(); - break; - case 9: - message.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.decode(reader, reader.uint32()); - break; - case 12: - message.disableMonitoring = reader.bool(); - break; - case 10: - if (!(message.monitoringStats && message.monitoringStats.length)) - message.monitoringStats = []; - message.monitoringStats.push($root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32())); - break; - case 11: - if (!(message.monitoringStatsAnomalies && message.monitoringStatsAnomalies.length)) - message.monitoringStatsAnomalies = []; - message.monitoringStatsAnomalies.push($root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.decode(reader, reader.uint32())); + message.trafficSplit[key] = value; break; default: reader.skipType(tag & 7); @@ -182443,592 +187362,138 @@ }; /** - * Decodes a Feature message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Feature.decodeDelimited = function decodeDelimited(reader) { + UndeployModelRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Feature message. + * Verifies an UndeployModelRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Feature.verify = function verify(message) { + UndeployModelRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.valueType != null && message.hasOwnProperty("valueType")) - switch (message.valueType) { - default: - return "valueType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 9: - case 10: - case 11: - case 12: - case 13: - break; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.trafficSplit != null && message.hasOwnProperty("trafficSplit")) { + if (!$util.isObject(message.trafficSplit)) + return "trafficSplit: object expected"; + var key = Object.keys(message.trafficSplit); for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify(message.monitoringConfig); - if (error) - return "monitoringConfig." + error; - } - if (message.disableMonitoring != null && message.hasOwnProperty("disableMonitoring")) - if (typeof message.disableMonitoring !== "boolean") - return "disableMonitoring: boolean expected"; - if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { - if (!Array.isArray(message.monitoringStats)) - return "monitoringStats: array expected"; - for (var i = 0; i < message.monitoringStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.monitoringStats[i]); - if (error) - return "monitoringStats." + error; - } - } - if (message.monitoringStatsAnomalies != null && message.hasOwnProperty("monitoringStatsAnomalies")) { - if (!Array.isArray(message.monitoringStatsAnomalies)) - return "monitoringStatsAnomalies: array expected"; - for (var i = 0; i < message.monitoringStatsAnomalies.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify(message.monitoringStatsAnomalies[i]); - if (error) - return "monitoringStatsAnomalies." + error; - } + if (!$util.isInteger(message.trafficSplit[key[i]])) + return "trafficSplit: integer{k:string} expected"; } return null; }; /** - * Creates a Feature message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployModelRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelRequest} UndeployModelRequest */ - Feature.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Feature) + UndeployModelRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Feature(); - if (object.name != null) - message.name = String(object.name); - if (object.description != null) - message.description = String(object.description); - switch (object.valueType) { - case "VALUE_TYPE_UNSPECIFIED": - case 0: - message.valueType = 0; - break; - case "BOOL": - case 1: - message.valueType = 1; - break; - case "BOOL_ARRAY": - case 2: - message.valueType = 2; - break; - case "DOUBLE": - case 3: - message.valueType = 3; - break; - case "DOUBLE_ARRAY": - case 4: - message.valueType = 4; - break; - case "INT64": - case 9: - message.valueType = 9; - break; - case "INT64_ARRAY": - case 10: - message.valueType = 10; - break; - case "STRING": - case 11: - message.valueType = 11; - break; - case "STRING_ARRAY": - case 12: - message.valueType = 12; - break; - case "BYTES": - case 13: - message.valueType = 13; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.monitoringConfig != null) { - if (typeof object.monitoringConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.monitoringConfig: object expected"); - message.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.fromObject(object.monitoringConfig); - } - if (object.disableMonitoring != null) - message.disableMonitoring = Boolean(object.disableMonitoring); - if (object.monitoringStats) { - if (!Array.isArray(object.monitoringStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.monitoringStats: array expected"); - message.monitoringStats = []; - for (var i = 0; i < object.monitoringStats.length; ++i) { - if (typeof object.monitoringStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.monitoringStats: object expected"); - message.monitoringStats[i] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.monitoringStats[i]); - } - } - if (object.monitoringStatsAnomalies) { - if (!Array.isArray(object.monitoringStatsAnomalies)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.monitoringStatsAnomalies: array expected"); - message.monitoringStatsAnomalies = []; - for (var i = 0; i < object.monitoringStatsAnomalies.length; ++i) { - if (typeof object.monitoringStatsAnomalies[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.monitoringStatsAnomalies: object expected"); - message.monitoringStatsAnomalies[i] = $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.fromObject(object.monitoringStatsAnomalies[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.UndeployModelRequest(); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.trafficSplit) { + if (typeof object.trafficSplit !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UndeployModelRequest.trafficSplit: object expected"); + message.trafficSplit = {}; + for (var keys = Object.keys(object.trafficSplit), i = 0; i < keys.length; ++i) + message.trafficSplit[keys[i]] = object.trafficSplit[keys[i]] | 0; } return message; }; /** - * Creates a plain object from a Feature message. Also converts values to other types if specified. + * Creates a plain object from an UndeployModelRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @static - * @param {google.cloud.aiplatform.v1beta1.Feature} message Feature + * @param {google.cloud.aiplatform.v1beta1.UndeployModelRequest} message UndeployModelRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Feature.toObject = function toObject(message, options) { + UndeployModelRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.monitoringStats = []; - object.monitoringStatsAnomalies = []; - } if (options.objects || options.defaults) - object.labels = {}; + object.trafficSplit = {}; if (options.defaults) { - object.name = ""; - object.description = ""; - object.valueType = options.enums === String ? "VALUE_TYPE_UNSPECIFIED" : 0; - object.createTime = null; - object.updateTime = null; - object.etag = ""; - object.monitoringConfig = null; - object.disableMonitoring = false; + object.endpoint = ""; + object.deployedModelId = ""; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.valueType != null && message.hasOwnProperty("valueType")) - object.valueType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Feature.ValueType[message.valueType] : message.valueType; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; + if (message.trafficSplit && (keys2 = Object.keys(message.trafficSplit)).length) { + object.trafficSplit = {}; for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) - object.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.toObject(message.monitoringConfig, options); - if (message.monitoringStats && message.monitoringStats.length) { - object.monitoringStats = []; - for (var j = 0; j < message.monitoringStats.length; ++j) - object.monitoringStats[j] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.monitoringStats[j], options); - } - if (message.monitoringStatsAnomalies && message.monitoringStatsAnomalies.length) { - object.monitoringStatsAnomalies = []; - for (var j = 0; j < message.monitoringStatsAnomalies.length; ++j) - object.monitoringStatsAnomalies[j] = $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.toObject(message.monitoringStatsAnomalies[j], options); + object.trafficSplit[keys2[j]] = message.trafficSplit[keys2[j]]; } - if (message.disableMonitoring != null && message.hasOwnProperty("disableMonitoring")) - object.disableMonitoring = message.disableMonitoring; return object; }; /** - * Converts this Feature to JSON. + * Converts this UndeployModelRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Feature + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelRequest * @instance * @returns {Object.} JSON object */ - Feature.prototype.toJSON = function toJSON() { + UndeployModelRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Feature.MonitoringStatsAnomaly = (function() { - - /** - * Properties of a MonitoringStatsAnomaly. - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @interface IMonitoringStatsAnomaly - * @property {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|null} [objective] MonitoringStatsAnomaly objective - * @property {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null} [featureStatsAnomaly] MonitoringStatsAnomaly featureStatsAnomaly - */ - - /** - * Constructs a new MonitoringStatsAnomaly. - * @memberof google.cloud.aiplatform.v1beta1.Feature - * @classdesc Represents a MonitoringStatsAnomaly. - * @implements IMonitoringStatsAnomaly - * @constructor - * @param {google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly=} [properties] Properties to set - */ - function MonitoringStatsAnomaly(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MonitoringStatsAnomaly objective. - * @member {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective} objective - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @instance - */ - MonitoringStatsAnomaly.prototype.objective = 0; - - /** - * MonitoringStatsAnomaly featureStatsAnomaly. - * @member {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null|undefined} featureStatsAnomaly - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @instance - */ - MonitoringStatsAnomaly.prototype.featureStatsAnomaly = null; - - /** - * Creates a new MonitoringStatsAnomaly instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @static - * @param {google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} MonitoringStatsAnomaly instance - */ - MonitoringStatsAnomaly.create = function create(properties) { - return new MonitoringStatsAnomaly(properties); - }; - - /** - * Encodes the specified MonitoringStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @static - * @param {google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly} message MonitoringStatsAnomaly message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MonitoringStatsAnomaly.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); - if (message.featureStatsAnomaly != null && Object.hasOwnProperty.call(message, "featureStatsAnomaly")) - $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.featureStatsAnomaly, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified MonitoringStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @static - * @param {google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly} message MonitoringStatsAnomaly message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MonitoringStatsAnomaly.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} MonitoringStatsAnomaly - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MonitoringStatsAnomaly.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.objective = reader.int32(); - break; - case 2: - message.featureStatsAnomaly = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} MonitoringStatsAnomaly - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MonitoringStatsAnomaly.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a MonitoringStatsAnomaly message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MonitoringStatsAnomaly.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.objective != null && message.hasOwnProperty("objective")) - switch (message.objective) { - default: - return "objective: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.featureStatsAnomaly != null && message.hasOwnProperty("featureStatsAnomaly")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.featureStatsAnomaly); - if (error) - return "featureStatsAnomaly." + error; - } - return null; - }; - - /** - * Creates a MonitoringStatsAnomaly message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} MonitoringStatsAnomaly - */ - MonitoringStatsAnomaly.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly(); - switch (object.objective) { - case "OBJECTIVE_UNSPECIFIED": - case 0: - message.objective = 0; - break; - case "IMPORT_FEATURE_ANALYSIS": - case 1: - message.objective = 1; - break; - case "SNAPSHOT_ANALYSIS": - case 2: - message.objective = 2; - break; - } - if (object.featureStatsAnomaly != null) { - if (typeof object.featureStatsAnomaly !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.featureStatsAnomaly: object expected"); - message.featureStatsAnomaly = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.featureStatsAnomaly); - } - return message; - }; - - /** - * Creates a plain object from a MonitoringStatsAnomaly message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @static - * @param {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} message MonitoringStatsAnomaly - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MonitoringStatsAnomaly.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.objective = options.enums === String ? "OBJECTIVE_UNSPECIFIED" : 0; - object.featureStatsAnomaly = null; - } - if (message.objective != null && message.hasOwnProperty("objective")) - object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective[message.objective] : message.objective; - if (message.featureStatsAnomaly != null && message.hasOwnProperty("featureStatsAnomaly")) - object.featureStatsAnomaly = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.featureStatsAnomaly, options); - return object; - }; - - /** - * Converts this MonitoringStatsAnomaly to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly - * @instance - * @returns {Object.} JSON object - */ - MonitoringStatsAnomaly.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * Objective enum. - * @name google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective - * @enum {number} - * @property {number} OBJECTIVE_UNSPECIFIED=0 OBJECTIVE_UNSPECIFIED value - * @property {number} IMPORT_FEATURE_ANALYSIS=1 IMPORT_FEATURE_ANALYSIS value - * @property {number} SNAPSHOT_ANALYSIS=2 SNAPSHOT_ANALYSIS value - */ - MonitoringStatsAnomaly.Objective = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OBJECTIVE_UNSPECIFIED"] = 0; - values[valuesById[1] = "IMPORT_FEATURE_ANALYSIS"] = 1; - values[valuesById[2] = "SNAPSHOT_ANALYSIS"] = 2; - return values; - })(); - - return MonitoringStatsAnomaly; - })(); - - /** - * ValueType enum. - * @name google.cloud.aiplatform.v1beta1.Feature.ValueType - * @enum {number} - * @property {number} VALUE_TYPE_UNSPECIFIED=0 VALUE_TYPE_UNSPECIFIED value - * @property {number} BOOL=1 BOOL value - * @property {number} BOOL_ARRAY=2 BOOL_ARRAY value - * @property {number} DOUBLE=3 DOUBLE value - * @property {number} DOUBLE_ARRAY=4 DOUBLE_ARRAY value - * @property {number} INT64=9 INT64 value - * @property {number} INT64_ARRAY=10 INT64_ARRAY value - * @property {number} STRING=11 STRING value - * @property {number} STRING_ARRAY=12 STRING_ARRAY value - * @property {number} BYTES=13 BYTES value - */ - Feature.ValueType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "VALUE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "BOOL"] = 1; - values[valuesById[2] = "BOOL_ARRAY"] = 2; - values[valuesById[3] = "DOUBLE"] = 3; - values[valuesById[4] = "DOUBLE_ARRAY"] = 4; - values[valuesById[9] = "INT64"] = 9; - values[valuesById[10] = "INT64_ARRAY"] = 10; - values[valuesById[11] = "STRING"] = 11; - values[valuesById[12] = "STRING_ARRAY"] = 12; - values[valuesById[13] = "BYTES"] = 13; - return values; - })(); - - return Feature; + return UndeployModelRequest; })(); - v1beta1.FeatureStatsAnomaly = (function() { + v1beta1.UndeployModelResponse = (function() { /** - * Properties of a FeatureStatsAnomaly. + * Properties of an UndeployModelResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeatureStatsAnomaly - * @property {number|null} [score] FeatureStatsAnomaly score - * @property {string|null} [statsUri] FeatureStatsAnomaly statsUri - * @property {string|null} [anomalyUri] FeatureStatsAnomaly anomalyUri - * @property {number|null} [distributionDeviation] FeatureStatsAnomaly distributionDeviation - * @property {number|null} [anomalyDetectionThreshold] FeatureStatsAnomaly anomalyDetectionThreshold - * @property {google.protobuf.ITimestamp|null} [startTime] FeatureStatsAnomaly startTime - * @property {google.protobuf.ITimestamp|null} [endTime] FeatureStatsAnomaly endTime + * @interface IUndeployModelResponse */ /** - * Constructs a new FeatureStatsAnomaly. + * Constructs a new UndeployModelResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeatureStatsAnomaly. - * @implements IFeatureStatsAnomaly + * @classdesc Represents an UndeployModelResponse. + * @implements IUndeployModelResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse=} [properties] Properties to set */ - function FeatureStatsAnomaly(properties) { + function UndeployModelResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183036,154 +187501,63 @@ } /** - * FeatureStatsAnomaly score. - * @member {number} score - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.score = 0; - - /** - * FeatureStatsAnomaly statsUri. - * @member {string} statsUri - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.statsUri = ""; - - /** - * FeatureStatsAnomaly anomalyUri. - * @member {string} anomalyUri - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.anomalyUri = ""; - - /** - * FeatureStatsAnomaly distributionDeviation. - * @member {number} distributionDeviation - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.distributionDeviation = 0; - - /** - * FeatureStatsAnomaly anomalyDetectionThreshold. - * @member {number} anomalyDetectionThreshold - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.anomalyDetectionThreshold = 0; - - /** - * FeatureStatsAnomaly startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.startTime = null; - - /** - * FeatureStatsAnomaly endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly - * @instance - */ - FeatureStatsAnomaly.prototype.endTime = null; - - /** - * Creates a new FeatureStatsAnomaly instance using the specified properties. + * Creates a new UndeployModelResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse instance */ - FeatureStatsAnomaly.create = function create(properties) { - return new FeatureStatsAnomaly(properties); + UndeployModelResponse.create = function create(properties) { + return new UndeployModelResponse(properties); }; /** - * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * Encodes the specified UndeployModelResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly} message FeatureStatsAnomaly message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse} message UndeployModelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureStatsAnomaly.encode = function encode(message, writer) { + UndeployModelResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.score != null && Object.hasOwnProperty.call(message, "score")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.score); - if (message.statsUri != null && Object.hasOwnProperty.call(message, "statsUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.statsUri); - if (message.anomalyUri != null && Object.hasOwnProperty.call(message, "anomalyUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.anomalyUri); - if (message.distributionDeviation != null && Object.hasOwnProperty.call(message, "distributionDeviation")) - writer.uint32(/* id 5, wireType 1 =*/41).double(message.distributionDeviation); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.anomalyDetectionThreshold != null && Object.hasOwnProperty.call(message, "anomalyDetectionThreshold")) - writer.uint32(/* id 9, wireType 1 =*/73).double(message.anomalyDetectionThreshold); return writer; }; /** - * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. + * Encodes the specified UndeployModelResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly} message FeatureStatsAnomaly message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelResponse} message UndeployModelResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureStatsAnomaly.encodeDelimited = function encodeDelimited(message, writer) { + UndeployModelResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. + * Decodes an UndeployModelResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureStatsAnomaly.decode = function decode(reader, length) { + UndeployModelResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployModelResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.score = reader.double(); - break; - case 3: - message.statsUri = reader.string(); - break; - case 4: - message.anomalyUri = reader.string(); - break; - case 5: - message.distributionDeviation = reader.double(); - break; - case 9: - message.anomalyDetectionThreshold = reader.double(); - break; - case 7: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; default: reader.skipType(tag & 7); break; @@ -183193,167 +187567,94 @@ }; /** - * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureStatsAnomaly.decodeDelimited = function decodeDelimited(reader) { + UndeployModelResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureStatsAnomaly message. + * Verifies an UndeployModelResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeatureStatsAnomaly.verify = function verify(message) { + UndeployModelResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.score != null && message.hasOwnProperty("score")) - if (typeof message.score !== "number") - return "score: number expected"; - if (message.statsUri != null && message.hasOwnProperty("statsUri")) - if (!$util.isString(message.statsUri)) - return "statsUri: string expected"; - if (message.anomalyUri != null && message.hasOwnProperty("anomalyUri")) - if (!$util.isString(message.anomalyUri)) - return "anomalyUri: string expected"; - if (message.distributionDeviation != null && message.hasOwnProperty("distributionDeviation")) - if (typeof message.distributionDeviation !== "number") - return "distributionDeviation: number expected"; - if (message.anomalyDetectionThreshold != null && message.hasOwnProperty("anomalyDetectionThreshold")) - if (typeof message.anomalyDetectionThreshold !== "number") - return "anomalyDetectionThreshold: number expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } return null; }; /** - * Creates a FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployModelResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelResponse} UndeployModelResponse */ - FeatureStatsAnomaly.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) + UndeployModelResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(); - if (object.score != null) - message.score = Number(object.score); - if (object.statsUri != null) - message.statsUri = String(object.statsUri); - if (object.anomalyUri != null) - message.anomalyUri = String(object.anomalyUri); - if (object.distributionDeviation != null) - message.distributionDeviation = Number(object.distributionDeviation); - if (object.anomalyDetectionThreshold != null) - message.anomalyDetectionThreshold = Number(object.anomalyDetectionThreshold); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - return message; + return new $root.google.cloud.aiplatform.v1beta1.UndeployModelResponse(); }; /** - * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. + * Creates a plain object from an UndeployModelResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} message FeatureStatsAnomaly + * @param {google.cloud.aiplatform.v1beta1.UndeployModelResponse} message UndeployModelResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureStatsAnomaly.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.score = 0; - object.statsUri = ""; - object.anomalyUri = ""; - object.distributionDeviation = 0; - object.startTime = null; - object.endTime = null; - object.anomalyDetectionThreshold = 0; - } - if (message.score != null && message.hasOwnProperty("score")) - object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; - if (message.statsUri != null && message.hasOwnProperty("statsUri")) - object.statsUri = message.statsUri; - if (message.anomalyUri != null && message.hasOwnProperty("anomalyUri")) - object.anomalyUri = message.anomalyUri; - if (message.distributionDeviation != null && message.hasOwnProperty("distributionDeviation")) - object.distributionDeviation = options.json && !isFinite(message.distributionDeviation) ? String(message.distributionDeviation) : message.distributionDeviation; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.anomalyDetectionThreshold != null && message.hasOwnProperty("anomalyDetectionThreshold")) - object.anomalyDetectionThreshold = options.json && !isFinite(message.anomalyDetectionThreshold) ? String(message.anomalyDetectionThreshold) : message.anomalyDetectionThreshold; - return object; + UndeployModelResponse.toObject = function toObject() { + return {}; }; /** - * Converts this FeatureStatsAnomaly to JSON. + * Converts this UndeployModelResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelResponse * @instance * @returns {Object.} JSON object */ - FeatureStatsAnomaly.prototype.toJSON = function toJSON() { + UndeployModelResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeatureStatsAnomaly; + return UndeployModelResponse; })(); - v1beta1.IdMatcher = (function() { + v1beta1.UndeployModelOperationMetadata = (function() { /** - * Properties of an IdMatcher. + * Properties of an UndeployModelOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIdMatcher - * @property {Array.|null} [ids] IdMatcher ids + * @interface IUndeployModelOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployModelOperationMetadata genericMetadata */ /** - * Constructs a new IdMatcher. + * Constructs a new UndeployModelOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IdMatcher. - * @implements IIdMatcher + * @classdesc Represents an UndeployModelOperationMetadata. + * @implements IUndeployModelOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIdMatcher=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata=} [properties] Properties to set */ - function IdMatcher(properties) { - this.ids = []; + function UndeployModelOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183361,78 +187662,75 @@ } /** - * IdMatcher ids. - * @member {Array.} ids - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * UndeployModelOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @instance */ - IdMatcher.prototype.ids = $util.emptyArray; + UndeployModelOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new IdMatcher instance using the specified properties. + * Creates a new UndeployModelOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIdMatcher=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata instance */ - IdMatcher.create = function create(properties) { - return new IdMatcher(properties); + UndeployModelOperationMetadata.create = function create(properties) { + return new UndeployModelOperationMetadata(properties); }; /** - * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. + * Encodes the specified UndeployModelOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIdMatcher} message IdMatcher message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata} message UndeployModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdMatcher.encode = function encode(message, writer) { + UndeployModelOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.ids != null && message.ids.length) - for (var i = 0; i < message.ids.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.ids[i]); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. + * Encodes the specified UndeployModelOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IIdMatcher} message IdMatcher message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployModelOperationMetadata} message UndeployModelOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - IdMatcher.encodeDelimited = function encodeDelimited(message, writer) { + UndeployModelOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an IdMatcher message from the specified reader or buffer. + * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdMatcher.decode = function decode(reader, length) { + UndeployModelOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IdMatcher(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.ids && message.ids.length)) - message.ids = []; - message.ids.push(reader.string()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -183443,119 +187741,119 @@ }; /** - * Decodes an IdMatcher message from the specified reader or buffer, length delimited. + * Decodes an UndeployModelOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - IdMatcher.decodeDelimited = function decodeDelimited(reader) { + UndeployModelOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an IdMatcher message. + * Verifies an UndeployModelOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - IdMatcher.verify = function verify(message) { + UndeployModelOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.ids != null && message.hasOwnProperty("ids")) { - if (!Array.isArray(message.ids)) - return "ids: array expected"; - for (var i = 0; i < message.ids.length; ++i) - if (!$util.isString(message.ids[i])) - return "ids: string[] expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } return null; }; /** - * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployModelOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher + * @returns {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} UndeployModelOperationMetadata */ - IdMatcher.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IdMatcher) + UndeployModelOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IdMatcher(); - if (object.ids) { - if (!Array.isArray(object.ids)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IdMatcher.ids: array expected"); - message.ids = []; - for (var i = 0; i < object.ids.length; ++i) - message.ids[i] = String(object.ids[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. + * Creates a plain object from an UndeployModelOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IdMatcher} message IdMatcher + * @param {google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata} message UndeployModelOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - IdMatcher.toObject = function toObject(message, options) { + UndeployModelOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.ids = []; - if (message.ids && message.ids.length) { - object.ids = []; - for (var j = 0; j < message.ids.length; ++j) - object.ids[j] = message.ids[j]; - } + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this IdMatcher to JSON. + * Converts this UndeployModelOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IdMatcher + * @memberof google.cloud.aiplatform.v1beta1.UndeployModelOperationMetadata * @instance * @returns {Object.} JSON object */ - IdMatcher.prototype.toJSON = function toJSON() { + UndeployModelOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return IdMatcher; + return UndeployModelOperationMetadata; })(); - v1beta1.FeatureSelector = (function() { + v1beta1.EntityType = (function() { /** - * Properties of a FeatureSelector. + * Properties of an EntityType. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeatureSelector - * @property {google.cloud.aiplatform.v1beta1.IIdMatcher|null} [idMatcher] FeatureSelector idMatcher + * @interface IEntityType + * @property {string|null} [name] EntityType name + * @property {string|null} [description] EntityType description + * @property {google.protobuf.ITimestamp|null} [createTime] EntityType createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] EntityType updateTime + * @property {Object.|null} [labels] EntityType labels + * @property {string|null} [etag] EntityType etag + * @property {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null} [monitoringConfig] EntityType monitoringConfig */ /** - * Constructs a new FeatureSelector. + * Constructs a new EntityType. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeatureSelector. - * @implements IFeatureSelector + * @classdesc Represents an EntityType. + * @implements IEntityType * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IEntityType=} [properties] Properties to set */ - function FeatureSelector(properties) { + function EntityType(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183563,75 +187861,173 @@ } /** - * FeatureSelector idMatcher. - * @member {google.cloud.aiplatform.v1beta1.IIdMatcher|null|undefined} idMatcher - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * EntityType name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @instance */ - FeatureSelector.prototype.idMatcher = null; + EntityType.prototype.name = ""; /** - * Creates a new FeatureSelector instance using the specified properties. + * EntityType description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @instance + */ + EntityType.prototype.description = ""; + + /** + * EntityType createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @instance + */ + EntityType.prototype.createTime = null; + + /** + * EntityType updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @instance + */ + EntityType.prototype.updateTime = null; + + /** + * EntityType labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @instance + */ + EntityType.prototype.labels = $util.emptyObject; + + /** + * EntityType etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @instance + */ + EntityType.prototype.etag = ""; + + /** + * EntityType monitoringConfig. + * @member {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null|undefined} monitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @instance + */ + EntityType.prototype.monitoringConfig = null; + + /** + * Creates a new EntityType instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector instance + * @param {google.cloud.aiplatform.v1beta1.IEntityType=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType instance */ - FeatureSelector.create = function create(properties) { - return new FeatureSelector(properties); + EntityType.create = function create(properties) { + return new EntityType(properties); }; /** - * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. + * Encodes the specified EntityType message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector} message FeatureSelector message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IEntityType} message EntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureSelector.encode = function encode(message, writer) { + EntityType.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.idMatcher != null && Object.hasOwnProperty.call(message, "idMatcher")) - $root.google.cloud.aiplatform.v1beta1.IdMatcher.encode(message.idMatcher, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.etag); + if (message.monitoringConfig != null && Object.hasOwnProperty.call(message, "monitoringConfig")) + $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.encode(message.monitoringConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. + * Encodes the specified EntityType message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.EntityType.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector} message FeatureSelector message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IEntityType} message EntityType message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureSelector.encodeDelimited = function encodeDelimited(message, writer) { + EntityType.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureSelector message from the specified reader or buffer. + * Decodes an EntityType message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector + * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureSelector.decode = function decode(reader, length) { + EntityType.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureSelector(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.EntityType(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.idMatcher = $root.google.cloud.aiplatform.v1beta1.IdMatcher.decode(reader, reader.uint32()); + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 7: + message.etag = reader.string(); + break; + case 8: + message.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -183642,120 +188038,189 @@ }; /** - * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. + * Decodes an EntityType message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector + * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureSelector.decodeDelimited = function decodeDelimited(reader) { + EntityType.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureSelector message. + * Verifies an EntityType message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeatureSelector.verify = function verify(message) { + EntityType.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.idMatcher != null && message.hasOwnProperty("idMatcher")) { - var error = $root.google.cloud.aiplatform.v1beta1.IdMatcher.verify(message.idMatcher); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "idMatcher." + error; + return "createTime." + error; } - return null; - }; - - /** - * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify(message.monitoringConfig); + if (error) + return "monitoringConfig." + error; + } + return null; + }; + + /** + * Creates an EntityType message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.EntityType + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.EntityType} EntityType */ - FeatureSelector.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureSelector) + EntityType.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.EntityType) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeatureSelector(); - if (object.idMatcher != null) { - if (typeof object.idMatcher !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureSelector.idMatcher: object expected"); - message.idMatcher = $root.google.cloud.aiplatform.v1beta1.IdMatcher.fromObject(object.idMatcher); + var message = new $root.google.cloud.aiplatform.v1beta1.EntityType(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EntityType.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EntityType.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EntityType.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.monitoringConfig != null) { + if (typeof object.monitoringConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.EntityType.monitoringConfig: object expected"); + message.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.fromObject(object.monitoringConfig); } return message; }; /** - * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. + * Creates a plain object from an EntityType message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureSelector} message FeatureSelector + * @param {google.cloud.aiplatform.v1beta1.EntityType} message EntityType * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureSelector.toObject = function toObject(message, options) { + EntityType.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.idMatcher = null; - if (message.idMatcher != null && message.hasOwnProperty("idMatcher")) - object.idMatcher = $root.google.cloud.aiplatform.v1beta1.IdMatcher.toObject(message.idMatcher, options); + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.description = ""; + object.createTime = null; + object.updateTime = null; + object.etag = ""; + object.monitoringConfig = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) + object.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.toObject(message.monitoringConfig, options); return object; }; /** - * Converts this FeatureSelector to JSON. + * Converts this EntityType to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector + * @memberof google.cloud.aiplatform.v1beta1.EntityType * @instance * @returns {Object.} JSON object */ - FeatureSelector.prototype.toJSON = function toJSON() { + EntityType.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeatureSelector; + return EntityType; })(); - v1beta1.Featurestore = (function() { + v1beta1.FeaturestoreMonitoringConfig = (function() { /** - * Properties of a Featurestore. + * Properties of a FeaturestoreMonitoringConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeaturestore - * @property {string|null} [name] Featurestore name - * @property {google.protobuf.ITimestamp|null} [createTime] Featurestore createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Featurestore updateTime - * @property {string|null} [etag] Featurestore etag - * @property {Object.|null} [labels] Featurestore labels - * @property {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null} [onlineServingConfig] Featurestore onlineServingConfig - * @property {google.cloud.aiplatform.v1beta1.Featurestore.State|null} [state] Featurestore state - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Featurestore encryptionSpec + * @interface IFeaturestoreMonitoringConfig + * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null} [snapshotAnalysis] FeaturestoreMonitoringConfig snapshotAnalysis + * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null} [importFeaturesAnalysis] FeaturestoreMonitoringConfig importFeaturesAnalysis + * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null} [numericalThresholdConfig] FeaturestoreMonitoringConfig numericalThresholdConfig + * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null} [categoricalThresholdConfig] FeaturestoreMonitoringConfig categoricalThresholdConfig */ /** - * Constructs a new Featurestore. + * Constructs a new FeaturestoreMonitoringConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Featurestore. - * @implements IFeaturestore + * @classdesc Represents a FeaturestoreMonitoringConfig. + * @implements IFeaturestoreMonitoringConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeaturestore=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig=} [properties] Properties to set */ - function Featurestore(properties) { - this.labels = {}; + function FeaturestoreMonitoringConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -183763,186 +188228,114 @@ } /** - * Featurestore name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Featurestore - * @instance - */ - Featurestore.prototype.name = ""; - - /** - * Featurestore createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Featurestore - * @instance - */ - Featurestore.prototype.createTime = null; - - /** - * Featurestore updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Featurestore - * @instance - */ - Featurestore.prototype.updateTime = null; - - /** - * Featurestore etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Featurestore - * @instance - */ - Featurestore.prototype.etag = ""; - - /** - * Featurestore labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * FeaturestoreMonitoringConfig snapshotAnalysis. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis|null|undefined} snapshotAnalysis + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @instance */ - Featurestore.prototype.labels = $util.emptyObject; + FeaturestoreMonitoringConfig.prototype.snapshotAnalysis = null; /** - * Featurestore onlineServingConfig. - * @member {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null|undefined} onlineServingConfig - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * FeaturestoreMonitoringConfig importFeaturesAnalysis. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis|null|undefined} importFeaturesAnalysis + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @instance */ - Featurestore.prototype.onlineServingConfig = null; + FeaturestoreMonitoringConfig.prototype.importFeaturesAnalysis = null; /** - * Featurestore state. - * @member {google.cloud.aiplatform.v1beta1.Featurestore.State} state - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * FeaturestoreMonitoringConfig numericalThresholdConfig. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null|undefined} numericalThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @instance */ - Featurestore.prototype.state = 0; + FeaturestoreMonitoringConfig.prototype.numericalThresholdConfig = null; /** - * Featurestore encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * FeaturestoreMonitoringConfig categoricalThresholdConfig. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig|null|undefined} categoricalThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @instance */ - Featurestore.prototype.encryptionSpec = null; + FeaturestoreMonitoringConfig.prototype.categoricalThresholdConfig = null; /** - * Creates a new Featurestore instance using the specified properties. + * Creates a new FeaturestoreMonitoringConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestore=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore instance + * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig instance */ - Featurestore.create = function create(properties) { - return new Featurestore(properties); + FeaturestoreMonitoringConfig.create = function create(properties) { + return new FeaturestoreMonitoringConfig(properties); }; /** - * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. + * Encodes the specified FeaturestoreMonitoringConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestore} message Featurestore message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig} message FeaturestoreMonitoringConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Featurestore.encode = function encode(message, writer) { + FeaturestoreMonitoringConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.onlineServingConfig != null && Object.hasOwnProperty.call(message, "onlineServingConfig")) - $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.encode(message.onlineServingConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.snapshotAnalysis != null && Object.hasOwnProperty.call(message, "snapshotAnalysis")) + $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.encode(message.snapshotAnalysis, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.importFeaturesAnalysis != null && Object.hasOwnProperty.call(message, "importFeaturesAnalysis")) + $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.encode(message.importFeaturesAnalysis, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.numericalThresholdConfig != null && Object.hasOwnProperty.call(message, "numericalThresholdConfig")) + $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.encode(message.numericalThresholdConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.categoricalThresholdConfig != null && Object.hasOwnProperty.call(message, "categoricalThresholdConfig")) + $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.encode(message.categoricalThresholdConfig, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. + * Encodes the specified FeaturestoreMonitoringConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IFeaturestore} message Featurestore message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig} message FeaturestoreMonitoringConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Featurestore.encodeDelimited = function encodeDelimited(message, writer) { + FeaturestoreMonitoringConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Featurestore message from the specified reader or buffer. + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Featurestore.decode = function decode(reader, length) { + FeaturestoreMonitoringConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Featurestore(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.snapshotAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.decode(reader, reader.uint32()); + break; + case 2: + message.importFeaturesAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.decode(reader, reader.uint32()); break; case 3: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.numericalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.decode(reader, reader.uint32()); break; case 4: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.etag = reader.string(); - break; - case 6: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 7: - message.onlineServingConfig = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.decode(reader, reader.uint32()); - break; - case 8: - message.state = reader.int32(); - break; - case 10: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + message.categoricalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -183953,215 +188346,152 @@ }; /** - * Decodes a Featurestore message from the specified reader or buffer, length delimited. + * Decodes a FeaturestoreMonitoringConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Featurestore.decodeDelimited = function decodeDelimited(reader) { + FeaturestoreMonitoringConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Featurestore message. + * Verifies a FeaturestoreMonitoringConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Featurestore.verify = function verify(message) { + FeaturestoreMonitoringConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.snapshotAnalysis != null && message.hasOwnProperty("snapshotAnalysis")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify(message.snapshotAnalysis); if (error) - return "createTime." + error; + return "snapshotAnalysis." + error; } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (message.importFeaturesAnalysis != null && message.hasOwnProperty("importFeaturesAnalysis")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify(message.importFeaturesAnalysis); if (error) - return "updateTime." + error; - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; + return "importFeaturesAnalysis." + error; } - if (message.onlineServingConfig != null && message.hasOwnProperty("onlineServingConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify(message.onlineServingConfig); + if (message.numericalThresholdConfig != null && message.hasOwnProperty("numericalThresholdConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify(message.numericalThresholdConfig); if (error) - return "onlineServingConfig." + error; + return "numericalThresholdConfig." + error; } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (message.categoricalThresholdConfig != null && message.hasOwnProperty("categoricalThresholdConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify(message.categoricalThresholdConfig); if (error) - return "encryptionSpec." + error; + return "categoricalThresholdConfig." + error; } return null; }; /** - * Creates a Featurestore message from a plain object. Also converts values to their respective internal types. + * Creates a FeaturestoreMonitoringConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} FeaturestoreMonitoringConfig */ - Featurestore.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Featurestore) + FeaturestoreMonitoringConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Featurestore(); - if (object.name != null) - message.name = String(object.name); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); + var message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig(); + if (object.snapshotAnalysis != null) { + if (typeof object.snapshotAnalysis !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.snapshotAnalysis: object expected"); + message.snapshotAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.fromObject(object.snapshotAnalysis); } - if (object.onlineServingConfig != null) { - if (typeof object.onlineServingConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.onlineServingConfig: object expected"); - message.onlineServingConfig = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.fromObject(object.onlineServingConfig); + if (object.importFeaturesAnalysis != null) { + if (typeof object.importFeaturesAnalysis !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.importFeaturesAnalysis: object expected"); + message.importFeaturesAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.fromObject(object.importFeaturesAnalysis); } - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "STABLE": - case 1: - message.state = 1; - break; - case "UPDATING": - case 2: - message.state = 2; - break; + if (object.numericalThresholdConfig != null) { + if (typeof object.numericalThresholdConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.numericalThresholdConfig: object expected"); + message.numericalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.fromObject(object.numericalThresholdConfig); } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + if (object.categoricalThresholdConfig != null) { + if (typeof object.categoricalThresholdConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.categoricalThresholdConfig: object expected"); + message.categoricalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.fromObject(object.categoricalThresholdConfig); } return message; }; /** - * Creates a plain object from a Featurestore message. Also converts values to other types if specified. + * Creates a plain object from a FeaturestoreMonitoringConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore} message Featurestore + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig} message FeaturestoreMonitoringConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Featurestore.toObject = function toObject(message, options) { + FeaturestoreMonitoringConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.objects || options.defaults) - object.labels = {}; if (options.defaults) { - object.name = ""; - object.createTime = null; - object.updateTime = null; - object.etag = ""; - object.onlineServingConfig = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.encryptionSpec = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + object.snapshotAnalysis = null; + object.importFeaturesAnalysis = null; + object.numericalThresholdConfig = null; + object.categoricalThresholdConfig = null; } - if (message.onlineServingConfig != null && message.hasOwnProperty("onlineServingConfig")) - object.onlineServingConfig = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.toObject(message.onlineServingConfig, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Featurestore.State[message.state] : message.state; - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.snapshotAnalysis != null && message.hasOwnProperty("snapshotAnalysis")) + object.snapshotAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.toObject(message.snapshotAnalysis, options); + if (message.importFeaturesAnalysis != null && message.hasOwnProperty("importFeaturesAnalysis")) + object.importFeaturesAnalysis = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.toObject(message.importFeaturesAnalysis, options); + if (message.numericalThresholdConfig != null && message.hasOwnProperty("numericalThresholdConfig")) + object.numericalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.toObject(message.numericalThresholdConfig, options); + if (message.categoricalThresholdConfig != null && message.hasOwnProperty("categoricalThresholdConfig")) + object.categoricalThresholdConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.toObject(message.categoricalThresholdConfig, options); return object; }; /** - * Converts this Featurestore to JSON. + * Converts this FeaturestoreMonitoringConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig * @instance * @returns {Object.} JSON object */ - Featurestore.prototype.toJSON = function toJSON() { + FeaturestoreMonitoringConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Featurestore.OnlineServingConfig = (function() { + FeaturestoreMonitoringConfig.SnapshotAnalysis = (function() { /** - * Properties of an OnlineServingConfig. - * @memberof google.cloud.aiplatform.v1beta1.Featurestore - * @interface IOnlineServingConfig - * @property {number|null} [fixedNodeCount] OnlineServingConfig fixedNodeCount - * @property {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null} [scaling] OnlineServingConfig scaling + * Properties of a SnapshotAnalysis. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @interface ISnapshotAnalysis + * @property {boolean|null} [disabled] SnapshotAnalysis disabled + * @property {google.protobuf.IDuration|null} [monitoringInterval] SnapshotAnalysis monitoringInterval + * @property {number|null} [monitoringIntervalDays] SnapshotAnalysis monitoringIntervalDays + * @property {number|null} [stalenessDays] SnapshotAnalysis stalenessDays */ /** - * Constructs a new OnlineServingConfig. - * @memberof google.cloud.aiplatform.v1beta1.Featurestore - * @classdesc Represents an OnlineServingConfig. - * @implements IOnlineServingConfig + * Constructs a new SnapshotAnalysis. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @classdesc Represents a SnapshotAnalysis. + * @implements ISnapshotAnalysis * @constructor - * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis=} [properties] Properties to set */ - function OnlineServingConfig(properties) { + function SnapshotAnalysis(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -184169,88 +188499,114 @@ } /** - * OnlineServingConfig fixedNodeCount. - * @member {number} fixedNodeCount - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * SnapshotAnalysis disabled. + * @member {boolean} disabled + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @instance */ - OnlineServingConfig.prototype.fixedNodeCount = 0; + SnapshotAnalysis.prototype.disabled = false; /** - * OnlineServingConfig scaling. - * @member {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null|undefined} scaling - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * SnapshotAnalysis monitoringInterval. + * @member {google.protobuf.IDuration|null|undefined} monitoringInterval + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @instance */ - OnlineServingConfig.prototype.scaling = null; + SnapshotAnalysis.prototype.monitoringInterval = null; /** - * Creates a new OnlineServingConfig instance using the specified properties. + * SnapshotAnalysis monitoringIntervalDays. + * @member {number} monitoringIntervalDays + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + * @instance + */ + SnapshotAnalysis.prototype.monitoringIntervalDays = 0; + + /** + * SnapshotAnalysis stalenessDays. + * @member {number} stalenessDays + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis + * @instance + */ + SnapshotAnalysis.prototype.stalenessDays = 0; + + /** + * Creates a new SnapshotAnalysis instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} OnlineServingConfig instance + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} SnapshotAnalysis instance */ - OnlineServingConfig.create = function create(properties) { - return new OnlineServingConfig(properties); + SnapshotAnalysis.create = function create(properties) { + return new SnapshotAnalysis(properties); }; /** - * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * Encodes the specified SnapshotAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig} message OnlineServingConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis} message SnapshotAnalysis message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OnlineServingConfig.encode = function encode(message, writer) { + SnapshotAnalysis.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.fixedNodeCount != null && Object.hasOwnProperty.call(message, "fixedNodeCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.fixedNodeCount); - if (message.scaling != null && Object.hasOwnProperty.call(message, "scaling")) - $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.encode(message.scaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.disabled != null && Object.hasOwnProperty.call(message, "disabled")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.disabled); + if (message.monitoringInterval != null && Object.hasOwnProperty.call(message, "monitoringInterval")) + $root.google.protobuf.Duration.encode(message.monitoringInterval, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.monitoringIntervalDays != null && Object.hasOwnProperty.call(message, "monitoringIntervalDays")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.monitoringIntervalDays); + if (message.stalenessDays != null && Object.hasOwnProperty.call(message, "stalenessDays")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.stalenessDays); return writer; }; /** - * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * Encodes the specified SnapshotAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig} message OnlineServingConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ISnapshotAnalysis} message SnapshotAnalysis message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - OnlineServingConfig.encodeDelimited = function encodeDelimited(message, writer) { + SnapshotAnalysis.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an OnlineServingConfig message from the specified reader or buffer. + * Decodes a SnapshotAnalysis message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} SnapshotAnalysis * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OnlineServingConfig.decode = function decode(reader, length) { + SnapshotAnalysis.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.disabled = reader.bool(); + break; case 2: - message.fixedNodeCount = reader.int32(); + message.monitoringInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 3: + message.monitoringIntervalDays = reader.int32(); break; case 4: - message.scaling = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.decode(reader, reader.uint32()); + message.stalenessDays = reader.int32(); break; default: reader.skipType(tag & 7); @@ -184261,453 +188617,642 @@ }; /** - * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. + * Decodes a SnapshotAnalysis message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} SnapshotAnalysis * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - OnlineServingConfig.decodeDelimited = function decodeDelimited(reader) { + SnapshotAnalysis.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an OnlineServingConfig message. + * Verifies a SnapshotAnalysis message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - OnlineServingConfig.verify = function verify(message) { + SnapshotAnalysis.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.fixedNodeCount != null && message.hasOwnProperty("fixedNodeCount")) - if (!$util.isInteger(message.fixedNodeCount)) - return "fixedNodeCount: integer expected"; - if (message.scaling != null && message.hasOwnProperty("scaling")) { - var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify(message.scaling); + if (message.disabled != null && message.hasOwnProperty("disabled")) + if (typeof message.disabled !== "boolean") + return "disabled: boolean expected"; + if (message.monitoringInterval != null && message.hasOwnProperty("monitoringInterval")) { + var error = $root.google.protobuf.Duration.verify(message.monitoringInterval); if (error) - return "scaling." + error; + return "monitoringInterval." + error; } + if (message.monitoringIntervalDays != null && message.hasOwnProperty("monitoringIntervalDays")) + if (!$util.isInteger(message.monitoringIntervalDays)) + return "monitoringIntervalDays: integer expected"; + if (message.stalenessDays != null && message.hasOwnProperty("stalenessDays")) + if (!$util.isInteger(message.stalenessDays)) + return "stalenessDays: integer expected"; return null; }; /** - * Creates an OnlineServingConfig message from a plain object. Also converts values to their respective internal types. + * Creates a SnapshotAnalysis message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} SnapshotAnalysis */ - OnlineServingConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig) + SnapshotAnalysis.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig(); - if (object.fixedNodeCount != null) - message.fixedNodeCount = object.fixedNodeCount | 0; - if (object.scaling != null) { - if (typeof object.scaling !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.scaling: object expected"); - message.scaling = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.fromObject(object.scaling); + var message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis(); + if (object.disabled != null) + message.disabled = Boolean(object.disabled); + if (object.monitoringInterval != null) { + if (typeof object.monitoringInterval !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis.monitoringInterval: object expected"); + message.monitoringInterval = $root.google.protobuf.Duration.fromObject(object.monitoringInterval); } + if (object.monitoringIntervalDays != null) + message.monitoringIntervalDays = object.monitoringIntervalDays | 0; + if (object.stalenessDays != null) + message.stalenessDays = object.stalenessDays | 0; return message; }; /** - * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. + * Creates a plain object from a SnapshotAnalysis message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} message OnlineServingConfig + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis} message SnapshotAnalysis * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - OnlineServingConfig.toObject = function toObject(message, options) { + SnapshotAnalysis.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.fixedNodeCount = 0; - object.scaling = null; + object.disabled = false; + object.monitoringInterval = null; + object.monitoringIntervalDays = 0; + object.stalenessDays = 0; } - if (message.fixedNodeCount != null && message.hasOwnProperty("fixedNodeCount")) - object.fixedNodeCount = message.fixedNodeCount; - if (message.scaling != null && message.hasOwnProperty("scaling")) - object.scaling = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.toObject(message.scaling, options); + if (message.disabled != null && message.hasOwnProperty("disabled")) + object.disabled = message.disabled; + if (message.monitoringInterval != null && message.hasOwnProperty("monitoringInterval")) + object.monitoringInterval = $root.google.protobuf.Duration.toObject(message.monitoringInterval, options); + if (message.monitoringIntervalDays != null && message.hasOwnProperty("monitoringIntervalDays")) + object.monitoringIntervalDays = message.monitoringIntervalDays; + if (message.stalenessDays != null && message.hasOwnProperty("stalenessDays")) + object.stalenessDays = message.stalenessDays; return object; }; /** - * Converts this OnlineServingConfig to JSON. + * Converts this SnapshotAnalysis to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.SnapshotAnalysis * @instance * @returns {Object.} JSON object */ - OnlineServingConfig.prototype.toJSON = function toJSON() { + SnapshotAnalysis.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - OnlineServingConfig.Scaling = (function() { + return SnapshotAnalysis; + })(); - /** - * Properties of a Scaling. - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig - * @interface IScaling - * @property {number|null} [minNodeCount] Scaling minNodeCount - * @property {number|null} [maxNodeCount] Scaling maxNodeCount - */ + FeaturestoreMonitoringConfig.ImportFeaturesAnalysis = (function() { - /** - * Constructs a new Scaling. - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig - * @classdesc Represents a Scaling. - * @implements IScaling - * @constructor - * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling=} [properties] Properties to set - */ - function Scaling(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of an ImportFeaturesAnalysis. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @interface IImportFeaturesAnalysis + * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State|null} [state] ImportFeaturesAnalysis state + * @property {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline|null} [anomalyDetectionBaseline] ImportFeaturesAnalysis anomalyDetectionBaseline + */ - /** - * Scaling minNodeCount. - * @member {number} minNodeCount - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @instance - */ - Scaling.prototype.minNodeCount = 0; + /** + * Constructs a new ImportFeaturesAnalysis. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @classdesc Represents an ImportFeaturesAnalysis. + * @implements IImportFeaturesAnalysis + * @constructor + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis=} [properties] Properties to set + */ + function ImportFeaturesAnalysis(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Scaling maxNodeCount. - * @member {number} maxNodeCount - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @instance - */ - Scaling.prototype.maxNodeCount = 0; + /** + * ImportFeaturesAnalysis state. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State} state + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @instance + */ + ImportFeaturesAnalysis.prototype.state = 0; - /** - * Creates a new Scaling instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling} Scaling instance - */ - Scaling.create = function create(properties) { - return new Scaling(properties); - }; + /** + * ImportFeaturesAnalysis anomalyDetectionBaseline. + * @member {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline} anomalyDetectionBaseline + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @instance + */ + ImportFeaturesAnalysis.prototype.anomalyDetectionBaseline = 0; - /** - * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling} message Scaling message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Scaling.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.minNodeCount); - if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxNodeCount); - return writer; - }; + /** + * Creates a new ImportFeaturesAnalysis instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @static + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis} ImportFeaturesAnalysis instance + */ + ImportFeaturesAnalysis.create = function create(properties) { + return new ImportFeaturesAnalysis(properties); + }; - /** - * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling} message Scaling message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Scaling.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ImportFeaturesAnalysis message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @static + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis} message ImportFeaturesAnalysis message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportFeaturesAnalysis.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.state); + if (message.anomalyDetectionBaseline != null && Object.hasOwnProperty.call(message, "anomalyDetectionBaseline")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.anomalyDetectionBaseline); + return writer; + }; - /** - * Decodes a Scaling message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling} Scaling - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Scaling.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minNodeCount = reader.int32(); - break; - case 2: - message.maxNodeCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Encodes the specified ImportFeaturesAnalysis message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @static + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IImportFeaturesAnalysis} message ImportFeaturesAnalysis message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ImportFeaturesAnalysis.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis} ImportFeaturesAnalysis + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportFeaturesAnalysis.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.state = reader.int32(); + break; + case 2: + message.anomalyDetectionBaseline = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a Scaling message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling} Scaling - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Scaling.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes an ImportFeaturesAnalysis message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis} ImportFeaturesAnalysis + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ImportFeaturesAnalysis.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a Scaling message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Scaling.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) - if (!$util.isInteger(message.minNodeCount)) - return "minNodeCount: integer expected"; - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) - if (!$util.isInteger(message.maxNodeCount)) - return "maxNodeCount: integer expected"; - return null; - }; + /** + * Verifies an ImportFeaturesAnalysis message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ImportFeaturesAnalysis.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.anomalyDetectionBaseline != null && message.hasOwnProperty("anomalyDetectionBaseline")) + switch (message.anomalyDetectionBaseline) { + default: + return "anomalyDetectionBaseline: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + return null; + }; - /** - * Creates a Scaling message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling} Scaling - */ - Scaling.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling(); - if (object.minNodeCount != null) - message.minNodeCount = object.minNodeCount | 0; - if (object.maxNodeCount != null) - message.maxNodeCount = object.maxNodeCount | 0; - return message; - }; - - /** - * Creates a plain object from a Scaling message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @static - * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling} message Scaling - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Scaling.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.minNodeCount = 0; - object.maxNodeCount = 0; - } - if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) - object.minNodeCount = message.minNodeCount; - if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) - object.maxNodeCount = message.maxNodeCount; + /** + * Creates an ImportFeaturesAnalysis message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis} ImportFeaturesAnalysis + */ + ImportFeaturesAnalysis.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis(); + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "DEFAULT": + case 1: + message.state = 1; + break; + case "ENABLED": + case 2: + message.state = 2; + break; + case "DISABLED": + case 3: + message.state = 3; + break; + } + switch (object.anomalyDetectionBaseline) { + case "BASELINE_UNSPECIFIED": + case 0: + message.anomalyDetectionBaseline = 0; + break; + case "LATEST_STATS": + case 1: + message.anomalyDetectionBaseline = 1; + break; + case "MOST_RECENT_SNAPSHOT_STATS": + case 2: + message.anomalyDetectionBaseline = 2; + break; + case "PREVIOUS_IMPORT_FEATURES_STATS": + case 3: + message.anomalyDetectionBaseline = 3; + break; + } + return message; + }; - /** - * Converts this Scaling to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling - * @instance - * @returns {Object.} JSON object - */ - Scaling.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from an ImportFeaturesAnalysis message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @static + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis} message ImportFeaturesAnalysis + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ImportFeaturesAnalysis.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.anomalyDetectionBaseline = options.enums === String ? "BASELINE_UNSPECIFIED" : 0; + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State[message.state] : message.state; + if (message.anomalyDetectionBaseline != null && message.hasOwnProperty("anomalyDetectionBaseline")) + object.anomalyDetectionBaseline = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline[message.anomalyDetectionBaseline] : message.anomalyDetectionBaseline; + return object; + }; - return Scaling; + /** + * Converts this ImportFeaturesAnalysis to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis + * @instance + * @returns {Object.} JSON object + */ + ImportFeaturesAnalysis.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * State enum. + * @name google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} DEFAULT=1 DEFAULT value + * @property {number} ENABLED=2 ENABLED value + * @property {number} DISABLED=3 DISABLED value + */ + ImportFeaturesAnalysis.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "DEFAULT"] = 1; + values[valuesById[2] = "ENABLED"] = 2; + values[valuesById[3] = "DISABLED"] = 3; + return values; })(); - return OnlineServingConfig; - })(); + /** + * Baseline enum. + * @name google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ImportFeaturesAnalysis.Baseline + * @enum {number} + * @property {number} BASELINE_UNSPECIFIED=0 BASELINE_UNSPECIFIED value + * @property {number} LATEST_STATS=1 LATEST_STATS value + * @property {number} MOST_RECENT_SNAPSHOT_STATS=2 MOST_RECENT_SNAPSHOT_STATS value + * @property {number} PREVIOUS_IMPORT_FEATURES_STATS=3 PREVIOUS_IMPORT_FEATURES_STATS value + */ + ImportFeaturesAnalysis.Baseline = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "BASELINE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LATEST_STATS"] = 1; + values[valuesById[2] = "MOST_RECENT_SNAPSHOT_STATS"] = 2; + values[valuesById[3] = "PREVIOUS_IMPORT_FEATURES_STATS"] = 3; + return values; + })(); - /** - * State enum. - * @name google.cloud.aiplatform.v1beta1.Featurestore.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} STABLE=1 STABLE value - * @property {number} UPDATING=2 UPDATING value - */ - Featurestore.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "STABLE"] = 1; - values[valuesById[2] = "UPDATING"] = 2; - return values; + return ImportFeaturesAnalysis; })(); - return Featurestore; - })(); + FeaturestoreMonitoringConfig.ThresholdConfig = (function() { - v1beta1.FeaturestoreOnlineServingService = (function() { + /** + * Properties of a ThresholdConfig. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @interface IThresholdConfig + * @property {number|null} [value] ThresholdConfig value + */ - /** - * Constructs a new FeaturestoreOnlineServingService service. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeaturestoreOnlineServingService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function FeaturestoreOnlineServingService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Constructs a new ThresholdConfig. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig + * @classdesc Represents a ThresholdConfig. + * @implements IThresholdConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig=} [properties] Properties to set + */ + function ThresholdConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - (FeaturestoreOnlineServingService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeaturestoreOnlineServingService; + /** + * ThresholdConfig value. + * @member {number|null|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @instance + */ + ThresholdConfig.prototype.value = null; - /** - * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {FeaturestoreOnlineServingService} RPC service. Useful where requests and/or responses are streamed. - */ - FeaturestoreOnlineServingService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#readFeatureValues}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService - * @typedef ReadFeatureValuesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} [response] ReadFeatureValuesResponse - */ + /** + * ThresholdConfig threshold. + * @member {"value"|undefined} threshold + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @instance + */ + Object.defineProperty(ThresholdConfig.prototype, "threshold", { + get: $util.oneOfGetter($oneOfFields = ["value"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Calls ReadFeatureValues. - * @function readFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest} request ReadFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreOnlineServingService.prototype.readFeatureValues = function readFeatureValues(request, callback) { - return this.rpcCall(readFeatureValues, $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse, request, callback); - }, "name", { value: "ReadFeatureValues" }); + /** + * Creates a new ThresholdConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig} ThresholdConfig instance + */ + ThresholdConfig.create = function create(properties) { + return new ThresholdConfig(properties); + }; - /** - * Calls ReadFeatureValues. - * @function readFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest} request ReadFeatureValuesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig} message ThresholdConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ThresholdConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + return writer; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#streamingReadFeatureValues}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService - * @typedef StreamingReadFeatureValuesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} [response] ReadFeatureValuesResponse - */ + /** + * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.IThresholdConfig} message ThresholdConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls StreamingReadFeatureValues. - * @function streamingReadFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest} request StreamingReadFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreOnlineServingService.prototype.streamingReadFeatureValues = function streamingReadFeatureValues(request, callback) { - return this.rpcCall(streamingReadFeatureValues, $root.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse, request, callback); - }, "name", { value: "StreamingReadFeatureValues" }); + /** + * Decodes a ThresholdConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig} ThresholdConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ThresholdConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Calls StreamingReadFeatureValues. - * @function streamingReadFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest} request StreamingReadFeatureValuesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig} ThresholdConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ThresholdConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return FeaturestoreOnlineServingService; + /** + * Verifies a ThresholdConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ThresholdConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.threshold = 1; + if (typeof message.value !== "number") + return "value: number expected"; + } + return null; + }; + + /** + * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig} ThresholdConfig + */ + ThresholdConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig(); + if (object.value != null) + message.value = Number(object.value); + return message; + }; + + /** + * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig} message ThresholdConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ThresholdConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + if (options.oneofs) + object.threshold = "value"; + } + return object; + }; + + /** + * Converts this ThresholdConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.ThresholdConfig + * @instance + * @returns {Object.} JSON object + */ + ThresholdConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return ThresholdConfig; + })(); + + return FeaturestoreMonitoringConfig; })(); - v1beta1.ReadFeatureValuesRequest = (function() { + v1beta1.Event = (function() { /** - * Properties of a ReadFeatureValuesRequest. + * Properties of an Event. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IReadFeatureValuesRequest - * @property {string|null} [entityType] ReadFeatureValuesRequest entityType - * @property {string|null} [entityId] ReadFeatureValuesRequest entityId - * @property {google.cloud.aiplatform.v1beta1.IFeatureSelector|null} [featureSelector] ReadFeatureValuesRequest featureSelector + * @interface IEvent + * @property {string|null} [artifact] Event artifact + * @property {string|null} [execution] Event execution + * @property {google.protobuf.ITimestamp|null} [eventTime] Event eventTime + * @property {google.cloud.aiplatform.v1beta1.Event.Type|null} [type] Event type + * @property {Object.|null} [labels] Event labels */ /** - * Constructs a new ReadFeatureValuesRequest. + * Constructs a new Event. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ReadFeatureValuesRequest. - * @implements IReadFeatureValuesRequest + * @classdesc Represents an Event. + * @implements IEvent * @constructor - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IEvent=} [properties] Properties to set */ - function ReadFeatureValuesRequest(properties) { + function Event(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -184715,101 +189260,147 @@ } /** - * ReadFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * Event artifact. + * @member {string} artifact + * @memberof google.cloud.aiplatform.v1beta1.Event * @instance */ - ReadFeatureValuesRequest.prototype.entityType = ""; + Event.prototype.artifact = ""; /** - * ReadFeatureValuesRequest entityId. - * @member {string} entityId - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * Event execution. + * @member {string} execution + * @memberof google.cloud.aiplatform.v1beta1.Event * @instance */ - ReadFeatureValuesRequest.prototype.entityId = ""; + Event.prototype.execution = ""; /** - * ReadFeatureValuesRequest featureSelector. - * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * Event eventTime. + * @member {google.protobuf.ITimestamp|null|undefined} eventTime + * @memberof google.cloud.aiplatform.v1beta1.Event * @instance */ - ReadFeatureValuesRequest.prototype.featureSelector = null; + Event.prototype.eventTime = null; /** - * Creates a new ReadFeatureValuesRequest instance using the specified properties. + * Event type. + * @member {google.cloud.aiplatform.v1beta1.Event.Type} type + * @memberof google.cloud.aiplatform.v1beta1.Event + * @instance + */ + Event.prototype.type = 0; + + /** + * Event labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Event + * @instance + */ + Event.prototype.labels = $util.emptyObject; + + /** + * Creates a new Event instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.Event * @static - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IEvent=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Event} Event instance */ - ReadFeatureValuesRequest.create = function create(properties) { - return new ReadFeatureValuesRequest(properties); + Event.create = function create(properties) { + return new Event(properties); }; /** - * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified Event message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.Event * @static - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest} message ReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IEvent} message Event message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFeatureValuesRequest.encode = function encode(message, writer) { + Event.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId); - if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) - $root.google.cloud.aiplatform.v1beta1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.artifact != null && Object.hasOwnProperty.call(message, "artifact")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.artifact); + if (message.execution != null && Object.hasOwnProperty.call(message, "execution")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.execution); + if (message.eventTime != null && Object.hasOwnProperty.call(message, "eventTime")) + $root.google.protobuf.Timestamp.encode(message.eventTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.type); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 5, wireType 2 =*/42).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); return writer; }; /** - * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified Event message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Event.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.Event * @static - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest} message ReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IEvent} message Event message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + Event.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes an Event message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.Event * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.Event} Event * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFeatureValuesRequest.decode = function decode(reader, length) { + Event.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Event(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.entityType = reader.string(); + message.artifact = reader.string(); break; case 2: - message.entityId = reader.string(); + message.execution = reader.string(); break; case 3: - message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); + message.eventTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.type = reader.int32(); + break; + case 5: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; break; default: reader.skipType(tag & 7); @@ -184820,130 +189411,205 @@ }; /** - * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes an Event message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.Event * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.Event} Event * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + Event.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadFeatureValuesRequest message. + * Verifies an Event message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.Event * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadFeatureValuesRequest.verify = function verify(message) { + Event.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.entityId != null && message.hasOwnProperty("entityId")) - if (!$util.isString(message.entityId)) - return "entityId: string expected"; - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.verify(message.featureSelector); + if (message.artifact != null && message.hasOwnProperty("artifact")) + if (!$util.isString(message.artifact)) + return "artifact: string expected"; + if (message.execution != null && message.hasOwnProperty("execution")) + if (!$util.isString(message.execution)) + return "execution: string expected"; + if (message.eventTime != null && message.hasOwnProperty("eventTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.eventTime); if (error) - return "featureSelector." + error; + return "eventTime." + error; + } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; } return null; }; /** - * Creates a ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Event message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.Event * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.Event} Event */ - ReadFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) + Event.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Event) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest(); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.entityId != null) - message.entityId = String(object.entityId); - if (object.featureSelector != null) { - if (typeof object.featureSelector !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.featureSelector: object expected"); - message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.fromObject(object.featureSelector); + var message = new $root.google.cloud.aiplatform.v1beta1.Event(); + if (object.artifact != null) + message.artifact = String(object.artifact); + if (object.execution != null) + message.execution = String(object.execution); + if (object.eventTime != null) { + if (typeof object.eventTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Event.eventTime: object expected"); + message.eventTime = $root.google.protobuf.Timestamp.fromObject(object.eventTime); + } + switch (object.type) { + case "TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "INPUT": + case 1: + message.type = 1; + break; + case "OUTPUT": + case 2: + message.type = 2; + break; + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Event.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); } return message; }; /** - * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. + * Creates a plain object from an Event message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.Event * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} message ReadFeatureValuesRequest + * @param {google.cloud.aiplatform.v1beta1.Event} message Event * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadFeatureValuesRequest.toObject = function toObject(message, options) { + Event.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.entityType = ""; - object.entityId = ""; - object.featureSelector = null; + object.artifact = ""; + object.execution = ""; + object.eventTime = null; + object.type = options.enums === String ? "TYPE_UNSPECIFIED" : 0; + } + if (message.artifact != null && message.hasOwnProperty("artifact")) + object.artifact = message.artifact; + if (message.execution != null && message.hasOwnProperty("execution")) + object.execution = message.execution; + if (message.eventTime != null && message.hasOwnProperty("eventTime")) + object.eventTime = $root.google.protobuf.Timestamp.toObject(message.eventTime, options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Event.Type[message.type] : message.type; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.entityId != null && message.hasOwnProperty("entityId")) - object.entityId = message.entityId; - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) - object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, options); return object; }; /** - * Converts this ReadFeatureValuesRequest to JSON. + * Converts this Event to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.Event * @instance * @returns {Object.} JSON object */ - ReadFeatureValuesRequest.prototype.toJSON = function toJSON() { + Event.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ReadFeatureValuesRequest; + /** + * Type enum. + * @name google.cloud.aiplatform.v1beta1.Event.Type + * @enum {number} + * @property {number} TYPE_UNSPECIFIED=0 TYPE_UNSPECIFIED value + * @property {number} INPUT=1 INPUT value + * @property {number} OUTPUT=2 OUTPUT value + */ + Event.Type = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "INPUT"] = 1; + values[valuesById[2] = "OUTPUT"] = 2; + return values; + })(); + + return Event; })(); - v1beta1.ReadFeatureValuesResponse = (function() { + v1beta1.Execution = (function() { /** - * Properties of a ReadFeatureValuesResponse. + * Properties of an Execution. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IReadFeatureValuesResponse - * @property {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null} [header] ReadFeatureValuesResponse header - * @property {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null} [entityView] ReadFeatureValuesResponse entityView + * @interface IExecution + * @property {string|null} [name] Execution name + * @property {string|null} [displayName] Execution displayName + * @property {google.cloud.aiplatform.v1beta1.Execution.State|null} [state] Execution state + * @property {string|null} [etag] Execution etag + * @property {Object.|null} [labels] Execution labels + * @property {google.protobuf.ITimestamp|null} [createTime] Execution createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Execution updateTime + * @property {string|null} [schemaTitle] Execution schemaTitle + * @property {string|null} [schemaVersion] Execution schemaVersion + * @property {google.protobuf.IStruct|null} [metadata] Execution metadata + * @property {string|null} [description] Execution description */ /** - * Constructs a new ReadFeatureValuesResponse. + * Constructs a new Execution. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ReadFeatureValuesResponse. - * @implements IReadFeatureValuesResponse + * @classdesc Represents an Execution. + * @implements IExecution * @constructor - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExecution=} [properties] Properties to set */ - function ReadFeatureValuesResponse(properties) { + function Execution(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -184951,88 +189617,225 @@ } /** - * ReadFeatureValuesResponse header. - * @member {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null|undefined} header - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * Execution name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Execution * @instance */ - ReadFeatureValuesResponse.prototype.header = null; + Execution.prototype.name = ""; /** - * ReadFeatureValuesResponse entityView. - * @member {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null|undefined} entityView - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * Execution displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Execution * @instance */ - ReadFeatureValuesResponse.prototype.entityView = null; + Execution.prototype.displayName = ""; /** - * Creates a new ReadFeatureValuesResponse instance using the specified properties. + * Execution state. + * @member {google.cloud.aiplatform.v1beta1.Execution.State} state + * @memberof google.cloud.aiplatform.v1beta1.Execution + * @instance + */ + Execution.prototype.state = 0; + + /** + * Execution etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Execution + * @instance + */ + Execution.prototype.etag = ""; + + /** + * Execution labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Execution + * @instance + */ + Execution.prototype.labels = $util.emptyObject; + + /** + * Execution createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Execution + * @instance + */ + Execution.prototype.createTime = null; + + /** + * Execution updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Execution + * @instance + */ + Execution.prototype.updateTime = null; + + /** + * Execution schemaTitle. + * @member {string} schemaTitle + * @memberof google.cloud.aiplatform.v1beta1.Execution + * @instance + */ + Execution.prototype.schemaTitle = ""; + + /** + * Execution schemaVersion. + * @member {string} schemaVersion + * @memberof google.cloud.aiplatform.v1beta1.Execution + * @instance + */ + Execution.prototype.schemaVersion = ""; + + /** + * Execution metadata. + * @member {google.protobuf.IStruct|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.Execution + * @instance + */ + Execution.prototype.metadata = null; + + /** + * Execution description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Execution + * @instance + */ + Execution.prototype.description = ""; + + /** + * Creates a new Execution instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IExecution=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution instance */ - ReadFeatureValuesResponse.create = function create(properties) { - return new ReadFeatureValuesResponse(properties); + Execution.create = function create(properties) { + return new Execution(properties); }; /** - * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. + * Encodes the specified Execution message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse} message ReadFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExecution} message Execution message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFeatureValuesResponse.encode = function encode(message, writer) { + Execution.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.header != null && Object.hasOwnProperty.call(message, "header")) - $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.entityView != null && Object.hasOwnProperty.call(message, "entityView")) - $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.encode(message.entityView, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.state); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.schemaTitle != null && Object.hasOwnProperty.call(message, "schemaTitle")) + writer.uint32(/* id 13, wireType 2 =*/106).string(message.schemaTitle); + if (message.schemaVersion != null && Object.hasOwnProperty.call(message, "schemaVersion")) + writer.uint32(/* id 14, wireType 2 =*/114).string(message.schemaVersion); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Struct.encode(message.metadata, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.description); return writer; }; /** - * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. + * Encodes the specified Execution message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Execution.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static - * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse} message ReadFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExecution} message Execution message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + Execution.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. + * Decodes an Execution message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFeatureValuesResponse.decode = function decode(reader, length) { + Execution.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Execution(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.header = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.decode(reader, reader.uint32()); + message.name = reader.string(); break; case 2: - message.entityView = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.decode(reader, reader.uint32()); + message.displayName = reader.string(); + break; + case 6: + message.state = reader.int32(); + break; + case 9: + message.etag = reader.string(); + break; + case 10: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 11: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 13: + message.schemaTitle = reader.string(); + break; + case 14: + message.schemaVersion = reader.string(); + break; + case 15: + message.metadata = $root.google.protobuf.Struct.decode(reader, reader.uint32()); + break; + case 16: + message.description = reader.string(); break; default: reader.skipType(tag & 7); @@ -185043,123 +189846,834 @@ }; /** - * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes an Execution message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ReadFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + Execution.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ReadFeatureValuesResponse message. + * Verifies an Execution message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ReadFeatureValuesResponse.verify = function verify(message) { + Execution.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.header != null && message.hasOwnProperty("header")) { - var error = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify(message.header); - if (error) - return "header." + error; - } - if (message.entityView != null && message.hasOwnProperty("entityView")) { - var error = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify(message.entityView); - if (error) - return "entityView." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + break; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) + if (!$util.isString(message.schemaTitle)) + return "schemaTitle: string expected"; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + if (!$util.isString(message.schemaVersion)) + return "schemaVersion: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Struct.verify(message.metadata); + if (error) + return "metadata." + error; + } + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; return null; }; /** - * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an Execution message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.Execution} Execution */ - ReadFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) + Execution.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Execution) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse(); - if (object.header != null) { - if (typeof object.header !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header: object expected"); - message.header = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.fromObject(object.header); + var message = new $root.google.cloud.aiplatform.v1beta1.Execution(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "NEW": + case 1: + message.state = 1; + break; + case "RUNNING": + case 2: + message.state = 2; + break; + case "COMPLETE": + case 3: + message.state = 3; + break; + case "FAILED": + case 4: + message.state = 4; + break; + case "CACHED": + case 5: + message.state = 5; + break; + case "CANCELLED": + case 6: + message.state = 6; + break; } - if (object.entityView != null) { - if (typeof object.entityView !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.entityView: object expected"); - message.entityView = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.fromObject(object.entityView); + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Execution.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Execution.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Execution.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.schemaTitle != null) + message.schemaTitle = String(object.schemaTitle); + if (object.schemaVersion != null) + message.schemaVersion = String(object.schemaVersion); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Execution.metadata: object expected"); + message.metadata = $root.google.protobuf.Struct.fromObject(object.metadata); } + if (object.description != null) + message.description = String(object.description); return message; }; /** - * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. + * Creates a plain object from an Execution message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.Execution * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} message ReadFeatureValuesResponse + * @param {google.cloud.aiplatform.v1beta1.Execution} message Execution * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ReadFeatureValuesResponse.toObject = function toObject(message, options) { + Execution.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.header = null; - object.entityView = null; + object.name = ""; + object.displayName = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.schemaTitle = ""; + object.schemaVersion = ""; + object.metadata = null; + object.description = ""; } - if (message.header != null && message.hasOwnProperty("header")) - object.header = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.toObject(message.header, options); - if (message.entityView != null && message.hasOwnProperty("entityView")) - object.entityView = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.toObject(message.entityView, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Execution.State[message.state] : message.state; + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.schemaTitle != null && message.hasOwnProperty("schemaTitle")) + object.schemaTitle = message.schemaTitle; + if (message.schemaVersion != null && message.hasOwnProperty("schemaVersion")) + object.schemaVersion = message.schemaVersion; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Struct.toObject(message.metadata, options); + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; return object; }; /** - * Converts this ReadFeatureValuesResponse to JSON. + * Converts this Execution to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.Execution * @instance * @returns {Object.} JSON object */ - ReadFeatureValuesResponse.prototype.toJSON = function toJSON() { + Execution.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ReadFeatureValuesResponse.FeatureDescriptor = (function() { + /** + * State enum. + * @name google.cloud.aiplatform.v1beta1.Execution.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} NEW=1 NEW value + * @property {number} RUNNING=2 RUNNING value + * @property {number} COMPLETE=3 COMPLETE value + * @property {number} FAILED=4 FAILED value + * @property {number} CACHED=5 CACHED value + * @property {number} CANCELLED=6 CANCELLED value + */ + Execution.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "NEW"] = 1; + values[valuesById[2] = "RUNNING"] = 2; + values[valuesById[3] = "COMPLETE"] = 3; + values[valuesById[4] = "FAILED"] = 4; + values[valuesById[5] = "CACHED"] = 5; + values[valuesById[6] = "CANCELLED"] = 6; + return values; + })(); + + return Execution; + })(); + + v1beta1.Feature = (function() { + + /** + * Properties of a Feature. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IFeature + * @property {string|null} [name] Feature name + * @property {string|null} [description] Feature description + * @property {google.cloud.aiplatform.v1beta1.Feature.ValueType|null} [valueType] Feature valueType + * @property {google.protobuf.ITimestamp|null} [createTime] Feature createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Feature updateTime + * @property {Object.|null} [labels] Feature labels + * @property {string|null} [etag] Feature etag + * @property {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null} [monitoringConfig] Feature monitoringConfig + * @property {boolean|null} [disableMonitoring] Feature disableMonitoring + * @property {Array.|null} [monitoringStats] Feature monitoringStats + * @property {Array.|null} [monitoringStatsAnomalies] Feature monitoringStatsAnomalies + */ + + /** + * Constructs a new Feature. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a Feature. + * @implements IFeature + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IFeature=} [properties] Properties to set + */ + function Feature(properties) { + this.labels = {}; + this.monitoringStats = []; + this.monitoringStatsAnomalies = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Feature name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.name = ""; + + /** + * Feature description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.description = ""; + + /** + * Feature valueType. + * @member {google.cloud.aiplatform.v1beta1.Feature.ValueType} valueType + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.valueType = 0; + + /** + * Feature createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.createTime = null; + + /** + * Feature updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.updateTime = null; + + /** + * Feature labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.labels = $util.emptyObject; + + /** + * Feature etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.etag = ""; + + /** + * Feature monitoringConfig. + * @member {google.cloud.aiplatform.v1beta1.IFeaturestoreMonitoringConfig|null|undefined} monitoringConfig + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.monitoringConfig = null; + + /** + * Feature disableMonitoring. + * @member {boolean} disableMonitoring + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.disableMonitoring = false; + + /** + * Feature monitoringStats. + * @member {Array.} monitoringStats + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.monitoringStats = $util.emptyArray; + + /** + * Feature monitoringStatsAnomalies. + * @member {Array.} monitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + */ + Feature.prototype.monitoringStatsAnomalies = $util.emptyArray; + + /** + * Creates a new Feature instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeature=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature instance + */ + Feature.create = function create(properties) { + return new Feature(properties); + }; + + /** + * Encodes the specified Feature message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeature} message Feature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Feature.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.description); + if (message.valueType != null && Object.hasOwnProperty.call(message, "valueType")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.valueType); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.etag); + if (message.monitoringConfig != null && Object.hasOwnProperty.call(message, "monitoringConfig")) + $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.encode(message.monitoringConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.monitoringStats != null && message.monitoringStats.length) + for (var i = 0; i < message.monitoringStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.monitoringStats[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.monitoringStatsAnomalies != null && message.monitoringStatsAnomalies.length) + for (var i = 0; i < message.monitoringStatsAnomalies.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.encode(message.monitoringStatsAnomalies[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.disableMonitoring != null && Object.hasOwnProperty.call(message, "disableMonitoring")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableMonitoring); + return writer; + }; + + /** + * Encodes the specified Feature message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @static + * @param {google.cloud.aiplatform.v1beta1.IFeature} message Feature message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Feature.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Feature message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Feature.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Feature(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.description = reader.string(); + break; + case 3: + message.valueType = reader.int32(); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 7: + message.etag = reader.string(); + break; + case 9: + message.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.decode(reader, reader.uint32()); + break; + case 12: + message.disableMonitoring = reader.bool(); + break; + case 10: + if (!(message.monitoringStats && message.monitoringStats.length)) + message.monitoringStats = []; + message.monitoringStats.push($root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32())); + break; + case 11: + if (!(message.monitoringStatsAnomalies && message.monitoringStatsAnomalies.length)) + message.monitoringStatsAnomalies = []; + message.monitoringStatsAnomalies.push($root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Feature message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Feature.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Feature message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Feature.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.valueType != null && message.hasOwnProperty("valueType")) + switch (message.valueType) { + default: + return "valueType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 9: + case 10: + case 11: + case 12: + case 13: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.verify(message.monitoringConfig); + if (error) + return "monitoringConfig." + error; + } + if (message.disableMonitoring != null && message.hasOwnProperty("disableMonitoring")) + if (typeof message.disableMonitoring !== "boolean") + return "disableMonitoring: boolean expected"; + if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { + if (!Array.isArray(message.monitoringStats)) + return "monitoringStats: array expected"; + for (var i = 0; i < message.monitoringStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.monitoringStats[i]); + if (error) + return "monitoringStats." + error; + } + } + if (message.monitoringStatsAnomalies != null && message.hasOwnProperty("monitoringStatsAnomalies")) { + if (!Array.isArray(message.monitoringStatsAnomalies)) + return "monitoringStatsAnomalies: array expected"; + for (var i = 0; i < message.monitoringStatsAnomalies.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify(message.monitoringStatsAnomalies[i]); + if (error) + return "monitoringStatsAnomalies." + error; + } + } + return null; + }; + + /** + * Creates a Feature message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Feature} Feature + */ + Feature.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Feature) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Feature(); + if (object.name != null) + message.name = String(object.name); + if (object.description != null) + message.description = String(object.description); + switch (object.valueType) { + case "VALUE_TYPE_UNSPECIFIED": + case 0: + message.valueType = 0; + break; + case "BOOL": + case 1: + message.valueType = 1; + break; + case "BOOL_ARRAY": + case 2: + message.valueType = 2; + break; + case "DOUBLE": + case 3: + message.valueType = 3; + break; + case "DOUBLE_ARRAY": + case 4: + message.valueType = 4; + break; + case "INT64": + case 9: + message.valueType = 9; + break; + case "INT64_ARRAY": + case 10: + message.valueType = 10; + break; + case "STRING": + case 11: + message.valueType = 11; + break; + case "STRING_ARRAY": + case 12: + message.valueType = 12; + break; + case "BYTES": + case 13: + message.valueType = 13; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.monitoringConfig != null) { + if (typeof object.monitoringConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.monitoringConfig: object expected"); + message.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.fromObject(object.monitoringConfig); + } + if (object.disableMonitoring != null) + message.disableMonitoring = Boolean(object.disableMonitoring); + if (object.monitoringStats) { + if (!Array.isArray(object.monitoringStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.monitoringStats: array expected"); + message.monitoringStats = []; + for (var i = 0; i < object.monitoringStats.length; ++i) { + if (typeof object.monitoringStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.monitoringStats: object expected"); + message.monitoringStats[i] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.monitoringStats[i]); + } + } + if (object.monitoringStatsAnomalies) { + if (!Array.isArray(object.monitoringStatsAnomalies)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.monitoringStatsAnomalies: array expected"); + message.monitoringStatsAnomalies = []; + for (var i = 0; i < object.monitoringStatsAnomalies.length; ++i) { + if (typeof object.monitoringStatsAnomalies[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.monitoringStatsAnomalies: object expected"); + message.monitoringStatsAnomalies[i] = $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.fromObject(object.monitoringStatsAnomalies[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Feature message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @static + * @param {google.cloud.aiplatform.v1beta1.Feature} message Feature + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Feature.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.monitoringStats = []; + object.monitoringStatsAnomalies = []; + } + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.description = ""; + object.valueType = options.enums === String ? "VALUE_TYPE_UNSPECIFIED" : 0; + object.createTime = null; + object.updateTime = null; + object.etag = ""; + object.monitoringConfig = null; + object.disableMonitoring = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.valueType != null && message.hasOwnProperty("valueType")) + object.valueType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Feature.ValueType[message.valueType] : message.valueType; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + if (message.monitoringConfig != null && message.hasOwnProperty("monitoringConfig")) + object.monitoringConfig = $root.google.cloud.aiplatform.v1beta1.FeaturestoreMonitoringConfig.toObject(message.monitoringConfig, options); + if (message.monitoringStats && message.monitoringStats.length) { + object.monitoringStats = []; + for (var j = 0; j < message.monitoringStats.length; ++j) + object.monitoringStats[j] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.monitoringStats[j], options); + } + if (message.monitoringStatsAnomalies && message.monitoringStatsAnomalies.length) { + object.monitoringStatsAnomalies = []; + for (var j = 0; j < message.monitoringStatsAnomalies.length; ++j) + object.monitoringStatsAnomalies[j] = $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.toObject(message.monitoringStatsAnomalies[j], options); + } + if (message.disableMonitoring != null && message.hasOwnProperty("disableMonitoring")) + object.disableMonitoring = message.disableMonitoring; + return object; + }; + + /** + * Converts this Feature to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @instance + * @returns {Object.} JSON object + */ + Feature.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + Feature.MonitoringStatsAnomaly = (function() { /** - * Properties of a FeatureDescriptor. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @interface IFeatureDescriptor - * @property {string|null} [id] FeatureDescriptor id + * Properties of a MonitoringStatsAnomaly. + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @interface IMonitoringStatsAnomaly + * @property {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective|null} [objective] MonitoringStatsAnomaly objective + * @property {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null} [featureStatsAnomaly] MonitoringStatsAnomaly featureStatsAnomaly */ /** - * Constructs a new FeatureDescriptor. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @classdesc Represents a FeatureDescriptor. - * @implements IFeatureDescriptor + * Constructs a new MonitoringStatsAnomaly. + * @memberof google.cloud.aiplatform.v1beta1.Feature + * @classdesc Represents a MonitoringStatsAnomaly. + * @implements IMonitoringStatsAnomaly * @constructor - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly=} [properties] Properties to set */ - function FeatureDescriptor(properties) { + function MonitoringStatsAnomaly(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -185167,75 +190681,88 @@ } /** - * FeatureDescriptor id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * MonitoringStatsAnomaly objective. + * @member {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective} objective + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @instance */ - FeatureDescriptor.prototype.id = ""; + MonitoringStatsAnomaly.prototype.objective = 0; /** - * Creates a new FeatureDescriptor instance using the specified properties. + * MonitoringStatsAnomaly featureStatsAnomaly. + * @member {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null|undefined} featureStatsAnomaly + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly + * @instance + */ + MonitoringStatsAnomaly.prototype.featureStatsAnomaly = null; + + /** + * Creates a new MonitoringStatsAnomaly instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor instance + * @param {google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} MonitoringStatsAnomaly instance */ - FeatureDescriptor.create = function create(properties) { - return new FeatureDescriptor(properties); + MonitoringStatsAnomaly.create = function create(properties) { + return new MonitoringStatsAnomaly(properties); }; /** - * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * Encodes the specified MonitoringStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor} message FeatureDescriptor message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly} message MonitoringStatsAnomaly message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureDescriptor.encode = function encode(message, writer) { + MonitoringStatsAnomaly.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); + if (message.featureStatsAnomaly != null && Object.hasOwnProperty.call(message, "featureStatsAnomaly")) + $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.featureStatsAnomaly, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * Encodes the specified MonitoringStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor} message FeatureDescriptor message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.Feature.IMonitoringStatsAnomaly} message MonitoringStatsAnomaly message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + MonitoringStatsAnomaly.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureDescriptor message from the specified reader or buffer. + * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + * @returns {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} MonitoringStatsAnomaly * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureDescriptor.decode = function decode(reader, length) { + MonitoringStatsAnomaly.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.id = reader.string(); + message.objective = reader.int32(); + break; + case 2: + message.featureStatsAnomaly = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -185246,820 +190773,194 @@ }; /** - * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. + * Decodes a MonitoringStatsAnomaly message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + * @returns {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} MonitoringStatsAnomaly * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureDescriptor.decodeDelimited = function decodeDelimited(reader) { + MonitoringStatsAnomaly.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureDescriptor message. + * Verifies a MonitoringStatsAnomaly message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeatureDescriptor.verify = function verify(message) { + MonitoringStatsAnomaly.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; + if (message.objective != null && message.hasOwnProperty("objective")) + switch (message.objective) { + default: + return "objective: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.featureStatsAnomaly != null && message.hasOwnProperty("featureStatsAnomaly")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.featureStatsAnomaly); + if (error) + return "featureStatsAnomaly." + error; + } return null; }; /** - * Creates a FeatureDescriptor message from a plain object. Also converts values to their respective internal types. + * Creates a MonitoringStatsAnomaly message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + * @returns {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} MonitoringStatsAnomaly */ - FeatureDescriptor.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor) + MonitoringStatsAnomaly.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor(); - if (object.id != null) - message.id = String(object.id); + var message = new $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly(); + switch (object.objective) { + case "OBJECTIVE_UNSPECIFIED": + case 0: + message.objective = 0; + break; + case "IMPORT_FEATURE_ANALYSIS": + case 1: + message.objective = 1; + break; + case "SNAPSHOT_ANALYSIS": + case 2: + message.objective = 2; + break; + } + if (object.featureStatsAnomaly != null) { + if (typeof object.featureStatsAnomaly !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.featureStatsAnomaly: object expected"); + message.featureStatsAnomaly = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.featureStatsAnomaly); + } return message; }; /** - * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. + * Creates a plain object from a MonitoringStatsAnomaly message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} message FeatureDescriptor + * @param {google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly} message MonitoringStatsAnomaly * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureDescriptor.toObject = function toObject(message, options) { + MonitoringStatsAnomaly.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.id = ""; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; + if (options.defaults) { + object.objective = options.enums === String ? "OBJECTIVE_UNSPECIFIED" : 0; + object.featureStatsAnomaly = null; + } + if (message.objective != null && message.hasOwnProperty("objective")) + object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective[message.objective] : message.objective; + if (message.featureStatsAnomaly != null && message.hasOwnProperty("featureStatsAnomaly")) + object.featureStatsAnomaly = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.featureStatsAnomaly, options); return object; }; /** - * Converts this FeatureDescriptor to JSON. + * Converts this MonitoringStatsAnomaly to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @memberof google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly * @instance * @returns {Object.} JSON object */ - FeatureDescriptor.prototype.toJSON = function toJSON() { + MonitoringStatsAnomaly.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeatureDescriptor; - })(); - - ReadFeatureValuesResponse.Header = (function() { - - /** - * Properties of a Header. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @interface IHeader - * @property {string|null} [entityType] Header entityType - * @property {Array.|null} [featureDescriptors] Header featureDescriptors - */ - - /** - * Constructs a new Header. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @classdesc Represents a Header. - * @implements IHeader - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader=} [properties] Properties to set - */ - function Header(properties) { - this.featureDescriptors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Header entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @instance - */ - Header.prototype.entityType = ""; - /** - * Header featureDescriptors. - * @member {Array.} featureDescriptors - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @instance + * Objective enum. + * @name google.cloud.aiplatform.v1beta1.Feature.MonitoringStatsAnomaly.Objective + * @enum {number} + * @property {number} OBJECTIVE_UNSPECIFIED=0 OBJECTIVE_UNSPECIFIED value + * @property {number} IMPORT_FEATURE_ANALYSIS=1 IMPORT_FEATURE_ANALYSIS value + * @property {number} SNAPSHOT_ANALYSIS=2 SNAPSHOT_ANALYSIS value */ - Header.prototype.featureDescriptors = $util.emptyArray; + MonitoringStatsAnomaly.Objective = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OBJECTIVE_UNSPECIFIED"] = 0; + values[valuesById[1] = "IMPORT_FEATURE_ANALYSIS"] = 1; + values[valuesById[2] = "SNAPSHOT_ANALYSIS"] = 2; + return values; + })(); - /** - * Creates a new Header instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} Header instance - */ - Header.create = function create(properties) { - return new Header(properties); - }; + return MonitoringStatsAnomaly; + })(); - /** - * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader} message Header message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Header.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.featureDescriptors != null && message.featureDescriptors.length) - for (var i = 0; i < message.featureDescriptors.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.encode(message.featureDescriptors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader} message Header message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Header.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Header message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} Header - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Header.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.entityType = reader.string(); - break; - case 2: - if (!(message.featureDescriptors && message.featureDescriptors.length)) - message.featureDescriptors = []; - message.featureDescriptors.push($root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Header message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} Header - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Header.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Header message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Header.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.featureDescriptors != null && message.hasOwnProperty("featureDescriptors")) { - if (!Array.isArray(message.featureDescriptors)) - return "featureDescriptors: array expected"; - for (var i = 0; i < message.featureDescriptors.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify(message.featureDescriptors[i]); - if (error) - return "featureDescriptors." + error; - } - } - return null; - }; - - /** - * Creates a Header message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} Header - */ - Header.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header(); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.featureDescriptors) { - if (!Array.isArray(object.featureDescriptors)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.featureDescriptors: array expected"); - message.featureDescriptors = []; - for (var i = 0; i < object.featureDescriptors.length; ++i) { - if (typeof object.featureDescriptors[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.featureDescriptors: object expected"); - message.featureDescriptors[i] = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.fromObject(object.featureDescriptors[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a Header message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} message Header - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Header.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.featureDescriptors = []; - if (options.defaults) - object.entityType = ""; - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.featureDescriptors && message.featureDescriptors.length) { - object.featureDescriptors = []; - for (var j = 0; j < message.featureDescriptors.length; ++j) - object.featureDescriptors[j] = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.toObject(message.featureDescriptors[j], options); - } - return object; - }; - - /** - * Converts this Header to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header - * @instance - * @returns {Object.} JSON object - */ - Header.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Header; - })(); - - ReadFeatureValuesResponse.EntityView = (function() { - - /** - * Properties of an EntityView. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @interface IEntityView - * @property {string|null} [entityId] EntityView entityId - * @property {Array.|null} [data] EntityView data - */ - - /** - * Constructs a new EntityView. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - * @classdesc Represents an EntityView. - * @implements IEntityView - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView=} [properties] Properties to set - */ - function EntityView(properties) { - this.data = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EntityView entityId. - * @member {string} entityId - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @instance - */ - EntityView.prototype.entityId = ""; - - /** - * EntityView data. - * @member {Array.} data - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @instance - */ - EntityView.prototype.data = $util.emptyArray; - - /** - * Creates a new EntityView instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} EntityView instance - */ - EntityView.create = function create(properties) { - return new EntityView(properties); - }; - - /** - * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView} message EntityView message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EntityView.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); - if (message.data != null && message.data.length) - for (var i = 0; i < message.data.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.encode(message.data[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView} message EntityView message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EntityView.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EntityView message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} EntityView - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EntityView.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.entityId = reader.string(); - break; - case 2: - if (!(message.data && message.data.length)) - message.data = []; - message.data.push($root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EntityView message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} EntityView - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EntityView.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EntityView message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EntityView.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entityId != null && message.hasOwnProperty("entityId")) - if (!$util.isString(message.entityId)) - return "entityId: string expected"; - if (message.data != null && message.hasOwnProperty("data")) { - if (!Array.isArray(message.data)) - return "data: array expected"; - for (var i = 0; i < message.data.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify(message.data[i]); - if (error) - return "data." + error; - } - } - return null; - }; - - /** - * Creates an EntityView message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} EntityView - */ - EntityView.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView(); - if (object.entityId != null) - message.entityId = String(object.entityId); - if (object.data) { - if (!Array.isArray(object.data)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.data: array expected"); - message.data = []; - for (var i = 0; i < object.data.length; ++i) { - if (typeof object.data[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.data: object expected"); - message.data[i] = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.fromObject(object.data[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an EntityView message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} message EntityView - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EntityView.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.data = []; - if (options.defaults) - object.entityId = ""; - if (message.entityId != null && message.hasOwnProperty("entityId")) - object.entityId = message.entityId; - if (message.data && message.data.length) { - object.data = []; - for (var j = 0; j < message.data.length; ++j) - object.data[j] = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.toObject(message.data[j], options); - } - return object; - }; - - /** - * Converts this EntityView to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @instance - * @returns {Object.} JSON object - */ - EntityView.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - EntityView.Data = (function() { - - /** - * Properties of a Data. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @interface IData - * @property {google.cloud.aiplatform.v1beta1.IFeatureValue|null} [value] Data value - * @property {google.cloud.aiplatform.v1beta1.IFeatureValueList|null} [values] Data values - */ - - /** - * Constructs a new Data. - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView - * @classdesc Represents a Data. - * @implements IData - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData=} [properties] Properties to set - */ - function Data(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Data value. - * @member {google.cloud.aiplatform.v1beta1.IFeatureValue|null|undefined} value - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @instance - */ - Data.prototype.value = null; - - /** - * Data values. - * @member {google.cloud.aiplatform.v1beta1.IFeatureValueList|null|undefined} values - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @instance - */ - Data.prototype.values = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * Data data. - * @member {"value"|"values"|undefined} data - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @instance - */ - Object.defineProperty(Data.prototype, "data", { - get: $util.oneOfGetter($oneOfFields = ["value", "values"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new Data instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} Data instance - */ - Data.create = function create(properties) { - return new Data(properties); - }; - - /** - * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData} message Data message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Data.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.cloud.aiplatform.v1beta1.FeatureValue.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.values != null && Object.hasOwnProperty.call(message, "values")) - $root.google.cloud.aiplatform.v1beta1.FeatureValueList.encode(message.values, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData} message Data message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Data.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Data message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Data.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.value = $root.google.cloud.aiplatform.v1beta1.FeatureValue.decode(reader, reader.uint32()); - break; - case 2: - message.values = $root.google.cloud.aiplatform.v1beta1.FeatureValueList.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Data message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} Data - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Data.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Data message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Data.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.data = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureValue.verify(message.value); - if (error) - return "value." + error; - } - } - if (message.values != null && message.hasOwnProperty("values")) { - if (properties.data === 1) - return "data: multiple values"; - properties.data = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureValueList.verify(message.values); - if (error) - return "values." + error; - } - } - return null; - }; - - /** - * Creates a Data message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} Data - */ - Data.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data(); - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.value: object expected"); - message.value = $root.google.cloud.aiplatform.v1beta1.FeatureValue.fromObject(object.value); - } - if (object.values != null) { - if (typeof object.values !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.values: object expected"); - message.values = $root.google.cloud.aiplatform.v1beta1.FeatureValueList.fromObject(object.values); - } - return message; - }; - - /** - * Creates a plain object from a Data message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @static - * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} message Data - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Data.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (message.value != null && message.hasOwnProperty("value")) { - object.value = $root.google.cloud.aiplatform.v1beta1.FeatureValue.toObject(message.value, options); - if (options.oneofs) - object.data = "value"; - } - if (message.values != null && message.hasOwnProperty("values")) { - object.values = $root.google.cloud.aiplatform.v1beta1.FeatureValueList.toObject(message.values, options); - if (options.oneofs) - object.data = "values"; - } - return object; - }; - - /** - * Converts this Data to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data - * @instance - * @returns {Object.} JSON object - */ - Data.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Data; - })(); - - return EntityView; + /** + * ValueType enum. + * @name google.cloud.aiplatform.v1beta1.Feature.ValueType + * @enum {number} + * @property {number} VALUE_TYPE_UNSPECIFIED=0 VALUE_TYPE_UNSPECIFIED value + * @property {number} BOOL=1 BOOL value + * @property {number} BOOL_ARRAY=2 BOOL_ARRAY value + * @property {number} DOUBLE=3 DOUBLE value + * @property {number} DOUBLE_ARRAY=4 DOUBLE_ARRAY value + * @property {number} INT64=9 INT64 value + * @property {number} INT64_ARRAY=10 INT64_ARRAY value + * @property {number} STRING=11 STRING value + * @property {number} STRING_ARRAY=12 STRING_ARRAY value + * @property {number} BYTES=13 BYTES value + */ + Feature.ValueType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "VALUE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "BOOL"] = 1; + values[valuesById[2] = "BOOL_ARRAY"] = 2; + values[valuesById[3] = "DOUBLE"] = 3; + values[valuesById[4] = "DOUBLE_ARRAY"] = 4; + values[valuesById[9] = "INT64"] = 9; + values[valuesById[10] = "INT64_ARRAY"] = 10; + values[valuesById[11] = "STRING"] = 11; + values[valuesById[12] = "STRING_ARRAY"] = 12; + values[valuesById[13] = "BYTES"] = 13; + return values; })(); - return ReadFeatureValuesResponse; + return Feature; })(); - v1beta1.StreamingReadFeatureValuesRequest = (function() { + v1beta1.FeatureStatsAnomaly = (function() { /** - * Properties of a StreamingReadFeatureValuesRequest. + * Properties of a FeatureStatsAnomaly. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStreamingReadFeatureValuesRequest - * @property {string|null} [entityType] StreamingReadFeatureValuesRequest entityType - * @property {Array.|null} [entityIds] StreamingReadFeatureValuesRequest entityIds - * @property {google.cloud.aiplatform.v1beta1.IFeatureSelector|null} [featureSelector] StreamingReadFeatureValuesRequest featureSelector + * @interface IFeatureStatsAnomaly + * @property {number|null} [score] FeatureStatsAnomaly score + * @property {string|null} [statsUri] FeatureStatsAnomaly statsUri + * @property {string|null} [anomalyUri] FeatureStatsAnomaly anomalyUri + * @property {number|null} [distributionDeviation] FeatureStatsAnomaly distributionDeviation + * @property {number|null} [anomalyDetectionThreshold] FeatureStatsAnomaly anomalyDetectionThreshold + * @property {google.protobuf.ITimestamp|null} [startTime] FeatureStatsAnomaly startTime + * @property {google.protobuf.ITimestamp|null} [endTime] FeatureStatsAnomaly endTime */ /** - * Constructs a new StreamingReadFeatureValuesRequest. + * Constructs a new FeatureStatsAnomaly. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StreamingReadFeatureValuesRequest. - * @implements IStreamingReadFeatureValuesRequest + * @classdesc Represents a FeatureStatsAnomaly. + * @implements IFeatureStatsAnomaly * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly=} [properties] Properties to set */ - function StreamingReadFeatureValuesRequest(properties) { - this.entityIds = []; + function FeatureStatsAnomaly(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -186067,104 +190968,153 @@ } /** - * StreamingReadFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * FeatureStatsAnomaly score. + * @member {number} score + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @instance */ - StreamingReadFeatureValuesRequest.prototype.entityType = ""; + FeatureStatsAnomaly.prototype.score = 0; /** - * StreamingReadFeatureValuesRequest entityIds. - * @member {Array.} entityIds - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * FeatureStatsAnomaly statsUri. + * @member {string} statsUri + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @instance */ - StreamingReadFeatureValuesRequest.prototype.entityIds = $util.emptyArray; + FeatureStatsAnomaly.prototype.statsUri = ""; /** - * StreamingReadFeatureValuesRequest featureSelector. - * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * FeatureStatsAnomaly anomalyUri. + * @member {string} anomalyUri + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @instance */ - StreamingReadFeatureValuesRequest.prototype.featureSelector = null; + FeatureStatsAnomaly.prototype.anomalyUri = ""; /** - * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. + * FeatureStatsAnomaly distributionDeviation. + * @member {number} distributionDeviation + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.distributionDeviation = 0; + + /** + * FeatureStatsAnomaly anomalyDetectionThreshold. + * @member {number} anomalyDetectionThreshold + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.anomalyDetectionThreshold = 0; + + /** + * FeatureStatsAnomaly startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.startTime = null; + + /** + * FeatureStatsAnomaly endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly + * @instance + */ + FeatureStatsAnomaly.prototype.endTime = null; + + /** + * Creates a new FeatureStatsAnomaly instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly instance */ - StreamingReadFeatureValuesRequest.create = function create(properties) { - return new StreamingReadFeatureValuesRequest(properties); + FeatureStatsAnomaly.create = function create(properties) { + return new FeatureStatsAnomaly(properties); }; /** - * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified FeatureStatsAnomaly message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly} message FeatureStatsAnomaly message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingReadFeatureValuesRequest.encode = function encode(message, writer) { + FeatureStatsAnomaly.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.entityIds != null && message.entityIds.length) - for (var i = 0; i < message.entityIds.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityIds[i]); - if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) - $root.google.cloud.aiplatform.v1beta1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.score != null && Object.hasOwnProperty.call(message, "score")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.score); + if (message.statsUri != null && Object.hasOwnProperty.call(message, "statsUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.statsUri); + if (message.anomalyUri != null && Object.hasOwnProperty.call(message, "anomalyUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.anomalyUri); + if (message.distributionDeviation != null && Object.hasOwnProperty.call(message, "distributionDeviation")) + writer.uint32(/* id 5, wireType 1 =*/41).double(message.distributionDeviation); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.anomalyDetectionThreshold != null && Object.hasOwnProperty.call(message, "anomalyDetectionThreshold")) + writer.uint32(/* id 9, wireType 1 =*/73).double(message.anomalyDetectionThreshold); return writer; }; /** - * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified FeatureStatsAnomaly message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly} message FeatureStatsAnomaly message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StreamingReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + FeatureStatsAnomaly.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingReadFeatureValuesRequest.decode = function decode(reader, length) { + FeatureStatsAnomaly.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.entityType = reader.string(); - break; - case 2: - if (!(message.entityIds && message.entityIds.length)) - message.entityIds = []; - message.entityIds.push(reader.string()); + message.score = reader.double(); break; case 3: - message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); + message.statsUri = reader.string(); + break; + case 4: + message.anomalyUri = reader.string(); + break; + case 5: + message.distributionDeviation = reader.double(); + break; + case 9: + message.anomalyDetectionThreshold = reader.double(); + break; + case 7: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -186175,151 +191125,167 @@ }; /** - * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureStatsAnomaly message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StreamingReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + FeatureStatsAnomaly.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StreamingReadFeatureValuesRequest message. + * Verifies a FeatureStatsAnomaly message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StreamingReadFeatureValuesRequest.verify = function verify(message) { + FeatureStatsAnomaly.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.entityIds != null && message.hasOwnProperty("entityIds")) { - if (!Array.isArray(message.entityIds)) - return "entityIds: array expected"; - for (var i = 0; i < message.entityIds.length; ++i) - if (!$util.isString(message.entityIds[i])) - return "entityIds: string[] expected"; + if (message.score != null && message.hasOwnProperty("score")) + if (typeof message.score !== "number") + return "score: number expected"; + if (message.statsUri != null && message.hasOwnProperty("statsUri")) + if (!$util.isString(message.statsUri)) + return "statsUri: string expected"; + if (message.anomalyUri != null && message.hasOwnProperty("anomalyUri")) + if (!$util.isString(message.anomalyUri)) + return "anomalyUri: string expected"; + if (message.distributionDeviation != null && message.hasOwnProperty("distributionDeviation")) + if (typeof message.distributionDeviation !== "number") + return "distributionDeviation: number expected"; + if (message.anomalyDetectionThreshold != null && message.hasOwnProperty("anomalyDetectionThreshold")) + if (typeof message.anomalyDetectionThreshold !== "number") + return "anomalyDetectionThreshold: number expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; } - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.verify(message.featureSelector); + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); if (error) - return "featureSelector." + error; + return "endTime." + error; } return null; }; /** - * Creates a StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureStatsAnomaly message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} FeatureStatsAnomaly */ - StreamingReadFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) + FeatureStatsAnomaly.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest(); - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.entityIds) { - if (!Array.isArray(object.entityIds)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.entityIds: array expected"); - message.entityIds = []; - for (var i = 0; i < object.entityIds.length; ++i) - message.entityIds[i] = String(object.entityIds[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly(); + if (object.score != null) + message.score = Number(object.score); + if (object.statsUri != null) + message.statsUri = String(object.statsUri); + if (object.anomalyUri != null) + message.anomalyUri = String(object.anomalyUri); + if (object.distributionDeviation != null) + message.distributionDeviation = Number(object.distributionDeviation); + if (object.anomalyDetectionThreshold != null) + message.anomalyDetectionThreshold = Number(object.anomalyDetectionThreshold); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); } - if (object.featureSelector != null) { - if (typeof object.featureSelector !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.featureSelector: object expected"); - message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.fromObject(object.featureSelector); + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. + * Creates a plain object from a FeatureStatsAnomaly message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @static - * @param {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest + * @param {google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly} message FeatureStatsAnomaly * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StreamingReadFeatureValuesRequest.toObject = function toObject(message, options) { + FeatureStatsAnomaly.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.entityIds = []; if (options.defaults) { - object.entityType = ""; - object.featureSelector = null; - } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.entityIds && message.entityIds.length) { - object.entityIds = []; - for (var j = 0; j < message.entityIds.length; ++j) - object.entityIds[j] = message.entityIds[j]; + object.score = 0; + object.statsUri = ""; + object.anomalyUri = ""; + object.distributionDeviation = 0; + object.startTime = null; + object.endTime = null; + object.anomalyDetectionThreshold = 0; } - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) - object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, options); + if (message.score != null && message.hasOwnProperty("score")) + object.score = options.json && !isFinite(message.score) ? String(message.score) : message.score; + if (message.statsUri != null && message.hasOwnProperty("statsUri")) + object.statsUri = message.statsUri; + if (message.anomalyUri != null && message.hasOwnProperty("anomalyUri")) + object.anomalyUri = message.anomalyUri; + if (message.distributionDeviation != null && message.hasOwnProperty("distributionDeviation")) + object.distributionDeviation = options.json && !isFinite(message.distributionDeviation) ? String(message.distributionDeviation) : message.distributionDeviation; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.anomalyDetectionThreshold != null && message.hasOwnProperty("anomalyDetectionThreshold")) + object.anomalyDetectionThreshold = options.json && !isFinite(message.anomalyDetectionThreshold) ? String(message.anomalyDetectionThreshold) : message.anomalyDetectionThreshold; return object; }; /** - * Converts this StreamingReadFeatureValuesRequest to JSON. + * Converts this FeatureStatsAnomaly to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly * @instance * @returns {Object.} JSON object */ - StreamingReadFeatureValuesRequest.prototype.toJSON = function toJSON() { + FeatureStatsAnomaly.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StreamingReadFeatureValuesRequest; + return FeatureStatsAnomaly; })(); - v1beta1.FeatureValue = (function() { + v1beta1.IdMatcher = (function() { /** - * Properties of a FeatureValue. + * Properties of an IdMatcher. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeatureValue - * @property {boolean|null} [boolValue] FeatureValue boolValue - * @property {number|null} [doubleValue] FeatureValue doubleValue - * @property {number|Long|null} [int64Value] FeatureValue int64Value - * @property {string|null} [stringValue] FeatureValue stringValue - * @property {google.cloud.aiplatform.v1beta1.IBoolArray|null} [boolArrayValue] FeatureValue boolArrayValue - * @property {google.cloud.aiplatform.v1beta1.IDoubleArray|null} [doubleArrayValue] FeatureValue doubleArrayValue - * @property {google.cloud.aiplatform.v1beta1.IInt64Array|null} [int64ArrayValue] FeatureValue int64ArrayValue - * @property {google.cloud.aiplatform.v1beta1.IStringArray|null} [stringArrayValue] FeatureValue stringArrayValue - * @property {Uint8Array|null} [bytesValue] FeatureValue bytesValue - * @property {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null} [metadata] FeatureValue metadata + * @interface IIdMatcher + * @property {Array.|null} [ids] IdMatcher ids */ /** - * Constructs a new FeatureValue. + * Constructs a new IdMatcher. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeatureValue. - * @implements IFeatureValue + * @classdesc Represents an IdMatcher. + * @implements IIdMatcher * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeatureValue=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IIdMatcher=} [properties] Properties to set */ - function FeatureValue(properties) { + function IdMatcher(properties) { + this.ids = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -186327,206 +191293,78 @@ } /** - * FeatureValue boolValue. - * @member {boolean|null|undefined} boolValue - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * IdMatcher ids. + * @member {Array.} ids + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @instance */ - FeatureValue.prototype.boolValue = null; + IdMatcher.prototype.ids = $util.emptyArray; /** - * FeatureValue doubleValue. - * @member {number|null|undefined} doubleValue - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - FeatureValue.prototype.doubleValue = null; - - /** - * FeatureValue int64Value. - * @member {number|Long|null|undefined} int64Value - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - FeatureValue.prototype.int64Value = null; - - /** - * FeatureValue stringValue. - * @member {string|null|undefined} stringValue - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - FeatureValue.prototype.stringValue = null; - - /** - * FeatureValue boolArrayValue. - * @member {google.cloud.aiplatform.v1beta1.IBoolArray|null|undefined} boolArrayValue - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - FeatureValue.prototype.boolArrayValue = null; - - /** - * FeatureValue doubleArrayValue. - * @member {google.cloud.aiplatform.v1beta1.IDoubleArray|null|undefined} doubleArrayValue - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - FeatureValue.prototype.doubleArrayValue = null; - - /** - * FeatureValue int64ArrayValue. - * @member {google.cloud.aiplatform.v1beta1.IInt64Array|null|undefined} int64ArrayValue - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - FeatureValue.prototype.int64ArrayValue = null; - - /** - * FeatureValue stringArrayValue. - * @member {google.cloud.aiplatform.v1beta1.IStringArray|null|undefined} stringArrayValue - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - FeatureValue.prototype.stringArrayValue = null; - - /** - * FeatureValue bytesValue. - * @member {Uint8Array|null|undefined} bytesValue - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - FeatureValue.prototype.bytesValue = null; - - /** - * FeatureValue metadata. - * @member {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - FeatureValue.prototype.metadata = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * FeatureValue value. - * @member {"boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"|undefined} value - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @instance - */ - Object.defineProperty(FeatureValue.prototype, "value", { - get: $util.oneOfGetter($oneOfFields = ["boolValue", "doubleValue", "int64Value", "stringValue", "boolArrayValue", "doubleArrayValue", "int64ArrayValue", "stringArrayValue", "bytesValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new FeatureValue instance using the specified properties. + * Creates a new IdMatcher instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValue=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue instance + * @param {google.cloud.aiplatform.v1beta1.IIdMatcher=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher instance */ - FeatureValue.create = function create(properties) { - return new FeatureValue(properties); + IdMatcher.create = function create(properties) { + return new IdMatcher(properties); }; /** - * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. + * Encodes the specified IdMatcher message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValue} message FeatureValue message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IIdMatcher} message IdMatcher message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValue.encode = function encode(message, writer) { + IdMatcher.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.boolValue); - if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); - if (message.int64Value != null && Object.hasOwnProperty.call(message, "int64Value")) - writer.uint32(/* id 5, wireType 0 =*/40).int64(message.int64Value); - if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.stringValue); - if (message.boolArrayValue != null && Object.hasOwnProperty.call(message, "boolArrayValue")) - $root.google.cloud.aiplatform.v1beta1.BoolArray.encode(message.boolArrayValue, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.doubleArrayValue != null && Object.hasOwnProperty.call(message, "doubleArrayValue")) - $root.google.cloud.aiplatform.v1beta1.DoubleArray.encode(message.doubleArrayValue, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.int64ArrayValue != null && Object.hasOwnProperty.call(message, "int64ArrayValue")) - $root.google.cloud.aiplatform.v1beta1.Int64Array.encode(message.int64ArrayValue, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.stringArrayValue != null && Object.hasOwnProperty.call(message, "stringArrayValue")) - $root.google.cloud.aiplatform.v1beta1.StringArray.encode(message.stringArrayValue, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.bytesValue != null && Object.hasOwnProperty.call(message, "bytesValue")) - writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.bytesValue); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.encode(message.metadata, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.ids != null && message.ids.length) + for (var i = 0; i < message.ids.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.ids[i]); return writer; }; /** - * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. + * Encodes the specified IdMatcher message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IdMatcher.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValue} message FeatureValue message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IIdMatcher} message IdMatcher message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValue.encodeDelimited = function encodeDelimited(message, writer) { + IdMatcher.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureValue message from the specified reader or buffer. + * Decodes an IdMatcher message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue + * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValue.decode = function decode(reader, length) { + IdMatcher.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureValue(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IdMatcher(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.boolValue = reader.bool(); - break; - case 2: - message.doubleValue = reader.double(); - break; - case 5: - message.int64Value = reader.int64(); - break; - case 6: - message.stringValue = reader.string(); - break; - case 7: - message.boolArrayValue = $root.google.cloud.aiplatform.v1beta1.BoolArray.decode(reader, reader.uint32()); - break; - case 8: - message.doubleArrayValue = $root.google.cloud.aiplatform.v1beta1.DoubleArray.decode(reader, reader.uint32()); - break; - case 11: - message.int64ArrayValue = $root.google.cloud.aiplatform.v1beta1.Int64Array.decode(reader, reader.uint32()); - break; - case 12: - message.stringArrayValue = $root.google.cloud.aiplatform.v1beta1.StringArray.decode(reader, reader.uint32()); - break; - case 13: - message.bytesValue = reader.bytes(); - break; - case 14: - message.metadata = $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.decode(reader, reader.uint32()); + if (!(message.ids && message.ids.length)) + message.ids = []; + message.ids.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -186537,467 +191375,119 @@ }; /** - * Decodes a FeatureValue message from the specified reader or buffer, length delimited. + * Decodes an IdMatcher message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue + * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValue.decodeDelimited = function decodeDelimited(reader) { + IdMatcher.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureValue message. + * Verifies an IdMatcher message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeatureValue.verify = function verify(message) { + IdMatcher.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - properties.value = 1; - if (typeof message.boolValue !== "boolean") - return "boolValue: boolean expected"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (typeof message.doubleValue !== "number") - return "doubleValue: number expected"; - } - if (message.int64Value != null && message.hasOwnProperty("int64Value")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isInteger(message.int64Value) && !(message.int64Value && $util.isInteger(message.int64Value.low) && $util.isInteger(message.int64Value.high))) - return "int64Value: integer|Long expected"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!$util.isString(message.stringValue)) - return "stringValue: string expected"; - } - if (message.boolArrayValue != null && message.hasOwnProperty("boolArrayValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.BoolArray.verify(message.boolArrayValue); - if (error) - return "boolArrayValue." + error; - } - } - if (message.doubleArrayValue != null && message.hasOwnProperty("doubleArrayValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.DoubleArray.verify(message.doubleArrayValue); - if (error) - return "doubleArrayValue." + error; - } - } - if (message.int64ArrayValue != null && message.hasOwnProperty("int64ArrayValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.Int64Array.verify(message.int64ArrayValue); - if (error) - return "int64ArrayValue." + error; - } - } - if (message.stringArrayValue != null && message.hasOwnProperty("stringArrayValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StringArray.verify(message.stringArrayValue); - if (error) - return "stringArrayValue." + error; - } - } - if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { - if (properties.value === 1) - return "value: multiple values"; - properties.value = 1; - if (!(message.bytesValue && typeof message.bytesValue.length === "number" || $util.isString(message.bytesValue))) - return "bytesValue: buffer expected"; - } - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify(message.metadata); - if (error) - return "metadata." + error; + if (message.ids != null && message.hasOwnProperty("ids")) { + if (!Array.isArray(message.ids)) + return "ids: array expected"; + for (var i = 0; i < message.ids.length; ++i) + if (!$util.isString(message.ids[i])) + return "ids: string[] expected"; } return null; }; /** - * Creates a FeatureValue message from a plain object. Also converts values to their respective internal types. + * Creates an IdMatcher message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue + * @returns {google.cloud.aiplatform.v1beta1.IdMatcher} IdMatcher */ - FeatureValue.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValue) + IdMatcher.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IdMatcher) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeatureValue(); - if (object.boolValue != null) - message.boolValue = Boolean(object.boolValue); - if (object.doubleValue != null) - message.doubleValue = Number(object.doubleValue); - if (object.int64Value != null) - if ($util.Long) - (message.int64Value = $util.Long.fromValue(object.int64Value)).unsigned = false; - else if (typeof object.int64Value === "string") - message.int64Value = parseInt(object.int64Value, 10); - else if (typeof object.int64Value === "number") - message.int64Value = object.int64Value; - else if (typeof object.int64Value === "object") - message.int64Value = new $util.LongBits(object.int64Value.low >>> 0, object.int64Value.high >>> 0).toNumber(); - if (object.stringValue != null) - message.stringValue = String(object.stringValue); - if (object.boolArrayValue != null) { - if (typeof object.boolArrayValue !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.boolArrayValue: object expected"); - message.boolArrayValue = $root.google.cloud.aiplatform.v1beta1.BoolArray.fromObject(object.boolArrayValue); - } - if (object.doubleArrayValue != null) { - if (typeof object.doubleArrayValue !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.doubleArrayValue: object expected"); - message.doubleArrayValue = $root.google.cloud.aiplatform.v1beta1.DoubleArray.fromObject(object.doubleArrayValue); - } - if (object.int64ArrayValue != null) { - if (typeof object.int64ArrayValue !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.int64ArrayValue: object expected"); - message.int64ArrayValue = $root.google.cloud.aiplatform.v1beta1.Int64Array.fromObject(object.int64ArrayValue); - } - if (object.stringArrayValue != null) { - if (typeof object.stringArrayValue !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.stringArrayValue: object expected"); - message.stringArrayValue = $root.google.cloud.aiplatform.v1beta1.StringArray.fromObject(object.stringArrayValue); - } - if (object.bytesValue != null) - if (typeof object.bytesValue === "string") - $util.base64.decode(object.bytesValue, message.bytesValue = $util.newBuffer($util.base64.length(object.bytesValue)), 0); - else if (object.bytesValue.length) - message.bytesValue = object.bytesValue; - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.metadata: object expected"); - message.metadata = $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.fromObject(object.metadata); + var message = new $root.google.cloud.aiplatform.v1beta1.IdMatcher(); + if (object.ids) { + if (!Array.isArray(object.ids)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IdMatcher.ids: array expected"); + message.ids = []; + for (var i = 0; i < object.ids.length; ++i) + message.ids[i] = String(object.ids[i]); } return message; }; /** - * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. + * Creates a plain object from an IdMatcher message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureValue} message FeatureValue + * @param {google.cloud.aiplatform.v1beta1.IdMatcher} message IdMatcher * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureValue.toObject = function toObject(message, options) { + IdMatcher.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.metadata = null; - if (message.boolValue != null && message.hasOwnProperty("boolValue")) { - object.boolValue = message.boolValue; - if (options.oneofs) - object.value = "boolValue"; - } - if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { - object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; - if (options.oneofs) - object.value = "doubleValue"; - } - if (message.int64Value != null && message.hasOwnProperty("int64Value")) { - if (typeof message.int64Value === "number") - object.int64Value = options.longs === String ? String(message.int64Value) : message.int64Value; - else - object.int64Value = options.longs === String ? $util.Long.prototype.toString.call(message.int64Value) : options.longs === Number ? new $util.LongBits(message.int64Value.low >>> 0, message.int64Value.high >>> 0).toNumber() : message.int64Value; - if (options.oneofs) - object.value = "int64Value"; - } - if (message.stringValue != null && message.hasOwnProperty("stringValue")) { - object.stringValue = message.stringValue; - if (options.oneofs) - object.value = "stringValue"; - } - if (message.boolArrayValue != null && message.hasOwnProperty("boolArrayValue")) { - object.boolArrayValue = $root.google.cloud.aiplatform.v1beta1.BoolArray.toObject(message.boolArrayValue, options); - if (options.oneofs) - object.value = "boolArrayValue"; - } - if (message.doubleArrayValue != null && message.hasOwnProperty("doubleArrayValue")) { - object.doubleArrayValue = $root.google.cloud.aiplatform.v1beta1.DoubleArray.toObject(message.doubleArrayValue, options); - if (options.oneofs) - object.value = "doubleArrayValue"; - } - if (message.int64ArrayValue != null && message.hasOwnProperty("int64ArrayValue")) { - object.int64ArrayValue = $root.google.cloud.aiplatform.v1beta1.Int64Array.toObject(message.int64ArrayValue, options); - if (options.oneofs) - object.value = "int64ArrayValue"; - } - if (message.stringArrayValue != null && message.hasOwnProperty("stringArrayValue")) { - object.stringArrayValue = $root.google.cloud.aiplatform.v1beta1.StringArray.toObject(message.stringArrayValue, options); - if (options.oneofs) - object.value = "stringArrayValue"; - } - if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { - object.bytesValue = options.bytes === String ? $util.base64.encode(message.bytesValue, 0, message.bytesValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.bytesValue) : message.bytesValue; - if (options.oneofs) - object.value = "bytesValue"; + if (options.arrays || options.defaults) + object.ids = []; + if (message.ids && message.ids.length) { + object.ids = []; + for (var j = 0; j < message.ids.length; ++j) + object.ids[j] = message.ids[j]; } - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.toObject(message.metadata, options); return object; }; /** - * Converts this FeatureValue to JSON. + * Converts this IdMatcher to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @memberof google.cloud.aiplatform.v1beta1.IdMatcher * @instance * @returns {Object.} JSON object */ - FeatureValue.prototype.toJSON = function toJSON() { + IdMatcher.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - FeatureValue.Metadata = (function() { - - /** - * Properties of a Metadata. - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @interface IMetadata - * @property {google.protobuf.ITimestamp|null} [generateTime] Metadata generateTime - */ - - /** - * Constructs a new Metadata. - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue - * @classdesc Represents a Metadata. - * @implements IMetadata - * @constructor - * @param {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata=} [properties] Properties to set - */ - function Metadata(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Metadata generateTime. - * @member {google.protobuf.ITimestamp|null|undefined} generateTime - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata - * @instance - */ - Metadata.prototype.generateTime = null; - - /** - * Creates a new Metadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata - * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} Metadata instance - */ - Metadata.create = function create(properties) { - return new Metadata(properties); - }; - - /** - * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata - * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata} message Metadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.generateTime != null && Object.hasOwnProperty.call(message, "generateTime")) - $root.google.protobuf.Timestamp.encode(message.generateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata - * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata} message Metadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Metadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.generateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Metadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} Metadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Metadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.generateTime != null && message.hasOwnProperty("generateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.generateTime); - if (error) - return "generateTime." + error; - } - return null; - }; - - /** - * Creates a Metadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} Metadata - */ - Metadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata(); - if (object.generateTime != null) { - if (typeof object.generateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.generateTime: object expected"); - message.generateTime = $root.google.protobuf.Timestamp.fromObject(object.generateTime); - } - return message; - }; - - /** - * Creates a plain object from a Metadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata - * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} message Metadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.generateTime = null; - if (message.generateTime != null && message.hasOwnProperty("generateTime")) - object.generateTime = $root.google.protobuf.Timestamp.toObject(message.generateTime, options); - return object; - }; - - /** - * Converts this Metadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata - * @instance - * @returns {Object.} JSON object - */ - Metadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Metadata; - })(); - - return FeatureValue; + return IdMatcher; })(); - v1beta1.FeatureValueList = (function() { + v1beta1.FeatureSelector = (function() { /** - * Properties of a FeatureValueList. + * Properties of a FeatureSelector. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeatureValueList - * @property {Array.|null} [values] FeatureValueList values + * @interface IFeatureSelector + * @property {google.cloud.aiplatform.v1beta1.IIdMatcher|null} [idMatcher] FeatureSelector idMatcher */ /** - * Constructs a new FeatureValueList. + * Constructs a new FeatureSelector. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeatureValueList. - * @implements IFeatureValueList + * @classdesc Represents a FeatureSelector. + * @implements IFeatureSelector * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector=} [properties] Properties to set */ - function FeatureValueList(properties) { - this.values = []; + function FeatureSelector(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187005,78 +191495,75 @@ } /** - * FeatureValueList values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * FeatureSelector idMatcher. + * @member {google.cloud.aiplatform.v1beta1.IIdMatcher|null|undefined} idMatcher + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @instance */ - FeatureValueList.prototype.values = $util.emptyArray; + FeatureSelector.prototype.idMatcher = null; /** - * Creates a new FeatureValueList instance using the specified properties. + * Creates a new FeatureSelector instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList instance + * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector instance */ - FeatureValueList.create = function create(properties) { - return new FeatureValueList(properties); + FeatureSelector.create = function create(properties) { + return new FeatureSelector(properties); }; /** - * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. + * Encodes the specified FeatureSelector message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList} message FeatureValueList message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector} message FeatureSelector message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValueList.encode = function encode(message, writer) { + FeatureSelector.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - $root.google.cloud.aiplatform.v1beta1.FeatureValue.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.idMatcher != null && Object.hasOwnProperty.call(message, "idMatcher")) + $root.google.cloud.aiplatform.v1beta1.IdMatcher.encode(message.idMatcher, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. + * Encodes the specified FeatureSelector message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureSelector.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList} message FeatureValueList message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeatureSelector} message FeatureSelector message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValueList.encodeDelimited = function encodeDelimited(message, writer) { + FeatureSelector.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureValueList message from the specified reader or buffer. + * Decodes a FeatureSelector message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValueList.decode = function decode(reader, length) { + FeatureSelector.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureValueList(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureSelector(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push($root.google.cloud.aiplatform.v1beta1.FeatureValue.decode(reader, reader.uint32())); + message.idMatcher = $root.google.cloud.aiplatform.v1beta1.IdMatcher.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -187087,125 +191574,120 @@ }; /** - * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. + * Decodes a FeatureSelector message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValueList.decodeDelimited = function decodeDelimited(reader) { + FeatureSelector.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureValueList message. + * Verifies a FeatureSelector message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeatureValueList.verify = function verify(message) { + FeatureSelector.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureValue.verify(message.values[i]); - if (error) - return "values." + error; - } + if (message.idMatcher != null && message.hasOwnProperty("idMatcher")) { + var error = $root.google.cloud.aiplatform.v1beta1.IdMatcher.verify(message.idMatcher); + if (error) + return "idMatcher." + error; } return null; }; /** - * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureSelector message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList + * @returns {google.cloud.aiplatform.v1beta1.FeatureSelector} FeatureSelector */ - FeatureValueList.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValueList) + FeatureSelector.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureSelector) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeatureValueList(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValueList.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) { - if (typeof object.values[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValueList.values: object expected"); - message.values[i] = $root.google.cloud.aiplatform.v1beta1.FeatureValue.fromObject(object.values[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureSelector(); + if (object.idMatcher != null) { + if (typeof object.idMatcher !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureSelector.idMatcher: object expected"); + message.idMatcher = $root.google.cloud.aiplatform.v1beta1.IdMatcher.fromObject(object.idMatcher); } return message; }; /** - * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. + * Creates a plain object from a FeatureSelector message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureValueList} message FeatureValueList + * @param {google.cloud.aiplatform.v1beta1.FeatureSelector} message FeatureSelector * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureValueList.toObject = function toObject(message, options) { + FeatureSelector.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = $root.google.cloud.aiplatform.v1beta1.FeatureValue.toObject(message.values[j], options); - } + if (options.defaults) + object.idMatcher = null; + if (message.idMatcher != null && message.hasOwnProperty("idMatcher")) + object.idMatcher = $root.google.cloud.aiplatform.v1beta1.IdMatcher.toObject(message.idMatcher, options); return object; }; /** - * Converts this FeatureValueList to JSON. + * Converts this FeatureSelector to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList + * @memberof google.cloud.aiplatform.v1beta1.FeatureSelector * @instance * @returns {Object.} JSON object */ - FeatureValueList.prototype.toJSON = function toJSON() { + FeatureSelector.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeatureValueList; + return FeatureSelector; })(); - v1beta1.BoolArray = (function() { + v1beta1.Featurestore = (function() { /** - * Properties of a BoolArray. + * Properties of a Featurestore. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBoolArray - * @property {Array.|null} [values] BoolArray values + * @interface IFeaturestore + * @property {string|null} [name] Featurestore name + * @property {google.protobuf.ITimestamp|null} [createTime] Featurestore createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Featurestore updateTime + * @property {string|null} [etag] Featurestore etag + * @property {Object.|null} [labels] Featurestore labels + * @property {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null} [onlineServingConfig] Featurestore onlineServingConfig + * @property {google.cloud.aiplatform.v1beta1.Featurestore.State|null} [state] Featurestore state + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] Featurestore encryptionSpec */ /** - * Constructs a new BoolArray. + * Constructs a new Featurestore. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BoolArray. - * @implements IBoolArray + * @classdesc Represents a Featurestore. + * @implements IFeaturestore * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBoolArray=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeaturestore=} [properties] Properties to set */ - function BoolArray(properties) { - this.values = []; + function Featurestore(properties) { + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187213,86 +191695,186 @@ } /** - * BoolArray values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * Featurestore name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @instance */ - BoolArray.prototype.values = $util.emptyArray; + Featurestore.prototype.name = ""; /** - * Creates a new BoolArray instance using the specified properties. + * Featurestore createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance + */ + Featurestore.prototype.createTime = null; + + /** + * Featurestore updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance + */ + Featurestore.prototype.updateTime = null; + + /** + * Featurestore etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance + */ + Featurestore.prototype.etag = ""; + + /** + * Featurestore labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance + */ + Featurestore.prototype.labels = $util.emptyObject; + + /** + * Featurestore onlineServingConfig. + * @member {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig|null|undefined} onlineServingConfig + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance + */ + Featurestore.prototype.onlineServingConfig = null; + + /** + * Featurestore state. + * @member {google.cloud.aiplatform.v1beta1.Featurestore.State} state + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance + */ + Featurestore.prototype.state = 0; + + /** + * Featurestore encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @instance + */ + Featurestore.prototype.encryptionSpec = null; + + /** + * Creates a new Featurestore instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static - * @param {google.cloud.aiplatform.v1beta1.IBoolArray=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray instance + * @param {google.cloud.aiplatform.v1beta1.IFeaturestore=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore instance */ - BoolArray.create = function create(properties) { - return new BoolArray(properties); + Featurestore.create = function create(properties) { + return new Featurestore(properties); }; /** - * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. + * Encodes the specified Featurestore message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static - * @param {google.cloud.aiplatform.v1beta1.IBoolArray} message BoolArray message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeaturestore} message Featurestore message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BoolArray.encode = function encode(message, writer) { + Featurestore.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.bool(message.values[i]); - writer.ldelim(); - } + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.onlineServingConfig != null && Object.hasOwnProperty.call(message, "onlineServingConfig")) + $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.encode(message.onlineServingConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 8, wireType 0 =*/64).int32(message.state); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. + * Encodes the specified Featurestore message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static - * @param {google.cloud.aiplatform.v1beta1.IBoolArray} message BoolArray message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeaturestore} message Featurestore message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BoolArray.encodeDelimited = function encodeDelimited(message, writer) { + Featurestore.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BoolArray message from the specified reader or buffer. + * Decodes a Featurestore message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray + * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BoolArray.decode = function decode(reader, length) { + Featurestore.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BoolArray(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Featurestore(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.bool()); - } else - message.values.push(reader.bool()); + message.name = reader.string(); + break; + case 3: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 4: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.etag = reader.string(); + break; + case 6: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 7: + message.onlineServingConfig = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.decode(reader, reader.uint32()); + break; + case 8: + message.state = reader.int32(); + break; + case 10: + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -187303,120 +191885,761 @@ }; /** - * Decodes a BoolArray message from the specified reader or buffer, length delimited. + * Decodes a Featurestore message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray + * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BoolArray.decodeDelimited = function decodeDelimited(reader) { + Featurestore.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BoolArray message. + * Verifies a Featurestore message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BoolArray.verify = function verify(message) { + Featurestore.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (typeof message.values[i] !== "boolean") - return "values: boolean[] expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.onlineServingConfig != null && message.hasOwnProperty("onlineServingConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify(message.onlineServingConfig); + if (error) + return "onlineServingConfig." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; } return null; }; /** - * Creates a BoolArray message from a plain object. Also converts values to their respective internal types. + * Creates a Featurestore message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray + * @returns {google.cloud.aiplatform.v1beta1.Featurestore} Featurestore */ - BoolArray.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BoolArray) + Featurestore.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Featurestore) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BoolArray(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BoolArray.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = Boolean(object.values[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.Featurestore(); + if (object.name != null) + message.name = String(object.name); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.onlineServingConfig != null) { + if (typeof object.onlineServingConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.onlineServingConfig: object expected"); + message.onlineServingConfig = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.fromObject(object.onlineServingConfig); + } + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "STABLE": + case 1: + message.state = 1; + break; + case "UPDATING": + case 2: + message.state = 2; + break; + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); } return message; }; /** - * Creates a plain object from a BoolArray message. Also converts values to other types if specified. + * Creates a plain object from a Featurestore message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @static - * @param {google.cloud.aiplatform.v1beta1.BoolArray} message BoolArray + * @param {google.cloud.aiplatform.v1beta1.Featurestore} message Featurestore * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BoolArray.toObject = function toObject(message, options) { + Featurestore.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.createTime = null; + object.updateTime = null; + object.etag = ""; + object.onlineServingConfig = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.encryptionSpec = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; } + if (message.onlineServingConfig != null && message.hasOwnProperty("onlineServingConfig")) + object.onlineServingConfig = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.toObject(message.onlineServingConfig, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Featurestore.State[message.state] : message.state; + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); return object; }; /** - * Converts this BoolArray to JSON. + * Converts this Featurestore to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BoolArray + * @memberof google.cloud.aiplatform.v1beta1.Featurestore * @instance * @returns {Object.} JSON object */ - BoolArray.prototype.toJSON = function toJSON() { + Featurestore.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BoolArray; + Featurestore.OnlineServingConfig = (function() { + + /** + * Properties of an OnlineServingConfig. + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @interface IOnlineServingConfig + * @property {number|null} [fixedNodeCount] OnlineServingConfig fixedNodeCount + * @property {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null} [scaling] OnlineServingConfig scaling + */ + + /** + * Constructs a new OnlineServingConfig. + * @memberof google.cloud.aiplatform.v1beta1.Featurestore + * @classdesc Represents an OnlineServingConfig. + * @implements IOnlineServingConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig=} [properties] Properties to set + */ + function OnlineServingConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * OnlineServingConfig fixedNodeCount. + * @member {number} fixedNodeCount + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @instance + */ + OnlineServingConfig.prototype.fixedNodeCount = 0; + + /** + * OnlineServingConfig scaling. + * @member {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling|null|undefined} scaling + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @instance + */ + OnlineServingConfig.prototype.scaling = null; + + /** + * Creates a new OnlineServingConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} OnlineServingConfig instance + */ + OnlineServingConfig.create = function create(properties) { + return new OnlineServingConfig(properties); + }; + + /** + * Encodes the specified OnlineServingConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig} message OnlineServingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OnlineServingConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fixedNodeCount != null && Object.hasOwnProperty.call(message, "fixedNodeCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.fixedNodeCount); + if (message.scaling != null && Object.hasOwnProperty.call(message, "scaling")) + $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.encode(message.scaling, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified OnlineServingConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.Featurestore.IOnlineServingConfig} message OnlineServingConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + OnlineServingConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OnlineServingConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.fixedNodeCount = reader.int32(); + break; + case 4: + message.scaling = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an OnlineServingConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} OnlineServingConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + OnlineServingConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an OnlineServingConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + OnlineServingConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fixedNodeCount != null && message.hasOwnProperty("fixedNodeCount")) + if (!$util.isInteger(message.fixedNodeCount)) + return "fixedNodeCount: integer expected"; + if (message.scaling != null && message.hasOwnProperty("scaling")) { + var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify(message.scaling); + if (error) + return "scaling." + error; + } + return null; + }; + + /** + * Creates an OnlineServingConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} OnlineServingConfig + */ + OnlineServingConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig(); + if (object.fixedNodeCount != null) + message.fixedNodeCount = object.fixedNodeCount | 0; + if (object.scaling != null) { + if (typeof object.scaling !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.scaling: object expected"); + message.scaling = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.fromObject(object.scaling); + } + return message; + }; + + /** + * Creates a plain object from an OnlineServingConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig} message OnlineServingConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + OnlineServingConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.fixedNodeCount = 0; + object.scaling = null; + } + if (message.fixedNodeCount != null && message.hasOwnProperty("fixedNodeCount")) + object.fixedNodeCount = message.fixedNodeCount; + if (message.scaling != null && message.hasOwnProperty("scaling")) + object.scaling = $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.toObject(message.scaling, options); + return object; + }; + + /** + * Converts this OnlineServingConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @instance + * @returns {Object.} JSON object + */ + OnlineServingConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + OnlineServingConfig.Scaling = (function() { + + /** + * Properties of a Scaling. + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @interface IScaling + * @property {number|null} [minNodeCount] Scaling minNodeCount + * @property {number|null} [maxNodeCount] Scaling maxNodeCount + */ + + /** + * Constructs a new Scaling. + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig + * @classdesc Represents a Scaling. + * @implements IScaling + * @constructor + * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling=} [properties] Properties to set + */ + function Scaling(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Scaling minNodeCount. + * @member {number} minNodeCount + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @instance + */ + Scaling.prototype.minNodeCount = 0; + + /** + * Scaling maxNodeCount. + * @member {number} maxNodeCount + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @instance + */ + Scaling.prototype.maxNodeCount = 0; + + /** + * Creates a new Scaling instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling} Scaling instance + */ + Scaling.create = function create(properties) { + return new Scaling(properties); + }; + + /** + * Encodes the specified Scaling message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling} message Scaling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Scaling.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.minNodeCount != null && Object.hasOwnProperty.call(message, "minNodeCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.minNodeCount); + if (message.maxNodeCount != null && Object.hasOwnProperty.call(message, "maxNodeCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.maxNodeCount); + return writer; + }; + + /** + * Encodes the specified Scaling message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.IScaling} message Scaling message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Scaling.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Scaling message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling} Scaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Scaling.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minNodeCount = reader.int32(); + break; + case 2: + message.maxNodeCount = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Scaling message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling} Scaling + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Scaling.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Scaling message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Scaling.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + if (!$util.isInteger(message.minNodeCount)) + return "minNodeCount: integer expected"; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + if (!$util.isInteger(message.maxNodeCount)) + return "maxNodeCount: integer expected"; + return null; + }; + + /** + * Creates a Scaling message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling} Scaling + */ + Scaling.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling(); + if (object.minNodeCount != null) + message.minNodeCount = object.minNodeCount | 0; + if (object.maxNodeCount != null) + message.maxNodeCount = object.maxNodeCount | 0; + return message; + }; + + /** + * Creates a plain object from a Scaling message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @static + * @param {google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling} message Scaling + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Scaling.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.minNodeCount = 0; + object.maxNodeCount = 0; + } + if (message.minNodeCount != null && message.hasOwnProperty("minNodeCount")) + object.minNodeCount = message.minNodeCount; + if (message.maxNodeCount != null && message.hasOwnProperty("maxNodeCount")) + object.maxNodeCount = message.maxNodeCount; + return object; + }; + + /** + * Converts this Scaling to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Featurestore.OnlineServingConfig.Scaling + * @instance + * @returns {Object.} JSON object + */ + Scaling.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Scaling; + })(); + + return OnlineServingConfig; + })(); + + /** + * State enum. + * @name google.cloud.aiplatform.v1beta1.Featurestore.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} STABLE=1 STABLE value + * @property {number} UPDATING=2 UPDATING value + */ + Featurestore.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "STABLE"] = 1; + values[valuesById[2] = "UPDATING"] = 2; + return values; + })(); + + return Featurestore; })(); - v1beta1.DoubleArray = (function() { + v1beta1.FeaturestoreOnlineServingService = (function() { /** - * Properties of a DoubleArray. + * Constructs a new FeaturestoreOnlineServingService service. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDoubleArray - * @property {Array.|null} [values] DoubleArray values + * @classdesc Represents a FeaturestoreOnlineServingService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function FeaturestoreOnlineServingService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (FeaturestoreOnlineServingService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeaturestoreOnlineServingService; + + /** + * Creates new FeaturestoreOnlineServingService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {FeaturestoreOnlineServingService} RPC service. Useful where requests and/or responses are streamed. */ + FeaturestoreOnlineServingService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * Constructs a new DoubleArray. + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#readFeatureValues}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService + * @typedef ReadFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} [response] ReadFeatureValuesResponse + */ + + /** + * Calls ReadFeatureValues. + * @function readFeatureValues + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest} request ReadFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.ReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreOnlineServingService.prototype.readFeatureValues = function readFeatureValues(request, callback) { + return this.rpcCall(readFeatureValues, $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest, $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse, request, callback); + }, "name", { value: "ReadFeatureValues" }); + + /** + * Calls ReadFeatureValues. + * @function readFeatureValues + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest} request ReadFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService#streamingReadFeatureValues}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService + * @typedef StreamingReadFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} [response] ReadFeatureValuesResponse + */ + + /** + * Calls StreamingReadFeatureValues. + * @function streamingReadFeatureValues + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest} request StreamingReadFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService.StreamingReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and ReadFeatureValuesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreOnlineServingService.prototype.streamingReadFeatureValues = function streamingReadFeatureValues(request, callback) { + return this.rpcCall(streamingReadFeatureValues, $root.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest, $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse, request, callback); + }, "name", { value: "StreamingReadFeatureValues" }); + + /** + * Calls StreamingReadFeatureValues. + * @function streamingReadFeatureValues + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest} request StreamingReadFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return FeaturestoreOnlineServingService; + })(); + + v1beta1.ReadFeatureValuesRequest = (function() { + + /** + * Properties of a ReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DoubleArray. - * @implements IDoubleArray + * @interface IReadFeatureValuesRequest + * @property {string|null} [entityType] ReadFeatureValuesRequest entityType + * @property {string|null} [entityId] ReadFeatureValuesRequest entityId + * @property {google.cloud.aiplatform.v1beta1.IFeatureSelector|null} [featureSelector] ReadFeatureValuesRequest featureSelector + */ + + /** + * Constructs a new ReadFeatureValuesRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ReadFeatureValuesRequest. + * @implements IReadFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDoubleArray=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest=} [properties] Properties to set */ - function DoubleArray(properties) { - this.values = []; + function ReadFeatureValuesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187424,86 +192647,101 @@ } /** - * DoubleArray values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * ReadFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @instance */ - DoubleArray.prototype.values = $util.emptyArray; + ReadFeatureValuesRequest.prototype.entityType = ""; /** - * Creates a new DoubleArray instance using the specified properties. + * ReadFeatureValuesRequest entityId. + * @member {string} entityId + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @instance + */ + ReadFeatureValuesRequest.prototype.entityId = ""; + + /** + * ReadFeatureValuesRequest featureSelector. + * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest + * @instance + */ + ReadFeatureValuesRequest.prototype.featureSelector = null; + + /** + * Creates a new ReadFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDoubleArray=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray instance + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest instance */ - DoubleArray.create = function create(properties) { - return new DoubleArray(properties); + ReadFeatureValuesRequest.create = function create(properties) { + return new ReadFeatureValuesRequest(properties); }; /** - * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. + * Encodes the specified ReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDoubleArray} message DoubleArray message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest} message ReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DoubleArray.encode = function encode(message, writer) { + ReadFeatureValuesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.double(message.values[i]); - writer.ldelim(); - } + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityId); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1beta1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. + * Encodes the specified ReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDoubleArray} message DoubleArray message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesRequest} message ReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DoubleArray.encodeDelimited = function encodeDelimited(message, writer) { + ReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DoubleArray message from the specified reader or buffer. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DoubleArray.decode = function decode(reader, length) { + ReadFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DoubleArray(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.double()); - } else - message.values.push(reader.double()); + message.entityType = reader.string(); + break; + case 2: + message.entityId = reader.string(); + break; + case 3: + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -187514,120 +192752,130 @@ }; /** - * Decodes a DoubleArray message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DoubleArray.decodeDelimited = function decodeDelimited(reader) { + ReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DoubleArray message. + * Verifies a ReadFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DoubleArray.verify = function verify(message) { + ReadFeatureValuesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (typeof message.values[i] !== "number") - return "values: number[] expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.entityId != null && message.hasOwnProperty("entityId")) + if (!$util.isString(message.entityId)) + return "entityId: string expected"; + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.verify(message.featureSelector); + if (error) + return "featureSelector." + error; } return null; }; /** - * Creates a DoubleArray message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} ReadFeatureValuesRequest */ - DoubleArray.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DoubleArray) + ReadFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DoubleArray(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DoubleArray.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = Number(object.values[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest(); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.entityId != null) + message.entityId = String(object.entityId); + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.fromObject(object.featureSelector); } return message; }; /** - * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. + * Creates a plain object from a ReadFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DoubleArray} message DoubleArray + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest} message ReadFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DoubleArray.toObject = function toObject(message, options) { + ReadFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; + if (options.defaults) { + object.entityType = ""; + object.entityId = ""; + object.featureSelector = null; } + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.entityId != null && message.hasOwnProperty("entityId")) + object.entityId = message.entityId; + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, options); return object; }; /** - * Converts this DoubleArray to JSON. + * Converts this ReadFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DoubleArray + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - DoubleArray.prototype.toJSON = function toJSON() { + ReadFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DoubleArray; + return ReadFeatureValuesRequest; })(); - v1beta1.Int64Array = (function() { + v1beta1.ReadFeatureValuesResponse = (function() { /** - * Properties of an Int64Array. + * Properties of a ReadFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IInt64Array - * @property {Array.|null} [values] Int64Array values + * @interface IReadFeatureValuesResponse + * @property {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null} [header] ReadFeatureValuesResponse header + * @property {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null} [entityView] ReadFeatureValuesResponse entityView */ /** - * Constructs a new Int64Array. + * Constructs a new ReadFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Int64Array. - * @implements IInt64Array + * @classdesc Represents a ReadFeatureValuesResponse. + * @implements IReadFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IInt64Array=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse=} [properties] Properties to set */ - function Int64Array(properties) { - this.values = []; + function ReadFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187635,86 +192883,88 @@ } /** - * Int64Array values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * ReadFeatureValuesResponse header. + * @member {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader|null|undefined} header + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @instance */ - Int64Array.prototype.values = $util.emptyArray; + ReadFeatureValuesResponse.prototype.header = null; /** - * Creates a new Int64Array instance using the specified properties. + * ReadFeatureValuesResponse entityView. + * @member {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView|null|undefined} entityView + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @instance + */ + ReadFeatureValuesResponse.prototype.entityView = null; + + /** + * Creates a new ReadFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IInt64Array=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array instance + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse instance */ - Int64Array.create = function create(properties) { - return new Int64Array(properties); + ReadFeatureValuesResponse.create = function create(properties) { + return new ReadFeatureValuesResponse(properties); }; /** - * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. + * Encodes the specified ReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IInt64Array} message Int64Array message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse} message ReadFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Int64Array.encode = function encode(message, writer) { + ReadFeatureValuesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.int64(message.values[i]); - writer.ldelim(); - } + if (message.header != null && Object.hasOwnProperty.call(message, "header")) + $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.encode(message.header, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.entityView != null && Object.hasOwnProperty.call(message, "entityView")) + $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.encode(message.entityView, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. + * Encodes the specified ReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IInt64Array} message Int64Array message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse} message ReadFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Int64Array.encodeDelimited = function encodeDelimited(message, writer) { + ReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an Int64Array message from the specified reader or buffer. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Int64Array.decode = function decode(reader, length) { + ReadFeatureValuesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Int64Array(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.int64()); - } else - message.values.push(reader.int64()); + message.header = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.decode(reader, reader.uint32()); + break; + case 2: + message.entityView = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -187725,130 +192975,1023 @@ }; /** - * Decodes an Int64Array message from the specified reader or buffer, length delimited. + * Decodes a ReadFeatureValuesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Int64Array.decodeDelimited = function decodeDelimited(reader) { + ReadFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an Int64Array message. + * Verifies a ReadFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Int64Array.verify = function verify(message) { + ReadFeatureValuesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) - return "values: integer|Long[] expected"; + if (message.header != null && message.hasOwnProperty("header")) { + var error = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify(message.header); + if (error) + return "header." + error; + } + if (message.entityView != null && message.hasOwnProperty("entityView")) { + var error = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify(message.entityView); + if (error) + return "entityView." + error; } return null; }; /** - * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. + * Creates a ReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} ReadFeatureValuesResponse */ - Int64Array.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Int64Array) + ReadFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Int64Array(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Int64Array.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - if ($util.Long) - (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; - else if (typeof object.values[i] === "string") - message.values[i] = parseInt(object.values[i], 10); - else if (typeof object.values[i] === "number") - message.values[i] = object.values[i]; - else if (typeof object.values[i] === "object") - message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); + var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse(); + if (object.header != null) { + if (typeof object.header !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.header: object expected"); + message.header = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.fromObject(object.header); + } + if (object.entityView != null) { + if (typeof object.entityView !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.entityView: object expected"); + message.entityView = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.fromObject(object.entityView); } return message; }; /** - * Creates a plain object from an Int64Array message. Also converts values to other types if specified. + * Creates a plain object from a ReadFeatureValuesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.Int64Array} message Int64Array + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse} message ReadFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Int64Array.toObject = function toObject(message, options) { + ReadFeatureValuesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - if (typeof message.values[j] === "number") - object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; - else - object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; + if (options.defaults) { + object.header = null; + object.entityView = null; } - return object; - }; + if (message.header != null && message.hasOwnProperty("header")) + object.header = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.toObject(message.header, options); + if (message.entityView != null && message.hasOwnProperty("entityView")) + object.entityView = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.toObject(message.entityView, options); + return object; + }; /** - * Converts this Int64Array to JSON. + * Converts this ReadFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Int64Array + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - Int64Array.prototype.toJSON = function toJSON() { + ReadFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return Int64Array; + ReadFeatureValuesResponse.FeatureDescriptor = (function() { + + /** + * Properties of a FeatureDescriptor. + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @interface IFeatureDescriptor + * @property {string|null} [id] FeatureDescriptor id + */ + + /** + * Constructs a new FeatureDescriptor. + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @classdesc Represents a FeatureDescriptor. + * @implements IFeatureDescriptor + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor=} [properties] Properties to set + */ + function FeatureDescriptor(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureDescriptor id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @instance + */ + FeatureDescriptor.prototype.id = ""; + + /** + * Creates a new FeatureDescriptor instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor instance + */ + FeatureDescriptor.create = function create(properties) { + return new FeatureDescriptor(properties); + }; + + /** + * Encodes the specified FeatureDescriptor message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor} message FeatureDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureDescriptor.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + return writer; + }; + + /** + * Encodes the specified FeatureDescriptor message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IFeatureDescriptor} message FeatureDescriptor message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureDescriptor.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureDescriptor.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureDescriptor message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureDescriptor.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureDescriptor message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureDescriptor.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + return null; + }; + + /** + * Creates a FeatureDescriptor message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} FeatureDescriptor + */ + FeatureDescriptor.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor(); + if (object.id != null) + message.id = String(object.id); + return message; + }; + + /** + * Creates a plain object from a FeatureDescriptor message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor} message FeatureDescriptor + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureDescriptor.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.id = ""; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + return object; + }; + + /** + * Converts this FeatureDescriptor to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor + * @instance + * @returns {Object.} JSON object + */ + FeatureDescriptor.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FeatureDescriptor; + })(); + + ReadFeatureValuesResponse.Header = (function() { + + /** + * Properties of a Header. + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @interface IHeader + * @property {string|null} [entityType] Header entityType + * @property {Array.|null} [featureDescriptors] Header featureDescriptors + */ + + /** + * Constructs a new Header. + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @classdesc Represents a Header. + * @implements IHeader + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader=} [properties] Properties to set + */ + function Header(properties) { + this.featureDescriptors = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Header entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @instance + */ + Header.prototype.entityType = ""; + + /** + * Header featureDescriptors. + * @member {Array.} featureDescriptors + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @instance + */ + Header.prototype.featureDescriptors = $util.emptyArray; + + /** + * Creates a new Header instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} Header instance + */ + Header.create = function create(properties) { + return new Header(properties); + }; + + /** + * Encodes the specified Header message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.featureDescriptors != null && message.featureDescriptors.length) + for (var i = 0; i < message.featureDescriptors.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.encode(message.featureDescriptors[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Header message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IHeader} message Header message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Header.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Header message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.entityType = reader.string(); + break; + case 2: + if (!(message.featureDescriptors && message.featureDescriptors.length)) + message.featureDescriptors = []; + message.featureDescriptors.push($root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Header message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} Header + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Header.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Header message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Header.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.featureDescriptors != null && message.hasOwnProperty("featureDescriptors")) { + if (!Array.isArray(message.featureDescriptors)) + return "featureDescriptors: array expected"; + for (var i = 0; i < message.featureDescriptors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.verify(message.featureDescriptors[i]); + if (error) + return "featureDescriptors." + error; + } + } + return null; + }; + + /** + * Creates a Header message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} Header + */ + Header.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header(); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.featureDescriptors) { + if (!Array.isArray(object.featureDescriptors)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.featureDescriptors: array expected"); + message.featureDescriptors = []; + for (var i = 0; i < object.featureDescriptors.length; ++i) { + if (typeof object.featureDescriptors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header.featureDescriptors: object expected"); + message.featureDescriptors[i] = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.fromObject(object.featureDescriptors[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a Header message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header} message Header + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Header.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.featureDescriptors = []; + if (options.defaults) + object.entityType = ""; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.featureDescriptors && message.featureDescriptors.length) { + object.featureDescriptors = []; + for (var j = 0; j < message.featureDescriptors.length; ++j) + object.featureDescriptors[j] = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.FeatureDescriptor.toObject(message.featureDescriptors[j], options); + } + return object; + }; + + /** + * Converts this Header to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.Header + * @instance + * @returns {Object.} JSON object + */ + Header.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Header; + })(); + + ReadFeatureValuesResponse.EntityView = (function() { + + /** + * Properties of an EntityView. + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @interface IEntityView + * @property {string|null} [entityId] EntityView entityId + * @property {Array.|null} [data] EntityView data + */ + + /** + * Constructs a new EntityView. + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + * @classdesc Represents an EntityView. + * @implements IEntityView + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView=} [properties] Properties to set + */ + function EntityView(properties) { + this.data = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EntityView entityId. + * @member {string} entityId + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @instance + */ + EntityView.prototype.entityId = ""; + + /** + * EntityView data. + * @member {Array.} data + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @instance + */ + EntityView.prototype.data = $util.emptyArray; + + /** + * Creates a new EntityView instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} EntityView instance + */ + EntityView.create = function create(properties) { + return new EntityView(properties); + }; + + /** + * Encodes the specified EntityView message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView} message EntityView message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityView.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityId != null && Object.hasOwnProperty.call(message, "entityId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityId); + if (message.data != null && message.data.length) + for (var i = 0; i < message.data.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.encode(message.data[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EntityView message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.IEntityView} message EntityView message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityView.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EntityView message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} EntityView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityView.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.entityId = reader.string(); + break; + case 2: + if (!(message.data && message.data.length)) + message.data = []; + message.data.push($root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EntityView message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} EntityView + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityView.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EntityView message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EntityView.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityId != null && message.hasOwnProperty("entityId")) + if (!$util.isString(message.entityId)) + return "entityId: string expected"; + if (message.data != null && message.hasOwnProperty("data")) { + if (!Array.isArray(message.data)) + return "data: array expected"; + for (var i = 0; i < message.data.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify(message.data[i]); + if (error) + return "data." + error; + } + } + return null; + }; + + /** + * Creates an EntityView message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} EntityView + */ + EntityView.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView(); + if (object.entityId != null) + message.entityId = String(object.entityId); + if (object.data) { + if (!Array.isArray(object.data)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.data: array expected"); + message.data = []; + for (var i = 0; i < object.data.length; ++i) { + if (typeof object.data[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.data: object expected"); + message.data[i] = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.fromObject(object.data[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EntityView message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView} message EntityView + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EntityView.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.data = []; + if (options.defaults) + object.entityId = ""; + if (message.entityId != null && message.hasOwnProperty("entityId")) + object.entityId = message.entityId; + if (message.data && message.data.length) { + object.data = []; + for (var j = 0; j < message.data.length; ++j) + object.data[j] = $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.toObject(message.data[j], options); + } + return object; + }; + + /** + * Converts this EntityView to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @instance + * @returns {Object.} JSON object + */ + EntityView.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + EntityView.Data = (function() { + + /** + * Properties of a Data. + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @interface IData + * @property {google.cloud.aiplatform.v1beta1.IFeatureValue|null} [value] Data value + * @property {google.cloud.aiplatform.v1beta1.IFeatureValueList|null} [values] Data values + */ + + /** + * Constructs a new Data. + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView + * @classdesc Represents a Data. + * @implements IData + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData=} [properties] Properties to set + */ + function Data(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Data value. + * @member {google.cloud.aiplatform.v1beta1.IFeatureValue|null|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @instance + */ + Data.prototype.value = null; + + /** + * Data values. + * @member {google.cloud.aiplatform.v1beta1.IFeatureValueList|null|undefined} values + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @instance + */ + Data.prototype.values = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * Data data. + * @member {"value"|"values"|undefined} data + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @instance + */ + Object.defineProperty(Data.prototype, "data", { + get: $util.oneOfGetter($oneOfFields = ["value", "values"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new Data instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} Data instance + */ + Data.create = function create(properties) { + return new Data(properties); + }; + + /** + * Encodes the specified Data message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData} message Data message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Data.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.cloud.aiplatform.v1beta1.FeatureValue.encode(message.value, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.values != null && Object.hasOwnProperty.call(message, "values")) + $root.google.cloud.aiplatform.v1beta1.FeatureValueList.encode(message.values, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Data message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.IData} message Data message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Data.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Data message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} Data + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Data.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.value = $root.google.cloud.aiplatform.v1beta1.FeatureValue.decode(reader, reader.uint32()); + break; + case 2: + message.values = $root.google.cloud.aiplatform.v1beta1.FeatureValueList.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Data message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} Data + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Data.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Data message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Data.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.value != null && message.hasOwnProperty("value")) { + properties.data = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureValue.verify(message.value); + if (error) + return "value." + error; + } + } + if (message.values != null && message.hasOwnProperty("values")) { + if (properties.data === 1) + return "data: multiple values"; + properties.data = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureValueList.verify(message.values); + if (error) + return "values." + error; + } + } + return null; + }; + + /** + * Creates a Data message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} Data + */ + Data.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data(); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.value: object expected"); + message.value = $root.google.cloud.aiplatform.v1beta1.FeatureValue.fromObject(object.value); + } + if (object.values != null) { + if (typeof object.values !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data.values: object expected"); + message.values = $root.google.cloud.aiplatform.v1beta1.FeatureValueList.fromObject(object.values); + } + return message; + }; + + /** + * Creates a plain object from a Data message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @static + * @param {google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data} message Data + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Data.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (message.value != null && message.hasOwnProperty("value")) { + object.value = $root.google.cloud.aiplatform.v1beta1.FeatureValue.toObject(message.value, options); + if (options.oneofs) + object.data = "value"; + } + if (message.values != null && message.hasOwnProperty("values")) { + object.values = $root.google.cloud.aiplatform.v1beta1.FeatureValueList.toObject(message.values, options); + if (options.oneofs) + object.data = "values"; + } + return object; + }; + + /** + * Converts this Data to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse.EntityView.Data + * @instance + * @returns {Object.} JSON object + */ + Data.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Data; + })(); + + return EntityView; + })(); + + return ReadFeatureValuesResponse; })(); - v1beta1.StringArray = (function() { + v1beta1.StreamingReadFeatureValuesRequest = (function() { /** - * Properties of a StringArray. + * Properties of a StreamingReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStringArray - * @property {Array.|null} [values] StringArray values + * @interface IStreamingReadFeatureValuesRequest + * @property {string|null} [entityType] StreamingReadFeatureValuesRequest entityType + * @property {Array.|null} [entityIds] StreamingReadFeatureValuesRequest entityIds + * @property {google.cloud.aiplatform.v1beta1.IFeatureSelector|null} [featureSelector] StreamingReadFeatureValuesRequest featureSelector */ /** - * Constructs a new StringArray. + * Constructs a new StreamingReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StringArray. - * @implements IStringArray + * @classdesc Represents a StreamingReadFeatureValuesRequest. + * @implements IStreamingReadFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStringArray=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set */ - function StringArray(properties) { - this.values = []; + function StreamingReadFeatureValuesRequest(properties) { + this.entityIds = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -187856,78 +193999,104 @@ } /** - * StringArray values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * StreamingReadFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @instance */ - StringArray.prototype.values = $util.emptyArray; + StreamingReadFeatureValuesRequest.prototype.entityType = ""; /** - * Creates a new StringArray instance using the specified properties. + * StreamingReadFeatureValuesRequest entityIds. + * @member {Array.} entityIds + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @instance + */ + StreamingReadFeatureValuesRequest.prototype.entityIds = $util.emptyArray; + + /** + * StreamingReadFeatureValuesRequest featureSelector. + * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest + * @instance + */ + StreamingReadFeatureValuesRequest.prototype.featureSelector = null; + + /** + * Creates a new StreamingReadFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStringArray=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray instance + * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest instance */ - StringArray.create = function create(properties) { - return new StringArray(properties); + StreamingReadFeatureValuesRequest.create = function create(properties) { + return new StreamingReadFeatureValuesRequest(properties); }; /** - * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. + * Encodes the specified StreamingReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStringArray} message StringArray message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StringArray.encode = function encode(message, writer) { + StreamingReadFeatureValuesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.entityIds != null && message.entityIds.length) + for (var i = 0; i < message.entityIds.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.entityIds[i]); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1beta1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. + * Encodes the specified StreamingReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IStringArray} message StringArray message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StringArray.encodeDelimited = function encodeDelimited(message, writer) { + StreamingReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StringArray message from the specified reader or buffer. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray + * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StringArray.decode = function decode(reader, length) { + StreamingReadFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StringArray(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); + message.entityType = reader.string(); + break; + case 2: + if (!(message.entityIds && message.entityIds.length)) + message.entityIds = []; + message.entityIds.push(reader.string()); + break; + case 3: + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -187938,918 +194107,358 @@ }; /** - * Decodes a StringArray message from the specified reader or buffer, length delimited. + * Decodes a StreamingReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray + * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StringArray.decodeDelimited = function decodeDelimited(reader) { + StreamingReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StringArray message. + * Verifies a StreamingReadFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StringArray.verify = function verify(message) { + StreamingReadFeatureValuesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.entityIds != null && message.hasOwnProperty("entityIds")) { + if (!Array.isArray(message.entityIds)) + return "entityIds: array expected"; + for (var i = 0; i < message.entityIds.length; ++i) + if (!$util.isString(message.entityIds[i])) + return "entityIds: string[] expected"; + } + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.verify(message.featureSelector); + if (error) + return "featureSelector." + error; } return null; }; /** - * Creates a StringArray message from a plain object. Also converts values to their respective internal types. + * Creates a StreamingReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray + * @returns {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} StreamingReadFeatureValuesRequest */ - StringArray.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StringArray) + StreamingReadFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StringArray(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StringArray.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest(); + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.entityIds) { + if (!Array.isArray(object.entityIds)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.entityIds: array expected"); + message.entityIds = []; + for (var i = 0; i < object.entityIds.length; ++i) + message.entityIds[i] = String(object.entityIds[i]); + } + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.fromObject(object.featureSelector); } return message; }; /** - * Creates a plain object from a StringArray message. Also converts values to other types if specified. + * Creates a plain object from a StreamingReadFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.StringArray} message StringArray + * @param {google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest} message StreamingReadFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StringArray.toObject = function toObject(message, options) { + StreamingReadFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; + object.entityIds = []; + if (options.defaults) { + object.entityType = ""; + object.featureSelector = null; } + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.entityIds && message.entityIds.length) { + object.entityIds = []; + for (var j = 0; j < message.entityIds.length; ++j) + object.entityIds[j] = message.entityIds[j]; + } + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, options); return object; }; /** - * Converts this StringArray to JSON. + * Converts this StreamingReadFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StringArray + * @memberof google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - StringArray.prototype.toJSON = function toJSON() { + StreamingReadFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return StringArray; + return StreamingReadFeatureValuesRequest; })(); - v1beta1.FeaturestoreService = (function() { + v1beta1.FeatureValue = (function() { /** - * Constructs a new FeaturestoreService service. + * Properties of a FeatureValue. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeaturestoreService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function FeaturestoreService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (FeaturestoreService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeaturestoreService; - - /** - * Creates new FeaturestoreService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {FeaturestoreService} RPC service. Useful where requests and/or responses are streamed. - */ - FeaturestoreService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createFeaturestore}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef CreateFeaturestoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateFeaturestore. - * @function createFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} request CreateFeaturestoreRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.createFeaturestore = function createFeaturestore(request, callback) { - return this.rpcCall(createFeaturestore, $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateFeaturestore" }); - - /** - * Calls CreateFeaturestore. - * @function createFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} request CreateFeaturestoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getFeaturestore}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef GetFeaturestoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Featurestore} [response] Featurestore - */ - - /** - * Calls GetFeaturestore. - * @function getFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest} request GetFeaturestoreRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestoreCallback} callback Node-style callback called with the error, if any, and Featurestore - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.getFeaturestore = function getFeaturestore(request, callback) { - return this.rpcCall(getFeaturestore, $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, $root.google.cloud.aiplatform.v1beta1.Featurestore, request, callback); - }, "name", { value: "GetFeaturestore" }); - - /** - * Calls GetFeaturestore. - * @function getFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest} request GetFeaturestoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listFeaturestores}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef ListFeaturestoresCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} [response] ListFeaturestoresResponse - */ - - /** - * Calls ListFeaturestores. - * @function listFeaturestores - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest} request ListFeaturestoresRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestoresCallback} callback Node-style callback called with the error, if any, and ListFeaturestoresResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.listFeaturestores = function listFeaturestores(request, callback) { - return this.rpcCall(listFeaturestores, $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse, request, callback); - }, "name", { value: "ListFeaturestores" }); - - /** - * Calls ListFeaturestores. - * @function listFeaturestores - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest} request ListFeaturestoresRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateFeaturestore}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef UpdateFeaturestoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls UpdateFeaturestore. - * @function updateFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} request UpdateFeaturestoreRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.updateFeaturestore = function updateFeaturestore(request, callback) { - return this.rpcCall(updateFeaturestore, $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateFeaturestore" }); - - /** - * Calls UpdateFeaturestore. - * @function updateFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} request UpdateFeaturestoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteFeaturestore}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef DeleteFeaturestoreCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteFeaturestore. - * @function deleteFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} request DeleteFeaturestoreRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.deleteFeaturestore = function deleteFeaturestore(request, callback) { - return this.rpcCall(deleteFeaturestore, $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteFeaturestore" }); - - /** - * Calls DeleteFeaturestore. - * @function deleteFeaturestore - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} request DeleteFeaturestoreRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createEntityType}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef CreateEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.createEntityType = function createEntityType(request, callback) { - return this.rpcCall(createEntityType, $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateEntityType" }); - - /** - * Calls CreateEntityType. - * @function createEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getEntityType}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef GetEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.EntityType} [response] EntityType - */ - - /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.getEntityType = function getEntityType(request, callback) { - return this.rpcCall(getEntityType, $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, $root.google.cloud.aiplatform.v1beta1.EntityType, request, callback); - }, "name", { value: "GetEntityType" }); - - /** - * Calls GetEntityType. - * @function getEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listEntityTypes}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef ListEntityTypesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} [response] ListEntityTypesResponse - */ - - /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.listEntityTypes = function listEntityTypes(request, callback) { - return this.rpcCall(listEntityTypes, $root.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, $root.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse, request, callback); - }, "name", { value: "ListEntityTypes" }); - - /** - * Calls ListEntityTypes. - * @function listEntityTypes - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateEntityType}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef UpdateEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.EntityType} [response] EntityType - */ - - /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.updateEntityType = function updateEntityType(request, callback) { - return this.rpcCall(updateEntityType, $root.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, $root.google.cloud.aiplatform.v1beta1.EntityType, request, callback); - }, "name", { value: "UpdateEntityType" }); - - /** - * Calls UpdateEntityType. - * @function updateEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteEntityType}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef DeleteEntityTypeCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.deleteEntityType = function deleteEntityType(request, callback) { - return this.rpcCall(deleteEntityType, $root.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteEntityType" }); - - /** - * Calls DeleteEntityType. - * @function deleteEntityType - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createFeature}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef CreateFeatureCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateFeature. - * @function createFeature - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest} request CreateFeatureRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeatureCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.createFeature = function createFeature(request, callback) { - return this.rpcCall(createFeature, $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateFeature" }); - - /** - * Calls CreateFeature. - * @function createFeature - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest} request CreateFeatureRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#batchCreateFeatures}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef BatchCreateFeaturesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls BatchCreateFeatures. - * @function batchCreateFeatures - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} request BatchCreateFeaturesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeaturesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.batchCreateFeatures = function batchCreateFeatures(request, callback) { - return this.rpcCall(batchCreateFeatures, $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchCreateFeatures" }); - - /** - * Calls BatchCreateFeatures. - * @function batchCreateFeatures - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} request BatchCreateFeaturesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getFeature}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef GetFeatureCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Feature} [response] Feature - */ - - /** - * Calls GetFeature. - * @function getFeature - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest} request GetFeatureRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeatureCallback} callback Node-style callback called with the error, if any, and Feature - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.getFeature = function getFeature(request, callback) { - return this.rpcCall(getFeature, $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest, $root.google.cloud.aiplatform.v1beta1.Feature, request, callback); - }, "name", { value: "GetFeature" }); - - /** - * Calls GetFeature. - * @function getFeature - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest} request GetFeatureRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listFeatures}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef ListFeaturesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} [response] ListFeaturesResponse - */ - - /** - * Calls ListFeatures. - * @function listFeatures - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest} request ListFeaturesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturesCallback} callback Node-style callback called with the error, if any, and ListFeaturesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.listFeatures = function listFeatures(request, callback) { - return this.rpcCall(listFeatures, $root.google.cloud.aiplatform.v1beta1.ListFeaturesRequest, $root.google.cloud.aiplatform.v1beta1.ListFeaturesResponse, request, callback); - }, "name", { value: "ListFeatures" }); - - /** - * Calls ListFeatures. - * @function listFeatures - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest} request ListFeaturesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateFeature}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef UpdateFeatureCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Feature} [response] Feature - */ - - /** - * Calls UpdateFeature. - * @function updateFeature - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest} request UpdateFeatureRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeatureCallback} callback Node-style callback called with the error, if any, and Feature - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(FeaturestoreService.prototype.updateFeature = function updateFeature(request, callback) { - return this.rpcCall(updateFeature, $root.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, $root.google.cloud.aiplatform.v1beta1.Feature, request, callback); - }, "name", { value: "UpdateFeature" }); - - /** - * Calls UpdateFeature. - * @function updateFeature - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest} request UpdateFeatureRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteFeature}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef DeleteFeatureCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * @interface IFeatureValue + * @property {boolean|null} [boolValue] FeatureValue boolValue + * @property {number|null} [doubleValue] FeatureValue doubleValue + * @property {number|Long|null} [int64Value] FeatureValue int64Value + * @property {string|null} [stringValue] FeatureValue stringValue + * @property {google.cloud.aiplatform.v1beta1.IBoolArray|null} [boolArrayValue] FeatureValue boolArrayValue + * @property {google.cloud.aiplatform.v1beta1.IDoubleArray|null} [doubleArrayValue] FeatureValue doubleArrayValue + * @property {google.cloud.aiplatform.v1beta1.IInt64Array|null} [int64ArrayValue] FeatureValue int64ArrayValue + * @property {google.cloud.aiplatform.v1beta1.IStringArray|null} [stringArrayValue] FeatureValue stringArrayValue + * @property {Uint8Array|null} [bytesValue] FeatureValue bytesValue + * @property {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null} [metadata] FeatureValue metadata */ /** - * Calls DeleteFeature. - * @function deleteFeature - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest} request DeleteFeatureRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Constructs a new FeatureValue. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a FeatureValue. + * @implements IFeatureValue + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IFeatureValue=} [properties] Properties to set */ - Object.defineProperty(FeaturestoreService.prototype.deleteFeature = function deleteFeature(request, callback) { - return this.rpcCall(deleteFeature, $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteFeature" }); + function FeatureValue(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls DeleteFeature. - * @function deleteFeature - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * FeatureValue boolValue. + * @member {boolean|null|undefined} boolValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest} request DeleteFeatureRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#importFeatureValues}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef ImportFeatureValuesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + FeatureValue.prototype.boolValue = null; /** - * Calls ImportFeatureValues. - * @function importFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * FeatureValue doubleValue. + * @member {number|null|undefined} doubleValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest} request ImportFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(FeaturestoreService.prototype.importFeatureValues = function importFeatureValues(request, callback) { - return this.rpcCall(importFeatureValues, $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ImportFeatureValues" }); + FeatureValue.prototype.doubleValue = null; /** - * Calls ImportFeatureValues. - * @function importFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * FeatureValue int64Value. + * @member {number|Long|null|undefined} int64Value + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest} request ImportFeatureValuesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#batchReadFeatureValues}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef BatchReadFeatureValuesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + FeatureValue.prototype.int64Value = null; /** - * Calls BatchReadFeatureValues. - * @function batchReadFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * FeatureValue stringValue. + * @member {string|null|undefined} stringValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest} request BatchReadFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(FeaturestoreService.prototype.batchReadFeatureValues = function batchReadFeatureValues(request, callback) { - return this.rpcCall(batchReadFeatureValues, $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "BatchReadFeatureValues" }); + FeatureValue.prototype.stringValue = null; /** - * Calls BatchReadFeatureValues. - * @function batchReadFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * FeatureValue boolArrayValue. + * @member {google.cloud.aiplatform.v1beta1.IBoolArray|null|undefined} boolArrayValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest} request BatchReadFeatureValuesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#exportFeatureValues}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef ExportFeatureValuesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation */ + FeatureValue.prototype.boolArrayValue = null; /** - * Calls ExportFeatureValues. - * @function exportFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * FeatureValue doubleArrayValue. + * @member {google.cloud.aiplatform.v1beta1.IDoubleArray|null|undefined} doubleArrayValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest} request ExportFeatureValuesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(FeaturestoreService.prototype.exportFeatureValues = function exportFeatureValues(request, callback) { - return this.rpcCall(exportFeatureValues, $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "ExportFeatureValues" }); + FeatureValue.prototype.doubleArrayValue = null; /** - * Calls ExportFeatureValues. - * @function exportFeatureValues - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * FeatureValue int64ArrayValue. + * @member {google.cloud.aiplatform.v1beta1.IInt64Array|null|undefined} int64ArrayValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest} request ExportFeatureValuesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#searchFeatures}. - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService - * @typedef SearchFeaturesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} [response] SearchFeaturesResponse */ + FeatureValue.prototype.int64ArrayValue = null; /** - * Calls SearchFeatures. - * @function searchFeatures - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * FeatureValue stringArrayValue. + * @member {google.cloud.aiplatform.v1beta1.IStringArray|null|undefined} stringArrayValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest} request SearchFeaturesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeaturesCallback} callback Node-style callback called with the error, if any, and SearchFeaturesResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(FeaturestoreService.prototype.searchFeatures = function searchFeatures(request, callback) { - return this.rpcCall(searchFeatures, $root.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, $root.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse, request, callback); - }, "name", { value: "SearchFeatures" }); + FeatureValue.prototype.stringArrayValue = null; /** - * Calls SearchFeatures. - * @function searchFeatures - * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * FeatureValue bytesValue. + * @member {Uint8Array|null|undefined} bytesValue + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest} request SearchFeaturesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return FeaturestoreService; - })(); - - v1beta1.CreateFeaturestoreRequest = (function() { - - /** - * Properties of a CreateFeaturestoreRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateFeaturestoreRequest - * @property {string|null} [parent] CreateFeaturestoreRequest parent - * @property {google.cloud.aiplatform.v1beta1.IFeaturestore|null} [featurestore] CreateFeaturestoreRequest featurestore - * @property {string|null} [featurestoreId] CreateFeaturestoreRequest featurestoreId - */ - - /** - * Constructs a new CreateFeaturestoreRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateFeaturestoreRequest. - * @implements ICreateFeaturestoreRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest=} [properties] Properties to set */ - function CreateFeaturestoreRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FeatureValue.prototype.bytesValue = null; /** - * CreateFeaturestoreRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * FeatureValue metadata. + * @member {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance */ - CreateFeaturestoreRequest.prototype.parent = ""; + FeatureValue.prototype.metadata = null; - /** - * CreateFeaturestoreRequest featurestore. - * @member {google.cloud.aiplatform.v1beta1.IFeaturestore|null|undefined} featurestore - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest - * @instance - */ - CreateFeaturestoreRequest.prototype.featurestore = null; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CreateFeaturestoreRequest featurestoreId. - * @member {string} featurestoreId - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * FeatureValue value. + * @member {"boolValue"|"doubleValue"|"int64Value"|"stringValue"|"boolArrayValue"|"doubleArrayValue"|"int64ArrayValue"|"stringArrayValue"|"bytesValue"|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance */ - CreateFeaturestoreRequest.prototype.featurestoreId = ""; + Object.defineProperty(FeatureValue.prototype, "value", { + get: $util.oneOfGetter($oneOfFields = ["boolValue", "doubleValue", "int64Value", "stringValue", "boolArrayValue", "doubleArrayValue", "int64ArrayValue", "stringArrayValue", "bytesValue"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CreateFeaturestoreRequest instance using the specified properties. + * Creates a new FeatureValue instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFeatureValue=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue instance */ - CreateFeaturestoreRequest.create = function create(properties) { - return new CreateFeaturestoreRequest(properties); + FeatureValue.create = function create(properties) { + return new FeatureValue(properties); }; /** - * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. + * Encodes the specified FeatureValue message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} message CreateFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeatureValue} message FeatureValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeaturestoreRequest.encode = function encode(message, writer) { + FeatureValue.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) - $root.google.cloud.aiplatform.v1beta1.Featurestore.encode(message.featurestore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.featurestoreId != null && Object.hasOwnProperty.call(message, "featurestoreId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featurestoreId); + if (message.boolValue != null && Object.hasOwnProperty.call(message, "boolValue")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.boolValue); + if (message.doubleValue != null && Object.hasOwnProperty.call(message, "doubleValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.doubleValue); + if (message.int64Value != null && Object.hasOwnProperty.call(message, "int64Value")) + writer.uint32(/* id 5, wireType 0 =*/40).int64(message.int64Value); + if (message.stringValue != null && Object.hasOwnProperty.call(message, "stringValue")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.stringValue); + if (message.boolArrayValue != null && Object.hasOwnProperty.call(message, "boolArrayValue")) + $root.google.cloud.aiplatform.v1beta1.BoolArray.encode(message.boolArrayValue, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.doubleArrayValue != null && Object.hasOwnProperty.call(message, "doubleArrayValue")) + $root.google.cloud.aiplatform.v1beta1.DoubleArray.encode(message.doubleArrayValue, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.int64ArrayValue != null && Object.hasOwnProperty.call(message, "int64ArrayValue")) + $root.google.cloud.aiplatform.v1beta1.Int64Array.encode(message.int64ArrayValue, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.stringArrayValue != null && Object.hasOwnProperty.call(message, "stringArrayValue")) + $root.google.cloud.aiplatform.v1beta1.StringArray.encode(message.stringArrayValue, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.bytesValue != null && Object.hasOwnProperty.call(message, "bytesValue")) + writer.uint32(/* id 13, wireType 2 =*/106).bytes(message.bytesValue); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.encode(message.metadata, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. + * Encodes the specified FeatureValue message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} message CreateFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeatureValue} message FeatureValue message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + FeatureValue.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. + * Decodes a FeatureValue message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeaturestoreRequest.decode = function decode(reader, length) { + FeatureValue.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureValue(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.boolValue = reader.bool(); break; case 2: - message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.decode(reader, reader.uint32()); + message.doubleValue = reader.double(); break; - case 3: - message.featurestoreId = reader.string(); + case 5: + message.int64Value = reader.int64(); + break; + case 6: + message.stringValue = reader.string(); + break; + case 7: + message.boolArrayValue = $root.google.cloud.aiplatform.v1beta1.BoolArray.decode(reader, reader.uint32()); + break; + case 8: + message.doubleArrayValue = $root.google.cloud.aiplatform.v1beta1.DoubleArray.decode(reader, reader.uint32()); + break; + case 11: + message.int64ArrayValue = $root.google.cloud.aiplatform.v1beta1.Int64Array.decode(reader, reader.uint32()); + break; + case 12: + message.stringArrayValue = $root.google.cloud.aiplatform.v1beta1.StringArray.decode(reader, reader.uint32()); + break; + case 13: + message.bytesValue = reader.bytes(); + break; + case 14: + message.metadata = $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -188860,129 +194469,467 @@ }; /** - * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureValue message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + FeatureValue.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFeaturestoreRequest message. + * Verifies a FeatureValue message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFeaturestoreRequest.verify = function verify(message) { + FeatureValue.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.featurestore != null && message.hasOwnProperty("featurestore")) { - var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.verify(message.featurestore); - if (error) - return "featurestore." + error; + var properties = {}; + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + properties.value = 1; + if (typeof message.boolValue !== "boolean") + return "boolValue: boolean expected"; } - if (message.featurestoreId != null && message.hasOwnProperty("featurestoreId")) - if (!$util.isString(message.featurestoreId)) - return "featurestoreId: string expected"; - return null; - }; - - /** - * Creates a CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest - */ - CreateFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.featurestore != null) { - if (typeof object.featurestore !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.featurestore: object expected"); - message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.fromObject(object.featurestore); + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (typeof message.doubleValue !== "number") + return "doubleValue: number expected"; } - if (object.featurestoreId != null) - message.featurestoreId = String(object.featurestoreId); - return message; - }; - - /** - * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} message CreateFeaturestoreRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateFeaturestoreRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.featurestore = null; - object.featurestoreId = ""; + if (message.int64Value != null && message.hasOwnProperty("int64Value")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isInteger(message.int64Value) && !(message.int64Value && $util.isInteger(message.int64Value.low) && $util.isInteger(message.int64Value.high))) + return "int64Value: integer|Long expected"; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.featurestore != null && message.hasOwnProperty("featurestore")) - object.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.toObject(message.featurestore, options); - if (message.featurestoreId != null && message.hasOwnProperty("featurestoreId")) - object.featurestoreId = message.featurestoreId; + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!$util.isString(message.stringValue)) + return "stringValue: string expected"; + } + if (message.boolArrayValue != null && message.hasOwnProperty("boolArrayValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.BoolArray.verify(message.boolArrayValue); + if (error) + return "boolArrayValue." + error; + } + } + if (message.doubleArrayValue != null && message.hasOwnProperty("doubleArrayValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.DoubleArray.verify(message.doubleArrayValue); + if (error) + return "doubleArrayValue." + error; + } + } + if (message.int64ArrayValue != null && message.hasOwnProperty("int64ArrayValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.Int64Array.verify(message.int64ArrayValue); + if (error) + return "int64ArrayValue." + error; + } + } + if (message.stringArrayValue != null && message.hasOwnProperty("stringArrayValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StringArray.verify(message.stringArrayValue); + if (error) + return "stringArrayValue." + error; + } + } + if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { + if (properties.value === 1) + return "value: multiple values"; + properties.value = 1; + if (!(message.bytesValue && typeof message.bytesValue.length === "number" || $util.isString(message.bytesValue))) + return "bytesValue: buffer expected"; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify(message.metadata); + if (error) + return "metadata." + error; + } + return null; + }; + + /** + * Creates a FeatureValue message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureValue} FeatureValue + */ + FeatureValue.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValue) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureValue(); + if (object.boolValue != null) + message.boolValue = Boolean(object.boolValue); + if (object.doubleValue != null) + message.doubleValue = Number(object.doubleValue); + if (object.int64Value != null) + if ($util.Long) + (message.int64Value = $util.Long.fromValue(object.int64Value)).unsigned = false; + else if (typeof object.int64Value === "string") + message.int64Value = parseInt(object.int64Value, 10); + else if (typeof object.int64Value === "number") + message.int64Value = object.int64Value; + else if (typeof object.int64Value === "object") + message.int64Value = new $util.LongBits(object.int64Value.low >>> 0, object.int64Value.high >>> 0).toNumber(); + if (object.stringValue != null) + message.stringValue = String(object.stringValue); + if (object.boolArrayValue != null) { + if (typeof object.boolArrayValue !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.boolArrayValue: object expected"); + message.boolArrayValue = $root.google.cloud.aiplatform.v1beta1.BoolArray.fromObject(object.boolArrayValue); + } + if (object.doubleArrayValue != null) { + if (typeof object.doubleArrayValue !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.doubleArrayValue: object expected"); + message.doubleArrayValue = $root.google.cloud.aiplatform.v1beta1.DoubleArray.fromObject(object.doubleArrayValue); + } + if (object.int64ArrayValue != null) { + if (typeof object.int64ArrayValue !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.int64ArrayValue: object expected"); + message.int64ArrayValue = $root.google.cloud.aiplatform.v1beta1.Int64Array.fromObject(object.int64ArrayValue); + } + if (object.stringArrayValue != null) { + if (typeof object.stringArrayValue !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.stringArrayValue: object expected"); + message.stringArrayValue = $root.google.cloud.aiplatform.v1beta1.StringArray.fromObject(object.stringArrayValue); + } + if (object.bytesValue != null) + if (typeof object.bytesValue === "string") + $util.base64.decode(object.bytesValue, message.bytesValue = $util.newBuffer($util.base64.length(object.bytesValue)), 0); + else if (object.bytesValue.length) + message.bytesValue = object.bytesValue; + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.metadata: object expected"); + message.metadata = $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.fromObject(object.metadata); + } + return message; + }; + + /** + * Creates a plain object from a FeatureValue message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureValue} message FeatureValue + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureValue.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.metadata = null; + if (message.boolValue != null && message.hasOwnProperty("boolValue")) { + object.boolValue = message.boolValue; + if (options.oneofs) + object.value = "boolValue"; + } + if (message.doubleValue != null && message.hasOwnProperty("doubleValue")) { + object.doubleValue = options.json && !isFinite(message.doubleValue) ? String(message.doubleValue) : message.doubleValue; + if (options.oneofs) + object.value = "doubleValue"; + } + if (message.int64Value != null && message.hasOwnProperty("int64Value")) { + if (typeof message.int64Value === "number") + object.int64Value = options.longs === String ? String(message.int64Value) : message.int64Value; + else + object.int64Value = options.longs === String ? $util.Long.prototype.toString.call(message.int64Value) : options.longs === Number ? new $util.LongBits(message.int64Value.low >>> 0, message.int64Value.high >>> 0).toNumber() : message.int64Value; + if (options.oneofs) + object.value = "int64Value"; + } + if (message.stringValue != null && message.hasOwnProperty("stringValue")) { + object.stringValue = message.stringValue; + if (options.oneofs) + object.value = "stringValue"; + } + if (message.boolArrayValue != null && message.hasOwnProperty("boolArrayValue")) { + object.boolArrayValue = $root.google.cloud.aiplatform.v1beta1.BoolArray.toObject(message.boolArrayValue, options); + if (options.oneofs) + object.value = "boolArrayValue"; + } + if (message.doubleArrayValue != null && message.hasOwnProperty("doubleArrayValue")) { + object.doubleArrayValue = $root.google.cloud.aiplatform.v1beta1.DoubleArray.toObject(message.doubleArrayValue, options); + if (options.oneofs) + object.value = "doubleArrayValue"; + } + if (message.int64ArrayValue != null && message.hasOwnProperty("int64ArrayValue")) { + object.int64ArrayValue = $root.google.cloud.aiplatform.v1beta1.Int64Array.toObject(message.int64ArrayValue, options); + if (options.oneofs) + object.value = "int64ArrayValue"; + } + if (message.stringArrayValue != null && message.hasOwnProperty("stringArrayValue")) { + object.stringArrayValue = $root.google.cloud.aiplatform.v1beta1.StringArray.toObject(message.stringArrayValue, options); + if (options.oneofs) + object.value = "stringArrayValue"; + } + if (message.bytesValue != null && message.hasOwnProperty("bytesValue")) { + object.bytesValue = options.bytes === String ? $util.base64.encode(message.bytesValue, 0, message.bytesValue.length) : options.bytes === Array ? Array.prototype.slice.call(message.bytesValue) : message.bytesValue; + if (options.oneofs) + object.value = "bytesValue"; + } + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.toObject(message.metadata, options); return object; }; /** - * Converts this CreateFeaturestoreRequest to JSON. + * Converts this FeatureValue to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue * @instance * @returns {Object.} JSON object */ - CreateFeaturestoreRequest.prototype.toJSON = function toJSON() { + FeatureValue.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFeaturestoreRequest; + FeatureValue.Metadata = (function() { + + /** + * Properties of a Metadata. + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @interface IMetadata + * @property {google.protobuf.ITimestamp|null} [generateTime] Metadata generateTime + */ + + /** + * Constructs a new Metadata. + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue + * @classdesc Represents a Metadata. + * @implements IMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata=} [properties] Properties to set + */ + function Metadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Metadata generateTime. + * @member {google.protobuf.ITimestamp|null|undefined} generateTime + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata + * @instance + */ + Metadata.prototype.generateTime = null; + + /** + * Creates a new Metadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} Metadata instance + */ + Metadata.create = function create(properties) { + return new Metadata(properties); + }; + + /** + * Encodes the specified Metadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata} message Metadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.generateTime != null && Object.hasOwnProperty.call(message, "generateTime")) + $root.google.protobuf.Timestamp.encode(message.generateTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified Metadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureValue.IMetadata} message Metadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Metadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} Metadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.generateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Metadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} Metadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Metadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.generateTime != null && message.hasOwnProperty("generateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.generateTime); + if (error) + return "generateTime." + error; + } + return null; + }; + + /** + * Creates a Metadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} Metadata + */ + Metadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureValue.Metadata(); + if (object.generateTime != null) { + if (typeof object.generateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValue.Metadata.generateTime: object expected"); + message.generateTime = $root.google.protobuf.Timestamp.fromObject(object.generateTime); + } + return message; + }; + + /** + * Creates a plain object from a Metadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata + * @static + * @param {google.cloud.aiplatform.v1beta1.FeatureValue.Metadata} message Metadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.generateTime = null; + if (message.generateTime != null && message.hasOwnProperty("generateTime")) + object.generateTime = $root.google.protobuf.Timestamp.toObject(message.generateTime, options); + return object; + }; + + /** + * Converts this Metadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.FeatureValue.Metadata + * @instance + * @returns {Object.} JSON object + */ + Metadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Metadata; + })(); + + return FeatureValue; })(); - v1beta1.GetFeaturestoreRequest = (function() { + v1beta1.FeatureValueList = (function() { /** - * Properties of a GetFeaturestoreRequest. + * Properties of a FeatureValueList. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetFeaturestoreRequest - * @property {string|null} [name] GetFeaturestoreRequest name + * @interface IFeatureValueList + * @property {Array.|null} [values] FeatureValueList values */ /** - * Constructs a new GetFeaturestoreRequest. + * Constructs a new FeatureValueList. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetFeaturestoreRequest. - * @implements IGetFeaturestoreRequest + * @classdesc Represents a FeatureValueList. + * @implements IFeatureValueList * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList=} [properties] Properties to set */ - function GetFeaturestoreRequest(properties) { + function FeatureValueList(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -188990,75 +194937,78 @@ } /** - * GetFeaturestoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * FeatureValueList values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @instance */ - GetFeaturestoreRequest.prototype.name = ""; + FeatureValueList.prototype.values = $util.emptyArray; /** - * Creates a new GetFeaturestoreRequest instance using the specified properties. + * Creates a new FeatureValueList instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList instance */ - GetFeaturestoreRequest.create = function create(properties) { - return new GetFeaturestoreRequest(properties); + FeatureValueList.create = function create(properties) { + return new FeatureValueList(properties); }; /** - * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. + * Encodes the specified FeatureValueList message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest} message GetFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList} message FeatureValueList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFeaturestoreRequest.encode = function encode(message, writer) { + FeatureValueList.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FeatureValue.encode(message.values[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. + * Encodes the specified FeatureValueList message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueList.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest} message GetFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueList} message FeatureValueList message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + FeatureValueList.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. + * Decodes a FeatureValueList message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFeaturestoreRequest.decode = function decode(reader, length) { + FeatureValueList.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureValueList(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.values && message.values.length)) + message.values = []; + message.values.push($root.google.cloud.aiplatform.v1beta1.FeatureValue.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -189069,112 +195019,125 @@ }; /** - * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureValueList message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + FeatureValueList.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFeaturestoreRequest message. + * Verifies a FeatureValueList message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFeaturestoreRequest.verify = function verify(message) { + FeatureValueList.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureValue.verify(message.values[i]); + if (error) + return "values." + error; + } + } return null; }; /** - * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValueList message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueList} FeatureValueList */ - GetFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) + FeatureValueList.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValueList) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureValueList(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValueList.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) { + if (typeof object.values[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValueList.values: object expected"); + message.values[i] = $root.google.cloud.aiplatform.v1beta1.FeatureValue.fromObject(object.values[i]); + } + } return message; }; /** - * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a FeatureValueList message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @static - * @param {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} message GetFeaturestoreRequest + * @param {google.cloud.aiplatform.v1beta1.FeatureValueList} message FeatureValueList * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFeaturestoreRequest.toObject = function toObject(message, options) { + FeatureValueList.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = $root.google.cloud.aiplatform.v1beta1.FeatureValue.toObject(message.values[j], options); + } return object; }; /** - * Converts this GetFeaturestoreRequest to JSON. + * Converts this FeatureValueList to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueList * @instance * @returns {Object.} JSON object */ - GetFeaturestoreRequest.prototype.toJSON = function toJSON() { + FeatureValueList.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetFeaturestoreRequest; + return FeatureValueList; })(); - v1beta1.ListFeaturestoresRequest = (function() { + v1beta1.BoolArray = (function() { /** - * Properties of a ListFeaturestoresRequest. + * Properties of a BoolArray. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListFeaturestoresRequest - * @property {string|null} [parent] ListFeaturestoresRequest parent - * @property {string|null} [filter] ListFeaturestoresRequest filter - * @property {number|null} [pageSize] ListFeaturestoresRequest pageSize - * @property {string|null} [pageToken] ListFeaturestoresRequest pageToken - * @property {string|null} [orderBy] ListFeaturestoresRequest orderBy - * @property {google.protobuf.IFieldMask|null} [readMask] ListFeaturestoresRequest readMask + * @interface IBoolArray + * @property {Array.|null} [values] BoolArray values */ /** - * Constructs a new ListFeaturestoresRequest. + * Constructs a new BoolArray. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListFeaturestoresRequest. - * @implements IListFeaturestoresRequest + * @classdesc Represents a BoolArray. + * @implements IBoolArray * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBoolArray=} [properties] Properties to set */ - function ListFeaturestoresRequest(properties) { + function BoolArray(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189182,140 +195145,86 @@ } /** - * ListFeaturestoresRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest - * @instance - */ - ListFeaturestoresRequest.prototype.parent = ""; - - /** - * ListFeaturestoresRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest - * @instance - */ - ListFeaturestoresRequest.prototype.filter = ""; - - /** - * ListFeaturestoresRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest - * @instance - */ - ListFeaturestoresRequest.prototype.pageSize = 0; - - /** - * ListFeaturestoresRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest - * @instance - */ - ListFeaturestoresRequest.prototype.pageToken = ""; - - /** - * ListFeaturestoresRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest - * @instance - */ - ListFeaturestoresRequest.prototype.orderBy = ""; - - /** - * ListFeaturestoresRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * BoolArray values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @instance */ - ListFeaturestoresRequest.prototype.readMask = null; + BoolArray.prototype.values = $util.emptyArray; /** - * Creates a new ListFeaturestoresRequest instance using the specified properties. + * Creates a new BoolArray instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBoolArray=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray instance */ - ListFeaturestoresRequest.create = function create(properties) { - return new ListFeaturestoresRequest(properties); + BoolArray.create = function create(properties) { + return new BoolArray(properties); }; /** - * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. + * Encodes the specified BoolArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest} message ListFeaturestoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBoolArray} message BoolArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturestoresRequest.encode = function encode(message, writer) { + BoolArray.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.bool(message.values[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. + * Encodes the specified BoolArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BoolArray.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest} message ListFeaturestoresRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBoolArray} message BoolArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturestoresRequest.encodeDelimited = function encodeDelimited(message, writer) { + BoolArray.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. + * Decodes a BoolArray message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest + * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturestoresRequest.decode = function decode(reader, length) { + BoolArray.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BoolArray(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 5: - message.orderBy = reader.string(); - break; - case 6: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.bool()); + } else + message.values.push(reader.bool()); break; default: reader.skipType(tag & 7); @@ -189326,155 +195235,120 @@ }; /** - * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. + * Decodes a BoolArray message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest + * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturestoresRequest.decodeDelimited = function decodeDelimited(reader) { + BoolArray.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFeaturestoresRequest message. + * Verifies a BoolArray message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFeaturestoresRequest.verify = function verify(message) { + BoolArray.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (typeof message.values[i] !== "boolean") + return "values: boolean[] expected"; } return null; }; /** - * Creates a ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BoolArray message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest + * @returns {google.cloud.aiplatform.v1beta1.BoolArray} BoolArray */ - ListFeaturestoresRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) + BoolArray.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BoolArray) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.BoolArray(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BoolArray.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = Boolean(object.values[i]); } return message; }; /** - * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. + * Creates a plain object from a BoolArray message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @static - * @param {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} message ListFeaturestoresRequest + * @param {google.cloud.aiplatform.v1beta1.BoolArray} message BoolArray * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFeaturestoresRequest.toObject = function toObject(message, options) { + BoolArray.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.orderBy = ""; - object.readMask = null; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListFeaturestoresRequest to JSON. + * Converts this BoolArray to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest + * @memberof google.cloud.aiplatform.v1beta1.BoolArray * @instance * @returns {Object.} JSON object */ - ListFeaturestoresRequest.prototype.toJSON = function toJSON() { + BoolArray.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFeaturestoresRequest; + return BoolArray; })(); - v1beta1.ListFeaturestoresResponse = (function() { + v1beta1.DoubleArray = (function() { /** - * Properties of a ListFeaturestoresResponse. + * Properties of a DoubleArray. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListFeaturestoresResponse - * @property {Array.|null} [featurestores] ListFeaturestoresResponse featurestores - * @property {string|null} [nextPageToken] ListFeaturestoresResponse nextPageToken + * @interface IDoubleArray + * @property {Array.|null} [values] DoubleArray values */ /** - * Constructs a new ListFeaturestoresResponse. + * Constructs a new DoubleArray. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListFeaturestoresResponse. - * @implements IListFeaturestoresResponse + * @classdesc Represents a DoubleArray. + * @implements IDoubleArray * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDoubleArray=} [properties] Properties to set */ - function ListFeaturestoresResponse(properties) { - this.featurestores = []; + function DoubleArray(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189482,91 +195356,86 @@ } /** - * ListFeaturestoresResponse featurestores. - * @member {Array.} featurestores - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse - * @instance - */ - ListFeaturestoresResponse.prototype.featurestores = $util.emptyArray; - - /** - * ListFeaturestoresResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * DoubleArray values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @instance */ - ListFeaturestoresResponse.prototype.nextPageToken = ""; + DoubleArray.prototype.values = $util.emptyArray; /** - * Creates a new ListFeaturestoresResponse instance using the specified properties. + * Creates a new DoubleArray instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDoubleArray=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray instance */ - ListFeaturestoresResponse.create = function create(properties) { - return new ListFeaturestoresResponse(properties); + DoubleArray.create = function create(properties) { + return new DoubleArray(properties); }; /** - * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. + * Encodes the specified DoubleArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse} message ListFeaturestoresResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDoubleArray} message DoubleArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturestoresResponse.encode = function encode(message, writer) { + DoubleArray.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.featurestores != null && message.featurestores.length) - for (var i = 0; i < message.featurestores.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Featurestore.encode(message.featurestores[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.double(message.values[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. + * Encodes the specified DoubleArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DoubleArray.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse} message ListFeaturestoresResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDoubleArray} message DoubleArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturestoresResponse.encodeDelimited = function encodeDelimited(message, writer) { + DoubleArray.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. + * Decodes a DoubleArray message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse + * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturestoresResponse.decode = function decode(reader, length) { + DoubleArray.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DoubleArray(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.featurestores && message.featurestores.length)) - message.featurestores = []; - message.featurestores.push($root.google.cloud.aiplatform.v1beta1.Featurestore.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.double()); + } else + message.values.push(reader.double()); break; default: reader.skipType(tag & 7); @@ -189577,134 +195446,120 @@ }; /** - * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. + * Decodes a DoubleArray message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse + * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturestoresResponse.decodeDelimited = function decodeDelimited(reader) { + DoubleArray.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFeaturestoresResponse message. + * Verifies a DoubleArray message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFeaturestoresResponse.verify = function verify(message) { + DoubleArray.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.featurestores != null && message.hasOwnProperty("featurestores")) { - if (!Array.isArray(message.featurestores)) - return "featurestores: array expected"; - for (var i = 0; i < message.featurestores.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.verify(message.featurestores[i]); - if (error) - return "featurestores." + error; - } + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (typeof message.values[i] !== "number") + return "values: number[] expected"; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DoubleArray message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse + * @returns {google.cloud.aiplatform.v1beta1.DoubleArray} DoubleArray */ - ListFeaturestoresResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) + DoubleArray.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DoubleArray) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse(); - if (object.featurestores) { - if (!Array.isArray(object.featurestores)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.featurestores: array expected"); - message.featurestores = []; - for (var i = 0; i < object.featurestores.length; ++i) { - if (typeof object.featurestores[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.featurestores: object expected"); - message.featurestores[i] = $root.google.cloud.aiplatform.v1beta1.Featurestore.fromObject(object.featurestores[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DoubleArray(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DoubleArray.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = Number(object.values[i]); } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. + * Creates a plain object from a DoubleArray message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @static - * @param {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} message ListFeaturestoresResponse + * @param {google.cloud.aiplatform.v1beta1.DoubleArray} message DoubleArray * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFeaturestoresResponse.toObject = function toObject(message, options) { + DoubleArray.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.featurestores = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.featurestores && message.featurestores.length) { - object.featurestores = []; - for (var j = 0; j < message.featurestores.length; ++j) - object.featurestores[j] = $root.google.cloud.aiplatform.v1beta1.Featurestore.toObject(message.featurestores[j], options); + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ListFeaturestoresResponse to JSON. + * Converts this DoubleArray to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @memberof google.cloud.aiplatform.v1beta1.DoubleArray * @instance * @returns {Object.} JSON object */ - ListFeaturestoresResponse.prototype.toJSON = function toJSON() { + DoubleArray.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFeaturestoresResponse; + return DoubleArray; })(); - v1beta1.UpdateFeaturestoreRequest = (function() { + v1beta1.Int64Array = (function() { /** - * Properties of an UpdateFeaturestoreRequest. + * Properties of an Int64Array. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateFeaturestoreRequest - * @property {google.cloud.aiplatform.v1beta1.IFeaturestore|null} [featurestore] UpdateFeaturestoreRequest featurestore - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeaturestoreRequest updateMask + * @interface IInt64Array + * @property {Array.|null} [values] Int64Array values */ /** - * Constructs a new UpdateFeaturestoreRequest. + * Constructs a new Int64Array. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateFeaturestoreRequest. - * @implements IUpdateFeaturestoreRequest + * @classdesc Represents an Int64Array. + * @implements IInt64Array * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IInt64Array=} [properties] Properties to set */ - function UpdateFeaturestoreRequest(properties) { + function Int64Array(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189712,88 +195567,86 @@ } /** - * UpdateFeaturestoreRequest featurestore. - * @member {google.cloud.aiplatform.v1beta1.IFeaturestore|null|undefined} featurestore - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest - * @instance - */ - UpdateFeaturestoreRequest.prototype.featurestore = null; - - /** - * UpdateFeaturestoreRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * Int64Array values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @instance */ - UpdateFeaturestoreRequest.prototype.updateMask = null; + Int64Array.prototype.values = $util.emptyArray; /** - * Creates a new UpdateFeaturestoreRequest instance using the specified properties. + * Creates a new Int64Array instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IInt64Array=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array instance */ - UpdateFeaturestoreRequest.create = function create(properties) { - return new UpdateFeaturestoreRequest(properties); + Int64Array.create = function create(properties) { + return new Int64Array(properties); }; /** - * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. + * Encodes the specified Int64Array message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} message UpdateFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IInt64Array} message Int64Array message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFeaturestoreRequest.encode = function encode(message, writer) { + Int64Array.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) - $root.google.cloud.aiplatform.v1beta1.Featurestore.encode(message.featurestore, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.int64(message.values[i]); + writer.ldelim(); + } return writer; }; /** - * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. + * Encodes the specified Int64Array message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Int64Array.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} message UpdateFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IInt64Array} message Int64Array message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + Int64Array.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. + * Decodes an Int64Array message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFeaturestoreRequest.decode = function decode(reader, length) { + Int64Array.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Int64Array(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.int64()); + } else + message.values.push(reader.int64()); break; default: reader.skipType(tag & 7); @@ -189804,127 +195657,130 @@ }; /** - * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes an Int64Array message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + Int64Array.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateFeaturestoreRequest message. + * Verifies an Int64Array message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateFeaturestoreRequest.verify = function verify(message) { + Int64Array.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.featurestore != null && message.hasOwnProperty("featurestore")) { - var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.verify(message.featurestore); - if (error) - return "featurestore." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) + return "values: integer|Long[] expected"; } return null; }; /** - * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Int64Array message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.Int64Array} Int64Array */ - UpdateFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) + Int64Array.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Int64Array) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest(); - if (object.featurestore != null) { - if (typeof object.featurestore !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.featurestore: object expected"); - message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.fromObject(object.featurestore); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1beta1.Int64Array(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Int64Array.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + if ($util.Long) + (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; + else if (typeof object.values[i] === "string") + message.values[i] = parseInt(object.values[i], 10); + else if (typeof object.values[i] === "number") + message.values[i] = object.values[i]; + else if (typeof object.values[i] === "object") + message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); } return message; }; /** - * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. + * Creates a plain object from an Int64Array message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} message UpdateFeaturestoreRequest + * @param {google.cloud.aiplatform.v1beta1.Int64Array} message Int64Array * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFeaturestoreRequest.toObject = function toObject(message, options) { + Int64Array.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.featurestore = null; - object.updateMask = null; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + if (typeof message.values[j] === "number") + object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; + else + object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; } - if (message.featurestore != null && message.hasOwnProperty("featurestore")) - object.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.toObject(message.featurestore, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this UpdateFeaturestoreRequest to JSON. + * Converts this Int64Array to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.Int64Array * @instance * @returns {Object.} JSON object */ - UpdateFeaturestoreRequest.prototype.toJSON = function toJSON() { + Int64Array.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateFeaturestoreRequest; + return Int64Array; })(); - v1beta1.DeleteFeaturestoreRequest = (function() { + v1beta1.StringArray = (function() { /** - * Properties of a DeleteFeaturestoreRequest. + * Properties of a StringArray. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteFeaturestoreRequest - * @property {string|null} [name] DeleteFeaturestoreRequest name - * @property {boolean|null} [force] DeleteFeaturestoreRequest force + * @interface IStringArray + * @property {Array.|null} [values] StringArray values */ /** - * Constructs a new DeleteFeaturestoreRequest. + * Constructs a new StringArray. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteFeaturestoreRequest. - * @implements IDeleteFeaturestoreRequest + * @classdesc Represents a StringArray. + * @implements IStringArray * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IStringArray=} [properties] Properties to set */ - function DeleteFeaturestoreRequest(properties) { + function StringArray(properties) { + this.values = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -189932,88 +195788,78 @@ } /** - * DeleteFeaturestoreRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest - * @instance - */ - DeleteFeaturestoreRequest.prototype.name = ""; - - /** - * DeleteFeaturestoreRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * StringArray values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @instance */ - DeleteFeaturestoreRequest.prototype.force = false; + StringArray.prototype.values = $util.emptyArray; /** - * Creates a new DeleteFeaturestoreRequest instance using the specified properties. + * Creates a new StringArray instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest instance + * @param {google.cloud.aiplatform.v1beta1.IStringArray=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray instance */ - DeleteFeaturestoreRequest.create = function create(properties) { - return new DeleteFeaturestoreRequest(properties); + StringArray.create = function create(properties) { + return new StringArray(properties); }; /** - * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. + * Encodes the specified StringArray message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} message DeleteFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStringArray} message StringArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeaturestoreRequest.encode = function encode(message, writer) { + StringArray.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); return writer; }; /** - * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. + * Encodes the specified StringArray message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StringArray.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} message DeleteFeaturestoreRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IStringArray} message StringArray message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { + StringArray.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. + * Decodes a StringArray message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeaturestoreRequest.decode = function decode(reader, length) { + StringArray.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StringArray(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.force = reader.bool(); + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); break; default: reader.skipType(tag & 7); @@ -190024,834 +195870,816 @@ }; /** - * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. + * Decodes a StringArray message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { + StringArray.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFeaturestoreRequest message. + * Verifies a StringArray message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFeaturestoreRequest.verify = function verify(message) { + StringArray.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } return null; }; /** - * Creates a DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. + * Creates a StringArray message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest + * @returns {google.cloud.aiplatform.v1beta1.StringArray} StringArray */ - DeleteFeaturestoreRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) + StringArray.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StringArray) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1beta1.StringArray(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StringArray.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } return message; }; /** - * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. + * Creates a plain object from a StringArray message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} message DeleteFeaturestoreRequest + * @param {google.cloud.aiplatform.v1beta1.StringArray} message StringArray * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFeaturestoreRequest.toObject = function toObject(message, options) { + StringArray.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this DeleteFeaturestoreRequest to JSON. + * Converts this StringArray to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @memberof google.cloud.aiplatform.v1beta1.StringArray * @instance * @returns {Object.} JSON object */ - DeleteFeaturestoreRequest.prototype.toJSON = function toJSON() { + StringArray.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteFeaturestoreRequest; + return StringArray; })(); - v1beta1.ImportFeatureValuesRequest = (function() { + v1beta1.FeaturestoreService = (function() { /** - * Properties of an ImportFeatureValuesRequest. + * Constructs a new FeaturestoreService service. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportFeatureValuesRequest - * @property {google.cloud.aiplatform.v1beta1.IAvroSource|null} [avroSource] ImportFeatureValuesRequest avroSource - * @property {google.cloud.aiplatform.v1beta1.IBigQuerySource|null} [bigquerySource] ImportFeatureValuesRequest bigquerySource - * @property {google.cloud.aiplatform.v1beta1.ICsvSource|null} [csvSource] ImportFeatureValuesRequest csvSource - * @property {string|null} [featureTimeField] ImportFeatureValuesRequest featureTimeField - * @property {google.protobuf.ITimestamp|null} [featureTime] ImportFeatureValuesRequest featureTime - * @property {string|null} [entityType] ImportFeatureValuesRequest entityType - * @property {string|null} [entityIdField] ImportFeatureValuesRequest entityIdField - * @property {Array.|null} [featureSpecs] ImportFeatureValuesRequest featureSpecs - * @property {boolean|null} [disableOnlineServing] ImportFeatureValuesRequest disableOnlineServing - * @property {number|null} [workerCount] ImportFeatureValuesRequest workerCount - * @property {boolean|null} [disableIngestionAnalysis] ImportFeatureValuesRequest disableIngestionAnalysis + * @classdesc Represents a FeaturestoreService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ + function FeaturestoreService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (FeaturestoreService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = FeaturestoreService; /** - * Constructs a new ImportFeatureValuesRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportFeatureValuesRequest. - * @implements IImportFeatureValuesRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest=} [properties] Properties to set + * Creates new FeaturestoreService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {FeaturestoreService} RPC service. Useful where requests and/or responses are streamed. */ - function ImportFeatureValuesRequest(properties) { - this.featureSpecs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + FeaturestoreService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * ImportFeatureValuesRequest avroSource. - * @member {google.cloud.aiplatform.v1beta1.IAvroSource|null|undefined} avroSource - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createFeaturestore}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef CreateFeaturestoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ImportFeatureValuesRequest.prototype.avroSource = null; /** - * ImportFeatureValuesRequest bigquerySource. - * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigquerySource - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Calls CreateFeaturestore. + * @function createFeaturestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} request CreateFeaturestoreRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ImportFeatureValuesRequest.prototype.bigquerySource = null; + Object.defineProperty(FeaturestoreService.prototype.createFeaturestore = function createFeaturestore(request, callback) { + return this.rpcCall(createFeaturestore, $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateFeaturestore" }); /** - * ImportFeatureValuesRequest csvSource. - * @member {google.cloud.aiplatform.v1beta1.ICsvSource|null|undefined} csvSource - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Calls CreateFeaturestore. + * @function createFeaturestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} request CreateFeaturestoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ImportFeatureValuesRequest.prototype.csvSource = null; /** - * ImportFeatureValuesRequest featureTimeField. - * @member {string|null|undefined} featureTimeField - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getFeaturestore}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef GetFeaturestoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Featurestore} [response] Featurestore */ - ImportFeatureValuesRequest.prototype.featureTimeField = null; /** - * ImportFeatureValuesRequest featureTime. - * @member {google.protobuf.ITimestamp|null|undefined} featureTime - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Calls GetFeaturestore. + * @function getFeaturestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest} request GetFeaturestoreRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeaturestoreCallback} callback Node-style callback called with the error, if any, and Featurestore + * @returns {undefined} + * @variation 1 */ - ImportFeatureValuesRequest.prototype.featureTime = null; + Object.defineProperty(FeaturestoreService.prototype.getFeaturestore = function getFeaturestore(request, callback) { + return this.rpcCall(getFeaturestore, $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest, $root.google.cloud.aiplatform.v1beta1.Featurestore, request, callback); + }, "name", { value: "GetFeaturestore" }); /** - * ImportFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Calls GetFeaturestore. + * @function getFeaturestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest} request GetFeaturestoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ImportFeatureValuesRequest.prototype.entityType = ""; /** - * ImportFeatureValuesRequest entityIdField. - * @member {string} entityIdField - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listFeaturestores}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef ListFeaturestoresCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} [response] ListFeaturestoresResponse */ - ImportFeatureValuesRequest.prototype.entityIdField = ""; /** - * ImportFeatureValuesRequest featureSpecs. - * @member {Array.} featureSpecs - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Calls ListFeaturestores. + * @function listFeaturestores + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest} request ListFeaturestoresRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturestoresCallback} callback Node-style callback called with the error, if any, and ListFeaturestoresResponse + * @returns {undefined} + * @variation 1 */ - ImportFeatureValuesRequest.prototype.featureSpecs = $util.emptyArray; + Object.defineProperty(FeaturestoreService.prototype.listFeaturestores = function listFeaturestores(request, callback) { + return this.rpcCall(listFeaturestores, $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest, $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse, request, callback); + }, "name", { value: "ListFeaturestores" }); /** - * ImportFeatureValuesRequest disableOnlineServing. - * @member {boolean} disableOnlineServing - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Calls ListFeaturestores. + * @function listFeaturestores + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest} request ListFeaturestoresRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ImportFeatureValuesRequest.prototype.disableOnlineServing = false; /** - * ImportFeatureValuesRequest workerCount. - * @member {number} workerCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateFeaturestore}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef UpdateFeaturestoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UpdateFeaturestore. + * @function updateFeaturestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} request UpdateFeaturestoreRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ImportFeatureValuesRequest.prototype.workerCount = 0; + Object.defineProperty(FeaturestoreService.prototype.updateFeaturestore = function updateFeaturestore(request, callback) { + return this.rpcCall(updateFeaturestore, $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateFeaturestore" }); /** - * ImportFeatureValuesRequest disableIngestionAnalysis. - * @member {boolean} disableIngestionAnalysis - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Calls UpdateFeaturestore. + * @function updateFeaturestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} request UpdateFeaturestoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ImportFeatureValuesRequest.prototype.disableIngestionAnalysis = false; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteFeaturestore}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef DeleteFeaturestoreCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ /** - * ImportFeatureValuesRequest source. - * @member {"avroSource"|"bigquerySource"|"csvSource"|undefined} source - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Calls DeleteFeaturestore. + * @function deleteFeaturestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} request DeleteFeaturestoreRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeaturestoreCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - Object.defineProperty(ImportFeatureValuesRequest.prototype, "source", { - get: $util.oneOfGetter($oneOfFields = ["avroSource", "bigquerySource", "csvSource"]), - set: $util.oneOfSetter($oneOfFields) - }); + Object.defineProperty(FeaturestoreService.prototype.deleteFeaturestore = function deleteFeaturestore(request, callback) { + return this.rpcCall(deleteFeaturestore, $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeaturestore" }); /** - * ImportFeatureValuesRequest featureTimeSource. - * @member {"featureTimeField"|"featureTime"|undefined} featureTimeSource - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Calls DeleteFeaturestore. + * @function deleteFeaturestore + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} request DeleteFeaturestoreRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - Object.defineProperty(ImportFeatureValuesRequest.prototype, "featureTimeSource", { - get: $util.oneOfGetter($oneOfFields = ["featureTimeField", "featureTime"]), - set: $util.oneOfSetter($oneOfFields) - }); /** - * Creates a new ImportFeatureValuesRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createEntityType}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef CreateEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ImportFeatureValuesRequest.create = function create(properties) { - return new ImportFeatureValuesRequest(properties); - }; /** - * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest} message ImportFeatureValuesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateEntityType. + * @function createEntityType + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateEntityTypeCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ImportFeatureValuesRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.avroSource != null && Object.hasOwnProperty.call(message, "avroSource")) - $root.google.cloud.aiplatform.v1beta1.AvroSource.encode(message.avroSource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) - $root.google.cloud.aiplatform.v1beta1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.csvSource != null && Object.hasOwnProperty.call(message, "csvSource")) - $root.google.cloud.aiplatform.v1beta1.CsvSource.encode(message.csvSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.entityIdField != null && Object.hasOwnProperty.call(message, "entityIdField")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.entityIdField); - if (message.featureTimeField != null && Object.hasOwnProperty.call(message, "featureTimeField")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.featureTimeField); - if (message.featureTime != null && Object.hasOwnProperty.call(message, "featureTime")) - $root.google.protobuf.Timestamp.encode(message.featureTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.featureSpecs != null && message.featureSpecs.length) - for (var i = 0; i < message.featureSpecs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.encode(message.featureSpecs[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.disableOnlineServing != null && Object.hasOwnProperty.call(message, "disableOnlineServing")) - writer.uint32(/* id 9, wireType 0 =*/72).bool(message.disableOnlineServing); - if (message.workerCount != null && Object.hasOwnProperty.call(message, "workerCount")) - writer.uint32(/* id 11, wireType 0 =*/88).int32(message.workerCount); - if (message.disableIngestionAnalysis != null && Object.hasOwnProperty.call(message, "disableIngestionAnalysis")) - writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableIngestionAnalysis); - return writer; - }; + Object.defineProperty(FeaturestoreService.prototype.createEntityType = function createEntityType(request, callback) { + return this.rpcCall(createEntityType, $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateEntityType" }); /** - * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest} message ImportFeatureValuesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateEntityType. + * @function createEntityType + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} request CreateEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ImportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getEntityType}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef GetEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.EntityType} [response] EntityType */ - ImportFeatureValuesRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.avroSource = $root.google.cloud.aiplatform.v1beta1.AvroSource.decode(reader, reader.uint32()); - break; - case 3: - message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.decode(reader, reader.uint32()); - break; - case 4: - message.csvSource = $root.google.cloud.aiplatform.v1beta1.CsvSource.decode(reader, reader.uint32()); - break; - case 6: - message.featureTimeField = reader.string(); - break; - case 7: - message.featureTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 1: - message.entityType = reader.string(); - break; - case 5: - message.entityIdField = reader.string(); - break; - case 8: - if (!(message.featureSpecs && message.featureSpecs.length)) - message.featureSpecs = []; - message.featureSpecs.push($root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.decode(reader, reader.uint32())); - break; - case 9: - message.disableOnlineServing = reader.bool(); - break; - case 11: - message.workerCount = reader.int32(); - break; - case 12: - message.disableIngestionAnalysis = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.GetEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 */ - ImportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(FeaturestoreService.prototype.getEntityType = function getEntityType(request, callback) { + return this.rpcCall(getEntityType, $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest, $root.google.cloud.aiplatform.v1beta1.EntityType, request, callback); + }, "name", { value: "GetEntityType" }); /** - * Verifies an ImportFeatureValuesRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetEntityType. + * @function getEntityType + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest} request GetEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ImportFeatureValuesRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.avroSource != null && message.hasOwnProperty("avroSource")) { - properties.source = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.AvroSource.verify(message.avroSource); - if (error) - return "avroSource." + error; - } - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.verify(message.bigquerySource); - if (error) - return "bigquerySource." + error; - } - } - if (message.csvSource != null && message.hasOwnProperty("csvSource")) { - if (properties.source === 1) - return "source: multiple values"; - properties.source = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.CsvSource.verify(message.csvSource); - if (error) - return "csvSource." + error; - } - } - if (message.featureTimeField != null && message.hasOwnProperty("featureTimeField")) { - properties.featureTimeSource = 1; - if (!$util.isString(message.featureTimeField)) - return "featureTimeField: string expected"; - } - if (message.featureTime != null && message.hasOwnProperty("featureTime")) { - if (properties.featureTimeSource === 1) - return "featureTimeSource: multiple values"; - properties.featureTimeSource = 1; - { - var error = $root.google.protobuf.Timestamp.verify(message.featureTime); - if (error) - return "featureTime." + error; - } - } - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) - if (!$util.isString(message.entityIdField)) - return "entityIdField: string expected"; - if (message.featureSpecs != null && message.hasOwnProperty("featureSpecs")) { - if (!Array.isArray(message.featureSpecs)) - return "featureSpecs: array expected"; - for (var i = 0; i < message.featureSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify(message.featureSpecs[i]); - if (error) - return "featureSpecs." + error; - } - } - if (message.disableOnlineServing != null && message.hasOwnProperty("disableOnlineServing")) - if (typeof message.disableOnlineServing !== "boolean") - return "disableOnlineServing: boolean expected"; - if (message.workerCount != null && message.hasOwnProperty("workerCount")) - if (!$util.isInteger(message.workerCount)) - return "workerCount: integer expected"; - if (message.disableIngestionAnalysis != null && message.hasOwnProperty("disableIngestionAnalysis")) - if (typeof message.disableIngestionAnalysis !== "boolean") - return "disableIngestionAnalysis: boolean expected"; - return null; - }; /** - * Creates an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listEntityTypes}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef ListEntityTypesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} [response] ListEntityTypesResponse */ - ImportFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest(); - if (object.avroSource != null) { - if (typeof object.avroSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.avroSource: object expected"); - message.avroSource = $root.google.cloud.aiplatform.v1beta1.AvroSource.fromObject(object.avroSource); - } - if (object.bigquerySource != null) { - if (typeof object.bigquerySource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.bigquerySource: object expected"); - message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.fromObject(object.bigquerySource); - } - if (object.csvSource != null) { - if (typeof object.csvSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.csvSource: object expected"); - message.csvSource = $root.google.cloud.aiplatform.v1beta1.CsvSource.fromObject(object.csvSource); - } - if (object.featureTimeField != null) - message.featureTimeField = String(object.featureTimeField); - if (object.featureTime != null) { - if (typeof object.featureTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.featureTime: object expected"); - message.featureTime = $root.google.protobuf.Timestamp.fromObject(object.featureTime); - } - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.entityIdField != null) - message.entityIdField = String(object.entityIdField); - if (object.featureSpecs) { - if (!Array.isArray(object.featureSpecs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.featureSpecs: array expected"); - message.featureSpecs = []; - for (var i = 0; i < object.featureSpecs.length; ++i) { - if (typeof object.featureSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.featureSpecs: object expected"); - message.featureSpecs[i] = $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.fromObject(object.featureSpecs[i]); - } - } - if (object.disableOnlineServing != null) - message.disableOnlineServing = Boolean(object.disableOnlineServing); - if (object.workerCount != null) - message.workerCount = object.workerCount | 0; - if (object.disableIngestionAnalysis != null) - message.disableIngestionAnalysis = Boolean(object.disableIngestionAnalysis); - return message; - }; /** - * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} message ImportFeatureValuesRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.ListEntityTypesCallback} callback Node-style callback called with the error, if any, and ListEntityTypesResponse + * @returns {undefined} + * @variation 1 */ - ImportFeatureValuesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.featureSpecs = []; - if (options.defaults) { - object.entityType = ""; - object.entityIdField = ""; - object.disableOnlineServing = false; - object.workerCount = 0; - object.disableIngestionAnalysis = false; - } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.avroSource != null && message.hasOwnProperty("avroSource")) { - object.avroSource = $root.google.cloud.aiplatform.v1beta1.AvroSource.toObject(message.avroSource, options); - if (options.oneofs) - object.source = "avroSource"; - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - object.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.toObject(message.bigquerySource, options); - if (options.oneofs) - object.source = "bigquerySource"; - } - if (message.csvSource != null && message.hasOwnProperty("csvSource")) { - object.csvSource = $root.google.cloud.aiplatform.v1beta1.CsvSource.toObject(message.csvSource, options); - if (options.oneofs) - object.source = "csvSource"; - } - if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) - object.entityIdField = message.entityIdField; - if (message.featureTimeField != null && message.hasOwnProperty("featureTimeField")) { - object.featureTimeField = message.featureTimeField; - if (options.oneofs) - object.featureTimeSource = "featureTimeField"; - } - if (message.featureTime != null && message.hasOwnProperty("featureTime")) { - object.featureTime = $root.google.protobuf.Timestamp.toObject(message.featureTime, options); - if (options.oneofs) - object.featureTimeSource = "featureTime"; - } - if (message.featureSpecs && message.featureSpecs.length) { - object.featureSpecs = []; - for (var j = 0; j < message.featureSpecs.length; ++j) - object.featureSpecs[j] = $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.toObject(message.featureSpecs[j], options); - } - if (message.disableOnlineServing != null && message.hasOwnProperty("disableOnlineServing")) - object.disableOnlineServing = message.disableOnlineServing; - if (message.workerCount != null && message.hasOwnProperty("workerCount")) - object.workerCount = message.workerCount; - if (message.disableIngestionAnalysis != null && message.hasOwnProperty("disableIngestionAnalysis")) - object.disableIngestionAnalysis = message.disableIngestionAnalysis; - return object; - }; + Object.defineProperty(FeaturestoreService.prototype.listEntityTypes = function listEntityTypes(request, callback) { + return this.rpcCall(listEntityTypes, $root.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest, $root.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse, request, callback); + }, "name", { value: "ListEntityTypes" }); /** - * Converts this ImportFeatureValuesRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * Calls ListEntityTypes. + * @function listEntityTypes + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest} request ListEntityTypesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ImportFeatureValuesRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - ImportFeatureValuesRequest.FeatureSpec = (function() { + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateEntityType}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef UpdateEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.EntityType} [response] EntityType + */ - /** - * Properties of a FeatureSpec. - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @interface IFeatureSpec - * @property {string|null} [id] FeatureSpec id - * @property {string|null} [sourceField] FeatureSpec sourceField - */ + /** + * Calls UpdateEntityType. + * @function updateEntityType + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateEntityTypeCallback} callback Node-style callback called with the error, if any, and EntityType + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.updateEntityType = function updateEntityType(request, callback) { + return this.rpcCall(updateEntityType, $root.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest, $root.google.cloud.aiplatform.v1beta1.EntityType, request, callback); + }, "name", { value: "UpdateEntityType" }); - /** - * Constructs a new FeatureSpec. - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest - * @classdesc Represents a FeatureSpec. - * @implements IFeatureSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec=} [properties] Properties to set - */ - function FeatureSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Calls UpdateEntityType. + * @function updateEntityType + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} request UpdateEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * FeatureSpec id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @instance - */ - FeatureSpec.prototype.id = ""; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteEntityType}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef DeleteEntityTypeCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * FeatureSpec sourceField. - * @member {string} sourceField - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @instance - */ - FeatureSpec.prototype.sourceField = ""; + /** + * Calls DeleteEntityType. + * @function deleteEntityType + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteEntityTypeCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.deleteEntityType = function deleteEntityType(request, callback) { + return this.rpcCall(deleteEntityType, $root.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteEntityType" }); - /** - * Creates a new FeatureSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec instance - */ - FeatureSpec.create = function create(properties) { - return new FeatureSpec(properties); - }; + /** + * Calls DeleteEntityType. + * @function deleteEntityType + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest} request DeleteEntityTypeRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec} message FeatureSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.sourceField != null && Object.hasOwnProperty.call(message, "sourceField")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceField); - return writer; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#createFeature}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef CreateFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec} message FeatureSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Calls CreateFeature. + * @function createFeature + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest} request CreateFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.CreateFeatureCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.createFeature = function createFeature(request, callback) { + return this.rpcCall(createFeature, $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateFeature" }); - /** - * Decodes a FeatureSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.sourceField = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Calls CreateFeature. + * @function createFeature + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest} request CreateFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#batchCreateFeatures}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef BatchCreateFeaturesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ - /** - * Verifies a FeatureSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.sourceField != null && message.hasOwnProperty("sourceField")) - if (!$util.isString(message.sourceField)) - return "sourceField: string expected"; - return null; - }; + /** + * Calls BatchCreateFeatures. + * @function batchCreateFeatures + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} request BatchCreateFeaturesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchCreateFeaturesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.batchCreateFeatures = function batchCreateFeatures(request, callback) { + return this.rpcCall(batchCreateFeatures, $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchCreateFeatures" }); - /** - * Creates a FeatureSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec - */ - FeatureSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec(); - if (object.id != null) - message.id = String(object.id); - if (object.sourceField != null) - message.sourceField = String(object.sourceField); - return message; - }; + /** + * Calls BatchCreateFeatures. + * @function batchCreateFeatures + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} request BatchCreateFeaturesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - /** - * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} message FeatureSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.id = ""; - object.sourceField = ""; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.sourceField != null && message.hasOwnProperty("sourceField")) - object.sourceField = message.sourceField; - return object; - }; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#getFeature}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef GetFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Feature} [response] Feature + */ - /** - * Converts this FeatureSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec - * @instance - * @returns {Object.} JSON object - */ - FeatureSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Calls GetFeature. + * @function getFeature + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest} request GetFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.GetFeatureCallback} callback Node-style callback called with the error, if any, and Feature + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.getFeature = function getFeature(request, callback) { + return this.rpcCall(getFeature, $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest, $root.google.cloud.aiplatform.v1beta1.Feature, request, callback); + }, "name", { value: "GetFeature" }); - return FeatureSpec; - })(); + /** + * Calls GetFeature. + * @function getFeature + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest} request GetFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ - return ImportFeatureValuesRequest; + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#listFeatures}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef ListFeaturesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} [response] ListFeaturesResponse + */ + + /** + * Calls ListFeatures. + * @function listFeatures + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest} request ListFeaturesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.ListFeaturesCallback} callback Node-style callback called with the error, if any, and ListFeaturesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.listFeatures = function listFeatures(request, callback) { + return this.rpcCall(listFeatures, $root.google.cloud.aiplatform.v1beta1.ListFeaturesRequest, $root.google.cloud.aiplatform.v1beta1.ListFeaturesResponse, request, callback); + }, "name", { value: "ListFeatures" }); + + /** + * Calls ListFeatures. + * @function listFeatures + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest} request ListFeaturesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#updateFeature}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef UpdateFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.Feature} [response] Feature + */ + + /** + * Calls UpdateFeature. + * @function updateFeature + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest} request UpdateFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.UpdateFeatureCallback} callback Node-style callback called with the error, if any, and Feature + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.updateFeature = function updateFeature(request, callback) { + return this.rpcCall(updateFeature, $root.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest, $root.google.cloud.aiplatform.v1beta1.Feature, request, callback); + }, "name", { value: "UpdateFeature" }); + + /** + * Calls UpdateFeature. + * @function updateFeature + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest} request UpdateFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#deleteFeature}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef DeleteFeatureCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteFeature. + * @function deleteFeature + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest} request DeleteFeatureRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.DeleteFeatureCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.deleteFeature = function deleteFeature(request, callback) { + return this.rpcCall(deleteFeature, $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteFeature" }); + + /** + * Calls DeleteFeature. + * @function deleteFeature + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest} request DeleteFeatureRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#importFeatureValues}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef ImportFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ImportFeatureValues. + * @function importFeatureValues + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest} request ImportFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.ImportFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.importFeatureValues = function importFeatureValues(request, callback) { + return this.rpcCall(importFeatureValues, $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ImportFeatureValues" }); + + /** + * Calls ImportFeatureValues. + * @function importFeatureValues + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest} request ImportFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#batchReadFeatureValues}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef BatchReadFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls BatchReadFeatureValues. + * @function batchReadFeatureValues + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest} request BatchReadFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.BatchReadFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.batchReadFeatureValues = function batchReadFeatureValues(request, callback) { + return this.rpcCall(batchReadFeatureValues, $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "BatchReadFeatureValues" }); + + /** + * Calls BatchReadFeatureValues. + * @function batchReadFeatureValues + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest} request BatchReadFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#exportFeatureValues}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef ExportFeatureValuesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls ExportFeatureValues. + * @function exportFeatureValues + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest} request ExportFeatureValuesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.ExportFeatureValuesCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.exportFeatureValues = function exportFeatureValues(request, callback) { + return this.rpcCall(exportFeatureValues, $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "ExportFeatureValues" }); + + /** + * Calls ExportFeatureValues. + * @function exportFeatureValues + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest} request ExportFeatureValuesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.FeaturestoreService#searchFeatures}. + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @typedef SearchFeaturesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} [response] SearchFeaturesResponse + */ + + /** + * Calls SearchFeatures. + * @function searchFeatures + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest} request SearchFeaturesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.FeaturestoreService.SearchFeaturesCallback} callback Node-style callback called with the error, if any, and SearchFeaturesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(FeaturestoreService.prototype.searchFeatures = function searchFeatures(request, callback) { + return this.rpcCall(searchFeatures, $root.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest, $root.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse, request, callback); + }, "name", { value: "SearchFeatures" }); + + /** + * Calls SearchFeatures. + * @function searchFeatures + * @memberof google.cloud.aiplatform.v1beta1.FeaturestoreService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest} request SearchFeaturesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return FeaturestoreService; })(); - v1beta1.ImportFeatureValuesResponse = (function() { + v1beta1.CreateFeaturestoreRequest = (function() { /** - * Properties of an ImportFeatureValuesResponse. + * Properties of a CreateFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportFeatureValuesResponse - * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesResponse importedEntityCount - * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesResponse importedFeatureValueCount - * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesResponse invalidRowCount + * @interface ICreateFeaturestoreRequest + * @property {string|null} [parent] CreateFeaturestoreRequest parent + * @property {google.cloud.aiplatform.v1beta1.IFeaturestore|null} [featurestore] CreateFeaturestoreRequest featurestore + * @property {string|null} [featurestoreId] CreateFeaturestoreRequest featurestoreId */ /** - * Constructs a new ImportFeatureValuesResponse. + * Constructs a new CreateFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportFeatureValuesResponse. - * @implements IImportFeatureValuesResponse + * @classdesc Represents a CreateFeaturestoreRequest. + * @implements ICreateFeaturestoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest=} [properties] Properties to set */ - function ImportFeatureValuesResponse(properties) { + function CreateFeaturestoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -190859,101 +196687,101 @@ } /** - * ImportFeatureValuesResponse importedEntityCount. - * @member {number|Long} importedEntityCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * CreateFeaturestoreRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @instance */ - ImportFeatureValuesResponse.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CreateFeaturestoreRequest.prototype.parent = ""; /** - * ImportFeatureValuesResponse importedFeatureValueCount. - * @member {number|Long} importedFeatureValueCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * CreateFeaturestoreRequest featurestore. + * @member {google.cloud.aiplatform.v1beta1.IFeaturestore|null|undefined} featurestore + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @instance */ - ImportFeatureValuesResponse.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CreateFeaturestoreRequest.prototype.featurestore = null; /** - * ImportFeatureValuesResponse invalidRowCount. - * @member {number|Long} invalidRowCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * CreateFeaturestoreRequest featurestoreId. + * @member {string} featurestoreId + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @instance */ - ImportFeatureValuesResponse.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + CreateFeaturestoreRequest.prototype.featurestoreId = ""; /** - * Creates a new ImportFeatureValuesResponse instance using the specified properties. + * Creates a new CreateFeaturestoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest instance */ - ImportFeatureValuesResponse.create = function create(properties) { - return new ImportFeatureValuesResponse(properties); + CreateFeaturestoreRequest.create = function create(properties) { + return new CreateFeaturestoreRequest(properties); }; /** - * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. + * Encodes the specified CreateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse} message ImportFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} message CreateFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFeatureValuesResponse.encode = function encode(message, writer) { + CreateFeaturestoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.importedEntityCount != null && Object.hasOwnProperty.call(message, "importedEntityCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.importedEntityCount); - if (message.importedFeatureValueCount != null && Object.hasOwnProperty.call(message, "importedFeatureValueCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.importedFeatureValueCount); - if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) + $root.google.cloud.aiplatform.v1beta1.Featurestore.encode(message.featurestore, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featurestoreId != null && Object.hasOwnProperty.call(message, "featurestoreId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featurestoreId); return writer; }; /** - * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. + * Encodes the specified CreateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse} message ImportFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreRequest} message CreateFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFeatureValuesResponse.decode = function decode(reader, length) { + CreateFeaturestoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.importedEntityCount = reader.int64(); + message.parent = reader.string(); break; case 2: - message.importedFeatureValueCount = reader.int64(); + message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.decode(reader, reader.uint32()); break; - case 6: - message.invalidRowCount = reader.int64(); + case 3: + message.featurestoreId = reader.string(); break; default: reader.skipType(tag & 7); @@ -190964,173 +196792,129 @@ }; /** - * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateFeaturestoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + CreateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFeatureValuesResponse message. + * Verifies a CreateFeaturestoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFeatureValuesResponse.verify = function verify(message) { + CreateFeaturestoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) - if (!$util.isInteger(message.importedEntityCount) && !(message.importedEntityCount && $util.isInteger(message.importedEntityCount.low) && $util.isInteger(message.importedEntityCount.high))) - return "importedEntityCount: integer|Long expected"; - if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) - if (!$util.isInteger(message.importedFeatureValueCount) && !(message.importedFeatureValueCount && $util.isInteger(message.importedFeatureValueCount.low) && $util.isInteger(message.importedFeatureValueCount.high))) - return "importedFeatureValueCount: integer|Long expected"; - if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) - if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) - return "invalidRowCount: integer|Long expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.featurestore != null && message.hasOwnProperty("featurestore")) { + var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.verify(message.featurestore); + if (error) + return "featurestore." + error; + } + if (message.featurestoreId != null && message.hasOwnProperty("featurestoreId")) + if (!$util.isString(message.featurestoreId)) + return "featurestoreId: string expected"; return null; }; /** - * Creates an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} CreateFeaturestoreRequest */ - ImportFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) + CreateFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse(); - if (object.importedEntityCount != null) - if ($util.Long) - (message.importedEntityCount = $util.Long.fromValue(object.importedEntityCount)).unsigned = false; - else if (typeof object.importedEntityCount === "string") - message.importedEntityCount = parseInt(object.importedEntityCount, 10); - else if (typeof object.importedEntityCount === "number") - message.importedEntityCount = object.importedEntityCount; - else if (typeof object.importedEntityCount === "object") - message.importedEntityCount = new $util.LongBits(object.importedEntityCount.low >>> 0, object.importedEntityCount.high >>> 0).toNumber(); - if (object.importedFeatureValueCount != null) - if ($util.Long) - (message.importedFeatureValueCount = $util.Long.fromValue(object.importedFeatureValueCount)).unsigned = false; - else if (typeof object.importedFeatureValueCount === "string") - message.importedFeatureValueCount = parseInt(object.importedFeatureValueCount, 10); - else if (typeof object.importedFeatureValueCount === "number") - message.importedFeatureValueCount = object.importedFeatureValueCount; - else if (typeof object.importedFeatureValueCount === "object") - message.importedFeatureValueCount = new $util.LongBits(object.importedFeatureValueCount.low >>> 0, object.importedFeatureValueCount.high >>> 0).toNumber(); - if (object.invalidRowCount != null) - if ($util.Long) - (message.invalidRowCount = $util.Long.fromValue(object.invalidRowCount)).unsigned = false; - else if (typeof object.invalidRowCount === "string") - message.invalidRowCount = parseInt(object.invalidRowCount, 10); - else if (typeof object.invalidRowCount === "number") - message.invalidRowCount = object.invalidRowCount; - else if (typeof object.invalidRowCount === "object") - message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.featurestore != null) { + if (typeof object.featurestore !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest.featurestore: object expected"); + message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.fromObject(object.featurestore); + } + if (object.featurestoreId != null) + message.featurestoreId = String(object.featurestoreId); return message; }; /** - * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateFeaturestoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} message ImportFeatureValuesResponse + * @param {google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest} message CreateFeaturestoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFeatureValuesResponse.toObject = function toObject(message, options) { + CreateFeaturestoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.importedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.importedEntityCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.importedFeatureValueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.importedFeatureValueCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invalidRowCount = options.longs === String ? "0" : 0; + object.parent = ""; + object.featurestore = null; + object.featurestoreId = ""; } - if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) - if (typeof message.importedEntityCount === "number") - object.importedEntityCount = options.longs === String ? String(message.importedEntityCount) : message.importedEntityCount; - else - object.importedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedEntityCount) : options.longs === Number ? new $util.LongBits(message.importedEntityCount.low >>> 0, message.importedEntityCount.high >>> 0).toNumber() : message.importedEntityCount; - if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) - if (typeof message.importedFeatureValueCount === "number") - object.importedFeatureValueCount = options.longs === String ? String(message.importedFeatureValueCount) : message.importedFeatureValueCount; - else - object.importedFeatureValueCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedFeatureValueCount) : options.longs === Number ? new $util.LongBits(message.importedFeatureValueCount.low >>> 0, message.importedFeatureValueCount.high >>> 0).toNumber() : message.importedFeatureValueCount; - if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) - if (typeof message.invalidRowCount === "number") - object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; - else - object.invalidRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRowCount) : options.longs === Number ? new $util.LongBits(message.invalidRowCount.low >>> 0, message.invalidRowCount.high >>> 0).toNumber() : message.invalidRowCount; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.featurestore != null && message.hasOwnProperty("featurestore")) + object.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.toObject(message.featurestore, options); + if (message.featurestoreId != null && message.hasOwnProperty("featurestoreId")) + object.featurestoreId = message.featurestoreId; return object; }; /** - * Converts this ImportFeatureValuesResponse to JSON. + * Converts this CreateFeaturestoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreRequest * @instance * @returns {Object.} JSON object */ - ImportFeatureValuesResponse.prototype.toJSON = function toJSON() { + CreateFeaturestoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportFeatureValuesResponse; + return CreateFeaturestoreRequest; })(); - v1beta1.BatchReadFeatureValuesRequest = (function() { + v1beta1.GetFeaturestoreRequest = (function() { /** - * Properties of a BatchReadFeatureValuesRequest. + * Properties of a GetFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchReadFeatureValuesRequest - * @property {google.cloud.aiplatform.v1beta1.ICsvSource|null} [csvReadInstances] BatchReadFeatureValuesRequest csvReadInstances - * @property {google.cloud.aiplatform.v1beta1.IBigQuerySource|null} [bigqueryReadInstances] BatchReadFeatureValuesRequest bigqueryReadInstances - * @property {string|null} [featurestore] BatchReadFeatureValuesRequest featurestore - * @property {google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null} [destination] BatchReadFeatureValuesRequest destination - * @property {Array.|null} [passThroughFields] BatchReadFeatureValuesRequest passThroughFields - * @property {Array.|null} [entityTypeSpecs] BatchReadFeatureValuesRequest entityTypeSpecs + * @interface IGetFeaturestoreRequest + * @property {string|null} [name] GetFeaturestoreRequest name */ /** - * Constructs a new BatchReadFeatureValuesRequest. + * Constructs a new GetFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchReadFeatureValuesRequest. - * @implements IBatchReadFeatureValuesRequest + * @classdesc Represents a GetFeaturestoreRequest. + * @implements IGetFeaturestoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest=} [properties] Properties to set */ - function BatchReadFeatureValuesRequest(properties) { - this.passThroughFields = []; - this.entityTypeSpecs = []; + function GetFeaturestoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191138,160 +196922,75 @@ } /** - * BatchReadFeatureValuesRequest csvReadInstances. - * @member {google.cloud.aiplatform.v1beta1.ICsvSource|null|undefined} csvReadInstances - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @instance - */ - BatchReadFeatureValuesRequest.prototype.csvReadInstances = null; - - /** - * BatchReadFeatureValuesRequest bigqueryReadInstances. - * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigqueryReadInstances - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @instance - */ - BatchReadFeatureValuesRequest.prototype.bigqueryReadInstances = null; - - /** - * BatchReadFeatureValuesRequest featurestore. - * @member {string} featurestore - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @instance - */ - BatchReadFeatureValuesRequest.prototype.featurestore = ""; - - /** - * BatchReadFeatureValuesRequest destination. - * @member {google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null|undefined} destination - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @instance - */ - BatchReadFeatureValuesRequest.prototype.destination = null; - - /** - * BatchReadFeatureValuesRequest passThroughFields. - * @member {Array.} passThroughFields - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @instance - */ - BatchReadFeatureValuesRequest.prototype.passThroughFields = $util.emptyArray; - - /** - * BatchReadFeatureValuesRequest entityTypeSpecs. - * @member {Array.} entityTypeSpecs - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @instance - */ - BatchReadFeatureValuesRequest.prototype.entityTypeSpecs = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * BatchReadFeatureValuesRequest readOption. - * @member {"csvReadInstances"|"bigqueryReadInstances"|undefined} readOption - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * GetFeaturestoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest * @instance */ - Object.defineProperty(BatchReadFeatureValuesRequest.prototype, "readOption", { - get: $util.oneOfGetter($oneOfFields = ["csvReadInstances", "bigqueryReadInstances"]), - set: $util.oneOfSetter($oneOfFields) - }); + GetFeaturestoreRequest.prototype.name = ""; /** - * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. + * Creates a new GetFeaturestoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest instance */ - BatchReadFeatureValuesRequest.create = function create(properties) { - return new BatchReadFeatureValuesRequest(properties); + GetFeaturestoreRequest.create = function create(properties) { + return new GetFeaturestoreRequest(properties); }; /** - * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified GetFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest} message GetFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchReadFeatureValuesRequest.encode = function encode(message, writer) { + GetFeaturestoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.featurestore); - if (message.csvReadInstances != null && Object.hasOwnProperty.call(message, "csvReadInstances")) - $root.google.cloud.aiplatform.v1beta1.CsvSource.encode(message.csvReadInstances, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) - $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.encode(message.destination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bigqueryReadInstances != null && Object.hasOwnProperty.call(message, "bigqueryReadInstances")) - $root.google.cloud.aiplatform.v1beta1.BigQuerySource.encode(message.bigqueryReadInstances, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.entityTypeSpecs != null && message.entityTypeSpecs.length) - for (var i = 0; i < message.entityTypeSpecs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.encode(message.entityTypeSpecs[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.passThroughFields != null && message.passThroughFields.length) - for (var i = 0; i < message.passThroughFields.length; ++i) - $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.encode(message.passThroughFields[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. + * Encodes the specified GetFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetFeaturestoreRequest} message GetFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchReadFeatureValuesRequest.decode = function decode(reader, length) { + GetFeaturestoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: - message.csvReadInstances = $root.google.cloud.aiplatform.v1beta1.CsvSource.decode(reader, reader.uint32()); - break; - case 5: - message.bigqueryReadInstances = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.decode(reader, reader.uint32()); - break; case 1: - message.featurestore = reader.string(); - break; - case 4: - message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.decode(reader, reader.uint32()); - break; - case 8: - if (!(message.passThroughFields && message.passThroughFields.length)) - message.passThroughFields = []; - message.passThroughFields.push($root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.decode(reader, reader.uint32())); - break; - case 7: - if (!(message.entityTypeSpecs && message.entityTypeSpecs.length)) - message.entityTypeSpecs = []; - message.entityTypeSpecs.push($root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.decode(reader, reader.uint32())); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -191302,664 +197001,112 @@ }; /** - * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a GetFeaturestoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + GetFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchReadFeatureValuesRequest message. + * Verifies a GetFeaturestoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchReadFeatureValuesRequest.verify = function verify(message) { + GetFeaturestoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.csvReadInstances != null && message.hasOwnProperty("csvReadInstances")) { - properties.readOption = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.CsvSource.verify(message.csvReadInstances); - if (error) - return "csvReadInstances." + error; - } - } - if (message.bigqueryReadInstances != null && message.hasOwnProperty("bigqueryReadInstances")) { - if (properties.readOption === 1) - return "readOption: multiple values"; - properties.readOption = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.verify(message.bigqueryReadInstances); - if (error) - return "bigqueryReadInstances." + error; - } - } - if (message.featurestore != null && message.hasOwnProperty("featurestore")) - if (!$util.isString(message.featurestore)) - return "featurestore: string expected"; - if (message.destination != null && message.hasOwnProperty("destination")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify(message.destination); - if (error) - return "destination." + error; - } - if (message.passThroughFields != null && message.hasOwnProperty("passThroughFields")) { - if (!Array.isArray(message.passThroughFields)) - return "passThroughFields: array expected"; - for (var i = 0; i < message.passThroughFields.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify(message.passThroughFields[i]); - if (error) - return "passThroughFields." + error; - } - } - if (message.entityTypeSpecs != null && message.hasOwnProperty("entityTypeSpecs")) { - if (!Array.isArray(message.entityTypeSpecs)) - return "entityTypeSpecs: array expected"; - for (var i = 0; i < message.entityTypeSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify(message.entityTypeSpecs[i]); - if (error) - return "entityTypeSpecs." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} GetFeaturestoreRequest */ - BatchReadFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) + GetFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest(); - if (object.csvReadInstances != null) { - if (typeof object.csvReadInstances !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.csvReadInstances: object expected"); - message.csvReadInstances = $root.google.cloud.aiplatform.v1beta1.CsvSource.fromObject(object.csvReadInstances); - } - if (object.bigqueryReadInstances != null) { - if (typeof object.bigqueryReadInstances !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.bigqueryReadInstances: object expected"); - message.bigqueryReadInstances = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.fromObject(object.bigqueryReadInstances); - } - if (object.featurestore != null) - message.featurestore = String(object.featurestore); - if (object.destination != null) { - if (typeof object.destination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.destination: object expected"); - message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.fromObject(object.destination); - } - if (object.passThroughFields) { - if (!Array.isArray(object.passThroughFields)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.passThroughFields: array expected"); - message.passThroughFields = []; - for (var i = 0; i < object.passThroughFields.length; ++i) { - if (typeof object.passThroughFields[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.passThroughFields: object expected"); - message.passThroughFields[i] = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.fromObject(object.passThroughFields[i]); - } - } - if (object.entityTypeSpecs) { - if (!Array.isArray(object.entityTypeSpecs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.entityTypeSpecs: array expected"); - message.entityTypeSpecs = []; - for (var i = 0; i < object.entityTypeSpecs.length; ++i) { - if (typeof object.entityTypeSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.entityTypeSpecs: object expected"); - message.entityTypeSpecs[i] = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.fromObject(object.entityTypeSpecs[i]); - } - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetFeaturestoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest + * @param {google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest} message GetFeaturestoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchReadFeatureValuesRequest.toObject = function toObject(message, options) { + GetFeaturestoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.entityTypeSpecs = []; - object.passThroughFields = []; - } - if (options.defaults) { - object.featurestore = ""; - object.destination = null; - } - if (message.featurestore != null && message.hasOwnProperty("featurestore")) - object.featurestore = message.featurestore; - if (message.csvReadInstances != null && message.hasOwnProperty("csvReadInstances")) { - object.csvReadInstances = $root.google.cloud.aiplatform.v1beta1.CsvSource.toObject(message.csvReadInstances, options); - if (options.oneofs) - object.readOption = "csvReadInstances"; - } - if (message.destination != null && message.hasOwnProperty("destination")) - object.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.toObject(message.destination, options); - if (message.bigqueryReadInstances != null && message.hasOwnProperty("bigqueryReadInstances")) { - object.bigqueryReadInstances = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.toObject(message.bigqueryReadInstances, options); - if (options.oneofs) - object.readOption = "bigqueryReadInstances"; - } - if (message.entityTypeSpecs && message.entityTypeSpecs.length) { - object.entityTypeSpecs = []; - for (var j = 0; j < message.entityTypeSpecs.length; ++j) - object.entityTypeSpecs[j] = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.toObject(message.entityTypeSpecs[j], options); - } - if (message.passThroughFields && message.passThroughFields.length) { - object.passThroughFields = []; - for (var j = 0; j < message.passThroughFields.length; ++j) - object.passThroughFields[j] = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.toObject(message.passThroughFields[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BatchReadFeatureValuesRequest to JSON. + * Converts this GetFeaturestoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest * @instance * @returns {Object.} JSON object */ - BatchReadFeatureValuesRequest.prototype.toJSON = function toJSON() { + GetFeaturestoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - BatchReadFeatureValuesRequest.PassThroughField = (function() { - - /** - * Properties of a PassThroughField. - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @interface IPassThroughField - * @property {string|null} [fieldName] PassThroughField fieldName - */ - - /** - * Constructs a new PassThroughField. - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @classdesc Represents a PassThroughField. - * @implements IPassThroughField - * @constructor - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField=} [properties] Properties to set - */ - function PassThroughField(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * PassThroughField fieldName. - * @member {string} fieldName - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @instance - */ - PassThroughField.prototype.fieldName = ""; - - /** - * Creates a new PassThroughField instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField instance - */ - PassThroughField.create = function create(properties) { - return new PassThroughField(properties); - }; - - /** - * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField} message PassThroughField message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PassThroughField.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); - return writer; - }; - - /** - * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField} message PassThroughField message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PassThroughField.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a PassThroughField message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PassThroughField.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.fieldName = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a PassThroughField message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PassThroughField.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a PassThroughField message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PassThroughField.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - if (!$util.isString(message.fieldName)) - return "fieldName: string expected"; - return null; - }; - - /** - * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField - */ - PassThroughField.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField(); - if (object.fieldName != null) - message.fieldName = String(object.fieldName); - return message; - }; - - /** - * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} message PassThroughField - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PassThroughField.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.fieldName = ""; - if (message.fieldName != null && message.hasOwnProperty("fieldName")) - object.fieldName = message.fieldName; - return object; - }; - - /** - * Converts this PassThroughField to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField - * @instance - * @returns {Object.} JSON object - */ - PassThroughField.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return PassThroughField; - })(); - - BatchReadFeatureValuesRequest.EntityTypeSpec = (function() { - - /** - * Properties of an EntityTypeSpec. - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @interface IEntityTypeSpec - * @property {string|null} [entityTypeId] EntityTypeSpec entityTypeId - * @property {google.cloud.aiplatform.v1beta1.IFeatureSelector|null} [featureSelector] EntityTypeSpec featureSelector - * @property {Array.|null} [settings] EntityTypeSpec settings - */ - - /** - * Constructs a new EntityTypeSpec. - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest - * @classdesc Represents an EntityTypeSpec. - * @implements IEntityTypeSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec=} [properties] Properties to set - */ - function EntityTypeSpec(properties) { - this.settings = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EntityTypeSpec entityTypeId. - * @member {string} entityTypeId - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - */ - EntityTypeSpec.prototype.entityTypeId = ""; - - /** - * EntityTypeSpec featureSelector. - * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - */ - EntityTypeSpec.prototype.featureSelector = null; - - /** - * EntityTypeSpec settings. - * @member {Array.} settings - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - */ - EntityTypeSpec.prototype.settings = $util.emptyArray; - - /** - * Creates a new EntityTypeSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec instance - */ - EntityTypeSpec.create = function create(properties) { - return new EntityTypeSpec(properties); - }; - - /** - * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec} message EntityTypeSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EntityTypeSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.entityTypeId != null && Object.hasOwnProperty.call(message, "entityTypeId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityTypeId); - if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) - $root.google.cloud.aiplatform.v1beta1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.settings != null && message.settings.length) - for (var i = 0; i < message.settings.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.encode(message.settings[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec} message EntityTypeSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EntityTypeSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EntityTypeSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.entityTypeId = reader.string(); - break; - case 2: - message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); - break; - case 3: - if (!(message.settings && message.settings.length)) - message.settings = []; - message.settings.push($root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EntityTypeSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EntityTypeSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EntityTypeSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) - if (!$util.isString(message.entityTypeId)) - return "entityTypeId: string expected"; - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.verify(message.featureSelector); - if (error) - return "featureSelector." + error; - } - if (message.settings != null && message.hasOwnProperty("settings")) { - if (!Array.isArray(message.settings)) - return "settings: array expected"; - for (var i = 0; i < message.settings.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify(message.settings[i]); - if (error) - return "settings." + error; - } - } - return null; - }; - - /** - * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec - */ - EntityTypeSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec(); - if (object.entityTypeId != null) - message.entityTypeId = String(object.entityTypeId); - if (object.featureSelector != null) { - if (typeof object.featureSelector !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.featureSelector: object expected"); - message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.fromObject(object.featureSelector); - } - if (object.settings) { - if (!Array.isArray(object.settings)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.settings: array expected"); - message.settings = []; - for (var i = 0; i < object.settings.length; ++i) { - if (typeof object.settings[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.settings: object expected"); - message.settings[i] = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.fromObject(object.settings[i]); - } - } - return message; - }; - - /** - * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} message EntityTypeSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EntityTypeSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.settings = []; - if (options.defaults) { - object.entityTypeId = ""; - object.featureSelector = null; - } - if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) - object.entityTypeId = message.entityTypeId; - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) - object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, options); - if (message.settings && message.settings.length) { - object.settings = []; - for (var j = 0; j < message.settings.length; ++j) - object.settings[j] = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.toObject(message.settings[j], options); - } - return object; - }; - - /** - * Converts this EntityTypeSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec - * @instance - * @returns {Object.} JSON object - */ - EntityTypeSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EntityTypeSpec; - })(); - - return BatchReadFeatureValuesRequest; + return GetFeaturestoreRequest; })(); - v1beta1.ExportFeatureValuesRequest = (function() { + v1beta1.ListFeaturestoresRequest = (function() { /** - * Properties of an ExportFeatureValuesRequest. + * Properties of a ListFeaturestoresRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportFeatureValuesRequest - * @property {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null} [snapshotExport] ExportFeatureValuesRequest snapshotExport - * @property {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null} [fullExport] ExportFeatureValuesRequest fullExport - * @property {string|null} [entityType] ExportFeatureValuesRequest entityType - * @property {google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null} [destination] ExportFeatureValuesRequest destination - * @property {google.cloud.aiplatform.v1beta1.IFeatureSelector|null} [featureSelector] ExportFeatureValuesRequest featureSelector - * @property {Array.|null} [settings] ExportFeatureValuesRequest settings + * @interface IListFeaturestoresRequest + * @property {string|null} [parent] ListFeaturestoresRequest parent + * @property {string|null} [filter] ListFeaturestoresRequest filter + * @property {number|null} [pageSize] ListFeaturestoresRequest pageSize + * @property {string|null} [pageToken] ListFeaturestoresRequest pageToken + * @property {string|null} [orderBy] ListFeaturestoresRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListFeaturestoresRequest readMask */ /** - * Constructs a new ExportFeatureValuesRequest. + * Constructs a new ListFeaturestoresRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportFeatureValuesRequest. - * @implements IExportFeatureValuesRequest + * @classdesc Represents a ListFeaturestoresRequest. + * @implements IListFeaturestoresRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest=} [properties] Properties to set */ - function ExportFeatureValuesRequest(properties) { - this.settings = []; + function ListFeaturestoresRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -191967,157 +197114,140 @@ } /** - * ExportFeatureValuesRequest snapshotExport. - * @member {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null|undefined} snapshotExport - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest - * @instance - */ - ExportFeatureValuesRequest.prototype.snapshotExport = null; - - /** - * ExportFeatureValuesRequest fullExport. - * @member {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null|undefined} fullExport - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * ListFeaturestoresRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance */ - ExportFeatureValuesRequest.prototype.fullExport = null; + ListFeaturestoresRequest.prototype.parent = ""; /** - * ExportFeatureValuesRequest entityType. - * @member {string} entityType - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * ListFeaturestoresRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance */ - ExportFeatureValuesRequest.prototype.entityType = ""; + ListFeaturestoresRequest.prototype.filter = ""; /** - * ExportFeatureValuesRequest destination. - * @member {google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null|undefined} destination - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * ListFeaturestoresRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance */ - ExportFeatureValuesRequest.prototype.destination = null; + ListFeaturestoresRequest.prototype.pageSize = 0; /** - * ExportFeatureValuesRequest featureSelector. - * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * ListFeaturestoresRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance */ - ExportFeatureValuesRequest.prototype.featureSelector = null; + ListFeaturestoresRequest.prototype.pageToken = ""; /** - * ExportFeatureValuesRequest settings. - * @member {Array.} settings - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * ListFeaturestoresRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance */ - ExportFeatureValuesRequest.prototype.settings = $util.emptyArray; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ListFeaturestoresRequest.prototype.orderBy = ""; /** - * ExportFeatureValuesRequest mode. - * @member {"snapshotExport"|"fullExport"|undefined} mode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * ListFeaturestoresRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance */ - Object.defineProperty(ExportFeatureValuesRequest.prototype, "mode", { - get: $util.oneOfGetter($oneOfFields = ["snapshotExport", "fullExport"]), - set: $util.oneOfSetter($oneOfFields) - }); + ListFeaturestoresRequest.prototype.readMask = null; /** - * Creates a new ExportFeatureValuesRequest instance using the specified properties. + * Creates a new ListFeaturestoresRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest instance */ - ExportFeatureValuesRequest.create = function create(properties) { - return new ExportFeatureValuesRequest(properties); + ListFeaturestoresRequest.create = function create(properties) { + return new ListFeaturestoresRequest(properties); }; /** - * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. + * Encodes the specified ListFeaturestoresRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest} message ExportFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest} message ListFeaturestoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesRequest.encode = function encode(message, writer) { + ListFeaturestoresRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); - if (message.snapshotExport != null && Object.hasOwnProperty.call(message, "snapshotExport")) - $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.encode(message.snapshotExport, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) - $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.encode(message.destination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) - $root.google.cloud.aiplatform.v1beta1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.settings != null && message.settings.length) - for (var i = 0; i < message.settings.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.encode(message.settings[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.fullExport != null && Object.hasOwnProperty.call(message, "fullExport")) - $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.encode(message.fullExport, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. + * Encodes the specified ListFeaturestoresRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest} message ExportFeatureValuesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresRequest} message ListFeaturestoresRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListFeaturestoresRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesRequest.decode = function decode(reader, length) { + ListFeaturestoresRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 3: - message.snapshotExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.decode(reader, reader.uint32()); + case 1: + message.parent = reader.string(); break; - case 7: - message.fullExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.decode(reader, reader.uint32()); + case 2: + message.filter = reader.string(); break; - case 1: - message.entityType = reader.string(); + case 3: + message.pageSize = reader.int32(); break; case 4: - message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.decode(reader, reader.uint32()); + message.pageToken = reader.string(); break; case 5: - message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); + message.orderBy = reader.string(); break; case 6: - if (!(message.settings && message.settings.length)) - message.settings = []; - message.settings.push($root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.decode(reader, reader.uint32())); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -192128,729 +197258,247 @@ }; /** - * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturestoresRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { + ListFeaturestoresRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFeatureValuesRequest message. + * Verifies a ListFeaturestoresRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFeatureValuesRequest.verify = function verify(message) { + ListFeaturestoresRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.snapshotExport != null && message.hasOwnProperty("snapshotExport")) { - properties.mode = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify(message.snapshotExport); - if (error) - return "snapshotExport." + error; - } - } - if (message.fullExport != null && message.hasOwnProperty("fullExport")) { - if (properties.mode === 1) - return "mode: multiple values"; - properties.mode = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify(message.fullExport); - if (error) - return "fullExport." + error; - } - } - if (message.entityType != null && message.hasOwnProperty("entityType")) - if (!$util.isString(message.entityType)) - return "entityType: string expected"; - if (message.destination != null && message.hasOwnProperty("destination")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify(message.destination); - if (error) - return "destination." + error; - } - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.verify(message.featureSelector); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "featureSelector." + error; - } - if (message.settings != null && message.hasOwnProperty("settings")) { - if (!Array.isArray(message.settings)) - return "settings: array expected"; - for (var i = 0; i < message.settings.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify(message.settings[i]); - if (error) - return "settings." + error; - } + return "readMask." + error; } return null; }; /** - * Creates an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturestoresRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} ListFeaturestoresRequest */ - ExportFeatureValuesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) + ListFeaturestoresRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest(); - if (object.snapshotExport != null) { - if (typeof object.snapshotExport !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.snapshotExport: object expected"); - message.snapshotExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.fromObject(object.snapshotExport); - } - if (object.fullExport != null) { - if (typeof object.fullExport !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.fullExport: object expected"); - message.fullExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.fromObject(object.fullExport); - } - if (object.entityType != null) - message.entityType = String(object.entityType); - if (object.destination != null) { - if (typeof object.destination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.destination: object expected"); - message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.fromObject(object.destination); - } - if (object.featureSelector != null) { - if (typeof object.featureSelector !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.featureSelector: object expected"); - message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.fromObject(object.featureSelector); - } - if (object.settings) { - if (!Array.isArray(object.settings)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.settings: array expected"); - message.settings = []; - for (var i = 0; i < object.settings.length; ++i) { - if (typeof object.settings[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.settings: object expected"); - message.settings[i] = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.fromObject(object.settings[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListFeaturestoresRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} message ExportFeatureValuesRequest + * @param {google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest} message ListFeaturestoresRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFeatureValuesRequest.toObject = function toObject(message, options) { + ListFeaturestoresRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.settings = []; if (options.defaults) { - object.entityType = ""; - object.destination = null; - object.featureSelector = null; - } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = message.entityType; - if (message.snapshotExport != null && message.hasOwnProperty("snapshotExport")) { - object.snapshotExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.toObject(message.snapshotExport, options); - if (options.oneofs) - object.mode = "snapshotExport"; - } - if (message.destination != null && message.hasOwnProperty("destination")) - object.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.toObject(message.destination, options); - if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) - object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, options); - if (message.settings && message.settings.length) { - object.settings = []; - for (var j = 0; j < message.settings.length; ++j) - object.settings[j] = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.toObject(message.settings[j], options); - } - if (message.fullExport != null && message.hasOwnProperty("fullExport")) { - object.fullExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.toObject(message.fullExport, options); - if (options.oneofs) - object.mode = "fullExport"; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = null; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ExportFeatureValuesRequest to JSON. + * Converts this ListFeaturestoresRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresRequest * @instance * @returns {Object.} JSON object */ - ExportFeatureValuesRequest.prototype.toJSON = function toJSON() { + ListFeaturestoresRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ExportFeatureValuesRequest.SnapshotExport = (function() { + return ListFeaturestoresRequest; + })(); - /** - * Properties of a SnapshotExport. - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest - * @interface ISnapshotExport - * @property {google.protobuf.ITimestamp|null} [snapshotTime] SnapshotExport snapshotTime - * @property {google.protobuf.ITimestamp|null} [startTime] SnapshotExport startTime - */ + v1beta1.ListFeaturestoresResponse = (function() { - /** - * Constructs a new SnapshotExport. - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest - * @classdesc Represents a SnapshotExport. - * @implements ISnapshotExport - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport=} [properties] Properties to set - */ - function SnapshotExport(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a ListFeaturestoresResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListFeaturestoresResponse + * @property {Array.|null} [featurestores] ListFeaturestoresResponse featurestores + * @property {string|null} [nextPageToken] ListFeaturestoresResponse nextPageToken + */ - /** - * SnapshotExport snapshotTime. - * @member {google.protobuf.ITimestamp|null|undefined} snapshotTime - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @instance - */ - SnapshotExport.prototype.snapshotTime = null; + /** + * Constructs a new ListFeaturestoresResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListFeaturestoresResponse. + * @implements IListFeaturestoresResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse=} [properties] Properties to set + */ + function ListFeaturestoresResponse(properties) { + this.featurestores = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * SnapshotExport startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @instance - */ - SnapshotExport.prototype.startTime = null; + /** + * ListFeaturestoresResponse featurestores. + * @member {Array.} featurestores + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @instance + */ + ListFeaturestoresResponse.prototype.featurestores = $util.emptyArray; - /** - * Creates a new SnapshotExport instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport instance - */ - SnapshotExport.create = function create(properties) { - return new SnapshotExport(properties); - }; + /** + * ListFeaturestoresResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @instance + */ + ListFeaturestoresResponse.prototype.nextPageToken = ""; - /** - * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport} message SnapshotExport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SnapshotExport.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.snapshotTime != null && Object.hasOwnProperty.call(message, "snapshotTime")) - $root.google.protobuf.Timestamp.encode(message.snapshotTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Creates a new ListFeaturestoresResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse instance + */ + ListFeaturestoresResponse.create = function create(properties) { + return new ListFeaturestoresResponse(properties); + }; - /** - * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport} message SnapshotExport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - SnapshotExport.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a SnapshotExport message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SnapshotExport.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.snapshotTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 2: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - SnapshotExport.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a SnapshotExport message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - SnapshotExport.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.snapshotTime != null && message.hasOwnProperty("snapshotTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.snapshotTime); - if (error) - return "snapshotTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - return null; - }; - - /** - * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport - */ - SnapshotExport.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport(); - if (object.snapshotTime != null) { - if (typeof object.snapshotTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.snapshotTime: object expected"); - message.snapshotTime = $root.google.protobuf.Timestamp.fromObject(object.snapshotTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - return message; - }; - - /** - * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} message SnapshotExport - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - SnapshotExport.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.snapshotTime = null; - object.startTime = null; - } - if (message.snapshotTime != null && message.hasOwnProperty("snapshotTime")) - object.snapshotTime = $root.google.protobuf.Timestamp.toObject(message.snapshotTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - return object; - }; - - /** - * Converts this SnapshotExport to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport - * @instance - * @returns {Object.} JSON object - */ - SnapshotExport.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return SnapshotExport; - })(); - - ExportFeatureValuesRequest.FullExport = (function() { - - /** - * Properties of a FullExport. - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest - * @interface IFullExport - * @property {google.protobuf.ITimestamp|null} [startTime] FullExport startTime - * @property {google.protobuf.ITimestamp|null} [endTime] FullExport endTime - */ - - /** - * Constructs a new FullExport. - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest - * @classdesc Represents a FullExport. - * @implements IFullExport - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport=} [properties] Properties to set - */ - function FullExport(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FullExport startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @instance - */ - FullExport.prototype.startTime = null; - - /** - * FullExport endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @instance - */ - FullExport.prototype.endTime = null; - - /** - * Creates a new FullExport instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} FullExport instance - */ - FullExport.create = function create(properties) { - return new FullExport(properties); - }; - - /** - * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport} message FullExport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FullExport.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport} message FullExport message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FullExport.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FullExport message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} FullExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FullExport.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 1: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FullExport message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} FullExport - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FullExport.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FullExport message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FullExport.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - return null; - }; - - /** - * Creates a FullExport message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} FullExport - */ - FullExport.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport(); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - return message; - }; - - /** - * Creates a plain object from a FullExport message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} message FullExport - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FullExport.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.endTime = null; - object.startTime = null; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - return object; - }; - - /** - * Converts this FullExport to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport - * @instance - * @returns {Object.} JSON object - */ - FullExport.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FullExport; - })(); - - return ExportFeatureValuesRequest; - })(); - - v1beta1.DestinationFeatureSetting = (function() { - - /** - * Properties of a DestinationFeatureSetting. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDestinationFeatureSetting - * @property {string|null} [featureId] DestinationFeatureSetting featureId - * @property {string|null} [destinationField] DestinationFeatureSetting destinationField - */ - - /** - * Constructs a new DestinationFeatureSetting. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DestinationFeatureSetting. - * @implements IDestinationFeatureSetting - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting=} [properties] Properties to set - */ - function DestinationFeatureSetting(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DestinationFeatureSetting featureId. - * @member {string} featureId - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting - * @instance - */ - DestinationFeatureSetting.prototype.featureId = ""; + /** + * Encodes the specified ListFeaturestoresResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse} message ListFeaturestoresResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListFeaturestoresResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.featurestores != null && message.featurestores.length) + for (var i = 0; i < message.featurestores.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Featurestore.encode(message.featurestores[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; /** - * DestinationFeatureSetting destinationField. - * @member {string} destinationField - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting - * @instance - */ - DestinationFeatureSetting.prototype.destinationField = ""; - - /** - * Creates a new DestinationFeatureSetting instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting - * @static - * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting instance - */ - DestinationFeatureSetting.create = function create(properties) { - return new DestinationFeatureSetting(properties); - }; - - /** - * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting - * @static - * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting} message DestinationFeatureSetting message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DestinationFeatureSetting.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.featureId != null && Object.hasOwnProperty.call(message, "featureId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureId); - if (message.destinationField != null && Object.hasOwnProperty.call(message, "destinationField")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.destinationField); - return writer; - }; - - /** - * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. + * Encodes the specified ListFeaturestoresResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting} message DestinationFeatureSetting message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListFeaturestoresResponse} message ListFeaturestoresResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DestinationFeatureSetting.encodeDelimited = function encodeDelimited(message, writer) { + ListFeaturestoresResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer. + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DestinationFeatureSetting.decode = function decode(reader, length) { + ListFeaturestoresResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.featureId = reader.string(); + if (!(message.featurestores && message.featurestores.length)) + message.featurestores = []; + message.featurestores.push($root.google.cloud.aiplatform.v1beta1.Featurestore.decode(reader, reader.uint32())); break; case 2: - message.destinationField = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -192861,118 +197509,134 @@ }; /** - * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturestoresResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DestinationFeatureSetting.decodeDelimited = function decodeDelimited(reader) { + ListFeaturestoresResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DestinationFeatureSetting message. + * Verifies a ListFeaturestoresResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DestinationFeatureSetting.verify = function verify(message) { + ListFeaturestoresResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.featureId != null && message.hasOwnProperty("featureId")) - if (!$util.isString(message.featureId)) - return "featureId: string expected"; - if (message.destinationField != null && message.hasOwnProperty("destinationField")) - if (!$util.isString(message.destinationField)) - return "destinationField: string expected"; + if (message.featurestores != null && message.hasOwnProperty("featurestores")) { + if (!Array.isArray(message.featurestores)) + return "featurestores: array expected"; + for (var i = 0; i < message.featurestores.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.verify(message.featurestores[i]); + if (error) + return "featurestores." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturestoresResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} ListFeaturestoresResponse */ - DestinationFeatureSetting.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) + ListFeaturestoresResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting(); - if (object.featureId != null) - message.featureId = String(object.featureId); - if (object.destinationField != null) - message.destinationField = String(object.destinationField); + var message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse(); + if (object.featurestores) { + if (!Array.isArray(object.featurestores)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.featurestores: array expected"); + message.featurestores = []; + for (var i = 0; i < object.featurestores.length; ++i) { + if (typeof object.featurestores[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse.featurestores: object expected"); + message.featurestores[i] = $root.google.cloud.aiplatform.v1beta1.Featurestore.fromObject(object.featurestores[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. + * Creates a plain object from a ListFeaturestoresResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} message DestinationFeatureSetting + * @param {google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse} message ListFeaturestoresResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DestinationFeatureSetting.toObject = function toObject(message, options) { + ListFeaturestoresResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.featureId = ""; - object.destinationField = ""; + if (options.arrays || options.defaults) + object.featurestores = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.featurestores && message.featurestores.length) { + object.featurestores = []; + for (var j = 0; j < message.featurestores.length; ++j) + object.featurestores[j] = $root.google.cloud.aiplatform.v1beta1.Featurestore.toObject(message.featurestores[j], options); } - if (message.featureId != null && message.hasOwnProperty("featureId")) - object.featureId = message.featureId; - if (message.destinationField != null && message.hasOwnProperty("destinationField")) - object.destinationField = message.destinationField; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DestinationFeatureSetting to JSON. + * Converts this ListFeaturestoresResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturestoresResponse * @instance * @returns {Object.} JSON object */ - DestinationFeatureSetting.prototype.toJSON = function toJSON() { + ListFeaturestoresResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DestinationFeatureSetting; + return ListFeaturestoresResponse; })(); - v1beta1.FeatureValueDestination = (function() { + v1beta1.UpdateFeaturestoreRequest = (function() { /** - * Properties of a FeatureValueDestination. + * Properties of an UpdateFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IFeatureValueDestination - * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigqueryDestination] FeatureValueDestination bigqueryDestination - * @property {google.cloud.aiplatform.v1beta1.ITFRecordDestination|null} [tfrecordDestination] FeatureValueDestination tfrecordDestination - * @property {google.cloud.aiplatform.v1beta1.ICsvDestination|null} [csvDestination] FeatureValueDestination csvDestination + * @interface IUpdateFeaturestoreRequest + * @property {google.cloud.aiplatform.v1beta1.IFeaturestore|null} [featurestore] UpdateFeaturestoreRequest featurestore + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeaturestoreRequest updateMask */ /** - * Constructs a new FeatureValueDestination. + * Constructs a new UpdateFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a FeatureValueDestination. - * @implements IFeatureValueDestination + * @classdesc Represents an UpdateFeaturestoreRequest. + * @implements IUpdateFeaturestoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest=} [properties] Properties to set */ - function FeatureValueDestination(properties) { + function UpdateFeaturestoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -192980,115 +197644,88 @@ } /** - * FeatureValueDestination bigqueryDestination. - * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination - * @instance - */ - FeatureValueDestination.prototype.bigqueryDestination = null; - - /** - * FeatureValueDestination tfrecordDestination. - * @member {google.cloud.aiplatform.v1beta1.ITFRecordDestination|null|undefined} tfrecordDestination - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination - * @instance - */ - FeatureValueDestination.prototype.tfrecordDestination = null; - - /** - * FeatureValueDestination csvDestination. - * @member {google.cloud.aiplatform.v1beta1.ICsvDestination|null|undefined} csvDestination - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * UpdateFeaturestoreRequest featurestore. + * @member {google.cloud.aiplatform.v1beta1.IFeaturestore|null|undefined} featurestore + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @instance */ - FeatureValueDestination.prototype.csvDestination = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + UpdateFeaturestoreRequest.prototype.featurestore = null; /** - * FeatureValueDestination destination. - * @member {"bigqueryDestination"|"tfrecordDestination"|"csvDestination"|undefined} destination - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * UpdateFeaturestoreRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @instance */ - Object.defineProperty(FeatureValueDestination.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["bigqueryDestination", "tfrecordDestination", "csvDestination"]), - set: $util.oneOfSetter($oneOfFields) - }); + UpdateFeaturestoreRequest.prototype.updateMask = null; /** - * Creates a new FeatureValueDestination instance using the specified properties. + * Creates a new UpdateFeaturestoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest instance */ - FeatureValueDestination.create = function create(properties) { - return new FeatureValueDestination(properties); + UpdateFeaturestoreRequest.create = function create(properties) { + return new UpdateFeaturestoreRequest(properties); }; /** - * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. + * Encodes the specified UpdateFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination} message FeatureValueDestination message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} message UpdateFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValueDestination.encode = function encode(message, writer) { + UpdateFeaturestoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) - $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.tfrecordDestination != null && Object.hasOwnProperty.call(message, "tfrecordDestination")) - $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.encode(message.tfrecordDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.csvDestination != null && Object.hasOwnProperty.call(message, "csvDestination")) - $root.google.cloud.aiplatform.v1beta1.CsvDestination.encode(message.csvDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) + $root.google.cloud.aiplatform.v1beta1.Featurestore.encode(message.featurestore, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. + * Encodes the specified UpdateFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination} message FeatureValueDestination message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreRequest} message UpdateFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - FeatureValueDestination.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer. + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValueDestination.decode = function decode(reader, length) { + UpdateFeaturestoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); + message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.decode(reader, reader.uint32()); break; case 2: - message.tfrecordDestination = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.decode(reader, reader.uint32()); - break; - case 3: - message.csvDestination = $root.google.cloud.aiplatform.v1beta1.CsvDestination.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -193099,156 +197736,127 @@ }; /** - * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeaturestoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - FeatureValueDestination.decodeDelimited = function decodeDelimited(reader) { + UpdateFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a FeatureValueDestination message. + * Verifies an UpdateFeaturestoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - FeatureValueDestination.verify = function verify(message) { + UpdateFeaturestoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigqueryDestination); - if (error) - return "bigqueryDestination." + error; - } - } - if (message.tfrecordDestination != null && message.hasOwnProperty("tfrecordDestination")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.verify(message.tfrecordDestination); - if (error) - return "tfrecordDestination." + error; - } + if (message.featurestore != null && message.hasOwnProperty("featurestore")) { + var error = $root.google.cloud.aiplatform.v1beta1.Featurestore.verify(message.featurestore); + if (error) + return "featurestore." + error; } - if (message.csvDestination != null && message.hasOwnProperty("csvDestination")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.CsvDestination.verify(message.csvDestination); - if (error) - return "csvDestination." + error; - } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a FeatureValueDestination message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} UpdateFeaturestoreRequest */ - FeatureValueDestination.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination) + UpdateFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination(); - if (object.bigqueryDestination != null) { - if (typeof object.bigqueryDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigqueryDestination: object expected"); - message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigqueryDestination); - } - if (object.tfrecordDestination != null) { - if (typeof object.tfrecordDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValueDestination.tfrecordDestination: object expected"); - message.tfrecordDestination = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.fromObject(object.tfrecordDestination); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest(); + if (object.featurestore != null) { + if (typeof object.featurestore !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.featurestore: object expected"); + message.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.fromObject(object.featurestore); } - if (object.csvDestination != null) { - if (typeof object.csvDestination !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValueDestination.csvDestination: object expected"); - message.csvDestination = $root.google.cloud.aiplatform.v1beta1.CsvDestination.fromObject(object.csvDestination); + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFeaturestoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.FeatureValueDestination} message FeatureValueDestination + * @param {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest} message UpdateFeaturestoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - FeatureValueDestination.toObject = function toObject(message, options) { + UpdateFeaturestoreRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { - object.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.bigqueryDestination, options); - if (options.oneofs) - object.destination = "bigqueryDestination"; - } - if (message.tfrecordDestination != null && message.hasOwnProperty("tfrecordDestination")) { - object.tfrecordDestination = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.toObject(message.tfrecordDestination, options); - if (options.oneofs) - object.destination = "tfrecordDestination"; - } - if (message.csvDestination != null && message.hasOwnProperty("csvDestination")) { - object.csvDestination = $root.google.cloud.aiplatform.v1beta1.CsvDestination.toObject(message.csvDestination, options); - if (options.oneofs) - object.destination = "csvDestination"; + if (options.defaults) { + object.featurestore = null; + object.updateMask = null; } + if (message.featurestore != null && message.hasOwnProperty("featurestore")) + object.featurestore = $root.google.cloud.aiplatform.v1beta1.Featurestore.toObject(message.featurestore, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this FeatureValueDestination to JSON. + * Converts this UpdateFeaturestoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreRequest * @instance * @returns {Object.} JSON object */ - FeatureValueDestination.prototype.toJSON = function toJSON() { + UpdateFeaturestoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return FeatureValueDestination; + return UpdateFeaturestoreRequest; })(); - v1beta1.ExportFeatureValuesResponse = (function() { + v1beta1.DeleteFeaturestoreRequest = (function() { /** - * Properties of an ExportFeatureValuesResponse. + * Properties of a DeleteFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportFeatureValuesResponse + * @interface IDeleteFeaturestoreRequest + * @property {string|null} [name] DeleteFeaturestoreRequest name + * @property {boolean|null} [force] DeleteFeaturestoreRequest force */ /** - * Constructs a new ExportFeatureValuesResponse. + * Constructs a new DeleteFeaturestoreRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportFeatureValuesResponse. - * @implements IExportFeatureValuesResponse + * @classdesc Represents a DeleteFeaturestoreRequest. + * @implements IDeleteFeaturestoreRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest=} [properties] Properties to set */ - function ExportFeatureValuesResponse(properties) { + function DeleteFeaturestoreRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193256,63 +197864,89 @@ } /** - * Creates a new ExportFeatureValuesResponse instance using the specified properties. + * DeleteFeaturestoreRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @instance + */ + DeleteFeaturestoreRequest.prototype.name = ""; + + /** + * DeleteFeaturestoreRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest + * @instance + */ + DeleteFeaturestoreRequest.prototype.force = false; + + /** + * Creates a new DeleteFeaturestoreRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest instance */ - ExportFeatureValuesResponse.create = function create(properties) { - return new ExportFeatureValuesResponse(properties); + DeleteFeaturestoreRequest.create = function create(properties) { + return new DeleteFeaturestoreRequest(properties); }; /** - * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. + * Encodes the specified DeleteFeaturestoreRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse} message ExportFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} message DeleteFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesResponse.encode = function encode(message, writer) { + DeleteFeaturestoreRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. + * Encodes the specified DeleteFeaturestoreRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse} message ExportFeatureValuesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeaturestoreRequest} message DeleteFeaturestoreRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFeaturestoreRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesResponse.decode = function decode(reader, length) { + DeleteFeaturestoreRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.force = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -193322,93 +197956,127 @@ }; /** - * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeaturestoreRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteFeaturestoreRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFeatureValuesResponse message. + * Verifies a DeleteFeaturestoreRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFeatureValuesResponse.verify = function verify(message) { + DeleteFeaturestoreRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeaturestoreRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} DeleteFeaturestoreRequest */ - ExportFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) + DeleteFeaturestoreRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); + return message; }; /** - * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFeaturestoreRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} message ExportFeatureValuesResponse + * @param {google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest} message DeleteFeaturestoreRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFeatureValuesResponse.toObject = function toObject() { - return {}; + DeleteFeaturestoreRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.force = false; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; + return object; }; /** - * Converts this ExportFeatureValuesResponse to JSON. + * Converts this DeleteFeaturestoreRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeaturestoreRequest * @instance * @returns {Object.} JSON object */ - ExportFeatureValuesResponse.prototype.toJSON = function toJSON() { + DeleteFeaturestoreRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportFeatureValuesResponse; + return DeleteFeaturestoreRequest; })(); - v1beta1.BatchReadFeatureValuesResponse = (function() { + v1beta1.ImportFeatureValuesRequest = (function() { /** - * Properties of a BatchReadFeatureValuesResponse. + * Properties of an ImportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchReadFeatureValuesResponse + * @interface IImportFeatureValuesRequest + * @property {google.cloud.aiplatform.v1beta1.IAvroSource|null} [avroSource] ImportFeatureValuesRequest avroSource + * @property {google.cloud.aiplatform.v1beta1.IBigQuerySource|null} [bigquerySource] ImportFeatureValuesRequest bigquerySource + * @property {google.cloud.aiplatform.v1beta1.ICsvSource|null} [csvSource] ImportFeatureValuesRequest csvSource + * @property {string|null} [featureTimeField] ImportFeatureValuesRequest featureTimeField + * @property {google.protobuf.ITimestamp|null} [featureTime] ImportFeatureValuesRequest featureTime + * @property {string|null} [entityType] ImportFeatureValuesRequest entityType + * @property {string|null} [entityIdField] ImportFeatureValuesRequest entityIdField + * @property {Array.|null} [featureSpecs] ImportFeatureValuesRequest featureSpecs + * @property {boolean|null} [disableOnlineServing] ImportFeatureValuesRequest disableOnlineServing + * @property {number|null} [workerCount] ImportFeatureValuesRequest workerCount + * @property {boolean|null} [disableIngestionAnalysis] ImportFeatureValuesRequest disableIngestionAnalysis */ /** - * Constructs a new BatchReadFeatureValuesResponse. + * Constructs a new ImportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchReadFeatureValuesResponse. - * @implements IBatchReadFeatureValuesResponse + * @classdesc Represents an ImportFeatureValuesRequest. + * @implements IImportFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest=} [properties] Properties to set */ - function BatchReadFeatureValuesResponse(properties) { + function ImportFeatureValuesRequest(properties) { + this.featureSpecs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193416,264 +198084,233 @@ } /** - * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse instance + * ImportFeatureValuesRequest avroSource. + * @member {google.cloud.aiplatform.v1beta1.IAvroSource|null|undefined} avroSource + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance */ - BatchReadFeatureValuesResponse.create = function create(properties) { - return new BatchReadFeatureValuesResponse(properties); - }; + ImportFeatureValuesRequest.prototype.avroSource = null; /** - * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ImportFeatureValuesRequest bigquerySource. + * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigquerySource + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance */ - BatchReadFeatureValuesResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - return writer; - }; + ImportFeatureValuesRequest.prototype.bigquerySource = null; /** - * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * ImportFeatureValuesRequest csvSource. + * @member {google.cloud.aiplatform.v1beta1.ICsvSource|null|undefined} csvSource + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance */ - BatchReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + ImportFeatureValuesRequest.prototype.csvSource = null; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * ImportFeatureValuesRequest featureTimeField. + * @member {string|null|undefined} featureTimeField + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance */ - BatchReadFeatureValuesResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + ImportFeatureValuesRequest.prototype.featureTimeField = null; /** - * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - BatchReadFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a BatchReadFeatureValuesResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * ImportFeatureValuesRequest featureTime. + * @member {google.protobuf.ITimestamp|null|undefined} featureTime + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance */ - BatchReadFeatureValuesResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - return null; - }; + ImportFeatureValuesRequest.prototype.featureTime = null; /** - * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse + * ImportFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance */ - BatchReadFeatureValuesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) - return object; - return new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse(); - }; + ImportFeatureValuesRequest.prototype.entityType = ""; /** - * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * ImportFeatureValuesRequest entityIdField. + * @member {string} entityIdField + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance */ - BatchReadFeatureValuesResponse.toObject = function toObject() { - return {}; - }; + ImportFeatureValuesRequest.prototype.entityIdField = ""; /** - * Converts this BatchReadFeatureValuesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse + * ImportFeatureValuesRequest featureSpecs. + * @member {Array.} featureSpecs + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @instance - * @returns {Object.} JSON object */ - BatchReadFeatureValuesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return BatchReadFeatureValuesResponse; - })(); - - v1beta1.CreateEntityTypeRequest = (function() { + ImportFeatureValuesRequest.prototype.featureSpecs = $util.emptyArray; /** - * Properties of a CreateEntityTypeRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateEntityTypeRequest - * @property {string|null} [parent] CreateEntityTypeRequest parent - * @property {google.cloud.aiplatform.v1beta1.IEntityType|null} [entityType] CreateEntityTypeRequest entityType - * @property {string|null} [entityTypeId] CreateEntityTypeRequest entityTypeId + * ImportFeatureValuesRequest disableOnlineServing. + * @member {boolean} disableOnlineServing + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance */ + ImportFeatureValuesRequest.prototype.disableOnlineServing = false; /** - * Constructs a new CreateEntityTypeRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateEntityTypeRequest. - * @implements ICreateEntityTypeRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * ImportFeatureValuesRequest workerCount. + * @member {number} workerCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @instance */ - function CreateEntityTypeRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + ImportFeatureValuesRequest.prototype.workerCount = 0; /** - * CreateEntityTypeRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * ImportFeatureValuesRequest disableIngestionAnalysis. + * @member {boolean} disableIngestionAnalysis + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @instance */ - CreateEntityTypeRequest.prototype.parent = ""; + ImportFeatureValuesRequest.prototype.disableIngestionAnalysis = false; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * CreateEntityTypeRequest entityType. - * @member {google.cloud.aiplatform.v1beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * ImportFeatureValuesRequest source. + * @member {"avroSource"|"bigquerySource"|"csvSource"|undefined} source + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @instance */ - CreateEntityTypeRequest.prototype.entityType = null; + Object.defineProperty(ImportFeatureValuesRequest.prototype, "source", { + get: $util.oneOfGetter($oneOfFields = ["avroSource", "bigquerySource", "csvSource"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * CreateEntityTypeRequest entityTypeId. - * @member {string} entityTypeId - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * ImportFeatureValuesRequest featureTimeSource. + * @member {"featureTimeField"|"featureTime"|undefined} featureTimeSource + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @instance */ - CreateEntityTypeRequest.prototype.entityTypeId = ""; + Object.defineProperty(ImportFeatureValuesRequest.prototype, "featureTimeSource", { + get: $util.oneOfGetter($oneOfFields = ["featureTimeField", "featureTime"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new CreateEntityTypeRequest instance using the specified properties. + * Creates a new ImportFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest instance + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest instance */ - CreateEntityTypeRequest.create = function create(properties) { - return new CreateEntityTypeRequest(properties); + ImportFeatureValuesRequest.create = function create(properties) { + return new ImportFeatureValuesRequest(properties); }; /** - * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified ImportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest} message ImportFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeRequest.encode = function encode(message, writer) { + ImportFeatureValuesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.aiplatform.v1beta1.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.entityTypeId != null && Object.hasOwnProperty.call(message, "entityTypeId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityTypeId); + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.avroSource != null && Object.hasOwnProperty.call(message, "avroSource")) + $root.google.cloud.aiplatform.v1beta1.AvroSource.encode(message.avroSource, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) + $root.google.cloud.aiplatform.v1beta1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.csvSource != null && Object.hasOwnProperty.call(message, "csvSource")) + $root.google.cloud.aiplatform.v1beta1.CsvSource.encode(message.csvSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.entityIdField != null && Object.hasOwnProperty.call(message, "entityIdField")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.entityIdField); + if (message.featureTimeField != null && Object.hasOwnProperty.call(message, "featureTimeField")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.featureTimeField); + if (message.featureTime != null && Object.hasOwnProperty.call(message, "featureTime")) + $root.google.protobuf.Timestamp.encode(message.featureTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.featureSpecs != null && message.featureSpecs.length) + for (var i = 0; i < message.featureSpecs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.encode(message.featureSpecs[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.disableOnlineServing != null && Object.hasOwnProperty.call(message, "disableOnlineServing")) + writer.uint32(/* id 9, wireType 0 =*/72).bool(message.disableOnlineServing); + if (message.workerCount != null && Object.hasOwnProperty.call(message, "workerCount")) + writer.uint32(/* id 11, wireType 0 =*/88).int32(message.workerCount); + if (message.disableIngestionAnalysis != null && Object.hasOwnProperty.call(message, "disableIngestionAnalysis")) + writer.uint32(/* id 12, wireType 0 =*/96).bool(message.disableIngestionAnalysis); return writer; }; /** - * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. + * Encodes the specified ImportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesRequest} message ImportFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeRequest.decode = function decode(reader, length) { + ImportFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; case 2: - message.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.decode(reader, reader.uint32()); + message.avroSource = $root.google.cloud.aiplatform.v1beta1.AvroSource.decode(reader, reader.uint32()); break; case 3: - message.entityTypeId = reader.string(); + message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.decode(reader, reader.uint32()); + break; + case 4: + message.csvSource = $root.google.cloud.aiplatform.v1beta1.CsvSource.decode(reader, reader.uint32()); + break; + case 6: + message.featureTimeField = reader.string(); + break; + case 7: + message.featureTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 1: + message.entityType = reader.string(); + break; + case 5: + message.entityIdField = reader.string(); + break; + case 8: + if (!(message.featureSpecs && message.featureSpecs.length)) + message.featureSpecs = []; + message.featureSpecs.push($root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.decode(reader, reader.uint32())); + break; + case 9: + message.disableOnlineServing = reader.bool(); + break; + case 11: + message.workerCount = reader.int32(); + break; + case 12: + message.disableIngestionAnalysis = reader.bool(); break; default: reader.skipType(tag & 7); @@ -193684,129 +198321,469 @@ }; /** - * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ImportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEntityTypeRequest message. + * Verifies an ImportFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEntityTypeRequest.verify = function verify(message) { + ImportFeatureValuesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.aiplatform.v1beta1.EntityType.verify(message.entityType); - if (error) - return "entityType." + error; + var properties = {}; + if (message.avroSource != null && message.hasOwnProperty("avroSource")) { + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.AvroSource.verify(message.avroSource); + if (error) + return "avroSource." + error; + } } - if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) - if (!$util.isString(message.entityTypeId)) - return "entityTypeId: string expected"; + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.verify(message.bigquerySource); + if (error) + return "bigquerySource." + error; + } + } + if (message.csvSource != null && message.hasOwnProperty("csvSource")) { + if (properties.source === 1) + return "source: multiple values"; + properties.source = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.CsvSource.verify(message.csvSource); + if (error) + return "csvSource." + error; + } + } + if (message.featureTimeField != null && message.hasOwnProperty("featureTimeField")) { + properties.featureTimeSource = 1; + if (!$util.isString(message.featureTimeField)) + return "featureTimeField: string expected"; + } + if (message.featureTime != null && message.hasOwnProperty("featureTime")) { + if (properties.featureTimeSource === 1) + return "featureTimeSource: multiple values"; + properties.featureTimeSource = 1; + { + var error = $root.google.protobuf.Timestamp.verify(message.featureTime); + if (error) + return "featureTime." + error; + } + } + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) + if (!$util.isString(message.entityIdField)) + return "entityIdField: string expected"; + if (message.featureSpecs != null && message.hasOwnProperty("featureSpecs")) { + if (!Array.isArray(message.featureSpecs)) + return "featureSpecs: array expected"; + for (var i = 0; i < message.featureSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify(message.featureSpecs[i]); + if (error) + return "featureSpecs." + error; + } + } + if (message.disableOnlineServing != null && message.hasOwnProperty("disableOnlineServing")) + if (typeof message.disableOnlineServing !== "boolean") + return "disableOnlineServing: boolean expected"; + if (message.workerCount != null && message.hasOwnProperty("workerCount")) + if (!$util.isInteger(message.workerCount)) + return "workerCount: integer expected"; + if (message.disableIngestionAnalysis != null && message.hasOwnProperty("disableIngestionAnalysis")) + if (typeof message.disableIngestionAnalysis !== "boolean") + return "disableIngestionAnalysis: boolean expected"; return null; }; /** - * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} ImportFeatureValuesRequest */ - CreateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) + ImportFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.entityType != null) { - if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.fromObject(object.entityType); + var message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest(); + if (object.avroSource != null) { + if (typeof object.avroSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.avroSource: object expected"); + message.avroSource = $root.google.cloud.aiplatform.v1beta1.AvroSource.fromObject(object.avroSource); } - if (object.entityTypeId != null) - message.entityTypeId = String(object.entityTypeId); + if (object.bigquerySource != null) { + if (typeof object.bigquerySource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.bigquerySource: object expected"); + message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.fromObject(object.bigquerySource); + } + if (object.csvSource != null) { + if (typeof object.csvSource !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.csvSource: object expected"); + message.csvSource = $root.google.cloud.aiplatform.v1beta1.CsvSource.fromObject(object.csvSource); + } + if (object.featureTimeField != null) + message.featureTimeField = String(object.featureTimeField); + if (object.featureTime != null) { + if (typeof object.featureTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.featureTime: object expected"); + message.featureTime = $root.google.protobuf.Timestamp.fromObject(object.featureTime); + } + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.entityIdField != null) + message.entityIdField = String(object.entityIdField); + if (object.featureSpecs) { + if (!Array.isArray(object.featureSpecs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.featureSpecs: array expected"); + message.featureSpecs = []; + for (var i = 0; i < object.featureSpecs.length; ++i) { + if (typeof object.featureSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.featureSpecs: object expected"); + message.featureSpecs[i] = $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.fromObject(object.featureSpecs[i]); + } + } + if (object.disableOnlineServing != null) + message.disableOnlineServing = Boolean(object.disableOnlineServing); + if (object.workerCount != null) + message.workerCount = object.workerCount | 0; + if (object.disableIngestionAnalysis != null) + message.disableIngestionAnalysis = Boolean(object.disableIngestionAnalysis); return message; }; /** - * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest} message ImportFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEntityTypeRequest.toObject = function toObject(message, options) { + ImportFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.featureSpecs = []; if (options.defaults) { - object.parent = ""; - object.entityType = null; - object.entityTypeId = ""; + object.entityType = ""; + object.entityIdField = ""; + object.disableOnlineServing = false; + object.workerCount = 0; + object.disableIngestionAnalysis = false; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.toObject(message.entityType, options); - if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) - object.entityTypeId = message.entityTypeId; + object.entityType = message.entityType; + if (message.avroSource != null && message.hasOwnProperty("avroSource")) { + object.avroSource = $root.google.cloud.aiplatform.v1beta1.AvroSource.toObject(message.avroSource, options); + if (options.oneofs) + object.source = "avroSource"; + } + if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { + object.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.toObject(message.bigquerySource, options); + if (options.oneofs) + object.source = "bigquerySource"; + } + if (message.csvSource != null && message.hasOwnProperty("csvSource")) { + object.csvSource = $root.google.cloud.aiplatform.v1beta1.CsvSource.toObject(message.csvSource, options); + if (options.oneofs) + object.source = "csvSource"; + } + if (message.entityIdField != null && message.hasOwnProperty("entityIdField")) + object.entityIdField = message.entityIdField; + if (message.featureTimeField != null && message.hasOwnProperty("featureTimeField")) { + object.featureTimeField = message.featureTimeField; + if (options.oneofs) + object.featureTimeSource = "featureTimeField"; + } + if (message.featureTime != null && message.hasOwnProperty("featureTime")) { + object.featureTime = $root.google.protobuf.Timestamp.toObject(message.featureTime, options); + if (options.oneofs) + object.featureTimeSource = "featureTime"; + } + if (message.featureSpecs && message.featureSpecs.length) { + object.featureSpecs = []; + for (var j = 0; j < message.featureSpecs.length; ++j) + object.featureSpecs[j] = $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.toObject(message.featureSpecs[j], options); + } + if (message.disableOnlineServing != null && message.hasOwnProperty("disableOnlineServing")) + object.disableOnlineServing = message.disableOnlineServing; + if (message.workerCount != null && message.hasOwnProperty("workerCount")) + object.workerCount = message.workerCount; + if (message.disableIngestionAnalysis != null && message.hasOwnProperty("disableIngestionAnalysis")) + object.disableIngestionAnalysis = message.disableIngestionAnalysis; return object; }; /** - * Converts this CreateEntityTypeRequest to JSON. + * Converts this ImportFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - CreateEntityTypeRequest.prototype.toJSON = function toJSON() { + ImportFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEntityTypeRequest; + ImportFeatureValuesRequest.FeatureSpec = (function() { + + /** + * Properties of a FeatureSpec. + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @interface IFeatureSpec + * @property {string|null} [id] FeatureSpec id + * @property {string|null} [sourceField] FeatureSpec sourceField + */ + + /** + * Constructs a new FeatureSpec. + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest + * @classdesc Represents a FeatureSpec. + * @implements IFeatureSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec=} [properties] Properties to set + */ + function FeatureSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FeatureSpec id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @instance + */ + FeatureSpec.prototype.id = ""; + + /** + * FeatureSpec sourceField. + * @member {string} sourceField + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @instance + */ + FeatureSpec.prototype.sourceField = ""; + + /** + * Creates a new FeatureSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec instance + */ + FeatureSpec.create = function create(properties) { + return new FeatureSpec(properties); + }; + + /** + * Encodes the specified FeatureSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec} message FeatureSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.sourceField != null && Object.hasOwnProperty.call(message, "sourceField")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.sourceField); + return writer; + }; + + /** + * Encodes the specified FeatureSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.IFeatureSpec} message FeatureSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FeatureSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FeatureSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.id = reader.string(); + break; + case 2: + message.sourceField = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FeatureSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FeatureSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FeatureSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FeatureSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.sourceField != null && message.hasOwnProperty("sourceField")) + if (!$util.isString(message.sourceField)) + return "sourceField: string expected"; + return null; + }; + + /** + * Creates a FeatureSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} FeatureSpec + */ + FeatureSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec(); + if (object.id != null) + message.id = String(object.id); + if (object.sourceField != null) + message.sourceField = String(object.sourceField); + return message; + }; + + /** + * Creates a plain object from a FeatureSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec} message FeatureSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FeatureSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.id = ""; + object.sourceField = ""; + } + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.sourceField != null && message.hasOwnProperty("sourceField")) + object.sourceField = message.sourceField; + return object; + }; + + /** + * Converts this FeatureSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesRequest.FeatureSpec + * @instance + * @returns {Object.} JSON object + */ + FeatureSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FeatureSpec; + })(); + + return ImportFeatureValuesRequest; })(); - v1beta1.GetEntityTypeRequest = (function() { + v1beta1.ImportFeatureValuesResponse = (function() { /** - * Properties of a GetEntityTypeRequest. + * Properties of an ImportFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetEntityTypeRequest - * @property {string|null} [name] GetEntityTypeRequest name + * @interface IImportFeatureValuesResponse + * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesResponse importedEntityCount + * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesResponse importedFeatureValueCount + * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesResponse invalidRowCount */ /** - * Constructs a new GetEntityTypeRequest. + * Constructs a new ImportFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetEntityTypeRequest. - * @implements IGetEntityTypeRequest + * @classdesc Represents an ImportFeatureValuesResponse. + * @implements IImportFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse=} [properties] Properties to set */ - function GetEntityTypeRequest(properties) { + function ImportFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -193814,75 +198791,101 @@ } /** - * GetEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * ImportFeatureValuesResponse importedEntityCount. + * @member {number|Long} importedEntityCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @instance */ - GetEntityTypeRequest.prototype.name = ""; + ImportFeatureValuesResponse.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new GetEntityTypeRequest instance using the specified properties. + * ImportFeatureValuesResponse importedFeatureValueCount. + * @member {number|Long} importedFeatureValueCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @instance + */ + ImportFeatureValuesResponse.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ImportFeatureValuesResponse invalidRowCount. + * @member {number|Long} invalidRowCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse + * @instance + */ + ImportFeatureValuesResponse.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * Creates a new ImportFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest instance + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse instance */ - GetEntityTypeRequest.create = function create(properties) { - return new GetEntityTypeRequest(properties); + ImportFeatureValuesResponse.create = function create(properties) { + return new ImportFeatureValuesResponse(properties); }; /** - * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified ImportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse} message ImportFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEntityTypeRequest.encode = function encode(message, writer) { + ImportFeatureValuesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.importedEntityCount != null && Object.hasOwnProperty.call(message, "importedEntityCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.importedEntityCount); + if (message.importedFeatureValueCount != null && Object.hasOwnProperty.call(message, "importedFeatureValueCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.importedFeatureValueCount); + if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); return writer; }; /** - * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. + * Encodes the specified ImportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesResponse} message ImportFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + ImportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEntityTypeRequest.decode = function decode(reader, length) { + ImportFeatureValuesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.importedEntityCount = reader.int64(); + break; + case 2: + message.importedFeatureValueCount = reader.int64(); + break; + case 6: + message.invalidRowCount = reader.int64(); break; default: reader.skipType(tag & 7); @@ -193893,112 +198896,173 @@ }; /** - * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + ImportFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetEntityTypeRequest message. + * Verifies an ImportFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetEntityTypeRequest.verify = function verify(message) { + ImportFeatureValuesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) + if (!$util.isInteger(message.importedEntityCount) && !(message.importedEntityCount && $util.isInteger(message.importedEntityCount.low) && $util.isInteger(message.importedEntityCount.high))) + return "importedEntityCount: integer|Long expected"; + if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) + if (!$util.isInteger(message.importedFeatureValueCount) && !(message.importedFeatureValueCount && $util.isInteger(message.importedFeatureValueCount.low) && $util.isInteger(message.importedFeatureValueCount.high))) + return "importedFeatureValueCount: integer|Long expected"; + if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) + if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) + return "invalidRowCount: integer|Long expected"; return null; }; /** - * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} ImportFeatureValuesResponse */ - GetEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) + ImportFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse(); + if (object.importedEntityCount != null) + if ($util.Long) + (message.importedEntityCount = $util.Long.fromValue(object.importedEntityCount)).unsigned = false; + else if (typeof object.importedEntityCount === "string") + message.importedEntityCount = parseInt(object.importedEntityCount, 10); + else if (typeof object.importedEntityCount === "number") + message.importedEntityCount = object.importedEntityCount; + else if (typeof object.importedEntityCount === "object") + message.importedEntityCount = new $util.LongBits(object.importedEntityCount.low >>> 0, object.importedEntityCount.high >>> 0).toNumber(); + if (object.importedFeatureValueCount != null) + if ($util.Long) + (message.importedFeatureValueCount = $util.Long.fromValue(object.importedFeatureValueCount)).unsigned = false; + else if (typeof object.importedFeatureValueCount === "string") + message.importedFeatureValueCount = parseInt(object.importedFeatureValueCount, 10); + else if (typeof object.importedFeatureValueCount === "number") + message.importedFeatureValueCount = object.importedFeatureValueCount; + else if (typeof object.importedFeatureValueCount === "object") + message.importedFeatureValueCount = new $util.LongBits(object.importedFeatureValueCount.low >>> 0, object.importedFeatureValueCount.high >>> 0).toNumber(); + if (object.invalidRowCount != null) + if ($util.Long) + (message.invalidRowCount = $util.Long.fromValue(object.invalidRowCount)).unsigned = false; + else if (typeof object.invalidRowCount === "string") + message.invalidRowCount = parseInt(object.invalidRowCount, 10); + else if (typeof object.invalidRowCount === "number") + message.invalidRowCount = object.invalidRowCount; + else if (typeof object.invalidRowCount === "object") + message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from an ImportFeatureValuesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} message GetEntityTypeRequest + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse} message ImportFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetEntityTypeRequest.toObject = function toObject(message, options) { + ImportFeatureValuesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.importedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.importedEntityCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.importedFeatureValueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.importedFeatureValueCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.invalidRowCount = options.longs === String ? "0" : 0; + } + if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) + if (typeof message.importedEntityCount === "number") + object.importedEntityCount = options.longs === String ? String(message.importedEntityCount) : message.importedEntityCount; + else + object.importedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedEntityCount) : options.longs === Number ? new $util.LongBits(message.importedEntityCount.low >>> 0, message.importedEntityCount.high >>> 0).toNumber() : message.importedEntityCount; + if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) + if (typeof message.importedFeatureValueCount === "number") + object.importedFeatureValueCount = options.longs === String ? String(message.importedFeatureValueCount) : message.importedFeatureValueCount; + else + object.importedFeatureValueCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedFeatureValueCount) : options.longs === Number ? new $util.LongBits(message.importedFeatureValueCount.low >>> 0, message.importedFeatureValueCount.high >>> 0).toNumber() : message.importedFeatureValueCount; + if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) + if (typeof message.invalidRowCount === "number") + object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; + else + object.invalidRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRowCount) : options.longs === Number ? new $util.LongBits(message.invalidRowCount.low >>> 0, message.invalidRowCount.high >>> 0).toNumber() : message.invalidRowCount; return object; }; /** - * Converts this GetEntityTypeRequest to JSON. + * Converts this ImportFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - GetEntityTypeRequest.prototype.toJSON = function toJSON() { + ImportFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetEntityTypeRequest; + return ImportFeatureValuesResponse; })(); - v1beta1.ListEntityTypesRequest = (function() { + v1beta1.BatchReadFeatureValuesRequest = (function() { /** - * Properties of a ListEntityTypesRequest. + * Properties of a BatchReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListEntityTypesRequest - * @property {string|null} [parent] ListEntityTypesRequest parent - * @property {string|null} [filter] ListEntityTypesRequest filter - * @property {number|null} [pageSize] ListEntityTypesRequest pageSize - * @property {string|null} [pageToken] ListEntityTypesRequest pageToken - * @property {string|null} [orderBy] ListEntityTypesRequest orderBy - * @property {google.protobuf.IFieldMask|null} [readMask] ListEntityTypesRequest readMask + * @interface IBatchReadFeatureValuesRequest + * @property {google.cloud.aiplatform.v1beta1.ICsvSource|null} [csvReadInstances] BatchReadFeatureValuesRequest csvReadInstances + * @property {google.cloud.aiplatform.v1beta1.IBigQuerySource|null} [bigqueryReadInstances] BatchReadFeatureValuesRequest bigqueryReadInstances + * @property {string|null} [featurestore] BatchReadFeatureValuesRequest featurestore + * @property {google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null} [destination] BatchReadFeatureValuesRequest destination + * @property {Array.|null} [passThroughFields] BatchReadFeatureValuesRequest passThroughFields + * @property {Array.|null} [entityTypeSpecs] BatchReadFeatureValuesRequest entityTypeSpecs */ /** - * Constructs a new ListEntityTypesRequest. + * Constructs a new BatchReadFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListEntityTypesRequest. - * @implements IListEntityTypesRequest + * @classdesc Represents a BatchReadFeatureValuesRequest. + * @implements IBatchReadFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest=} [properties] Properties to set */ - function ListEntityTypesRequest(properties) { + function BatchReadFeatureValuesRequest(properties) { + this.passThroughFields = []; + this.entityTypeSpecs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -194006,140 +199070,160 @@ } /** - * ListEntityTypesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * BatchReadFeatureValuesRequest csvReadInstances. + * @member {google.cloud.aiplatform.v1beta1.ICsvSource|null|undefined} csvReadInstances + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - ListEntityTypesRequest.prototype.parent = ""; + BatchReadFeatureValuesRequest.prototype.csvReadInstances = null; /** - * ListEntityTypesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * BatchReadFeatureValuesRequest bigqueryReadInstances. + * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigqueryReadInstances + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - ListEntityTypesRequest.prototype.filter = ""; + BatchReadFeatureValuesRequest.prototype.bigqueryReadInstances = null; /** - * ListEntityTypesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * BatchReadFeatureValuesRequest featurestore. + * @member {string} featurestore + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - ListEntityTypesRequest.prototype.pageSize = 0; + BatchReadFeatureValuesRequest.prototype.featurestore = ""; /** - * ListEntityTypesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * BatchReadFeatureValuesRequest destination. + * @member {google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null|undefined} destination + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - ListEntityTypesRequest.prototype.pageToken = ""; + BatchReadFeatureValuesRequest.prototype.destination = null; /** - * ListEntityTypesRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * BatchReadFeatureValuesRequest passThroughFields. + * @member {Array.} passThroughFields + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - ListEntityTypesRequest.prototype.orderBy = ""; + BatchReadFeatureValuesRequest.prototype.passThroughFields = $util.emptyArray; /** - * ListEntityTypesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * BatchReadFeatureValuesRequest entityTypeSpecs. + * @member {Array.} entityTypeSpecs + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance */ - ListEntityTypesRequest.prototype.readMask = null; + BatchReadFeatureValuesRequest.prototype.entityTypeSpecs = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; /** - * Creates a new ListEntityTypesRequest instance using the specified properties. + * BatchReadFeatureValuesRequest readOption. + * @member {"csvReadInstances"|"bigqueryReadInstances"|undefined} readOption + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @instance + */ + Object.defineProperty(BatchReadFeatureValuesRequest.prototype, "readOption", { + get: $util.oneOfGetter($oneOfFields = ["csvReadInstances", "bigqueryReadInstances"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new BatchReadFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest instance */ - ListEntityTypesRequest.create = function create(properties) { - return new ListEntityTypesRequest(properties); + BatchReadFeatureValuesRequest.create = function create(properties) { + return new BatchReadFeatureValuesRequest(properties); }; /** - * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. + * Encodes the specified BatchReadFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesRequest.encode = function encode(message, writer) { + BatchReadFeatureValuesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + if (message.featurestore != null && Object.hasOwnProperty.call(message, "featurestore")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featurestore); + if (message.csvReadInstances != null && Object.hasOwnProperty.call(message, "csvReadInstances")) + $root.google.cloud.aiplatform.v1beta1.CsvSource.encode(message.csvReadInstances, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) + $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.encode(message.destination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.bigqueryReadInstances != null && Object.hasOwnProperty.call(message, "bigqueryReadInstances")) + $root.google.cloud.aiplatform.v1beta1.BigQuerySource.encode(message.bigqueryReadInstances, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.entityTypeSpecs != null && message.entityTypeSpecs.length) + for (var i = 0; i < message.entityTypeSpecs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.encode(message.entityTypeSpecs[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.passThroughFields != null && message.passThroughFields.length) + for (var i = 0; i < message.passThroughFields.length; ++i) + $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.encode(message.passThroughFields[i], writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchReadFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchReadFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesRequest.decode = function decode(reader, length) { + BatchReadFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); + case 3: + message.csvReadInstances = $root.google.cloud.aiplatform.v1beta1.CsvSource.decode(reader, reader.uint32()); break; - case 2: - message.filter = reader.string(); + case 5: + message.bigqueryReadInstances = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.decode(reader, reader.uint32()); break; - case 3: - message.pageSize = reader.int32(); + case 1: + message.featurestore = reader.string(); break; case 4: - message.pageToken = reader.string(); + message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.decode(reader, reader.uint32()); break; - case 5: - message.orderBy = reader.string(); + case 8: + if (!(message.passThroughFields && message.passThroughFields.length)) + message.passThroughFields = []; + message.passThroughFields.push($root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.decode(reader, reader.uint32())); break; - case 6: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 7: + if (!(message.entityTypeSpecs && message.entityTypeSpecs.length)) + message.entityTypeSpecs = []; + message.entityTypeSpecs.push($root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -194150,155 +199234,664 @@ }; /** - * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { + BatchReadFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEntityTypesRequest message. + * Verifies a BatchReadFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEntityTypesRequest.verify = function verify(message) { + BatchReadFeatureValuesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + var properties = {}; + if (message.csvReadInstances != null && message.hasOwnProperty("csvReadInstances")) { + properties.readOption = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.CsvSource.verify(message.csvReadInstances); + if (error) + return "csvReadInstances." + error; + } + } + if (message.bigqueryReadInstances != null && message.hasOwnProperty("bigqueryReadInstances")) { + if (properties.readOption === 1) + return "readOption: multiple values"; + properties.readOption = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.verify(message.bigqueryReadInstances); + if (error) + return "bigqueryReadInstances." + error; + } + } + if (message.featurestore != null && message.hasOwnProperty("featurestore")) + if (!$util.isString(message.featurestore)) + return "featurestore: string expected"; + if (message.destination != null && message.hasOwnProperty("destination")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify(message.destination); if (error) - return "readMask." + error; + return "destination." + error; + } + if (message.passThroughFields != null && message.hasOwnProperty("passThroughFields")) { + if (!Array.isArray(message.passThroughFields)) + return "passThroughFields: array expected"; + for (var i = 0; i < message.passThroughFields.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify(message.passThroughFields[i]); + if (error) + return "passThroughFields." + error; + } + } + if (message.entityTypeSpecs != null && message.hasOwnProperty("entityTypeSpecs")) { + if (!Array.isArray(message.entityTypeSpecs)) + return "entityTypeSpecs: array expected"; + for (var i = 0; i < message.entityTypeSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify(message.entityTypeSpecs[i]); + if (error) + return "entityTypeSpecs." + error; + } } return null; }; /** - * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} BatchReadFeatureValuesRequest */ - ListEntityTypesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) + BatchReadFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest(); + if (object.csvReadInstances != null) { + if (typeof object.csvReadInstances !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.csvReadInstances: object expected"); + message.csvReadInstances = $root.google.cloud.aiplatform.v1beta1.CsvSource.fromObject(object.csvReadInstances); + } + if (object.bigqueryReadInstances != null) { + if (typeof object.bigqueryReadInstances !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.bigqueryReadInstances: object expected"); + message.bigqueryReadInstances = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.fromObject(object.bigqueryReadInstances); + } + if (object.featurestore != null) + message.featurestore = String(object.featurestore); + if (object.destination != null) { + if (typeof object.destination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.destination: object expected"); + message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.fromObject(object.destination); + } + if (object.passThroughFields) { + if (!Array.isArray(object.passThroughFields)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.passThroughFields: array expected"); + message.passThroughFields = []; + for (var i = 0; i < object.passThroughFields.length; ++i) { + if (typeof object.passThroughFields[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.passThroughFields: object expected"); + message.passThroughFields[i] = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.fromObject(object.passThroughFields[i]); + } + } + if (object.entityTypeSpecs) { + if (!Array.isArray(object.entityTypeSpecs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.entityTypeSpecs: array expected"); + message.entityTypeSpecs = []; + for (var i = 0; i < object.entityTypeSpecs.length; ++i) { + if (typeof object.entityTypeSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.entityTypeSpecs: object expected"); + message.entityTypeSpecs[i] = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.fromObject(object.entityTypeSpecs[i]); + } } return message; }; /** - * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchReadFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} message ListEntityTypesRequest + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest} message BatchReadFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEntityTypesRequest.toObject = function toObject(message, options) { + BatchReadFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) { + object.entityTypeSpecs = []; + object.passThroughFields = []; + } if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.orderBy = ""; - object.readMask = null; + object.featurestore = ""; + object.destination = null; + } + if (message.featurestore != null && message.hasOwnProperty("featurestore")) + object.featurestore = message.featurestore; + if (message.csvReadInstances != null && message.hasOwnProperty("csvReadInstances")) { + object.csvReadInstances = $root.google.cloud.aiplatform.v1beta1.CsvSource.toObject(message.csvReadInstances, options); + if (options.oneofs) + object.readOption = "csvReadInstances"; + } + if (message.destination != null && message.hasOwnProperty("destination")) + object.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.toObject(message.destination, options); + if (message.bigqueryReadInstances != null && message.hasOwnProperty("bigqueryReadInstances")) { + object.bigqueryReadInstances = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.toObject(message.bigqueryReadInstances, options); + if (options.oneofs) + object.readOption = "bigqueryReadInstances"; + } + if (message.entityTypeSpecs && message.entityTypeSpecs.length) { + object.entityTypeSpecs = []; + for (var j = 0; j < message.entityTypeSpecs.length; ++j) + object.entityTypeSpecs[j] = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.toObject(message.entityTypeSpecs[j], options); + } + if (message.passThroughFields && message.passThroughFields.length) { + object.passThroughFields = []; + for (var j = 0; j < message.passThroughFields.length; ++j) + object.passThroughFields[j] = $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.toObject(message.passThroughFields[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this ListEntityTypesRequest to JSON. + * Converts this BatchReadFeatureValuesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest * @instance * @returns {Object.} JSON object */ - ListEntityTypesRequest.prototype.toJSON = function toJSON() { + BatchReadFeatureValuesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListEntityTypesRequest; + BatchReadFeatureValuesRequest.PassThroughField = (function() { + + /** + * Properties of a PassThroughField. + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @interface IPassThroughField + * @property {string|null} [fieldName] PassThroughField fieldName + */ + + /** + * Constructs a new PassThroughField. + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @classdesc Represents a PassThroughField. + * @implements IPassThroughField + * @constructor + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField=} [properties] Properties to set + */ + function PassThroughField(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * PassThroughField fieldName. + * @member {string} fieldName + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + * @instance + */ + PassThroughField.prototype.fieldName = ""; + + /** + * Creates a new PassThroughField instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField instance + */ + PassThroughField.create = function create(properties) { + return new PassThroughField(properties); + }; + + /** + * Encodes the specified PassThroughField message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField} message PassThroughField message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PassThroughField.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.fieldName != null && Object.hasOwnProperty.call(message, "fieldName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.fieldName); + return writer; + }; + + /** + * Encodes the specified PassThroughField message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IPassThroughField} message PassThroughField message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PassThroughField.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PassThroughField message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PassThroughField.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.fieldName = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PassThroughField message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PassThroughField.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PassThroughField message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PassThroughField.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + if (!$util.isString(message.fieldName)) + return "fieldName: string expected"; + return null; + }; + + /** + * Creates a PassThroughField message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} PassThroughField + */ + PassThroughField.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField(); + if (object.fieldName != null) + message.fieldName = String(object.fieldName); + return message; + }; + + /** + * Creates a plain object from a PassThroughField message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField} message PassThroughField + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PassThroughField.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.fieldName = ""; + if (message.fieldName != null && message.hasOwnProperty("fieldName")) + object.fieldName = message.fieldName; + return object; + }; + + /** + * Converts this PassThroughField to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.PassThroughField + * @instance + * @returns {Object.} JSON object + */ + PassThroughField.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PassThroughField; + })(); + + BatchReadFeatureValuesRequest.EntityTypeSpec = (function() { + + /** + * Properties of an EntityTypeSpec. + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @interface IEntityTypeSpec + * @property {string|null} [entityTypeId] EntityTypeSpec entityTypeId + * @property {google.cloud.aiplatform.v1beta1.IFeatureSelector|null} [featureSelector] EntityTypeSpec featureSelector + * @property {Array.|null} [settings] EntityTypeSpec settings + */ + + /** + * Constructs a new EntityTypeSpec. + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest + * @classdesc Represents an EntityTypeSpec. + * @implements IEntityTypeSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec=} [properties] Properties to set + */ + function EntityTypeSpec(properties) { + this.settings = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * EntityTypeSpec entityTypeId. + * @member {string} entityTypeId + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @instance + */ + EntityTypeSpec.prototype.entityTypeId = ""; + + /** + * EntityTypeSpec featureSelector. + * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @instance + */ + EntityTypeSpec.prototype.featureSelector = null; + + /** + * EntityTypeSpec settings. + * @member {Array.} settings + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @instance + */ + EntityTypeSpec.prototype.settings = $util.emptyArray; + + /** + * Creates a new EntityTypeSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec instance + */ + EntityTypeSpec.create = function create(properties) { + return new EntityTypeSpec(properties); + }; + + /** + * Encodes the specified EntityTypeSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec} message EntityTypeSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityTypeSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.entityTypeId != null && Object.hasOwnProperty.call(message, "entityTypeId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityTypeId); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1beta1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.settings != null && message.settings.length) + for (var i = 0; i < message.settings.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.encode(message.settings[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified EntityTypeSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.IEntityTypeSpec} message EntityTypeSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + EntityTypeSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an EntityTypeSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityTypeSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.entityTypeId = reader.string(); + break; + case 2: + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); + break; + case 3: + if (!(message.settings && message.settings.length)) + message.settings = []; + message.settings.push($root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an EntityTypeSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + EntityTypeSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an EntityTypeSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + EntityTypeSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) + if (!$util.isString(message.entityTypeId)) + return "entityTypeId: string expected"; + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.verify(message.featureSelector); + if (error) + return "featureSelector." + error; + } + if (message.settings != null && message.hasOwnProperty("settings")) { + if (!Array.isArray(message.settings)) + return "settings: array expected"; + for (var i = 0; i < message.settings.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify(message.settings[i]); + if (error) + return "settings." + error; + } + } + return null; + }; + + /** + * Creates an EntityTypeSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} EntityTypeSpec + */ + EntityTypeSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec(); + if (object.entityTypeId != null) + message.entityTypeId = String(object.entityTypeId); + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.fromObject(object.featureSelector); + } + if (object.settings) { + if (!Array.isArray(object.settings)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.settings: array expected"); + message.settings = []; + for (var i = 0; i < object.settings.length; ++i) { + if (typeof object.settings[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec.settings: object expected"); + message.settings[i] = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.fromObject(object.settings[i]); + } + } + return message; + }; + + /** + * Creates a plain object from an EntityTypeSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec} message EntityTypeSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + EntityTypeSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.settings = []; + if (options.defaults) { + object.entityTypeId = ""; + object.featureSelector = null; + } + if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) + object.entityTypeId = message.entityTypeId; + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, options); + if (message.settings && message.settings.length) { + object.settings = []; + for (var j = 0; j < message.settings.length; ++j) + object.settings[j] = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.toObject(message.settings[j], options); + } + return object; + }; + + /** + * Converts this EntityTypeSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesRequest.EntityTypeSpec + * @instance + * @returns {Object.} JSON object + */ + EntityTypeSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return EntityTypeSpec; + })(); + + return BatchReadFeatureValuesRequest; })(); - v1beta1.ListEntityTypesResponse = (function() { + v1beta1.ExportFeatureValuesRequest = (function() { /** - * Properties of a ListEntityTypesResponse. + * Properties of an ExportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListEntityTypesResponse - * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes - * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken + * @interface IExportFeatureValuesRequest + * @property {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null} [snapshotExport] ExportFeatureValuesRequest snapshotExport + * @property {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null} [fullExport] ExportFeatureValuesRequest fullExport + * @property {string|null} [entityType] ExportFeatureValuesRequest entityType + * @property {google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null} [destination] ExportFeatureValuesRequest destination + * @property {google.cloud.aiplatform.v1beta1.IFeatureSelector|null} [featureSelector] ExportFeatureValuesRequest featureSelector + * @property {Array.|null} [settings] ExportFeatureValuesRequest settings */ /** - * Constructs a new ListEntityTypesResponse. + * Constructs a new ExportFeatureValuesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListEntityTypesResponse. - * @implements IListEntityTypesResponse + * @classdesc Represents an ExportFeatureValuesRequest. + * @implements IExportFeatureValuesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest=} [properties] Properties to set */ - function ListEntityTypesResponse(properties) { - this.entityTypes = []; + function ExportFeatureValuesRequest(properties) { + this.settings = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -194306,91 +199899,157 @@ } /** - * ListEntityTypesResponse entityTypes. - * @member {Array.} entityTypes - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * ExportFeatureValuesRequest snapshotExport. + * @member {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport|null|undefined} snapshotExport + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @instance */ - ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; + ExportFeatureValuesRequest.prototype.snapshotExport = null; /** - * ListEntityTypesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * ExportFeatureValuesRequest fullExport. + * @member {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport|null|undefined} fullExport + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @instance */ - ListEntityTypesResponse.prototype.nextPageToken = ""; + ExportFeatureValuesRequest.prototype.fullExport = null; /** - * Creates a new ListEntityTypesResponse instance using the specified properties. + * ExportFeatureValuesRequest entityType. + * @member {string} entityType + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @instance + */ + ExportFeatureValuesRequest.prototype.entityType = ""; + + /** + * ExportFeatureValuesRequest destination. + * @member {google.cloud.aiplatform.v1beta1.IFeatureValueDestination|null|undefined} destination + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @instance + */ + ExportFeatureValuesRequest.prototype.destination = null; + + /** + * ExportFeatureValuesRequest featureSelector. + * @member {google.cloud.aiplatform.v1beta1.IFeatureSelector|null|undefined} featureSelector + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @instance + */ + ExportFeatureValuesRequest.prototype.featureSelector = null; + + /** + * ExportFeatureValuesRequest settings. + * @member {Array.} settings + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @instance + */ + ExportFeatureValuesRequest.prototype.settings = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ExportFeatureValuesRequest mode. + * @member {"snapshotExport"|"fullExport"|undefined} mode + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @instance + */ + Object.defineProperty(ExportFeatureValuesRequest.prototype, "mode", { + get: $util.oneOfGetter($oneOfFields = ["snapshotExport", "fullExport"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new ExportFeatureValuesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest instance */ - ListEntityTypesResponse.create = function create(properties) { - return new ListEntityTypesResponse(properties); + ExportFeatureValuesRequest.create = function create(properties) { + return new ExportFeatureValuesRequest(properties); }; /** - * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified ExportFeatureValuesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest} message ExportFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesResponse.encode = function encode(message, writer) { + ExportFeatureValuesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityTypes != null && message.entityTypes.length) - for (var i = 0; i < message.entityTypes.length; ++i) - $root.google.cloud.aiplatform.v1beta1.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.entityType); + if (message.snapshotExport != null && Object.hasOwnProperty.call(message, "snapshotExport")) + $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.encode(message.snapshotExport, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.destination != null && Object.hasOwnProperty.call(message, "destination")) + $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.encode(message.destination, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.featureSelector != null && Object.hasOwnProperty.call(message, "featureSelector")) + $root.google.cloud.aiplatform.v1beta1.FeatureSelector.encode(message.featureSelector, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.settings != null && message.settings.length) + for (var i = 0; i < message.settings.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.encode(message.settings[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.fullExport != null && Object.hasOwnProperty.call(message, "fullExport")) + $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.encode(message.fullExport, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. + * Encodes the specified ExportFeatureValuesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesRequest} message ExportFeatureValuesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ExportFeatureValuesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesResponse.decode = function decode(reader, length) { + ExportFeatureValuesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 3: + message.snapshotExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.decode(reader, reader.uint32()); + break; + case 7: + message.fullExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.decode(reader, reader.uint32()); + break; case 1: - if (!(message.entityTypes && message.entityTypes.length)) - message.entityTypes = []; - message.entityTypes.push($root.google.cloud.aiplatform.v1beta1.EntityType.decode(reader, reader.uint32())); + message.entityType = reader.string(); break; - case 2: - message.nextPageToken = reader.string(); + case 4: + message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.decode(reader, reader.uint32()); + break; + case 5: + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.decode(reader, reader.uint32()); + break; + case 6: + if (!(message.settings && message.settings.length)) + message.settings = []; + message.settings.push($root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -194401,134 +200060,640 @@ }; /** - * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { + ExportFeatureValuesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListEntityTypesResponse message. + * Verifies an ExportFeatureValuesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListEntityTypesResponse.verify = function verify(message) { + ExportFeatureValuesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityTypes != null && message.hasOwnProperty("entityTypes")) { - if (!Array.isArray(message.entityTypes)) - return "entityTypes: array expected"; - for (var i = 0; i < message.entityTypes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.EntityType.verify(message.entityTypes[i]); + var properties = {}; + if (message.snapshotExport != null && message.hasOwnProperty("snapshotExport")) { + properties.mode = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify(message.snapshotExport); if (error) - return "entityTypes." + error; + return "snapshotExport." + error; + } + } + if (message.fullExport != null && message.hasOwnProperty("fullExport")) { + if (properties.mode === 1) + return "mode: multiple values"; + properties.mode = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify(message.fullExport); + if (error) + return "fullExport." + error; + } + } + if (message.entityType != null && message.hasOwnProperty("entityType")) + if (!$util.isString(message.entityType)) + return "entityType: string expected"; + if (message.destination != null && message.hasOwnProperty("destination")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify(message.destination); + if (error) + return "destination." + error; + } + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.verify(message.featureSelector); + if (error) + return "featureSelector." + error; + } + if (message.settings != null && message.hasOwnProperty("settings")) { + if (!Array.isArray(message.settings)) + return "settings: array expected"; + for (var i = 0; i < message.settings.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify(message.settings[i]); + if (error) + return "settings." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} ExportFeatureValuesRequest */ - ListEntityTypesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) + ExportFeatureValuesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse(); - if (object.entityTypes) { - if (!Array.isArray(object.entityTypes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.entityTypes: array expected"); - message.entityTypes = []; - for (var i = 0; i < object.entityTypes.length; ++i) { - if (typeof object.entityTypes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.entityTypes: object expected"); - message.entityTypes[i] = $root.google.cloud.aiplatform.v1beta1.EntityType.fromObject(object.entityTypes[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest(); + if (object.snapshotExport != null) { + if (typeof object.snapshotExport !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.snapshotExport: object expected"); + message.snapshotExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.fromObject(object.snapshotExport); + } + if (object.fullExport != null) { + if (typeof object.fullExport !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.fullExport: object expected"); + message.fullExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.fromObject(object.fullExport); + } + if (object.entityType != null) + message.entityType = String(object.entityType); + if (object.destination != null) { + if (typeof object.destination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.destination: object expected"); + message.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.fromObject(object.destination); + } + if (object.featureSelector != null) { + if (typeof object.featureSelector !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.featureSelector: object expected"); + message.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.fromObject(object.featureSelector); + } + if (object.settings) { + if (!Array.isArray(object.settings)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.settings: array expected"); + message.settings = []; + for (var i = 0; i < object.settings.length; ++i) { + if (typeof object.settings[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.settings: object expected"); + message.settings[i] = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.fromObject(object.settings[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. + * Creates a plain object from an ExportFeatureValuesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} message ListEntityTypesResponse + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest} message ExportFeatureValuesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListEntityTypesResponse.toObject = function toObject(message, options) { + ExportFeatureValuesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.entityTypes = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.entityTypes && message.entityTypes.length) { - object.entityTypes = []; - for (var j = 0; j < message.entityTypes.length; ++j) - object.entityTypes[j] = $root.google.cloud.aiplatform.v1beta1.EntityType.toObject(message.entityTypes[j], options); + object.settings = []; + if (options.defaults) { + object.entityType = ""; + object.destination = null; + object.featureSelector = null; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; - - /** - * Converts this ListEntityTypesResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse - * @instance - * @returns {Object.} JSON object - */ - ListEntityTypesResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = message.entityType; + if (message.snapshotExport != null && message.hasOwnProperty("snapshotExport")) { + object.snapshotExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.toObject(message.snapshotExport, options); + if (options.oneofs) + object.mode = "snapshotExport"; + } + if (message.destination != null && message.hasOwnProperty("destination")) + object.destination = $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination.toObject(message.destination, options); + if (message.featureSelector != null && message.hasOwnProperty("featureSelector")) + object.featureSelector = $root.google.cloud.aiplatform.v1beta1.FeatureSelector.toObject(message.featureSelector, options); + if (message.settings && message.settings.length) { + object.settings = []; + for (var j = 0; j < message.settings.length; ++j) + object.settings[j] = $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.toObject(message.settings[j], options); + } + if (message.fullExport != null && message.hasOwnProperty("fullExport")) { + object.fullExport = $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.toObject(message.fullExport, options); + if (options.oneofs) + object.mode = "fullExport"; + } + return object; + }; - return ListEntityTypesResponse; + /** + * Converts this ExportFeatureValuesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @instance + * @returns {Object.} JSON object + */ + ExportFeatureValuesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + ExportFeatureValuesRequest.SnapshotExport = (function() { + + /** + * Properties of a SnapshotExport. + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @interface ISnapshotExport + * @property {google.protobuf.ITimestamp|null} [snapshotTime] SnapshotExport snapshotTime + * @property {google.protobuf.ITimestamp|null} [startTime] SnapshotExport startTime + */ + + /** + * Constructs a new SnapshotExport. + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @classdesc Represents a SnapshotExport. + * @implements ISnapshotExport + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport=} [properties] Properties to set + */ + function SnapshotExport(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SnapshotExport snapshotTime. + * @member {google.protobuf.ITimestamp|null|undefined} snapshotTime + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @instance + */ + SnapshotExport.prototype.snapshotTime = null; + + /** + * SnapshotExport startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @instance + */ + SnapshotExport.prototype.startTime = null; + + /** + * Creates a new SnapshotExport instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport instance + */ + SnapshotExport.create = function create(properties) { + return new SnapshotExport(properties); + }; + + /** + * Encodes the specified SnapshotExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport} message SnapshotExport message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotExport.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.snapshotTime != null && Object.hasOwnProperty.call(message, "snapshotTime")) + $root.google.protobuf.Timestamp.encode(message.snapshotTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified SnapshotExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.ISnapshotExport} message SnapshotExport message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SnapshotExport.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SnapshotExport message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotExport.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.snapshotTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 2: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SnapshotExport message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SnapshotExport.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SnapshotExport message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SnapshotExport.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.snapshotTime != null && message.hasOwnProperty("snapshotTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.snapshotTime); + if (error) + return "snapshotTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + return null; + }; + + /** + * Creates a SnapshotExport message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} SnapshotExport + */ + SnapshotExport.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport(); + if (object.snapshotTime != null) { + if (typeof object.snapshotTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.snapshotTime: object expected"); + message.snapshotTime = $root.google.protobuf.Timestamp.fromObject(object.snapshotTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + return message; + }; + + /** + * Creates a plain object from a SnapshotExport message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport} message SnapshotExport + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SnapshotExport.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.snapshotTime = null; + object.startTime = null; + } + if (message.snapshotTime != null && message.hasOwnProperty("snapshotTime")) + object.snapshotTime = $root.google.protobuf.Timestamp.toObject(message.snapshotTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + return object; + }; + + /** + * Converts this SnapshotExport to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.SnapshotExport + * @instance + * @returns {Object.} JSON object + */ + SnapshotExport.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SnapshotExport; + })(); + + ExportFeatureValuesRequest.FullExport = (function() { + + /** + * Properties of a FullExport. + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @interface IFullExport + * @property {google.protobuf.ITimestamp|null} [startTime] FullExport startTime + * @property {google.protobuf.ITimestamp|null} [endTime] FullExport endTime + */ + + /** + * Constructs a new FullExport. + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest + * @classdesc Represents a FullExport. + * @implements IFullExport + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport=} [properties] Properties to set + */ + function FullExport(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * FullExport startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @instance + */ + FullExport.prototype.startTime = null; + + /** + * FullExport endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @instance + */ + FullExport.prototype.endTime = null; + + /** + * Creates a new FullExport instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} FullExport instance + */ + FullExport.create = function create(properties) { + return new FullExport(properties); + }; + + /** + * Encodes the specified FullExport message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport} message FullExport message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FullExport.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified FullExport message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.IFullExport} message FullExport message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + FullExport.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a FullExport message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} FullExport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FullExport.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 2: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 1: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a FullExport message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} FullExport + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + FullExport.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a FullExport message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + FullExport.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + return null; + }; + + /** + * Creates a FullExport message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} FullExport + */ + FullExport.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport(); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + return message; + }; + + /** + * Creates a plain object from a FullExport message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @static + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport} message FullExport + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + FullExport.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.endTime = null; + object.startTime = null; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + return object; + }; + + /** + * Converts this FullExport to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesRequest.FullExport + * @instance + * @returns {Object.} JSON object + */ + FullExport.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return FullExport; + })(); + + return ExportFeatureValuesRequest; })(); - v1beta1.UpdateEntityTypeRequest = (function() { + v1beta1.DestinationFeatureSetting = (function() { /** - * Properties of an UpdateEntityTypeRequest. + * Properties of a DestinationFeatureSetting. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateEntityTypeRequest - * @property {google.cloud.aiplatform.v1beta1.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask + * @interface IDestinationFeatureSetting + * @property {string|null} [featureId] DestinationFeatureSetting featureId + * @property {string|null} [destinationField] DestinationFeatureSetting destinationField */ /** - * Constructs a new UpdateEntityTypeRequest. + * Constructs a new DestinationFeatureSetting. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateEntityTypeRequest. - * @implements IUpdateEntityTypeRequest + * @classdesc Represents a DestinationFeatureSetting. + * @implements IDestinationFeatureSetting * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting=} [properties] Properties to set */ - function UpdateEntityTypeRequest(properties) { + function DestinationFeatureSetting(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -194536,88 +200701,88 @@ } /** - * UpdateEntityTypeRequest entityType. - * @member {google.cloud.aiplatform.v1beta1.IEntityType|null|undefined} entityType - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * DestinationFeatureSetting featureId. + * @member {string} featureId + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @instance */ - UpdateEntityTypeRequest.prototype.entityType = null; + DestinationFeatureSetting.prototype.featureId = ""; /** - * UpdateEntityTypeRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * DestinationFeatureSetting destinationField. + * @member {string} destinationField + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @instance */ - UpdateEntityTypeRequest.prototype.updateMask = null; + DestinationFeatureSetting.prototype.destinationField = ""; /** - * Creates a new UpdateEntityTypeRequest instance using the specified properties. + * Creates a new DestinationFeatureSetting instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting instance */ - UpdateEntityTypeRequest.create = function create(properties) { - return new UpdateEntityTypeRequest(properties); + DestinationFeatureSetting.create = function create(properties) { + return new DestinationFeatureSetting(properties); }; /** - * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified DestinationFeatureSetting message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting} message DestinationFeatureSetting message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEntityTypeRequest.encode = function encode(message, writer) { + DestinationFeatureSetting.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) - $root.google.cloud.aiplatform.v1beta1.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureId != null && Object.hasOwnProperty.call(message, "featureId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureId); + if (message.destinationField != null && Object.hasOwnProperty.call(message, "destinationField")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.destinationField); return writer; }; /** - * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. + * Encodes the specified DestinationFeatureSetting message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DestinationFeatureSetting.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDestinationFeatureSetting} message DestinationFeatureSetting message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + DestinationFeatureSetting.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEntityTypeRequest.decode = function decode(reader, length) { + DestinationFeatureSetting.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.decode(reader, reader.uint32()); + message.featureId = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.destinationField = reader.string(); break; default: reader.skipType(tag & 7); @@ -194628,127 +200793,118 @@ }; /** - * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a DestinationFeatureSetting message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + DestinationFeatureSetting.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateEntityTypeRequest message. + * Verifies a DestinationFeatureSetting message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateEntityTypeRequest.verify = function verify(message) { + DestinationFeatureSetting.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.entityType != null && message.hasOwnProperty("entityType")) { - var error = $root.google.cloud.aiplatform.v1beta1.EntityType.verify(message.entityType); - if (error) - return "entityType." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.featureId != null && message.hasOwnProperty("featureId")) + if (!$util.isString(message.featureId)) + return "featureId: string expected"; + if (message.destinationField != null && message.hasOwnProperty("destinationField")) + if (!$util.isString(message.destinationField)) + return "destinationField: string expected"; return null; }; /** - * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DestinationFeatureSetting message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} DestinationFeatureSetting */ - UpdateEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) + DestinationFeatureSetting.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest(); - if (object.entityType != null) { - if (typeof object.entityType !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.entityType: object expected"); - message.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.fromObject(object.entityType); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DestinationFeatureSetting(); + if (object.featureId != null) + message.featureId = String(object.featureId); + if (object.destinationField != null) + message.destinationField = String(object.destinationField); return message; }; /** - * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a DestinationFeatureSetting message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest + * @param {google.cloud.aiplatform.v1beta1.DestinationFeatureSetting} message DestinationFeatureSetting * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateEntityTypeRequest.toObject = function toObject(message, options) { + DestinationFeatureSetting.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.entityType = null; - object.updateMask = null; + object.featureId = ""; + object.destinationField = ""; } - if (message.entityType != null && message.hasOwnProperty("entityType")) - object.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.toObject(message.entityType, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.featureId != null && message.hasOwnProperty("featureId")) + object.featureId = message.featureId; + if (message.destinationField != null && message.hasOwnProperty("destinationField")) + object.destinationField = message.destinationField; return object; }; /** - * Converts this UpdateEntityTypeRequest to JSON. + * Converts this DestinationFeatureSetting to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.DestinationFeatureSetting * @instance * @returns {Object.} JSON object */ - UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { + DestinationFeatureSetting.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateEntityTypeRequest; + return DestinationFeatureSetting; })(); - v1beta1.DeleteEntityTypeRequest = (function() { + v1beta1.FeatureValueDestination = (function() { /** - * Properties of a DeleteEntityTypeRequest. + * Properties of a FeatureValueDestination. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteEntityTypeRequest - * @property {string|null} [name] DeleteEntityTypeRequest name - * @property {boolean|null} [force] DeleteEntityTypeRequest force + * @interface IFeatureValueDestination + * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigqueryDestination] FeatureValueDestination bigqueryDestination + * @property {google.cloud.aiplatform.v1beta1.ITFRecordDestination|null} [tfrecordDestination] FeatureValueDestination tfrecordDestination + * @property {google.cloud.aiplatform.v1beta1.ICsvDestination|null} [csvDestination] FeatureValueDestination csvDestination */ /** - * Constructs a new DeleteEntityTypeRequest. + * Constructs a new FeatureValueDestination. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteEntityTypeRequest. - * @implements IDeleteEntityTypeRequest + * @classdesc Represents a FeatureValueDestination. + * @implements IFeatureValueDestination * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination=} [properties] Properties to set */ - function DeleteEntityTypeRequest(properties) { + function FeatureValueDestination(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -194756,88 +200912,115 @@ } /** - * DeleteEntityTypeRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * FeatureValueDestination bigqueryDestination. + * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigqueryDestination + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @instance */ - DeleteEntityTypeRequest.prototype.name = ""; + FeatureValueDestination.prototype.bigqueryDestination = null; /** - * DeleteEntityTypeRequest force. - * @member {boolean} force - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * FeatureValueDestination tfrecordDestination. + * @member {google.cloud.aiplatform.v1beta1.ITFRecordDestination|null|undefined} tfrecordDestination + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @instance */ - DeleteEntityTypeRequest.prototype.force = false; + FeatureValueDestination.prototype.tfrecordDestination = null; /** - * Creates a new DeleteEntityTypeRequest instance using the specified properties. + * FeatureValueDestination csvDestination. + * @member {google.cloud.aiplatform.v1beta1.ICsvDestination|null|undefined} csvDestination + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @instance + */ + FeatureValueDestination.prototype.csvDestination = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * FeatureValueDestination destination. + * @member {"bigqueryDestination"|"tfrecordDestination"|"csvDestination"|undefined} destination + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination + * @instance + */ + Object.defineProperty(FeatureValueDestination.prototype, "destination", { + get: $util.oneOfGetter($oneOfFields = ["bigqueryDestination", "tfrecordDestination", "csvDestination"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new FeatureValueDestination instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination instance */ - DeleteEntityTypeRequest.create = function create(properties) { - return new DeleteEntityTypeRequest(properties); + FeatureValueDestination.create = function create(properties) { + return new FeatureValueDestination(properties); }; /** - * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified FeatureValueDestination message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination} message FeatureValueDestination message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEntityTypeRequest.encode = function encode(message, writer) { + FeatureValueDestination.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.force != null && Object.hasOwnProperty.call(message, "force")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); + if (message.bigqueryDestination != null && Object.hasOwnProperty.call(message, "bigqueryDestination")) + $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigqueryDestination, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.tfrecordDestination != null && Object.hasOwnProperty.call(message, "tfrecordDestination")) + $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.encode(message.tfrecordDestination, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.csvDestination != null && Object.hasOwnProperty.call(message, "csvDestination")) + $root.google.cloud.aiplatform.v1beta1.CsvDestination.encode(message.csvDestination, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. + * Encodes the specified FeatureValueDestination message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.FeatureValueDestination.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IFeatureValueDestination} message FeatureValueDestination message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { + FeatureValueDestination.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. + * Decodes a FeatureValueDestination message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEntityTypeRequest.decode = function decode(reader, length) { + FeatureValueDestination.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); break; case 2: - message.force = reader.bool(); + message.tfrecordDestination = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.decode(reader, reader.uint32()); + break; + case 3: + message.csvDestination = $root.google.cloud.aiplatform.v1beta1.CsvDestination.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -194848,118 +201031,156 @@ }; /** - * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. + * Decodes a FeatureValueDestination message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { + FeatureValueDestination.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteEntityTypeRequest message. + * Verifies a FeatureValueDestination message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteEntityTypeRequest.verify = function verify(message) { + FeatureValueDestination.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.force != null && message.hasOwnProperty("force")) - if (typeof message.force !== "boolean") - return "force: boolean expected"; + var properties = {}; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigqueryDestination); + if (error) + return "bigqueryDestination." + error; + } + } + if (message.tfrecordDestination != null && message.hasOwnProperty("tfrecordDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.verify(message.tfrecordDestination); + if (error) + return "tfrecordDestination." + error; + } + } + if (message.csvDestination != null && message.hasOwnProperty("csvDestination")) { + if (properties.destination === 1) + return "destination: multiple values"; + properties.destination = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.CsvDestination.verify(message.csvDestination); + if (error) + return "csvDestination." + error; + } + } return null; }; /** - * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureValueDestination message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest + * @returns {google.cloud.aiplatform.v1beta1.FeatureValueDestination} FeatureValueDestination */ - DeleteEntityTypeRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) + FeatureValueDestination.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest(); - if (object.name != null) - message.name = String(object.name); - if (object.force != null) - message.force = Boolean(object.force); + var message = new $root.google.cloud.aiplatform.v1beta1.FeatureValueDestination(); + if (object.bigqueryDestination != null) { + if (typeof object.bigqueryDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValueDestination.bigqueryDestination: object expected"); + message.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigqueryDestination); + } + if (object.tfrecordDestination != null) { + if (typeof object.tfrecordDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValueDestination.tfrecordDestination: object expected"); + message.tfrecordDestination = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.fromObject(object.tfrecordDestination); + } + if (object.csvDestination != null) { + if (typeof object.csvDestination !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.FeatureValueDestination.csvDestination: object expected"); + message.csvDestination = $root.google.cloud.aiplatform.v1beta1.CsvDestination.fromObject(object.csvDestination); + } return message; }; /** - * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. + * Creates a plain object from a FeatureValueDestination message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest + * @param {google.cloud.aiplatform.v1beta1.FeatureValueDestination} message FeatureValueDestination * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteEntityTypeRequest.toObject = function toObject(message, options) { + FeatureValueDestination.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.name = ""; - object.force = false; + if (message.bigqueryDestination != null && message.hasOwnProperty("bigqueryDestination")) { + object.bigqueryDestination = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.bigqueryDestination, options); + if (options.oneofs) + object.destination = "bigqueryDestination"; + } + if (message.tfrecordDestination != null && message.hasOwnProperty("tfrecordDestination")) { + object.tfrecordDestination = $root.google.cloud.aiplatform.v1beta1.TFRecordDestination.toObject(message.tfrecordDestination, options); + if (options.oneofs) + object.destination = "tfrecordDestination"; + } + if (message.csvDestination != null && message.hasOwnProperty("csvDestination")) { + object.csvDestination = $root.google.cloud.aiplatform.v1beta1.CsvDestination.toObject(message.csvDestination, options); + if (options.oneofs) + object.destination = "csvDestination"; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.force != null && message.hasOwnProperty("force")) - object.force = message.force; return object; }; /** - * Converts this DeleteEntityTypeRequest to JSON. + * Converts this FeatureValueDestination to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest + * @memberof google.cloud.aiplatform.v1beta1.FeatureValueDestination * @instance * @returns {Object.} JSON object */ - DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { + FeatureValueDestination.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteEntityTypeRequest; + return FeatureValueDestination; })(); - v1beta1.CreateFeatureRequest = (function() { + v1beta1.ExportFeatureValuesResponse = (function() { /** - * Properties of a CreateFeatureRequest. + * Properties of an ExportFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateFeatureRequest - * @property {string|null} [parent] CreateFeatureRequest parent - * @property {google.cloud.aiplatform.v1beta1.IFeature|null} [feature] CreateFeatureRequest feature - * @property {string|null} [featureId] CreateFeatureRequest featureId + * @interface IExportFeatureValuesResponse */ /** - * Constructs a new CreateFeatureRequest. + * Constructs a new ExportFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateFeatureRequest. - * @implements ICreateFeatureRequest + * @classdesc Represents an ExportFeatureValuesResponse. + * @implements IExportFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse=} [properties] Properties to set */ - function CreateFeatureRequest(properties) { + function ExportFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -194967,102 +201188,63 @@ } /** - * CreateFeatureRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest - * @instance - */ - CreateFeatureRequest.prototype.parent = ""; - - /** - * CreateFeatureRequest feature. - * @member {google.cloud.aiplatform.v1beta1.IFeature|null|undefined} feature - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest - * @instance - */ - CreateFeatureRequest.prototype.feature = null; - - /** - * CreateFeatureRequest featureId. - * @member {string} featureId - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest - * @instance - */ - CreateFeatureRequest.prototype.featureId = ""; - - /** - * Creates a new CreateFeatureRequest instance using the specified properties. + * Creates a new ExportFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest instance + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse instance */ - CreateFeatureRequest.create = function create(properties) { - return new CreateFeatureRequest(properties); + ExportFeatureValuesResponse.create = function create(properties) { + return new ExportFeatureValuesResponse(properties); }; /** - * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. + * Encodes the specified ExportFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest} message CreateFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse} message ExportFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeatureRequest.encode = function encode(message, writer) { + ExportFeatureValuesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.feature != null && Object.hasOwnProperty.call(message, "feature")) - $root.google.cloud.aiplatform.v1beta1.Feature.encode(message.feature, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.featureId != null && Object.hasOwnProperty.call(message, "featureId")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureId); return writer; }; /** - * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. + * Encodes the specified ExportFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest} message CreateFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesResponse} message ExportFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + ExportFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeatureRequest.decode = function decode(reader, length) { + ExportFeatureValuesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.feature = $root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32()); - break; - case 3: - message.featureId = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -195072,131 +201254,93 @@ }; /** - * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + ExportFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFeatureRequest message. + * Verifies an ExportFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFeatureRequest.verify = function verify(message) { + ExportFeatureValuesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.feature != null && message.hasOwnProperty("feature")) { - var error = $root.google.cloud.aiplatform.v1beta1.Feature.verify(message.feature); - if (error) - return "feature." + error; - } - if (message.featureId != null && message.hasOwnProperty("featureId")) - if (!$util.isString(message.featureId)) - return "featureId: string expected"; return null; }; /** - * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} ExportFeatureValuesResponse */ - CreateFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest) + ExportFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.feature != null) { - if (typeof object.feature !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeatureRequest.feature: object expected"); - message.feature = $root.google.cloud.aiplatform.v1beta1.Feature.fromObject(object.feature); - } - if (object.featureId != null) - message.featureId = String(object.featureId); - return message; + return new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse(); }; /** - * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. + * Creates a plain object from an ExportFeatureValuesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} message CreateFeatureRequest + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse} message ExportFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFeatureRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.feature = null; - object.featureId = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.feature != null && message.hasOwnProperty("feature")) - object.feature = $root.google.cloud.aiplatform.v1beta1.Feature.toObject(message.feature, options); - if (message.featureId != null && message.hasOwnProperty("featureId")) - object.featureId = message.featureId; - return object; + ExportFeatureValuesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this CreateFeatureRequest to JSON. + * Converts this ExportFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - CreateFeatureRequest.prototype.toJSON = function toJSON() { + ExportFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFeatureRequest; + return ExportFeatureValuesResponse; })(); - v1beta1.BatchCreateFeaturesRequest = (function() { + v1beta1.BatchReadFeatureValuesResponse = (function() { /** - * Properties of a BatchCreateFeaturesRequest. + * Properties of a BatchReadFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchCreateFeaturesRequest - * @property {string|null} [parent] BatchCreateFeaturesRequest parent - * @property {Array.|null} [requests] BatchCreateFeaturesRequest requests + * @interface IBatchReadFeatureValuesResponse */ /** - * Constructs a new BatchCreateFeaturesRequest. + * Constructs a new BatchReadFeatureValuesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchCreateFeaturesRequest. - * @implements IBatchCreateFeaturesRequest + * @classdesc Represents a BatchReadFeatureValuesResponse. + * @implements IBatchReadFeatureValuesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse=} [properties] Properties to set */ - function BatchCreateFeaturesRequest(properties) { - this.requests = []; + function BatchReadFeatureValuesResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -195204,92 +201348,63 @@ } /** - * BatchCreateFeaturesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest - * @instance - */ - BatchCreateFeaturesRequest.prototype.parent = ""; - - /** - * BatchCreateFeaturesRequest requests. - * @member {Array.} requests - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest - * @instance - */ - BatchCreateFeaturesRequest.prototype.requests = $util.emptyArray; - - /** - * Creates a new BatchCreateFeaturesRequest instance using the specified properties. + * Creates a new BatchReadFeatureValuesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse instance */ - BatchCreateFeaturesRequest.create = function create(properties) { - return new BatchCreateFeaturesRequest(properties); + BatchReadFeatureValuesResponse.create = function create(properties) { + return new BatchReadFeatureValuesResponse(properties); }; /** - * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. + * Encodes the specified BatchReadFeatureValuesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} message BatchCreateFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateFeaturesRequest.encode = function encode(message, writer) { + BatchReadFeatureValuesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.requests != null && message.requests.length) - for (var i = 0; i < message.requests.length; ++i) - $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. + * Encodes the specified BatchReadFeatureValuesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} message BatchCreateFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchReadFeatureValuesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateFeaturesRequest.decode = function decode(reader, length) { + BatchReadFeatureValuesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - if (!(message.requests && message.requests.length)) - message.requests = []; - message.requests.push($root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.decode(reader, reader.uint32())); - break; default: reader.skipType(tag & 7); break; @@ -195299,134 +201414,96 @@ }; /** - * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + BatchReadFeatureValuesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateFeaturesRequest message. + * Verifies a BatchReadFeatureValuesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchCreateFeaturesRequest.verify = function verify(message) { + BatchReadFeatureValuesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.requests != null && message.hasOwnProperty("requests")) { - if (!Array.isArray(message.requests)) - return "requests: array expected"; - for (var i = 0; i < message.requests.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify(message.requests[i]); - if (error) - return "requests." + error; - } - } return null; }; /** - * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchReadFeatureValuesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} BatchReadFeatureValuesResponse */ - BatchCreateFeaturesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) + BatchReadFeatureValuesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.requests) { - if (!Array.isArray(object.requests)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.requests: array expected"); - message.requests = []; - for (var i = 0; i < object.requests.length; ++i) { - if (typeof object.requests[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.requests: object expected"); - message.requests[i] = $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.fromObject(object.requests[i]); - } - } - return message; + return new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse(); }; /** - * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchReadFeatureValuesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} message BatchCreateFeaturesRequest + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse} message BatchReadFeatureValuesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateFeaturesRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.requests = []; - if (options.defaults) - object.parent = ""; - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.requests && message.requests.length) { - object.requests = []; - for (var j = 0; j < message.requests.length; ++j) - object.requests[j] = $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.toObject(message.requests[j], options); - } - return object; + BatchReadFeatureValuesResponse.toObject = function toObject() { + return {}; }; /** - * Converts this BatchCreateFeaturesRequest to JSON. + * Converts this BatchReadFeatureValuesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse * @instance * @returns {Object.} JSON object */ - BatchCreateFeaturesRequest.prototype.toJSON = function toJSON() { + BatchReadFeatureValuesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchCreateFeaturesRequest; + return BatchReadFeatureValuesResponse; })(); - v1beta1.BatchCreateFeaturesResponse = (function() { + v1beta1.CreateEntityTypeRequest = (function() { /** - * Properties of a BatchCreateFeaturesResponse. + * Properties of a CreateEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchCreateFeaturesResponse - * @property {Array.|null} [features] BatchCreateFeaturesResponse features + * @interface ICreateEntityTypeRequest + * @property {string|null} [parent] CreateEntityTypeRequest parent + * @property {google.cloud.aiplatform.v1beta1.IEntityType|null} [entityType] CreateEntityTypeRequest entityType + * @property {string|null} [entityTypeId] CreateEntityTypeRequest entityTypeId */ /** - * Constructs a new BatchCreateFeaturesResponse. + * Constructs a new CreateEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchCreateFeaturesResponse. - * @implements IBatchCreateFeaturesResponse + * @classdesc Represents a CreateEntityTypeRequest. + * @implements ICreateEntityTypeRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest=} [properties] Properties to set */ - function BatchCreateFeaturesResponse(properties) { - this.features = []; + function CreateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -195434,78 +201511,101 @@ } /** - * BatchCreateFeaturesResponse features. - * @member {Array.} features - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + * CreateEntityTypeRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @instance */ - BatchCreateFeaturesResponse.prototype.features = $util.emptyArray; + CreateEntityTypeRequest.prototype.parent = ""; /** - * Creates a new BatchCreateFeaturesResponse instance using the specified properties. + * CreateEntityTypeRequest entityType. + * @member {google.cloud.aiplatform.v1beta1.IEntityType|null|undefined} entityType + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @instance + */ + CreateEntityTypeRequest.prototype.entityType = null; + + /** + * CreateEntityTypeRequest entityTypeId. + * @member {string} entityTypeId + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest + * @instance + */ + CreateEntityTypeRequest.prototype.entityTypeId = ""; + + /** + * Creates a new CreateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest instance */ - BatchCreateFeaturesResponse.create = function create(properties) { - return new BatchCreateFeaturesResponse(properties); + CreateEntityTypeRequest.create = function create(properties) { + return new CreateEntityTypeRequest(properties); }; /** - * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse} message BatchCreateFeaturesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateFeaturesResponse.encode = function encode(message, writer) { + CreateEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.features != null && message.features.length) - for (var i = 0; i < message.features.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Feature.encode(message.features[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + $root.google.cloud.aiplatform.v1beta1.EntityType.encode(message.entityType, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.entityTypeId != null && Object.hasOwnProperty.call(message, "entityTypeId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.entityTypeId); return writer; }; /** - * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. + * Encodes the specified CreateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse} message BatchCreateFeaturesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeRequest} message CreateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { + CreateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateFeaturesResponse.decode = function decode(reader, length) { + CreateEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.features && message.features.length)) - message.features = []; - message.features.push($root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32())); + message.parent = reader.string(); + break; + case 2: + message.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.decode(reader, reader.uint32()); + break; + case 3: + message.entityTypeId = reader.string(); break; default: reader.skipType(tag & 7); @@ -195516,124 +201616,129 @@ }; /** - * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a CreateEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { + CreateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateFeaturesResponse message. + * Verifies a CreateEntityTypeRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchCreateFeaturesResponse.verify = function verify(message) { + CreateEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.features != null && message.hasOwnProperty("features")) { - if (!Array.isArray(message.features)) - return "features: array expected"; - for (var i = 0; i < message.features.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Feature.verify(message.features[i]); - if (error) - return "features." + error; - } + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) { + var error = $root.google.cloud.aiplatform.v1beta1.EntityType.verify(message.entityType); + if (error) + return "entityType." + error; } + if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) + if (!$util.isString(message.entityTypeId)) + return "entityTypeId: string expected"; return null; }; /** - * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} CreateEntityTypeRequest */ - BatchCreateFeaturesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) + CreateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse(); - if (object.features) { - if (!Array.isArray(object.features)) - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.features: array expected"); - message.features = []; - for (var i = 0; i < object.features.length; ++i) { - if (typeof object.features[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.features: object expected"); - message.features[i] = $root.google.cloud.aiplatform.v1beta1.Feature.fromObject(object.features[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.entityType != null) { + if (typeof object.entityType !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.fromObject(object.entityType); } + if (object.entityTypeId != null) + message.entityTypeId = String(object.entityTypeId); return message; }; /** - * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. + * Creates a plain object from a CreateEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} message BatchCreateFeaturesResponse + * @param {google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest} message CreateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateFeaturesResponse.toObject = function toObject(message, options) { + CreateEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.features = []; - if (message.features && message.features.length) { - object.features = []; - for (var j = 0; j < message.features.length; ++j) - object.features[j] = $root.google.cloud.aiplatform.v1beta1.Feature.toObject(message.features[j], options); + if (options.defaults) { + object.parent = ""; + object.entityType = null; + object.entityTypeId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.toObject(message.entityType, options); + if (message.entityTypeId != null && message.hasOwnProperty("entityTypeId")) + object.entityTypeId = message.entityTypeId; return object; }; /** - * Converts this BatchCreateFeaturesResponse to JSON. + * Converts this CreateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - BatchCreateFeaturesResponse.prototype.toJSON = function toJSON() { + CreateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchCreateFeaturesResponse; + return CreateEntityTypeRequest; })(); - v1beta1.GetFeatureRequest = (function() { + v1beta1.GetEntityTypeRequest = (function() { /** - * Properties of a GetFeatureRequest. + * Properties of a GetEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetFeatureRequest - * @property {string|null} [name] GetFeatureRequest name + * @interface IGetEntityTypeRequest + * @property {string|null} [name] GetEntityTypeRequest name */ /** - * Constructs a new GetFeatureRequest. + * Constructs a new GetEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetFeatureRequest. - * @implements IGetFeatureRequest + * @classdesc Represents a GetEntityTypeRequest. + * @implements IGetEntityTypeRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest=} [properties] Properties to set */ - function GetFeatureRequest(properties) { + function GetEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -195641,35 +201746,35 @@ } /** - * GetFeatureRequest name. + * GetEntityTypeRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @instance */ - GetFeatureRequest.prototype.name = ""; + GetEntityTypeRequest.prototype.name = ""; /** - * Creates a new GetFeatureRequest instance using the specified properties. + * Creates a new GetEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest instance */ - GetFeatureRequest.create = function create(properties) { - return new GetFeatureRequest(properties); + GetEntityTypeRequest.create = function create(properties) { + return new GetEntityTypeRequest(properties); }; /** - * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. + * Encodes the specified GetEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest} message GetFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFeatureRequest.encode = function encode(message, writer) { + GetEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -195678,33 +201783,33 @@ }; /** - * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. + * Encodes the specified GetEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest} message GetFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetEntityTypeRequest} message GetEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetFeatureRequest message from the specified reader or buffer. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFeatureRequest.decode = function decode(reader, length) { + GetEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -195720,30 +201825,30 @@ }; /** - * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a GetEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + GetEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetFeatureRequest message. + * Verifies a GetEntityTypeRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetFeatureRequest.verify = function verify(message) { + GetEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -195753,32 +201858,32 @@ }; /** - * Creates a GetFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} GetEntityTypeRequest */ - GetFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest) + GetEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetFeatureRequest} message GetFeatureRequest + * @param {google.cloud.aiplatform.v1beta1.GetEntityTypeRequest} message GetEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetFeatureRequest.toObject = function toObject(message, options) { + GetEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -195790,43 +201895,42 @@ }; /** - * Converts this GetFeatureRequest to JSON. + * Converts this GetEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.GetEntityTypeRequest * @instance * @returns {Object.} JSON object */ - GetFeatureRequest.prototype.toJSON = function toJSON() { + GetEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetFeatureRequest; + return GetEntityTypeRequest; })(); - v1beta1.ListFeaturesRequest = (function() { + v1beta1.ListEntityTypesRequest = (function() { /** - * Properties of a ListFeaturesRequest. + * Properties of a ListEntityTypesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListFeaturesRequest - * @property {string|null} [parent] ListFeaturesRequest parent - * @property {string|null} [filter] ListFeaturesRequest filter - * @property {number|null} [pageSize] ListFeaturesRequest pageSize - * @property {string|null} [pageToken] ListFeaturesRequest pageToken - * @property {string|null} [orderBy] ListFeaturesRequest orderBy - * @property {google.protobuf.IFieldMask|null} [readMask] ListFeaturesRequest readMask - * @property {number|null} [latestStatsCount] ListFeaturesRequest latestStatsCount + * @interface IListEntityTypesRequest + * @property {string|null} [parent] ListEntityTypesRequest parent + * @property {string|null} [filter] ListEntityTypesRequest filter + * @property {number|null} [pageSize] ListEntityTypesRequest pageSize + * @property {string|null} [pageToken] ListEntityTypesRequest pageToken + * @property {string|null} [orderBy] ListEntityTypesRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListEntityTypesRequest readMask */ /** - * Constructs a new ListFeaturesRequest. + * Constructs a new ListEntityTypesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListFeaturesRequest. - * @implements IListFeaturesRequest + * @classdesc Represents a ListEntityTypesRequest. + * @implements IListEntityTypesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest=} [properties] Properties to set */ - function ListFeaturesRequest(properties) { + function ListEntityTypesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -195834,83 +201938,75 @@ } /** - * ListFeaturesRequest parent. + * ListEntityTypesRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @instance */ - ListFeaturesRequest.prototype.parent = ""; + ListEntityTypesRequest.prototype.parent = ""; /** - * ListFeaturesRequest filter. + * ListEntityTypesRequest filter. * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @instance */ - ListFeaturesRequest.prototype.filter = ""; + ListEntityTypesRequest.prototype.filter = ""; /** - * ListFeaturesRequest pageSize. + * ListEntityTypesRequest pageSize. * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @instance */ - ListFeaturesRequest.prototype.pageSize = 0; + ListEntityTypesRequest.prototype.pageSize = 0; /** - * ListFeaturesRequest pageToken. + * ListEntityTypesRequest pageToken. * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @instance */ - ListFeaturesRequest.prototype.pageToken = ""; + ListEntityTypesRequest.prototype.pageToken = ""; /** - * ListFeaturesRequest orderBy. + * ListEntityTypesRequest orderBy. * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @instance */ - ListFeaturesRequest.prototype.orderBy = ""; + ListEntityTypesRequest.prototype.orderBy = ""; /** - * ListFeaturesRequest readMask. + * ListEntityTypesRequest readMask. * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest - * @instance - */ - ListFeaturesRequest.prototype.readMask = null; - - /** - * ListFeaturesRequest latestStatsCount. - * @member {number} latestStatsCount - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @instance */ - ListFeaturesRequest.prototype.latestStatsCount = 0; + ListEntityTypesRequest.prototype.readMask = null; /** - * Creates a new ListFeaturesRequest instance using the specified properties. + * Creates a new ListEntityTypesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest instance */ - ListFeaturesRequest.create = function create(properties) { - return new ListFeaturesRequest(properties); + ListEntityTypesRequest.create = function create(properties) { + return new ListEntityTypesRequest(properties); }; /** - * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest} message ListFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturesRequest.encode = function encode(message, writer) { + ListEntityTypesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) @@ -195925,39 +202021,37 @@ writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.latestStatsCount != null && Object.hasOwnProperty.call(message, "latestStatsCount")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.latestStatsCount); return writer; }; /** - * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. + * Encodes the specified ListEntityTypesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest} message ListFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesRequest} message ListEntityTypesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListEntityTypesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturesRequest.decode = function decode(reader, length) { + ListEntityTypesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -195979,9 +202073,6 @@ case 6: message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; - case 7: - message.latestStatsCount = reader.int32(); - break; default: reader.skipType(tag & 7); break; @@ -195991,30 +202082,30 @@ }; /** - * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + ListEntityTypesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFeaturesRequest message. + * Verifies a ListEntityTypesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFeaturesRequest.verify = function verify(message) { + ListEntityTypesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) @@ -196037,24 +202128,21 @@ if (error) return "readMask." + error; } - if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) - if (!$util.isInteger(message.latestStatsCount)) - return "latestStatsCount: integer expected"; return null; }; /** - * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} ListEntityTypesRequest */ - ListFeaturesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturesRequest) + ListEntityTypesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturesRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListEntityTypesRequest(); if (object.parent != null) message.parent = String(object.parent); if (object.filter != null) @@ -196067,24 +202155,22 @@ message.orderBy = String(object.orderBy); if (object.readMask != null) { if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturesRequest.readMask: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.ListEntityTypesRequest.readMask: object expected"); message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } - if (object.latestStatsCount != null) - message.latestStatsCount = object.latestStatsCount | 0; return message; }; /** - * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListEntityTypesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} message ListFeaturesRequest + * @param {google.cloud.aiplatform.v1beta1.ListEntityTypesRequest} message ListEntityTypesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFeaturesRequest.toObject = function toObject(message, options) { + ListEntityTypesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -196095,7 +202181,6 @@ object.pageToken = ""; object.orderBy = ""; object.readMask = null; - object.latestStatsCount = 0; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; @@ -196109,45 +202194,43 @@ object.orderBy = message.orderBy; if (message.readMask != null && message.hasOwnProperty("readMask")) object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) - object.latestStatsCount = message.latestStatsCount; return object; }; /** - * Converts this ListFeaturesRequest to JSON. + * Converts this ListEntityTypesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesRequest * @instance * @returns {Object.} JSON object */ - ListFeaturesRequest.prototype.toJSON = function toJSON() { + ListEntityTypesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFeaturesRequest; + return ListEntityTypesRequest; })(); - v1beta1.ListFeaturesResponse = (function() { + v1beta1.ListEntityTypesResponse = (function() { /** - * Properties of a ListFeaturesResponse. + * Properties of a ListEntityTypesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListFeaturesResponse - * @property {Array.|null} [features] ListFeaturesResponse features - * @property {string|null} [nextPageToken] ListFeaturesResponse nextPageToken + * @interface IListEntityTypesResponse + * @property {Array.|null} [entityTypes] ListEntityTypesResponse entityTypes + * @property {string|null} [nextPageToken] ListEntityTypesResponse nextPageToken */ /** - * Constructs a new ListFeaturesResponse. + * Constructs a new ListEntityTypesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListFeaturesResponse. - * @implements IListFeaturesResponse + * @classdesc Represents a ListEntityTypesResponse. + * @implements IListEntityTypesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse=} [properties] Properties to set */ - function ListFeaturesResponse(properties) { - this.features = []; + function ListEntityTypesResponse(properties) { + this.entityTypes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -196155,88 +202238,88 @@ } /** - * ListFeaturesResponse features. - * @member {Array.} features - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * ListEntityTypesResponse entityTypes. + * @member {Array.} entityTypes + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @instance */ - ListFeaturesResponse.prototype.features = $util.emptyArray; + ListEntityTypesResponse.prototype.entityTypes = $util.emptyArray; /** - * ListFeaturesResponse nextPageToken. + * ListEntityTypesResponse nextPageToken. * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @instance */ - ListFeaturesResponse.prototype.nextPageToken = ""; + ListEntityTypesResponse.prototype.nextPageToken = ""; /** - * Creates a new ListFeaturesResponse instance using the specified properties. + * Creates a new ListEntityTypesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse instance */ - ListFeaturesResponse.create = function create(properties) { - return new ListFeaturesResponse(properties); + ListEntityTypesResponse.create = function create(properties) { + return new ListEntityTypesResponse(properties); }; /** - * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. + * Encodes the specified ListEntityTypesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse} message ListFeaturesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturesResponse.encode = function encode(message, writer) { + ListEntityTypesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.features != null && message.features.length) - for (var i = 0; i < message.features.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Feature.encode(message.features[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.entityTypes != null && message.entityTypes.length) + for (var i = 0; i < message.entityTypes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.EntityType.encode(message.entityTypes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. + * Encodes the specified ListEntityTypesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse} message ListFeaturesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListEntityTypesResponse} message ListEntityTypesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { + ListEntityTypesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturesResponse.decode = function decode(reader, length) { + ListEntityTypesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.features && message.features.length)) - message.features = []; - message.features.push($root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32())); + if (!(message.entityTypes && message.entityTypes.length)) + message.entityTypes = []; + message.entityTypes.push($root.google.cloud.aiplatform.v1beta1.EntityType.decode(reader, reader.uint32())); break; case 2: message.nextPageToken = reader.string(); @@ -196250,39 +202333,39 @@ }; /** - * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a ListEntityTypesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { + ListEntityTypesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListFeaturesResponse message. + * Verifies a ListEntityTypesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListFeaturesResponse.verify = function verify(message) { + ListEntityTypesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.features != null && message.hasOwnProperty("features")) { - if (!Array.isArray(message.features)) - return "features: array expected"; - for (var i = 0; i < message.features.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Feature.verify(message.features[i]); + if (message.entityTypes != null && message.hasOwnProperty("entityTypes")) { + if (!Array.isArray(message.entityTypes)) + return "entityTypes: array expected"; + for (var i = 0; i < message.entityTypes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.EntityType.verify(message.entityTypes[i]); if (error) - return "features." + error; + return "entityTypes." + error; } } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) @@ -196292,25 +202375,25 @@ }; /** - * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a ListEntityTypesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse + * @returns {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} ListEntityTypesResponse */ - ListFeaturesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturesResponse) + ListEntityTypesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturesResponse(); - if (object.features) { - if (!Array.isArray(object.features)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturesResponse.features: array expected"); - message.features = []; - for (var i = 0; i < object.features.length; ++i) { - if (typeof object.features[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturesResponse.features: object expected"); - message.features[i] = $root.google.cloud.aiplatform.v1beta1.Feature.fromObject(object.features[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListEntityTypesResponse(); + if (object.entityTypes) { + if (!Array.isArray(object.entityTypes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.entityTypes: array expected"); + message.entityTypes = []; + for (var i = 0; i < object.entityTypes.length; ++i) { + if (typeof object.entityTypes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListEntityTypesResponse.entityTypes: object expected"); + message.entityTypes[i] = $root.google.cloud.aiplatform.v1beta1.EntityType.fromObject(object.entityTypes[i]); } } if (object.nextPageToken != null) @@ -196319,26 +202402,26 @@ }; /** - * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. + * Creates a plain object from a ListEntityTypesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} message ListFeaturesResponse + * @param {google.cloud.aiplatform.v1beta1.ListEntityTypesResponse} message ListEntityTypesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListFeaturesResponse.toObject = function toObject(message, options) { + ListEntityTypesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.features = []; + object.entityTypes = []; if (options.defaults) object.nextPageToken = ""; - if (message.features && message.features.length) { - object.features = []; - for (var j = 0; j < message.features.length; ++j) - object.features[j] = $root.google.cloud.aiplatform.v1beta1.Feature.toObject(message.features[j], options); + if (message.entityTypes && message.entityTypes.length) { + object.entityTypes = []; + for (var j = 0; j < message.entityTypes.length; ++j) + object.entityTypes[j] = $root.google.cloud.aiplatform.v1beta1.EntityType.toObject(message.entityTypes[j], options); } if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) object.nextPageToken = message.nextPageToken; @@ -196346,40 +202429,38 @@ }; /** - * Converts this ListFeaturesResponse to JSON. + * Converts this ListEntityTypesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.ListEntityTypesResponse * @instance * @returns {Object.} JSON object */ - ListFeaturesResponse.prototype.toJSON = function toJSON() { + ListEntityTypesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListFeaturesResponse; + return ListEntityTypesResponse; })(); - v1beta1.SearchFeaturesRequest = (function() { + v1beta1.UpdateEntityTypeRequest = (function() { /** - * Properties of a SearchFeaturesRequest. + * Properties of an UpdateEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchFeaturesRequest - * @property {string|null} [location] SearchFeaturesRequest location - * @property {string|null} [query] SearchFeaturesRequest query - * @property {number|null} [pageSize] SearchFeaturesRequest pageSize - * @property {string|null} [pageToken] SearchFeaturesRequest pageToken + * @interface IUpdateEntityTypeRequest + * @property {google.cloud.aiplatform.v1beta1.IEntityType|null} [entityType] UpdateEntityTypeRequest entityType + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateEntityTypeRequest updateMask */ /** - * Constructs a new SearchFeaturesRequest. + * Constructs a new UpdateEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchFeaturesRequest. - * @implements ISearchFeaturesRequest + * @classdesc Represents an UpdateEntityTypeRequest. + * @implements IUpdateEntityTypeRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest=} [properties] Properties to set */ - function SearchFeaturesRequest(properties) { + function UpdateEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -196387,114 +202468,88 @@ } /** - * SearchFeaturesRequest location. - * @member {string} location - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @instance - */ - SearchFeaturesRequest.prototype.location = ""; - - /** - * SearchFeaturesRequest query. - * @member {string} query - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest - * @instance - */ - SearchFeaturesRequest.prototype.query = ""; - - /** - * SearchFeaturesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * UpdateEntityTypeRequest entityType. + * @member {google.cloud.aiplatform.v1beta1.IEntityType|null|undefined} entityType + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @instance */ - SearchFeaturesRequest.prototype.pageSize = 0; + UpdateEntityTypeRequest.prototype.entityType = null; /** - * SearchFeaturesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * UpdateEntityTypeRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @instance */ - SearchFeaturesRequest.prototype.pageToken = ""; + UpdateEntityTypeRequest.prototype.updateMask = null; /** - * Creates a new SearchFeaturesRequest instance using the specified properties. + * Creates a new UpdateEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest instance */ - SearchFeaturesRequest.create = function create(properties) { - return new SearchFeaturesRequest(properties); + UpdateEntityTypeRequest.create = function create(properties) { + return new UpdateEntityTypeRequest(properties); }; /** - * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest} message SearchFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchFeaturesRequest.encode = function encode(message, writer) { + UpdateEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.location != null && Object.hasOwnProperty.call(message, "location")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.location); - if (message.query != null && Object.hasOwnProperty.call(message, "query")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.query); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageToken); + if (message.entityType != null && Object.hasOwnProperty.call(message, "entityType")) + $root.google.cloud.aiplatform.v1beta1.EntityType.encode(message.entityType, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. + * Encodes the specified UpdateEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest} message SearchFeaturesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateEntityTypeRequest} message UpdateEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchFeaturesRequest.decode = function decode(reader, length) { + UpdateEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.location = reader.string(); - break; - case 3: - message.query = reader.string(); - break; - case 4: - message.pageSize = reader.int32(); + message.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.decode(reader, reader.uint32()); break; - case 5: - message.pageToken = reader.string(); + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -196505,134 +202560,127 @@ }; /** - * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchFeaturesRequest message. + * Verifies an UpdateEntityTypeRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchFeaturesRequest.verify = function verify(message) { + UpdateEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.location != null && message.hasOwnProperty("location")) - if (!$util.isString(message.location)) - return "location: string expected"; - if (message.query != null && message.hasOwnProperty("query")) - if (!$util.isString(message.query)) - return "query: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; + if (message.entityType != null && message.hasOwnProperty("entityType")) { + var error = $root.google.cloud.aiplatform.v1beta1.EntityType.verify(message.entityType); + if (error) + return "entityType." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} UpdateEntityTypeRequest */ - SearchFeaturesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) + UpdateEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest(); - if (object.location != null) - message.location = String(object.location); - if (object.query != null) - message.query = String(object.query); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest(); + if (object.entityType != null) { + if (typeof object.entityType !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.entityType: object expected"); + message.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.fromObject(object.entityType); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} message SearchFeaturesRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest} message UpdateEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchFeaturesRequest.toObject = function toObject(message, options) { + UpdateEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.location = ""; - object.query = ""; - object.pageSize = 0; - object.pageToken = ""; + object.entityType = null; + object.updateMask = null; } - if (message.location != null && message.hasOwnProperty("location")) - object.location = message.location; - if (message.query != null && message.hasOwnProperty("query")) - object.query = message.query; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; + if (message.entityType != null && message.hasOwnProperty("entityType")) + object.entityType = $root.google.cloud.aiplatform.v1beta1.EntityType.toObject(message.entityType, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this SearchFeaturesRequest to JSON. + * Converts this UpdateEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateEntityTypeRequest * @instance * @returns {Object.} JSON object */ - SearchFeaturesRequest.prototype.toJSON = function toJSON() { + UpdateEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchFeaturesRequest; + return UpdateEntityTypeRequest; })(); - v1beta1.SearchFeaturesResponse = (function() { + v1beta1.DeleteEntityTypeRequest = (function() { /** - * Properties of a SearchFeaturesResponse. + * Properties of a DeleteEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchFeaturesResponse - * @property {Array.|null} [features] SearchFeaturesResponse features - * @property {string|null} [nextPageToken] SearchFeaturesResponse nextPageToken + * @interface IDeleteEntityTypeRequest + * @property {string|null} [name] DeleteEntityTypeRequest name + * @property {boolean|null} [force] DeleteEntityTypeRequest force */ /** - * Constructs a new SearchFeaturesResponse. + * Constructs a new DeleteEntityTypeRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchFeaturesResponse. - * @implements ISearchFeaturesResponse + * @classdesc Represents a DeleteEntityTypeRequest. + * @implements IDeleteEntityTypeRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest=} [properties] Properties to set */ - function SearchFeaturesResponse(properties) { - this.features = []; + function DeleteEntityTypeRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -196640,91 +202688,88 @@ } /** - * SearchFeaturesResponse features. - * @member {Array.} features - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * DeleteEntityTypeRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @instance */ - SearchFeaturesResponse.prototype.features = $util.emptyArray; + DeleteEntityTypeRequest.prototype.name = ""; /** - * SearchFeaturesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * DeleteEntityTypeRequest force. + * @member {boolean} force + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @instance */ - SearchFeaturesResponse.prototype.nextPageToken = ""; + DeleteEntityTypeRequest.prototype.force = false; /** - * Creates a new SearchFeaturesResponse instance using the specified properties. + * Creates a new DeleteEntityTypeRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest instance */ - SearchFeaturesResponse.create = function create(properties) { - return new SearchFeaturesResponse(properties); + DeleteEntityTypeRequest.create = function create(properties) { + return new DeleteEntityTypeRequest(properties); }; /** - * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. + * Encodes the specified DeleteEntityTypeRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse} message SearchFeaturesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchFeaturesResponse.encode = function encode(message, writer) { + DeleteEntityTypeRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.features != null && message.features.length) - for (var i = 0; i < message.features.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Feature.encode(message.features[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.force != null && Object.hasOwnProperty.call(message, "force")) + writer.uint32(/* id 2, wireType 0 =*/16).bool(message.force); return writer; }; /** - * Encodes the specified SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. + * Encodes the specified DeleteEntityTypeRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse} message SearchFeaturesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteEntityTypeRequest} message DeleteEntityTypeRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteEntityTypeRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchFeaturesResponse.decode = function decode(reader, length) { + DeleteEntityTypeRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.features && message.features.length)) - message.features = []; - message.features.push($root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.force = reader.bool(); break; default: reader.skipType(tag & 7); @@ -196735,134 +202780,118 @@ }; /** - * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteEntityTypeRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteEntityTypeRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchFeaturesResponse message. + * Verifies a DeleteEntityTypeRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchFeaturesResponse.verify = function verify(message) { + DeleteEntityTypeRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.features != null && message.hasOwnProperty("features")) { - if (!Array.isArray(message.features)) - return "features: array expected"; - for (var i = 0; i < message.features.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Feature.verify(message.features[i]); - if (error) - return "features." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.force != null && message.hasOwnProperty("force")) + if (typeof message.force !== "boolean") + return "force: boolean expected"; return null; }; /** - * Creates a SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteEntityTypeRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} DeleteEntityTypeRequest */ - SearchFeaturesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) + DeleteEntityTypeRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse(); - if (object.features) { - if (!Array.isArray(object.features)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.features: array expected"); - message.features = []; - for (var i = 0; i < object.features.length; ++i) { - if (typeof object.features[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.features: object expected"); - message.features[i] = $root.google.cloud.aiplatform.v1beta1.Feature.fromObject(object.features[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest(); + if (object.name != null) + message.name = String(object.name); + if (object.force != null) + message.force = Boolean(object.force); return message; }; /** - * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteEntityTypeRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} message SearchFeaturesResponse + * @param {google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest} message DeleteEntityTypeRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchFeaturesResponse.toObject = function toObject(message, options) { + DeleteEntityTypeRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.features = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.features && message.features.length) { - object.features = []; - for (var j = 0; j < message.features.length; ++j) - object.features[j] = $root.google.cloud.aiplatform.v1beta1.Feature.toObject(message.features[j], options); + if (options.defaults) { + object.name = ""; + object.force = false; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.force != null && message.hasOwnProperty("force")) + object.force = message.force; return object; }; /** - * Converts this SearchFeaturesResponse to JSON. + * Converts this DeleteEntityTypeRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteEntityTypeRequest * @instance * @returns {Object.} JSON object */ - SearchFeaturesResponse.prototype.toJSON = function toJSON() { + DeleteEntityTypeRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchFeaturesResponse; + return DeleteEntityTypeRequest; })(); - v1beta1.UpdateFeatureRequest = (function() { + v1beta1.CreateFeatureRequest = (function() { /** - * Properties of an UpdateFeatureRequest. + * Properties of a CreateFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateFeatureRequest - * @property {google.cloud.aiplatform.v1beta1.IFeature|null} [feature] UpdateFeatureRequest feature - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeatureRequest updateMask + * @interface ICreateFeatureRequest + * @property {string|null} [parent] CreateFeatureRequest parent + * @property {google.cloud.aiplatform.v1beta1.IFeature|null} [feature] CreateFeatureRequest feature + * @property {string|null} [featureId] CreateFeatureRequest featureId */ /** - * Constructs a new UpdateFeatureRequest. + * Constructs a new CreateFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateFeatureRequest. - * @implements IUpdateFeatureRequest + * @classdesc Represents a CreateFeatureRequest. + * @implements ICreateFeatureRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest=} [properties] Properties to set */ - function UpdateFeatureRequest(properties) { + function CreateFeatureRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -196870,88 +202899,101 @@ } /** - * UpdateFeatureRequest feature. + * CreateFeatureRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest + * @instance + */ + CreateFeatureRequest.prototype.parent = ""; + + /** + * CreateFeatureRequest feature. * @member {google.cloud.aiplatform.v1beta1.IFeature|null|undefined} feature - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @instance */ - UpdateFeatureRequest.prototype.feature = null; + CreateFeatureRequest.prototype.feature = null; /** - * UpdateFeatureRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * CreateFeatureRequest featureId. + * @member {string} featureId + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @instance */ - UpdateFeatureRequest.prototype.updateMask = null; + CreateFeatureRequest.prototype.featureId = ""; /** - * Creates a new UpdateFeatureRequest instance using the specified properties. + * Creates a new CreateFeatureRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest instance */ - UpdateFeatureRequest.create = function create(properties) { - return new UpdateFeatureRequest(properties); + CreateFeatureRequest.create = function create(properties) { + return new CreateFeatureRequest(properties); }; /** - * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. + * Encodes the specified CreateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest} message UpdateFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest} message CreateFeatureRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFeatureRequest.encode = function encode(message, writer) { + CreateFeatureRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); if (message.feature != null && Object.hasOwnProperty.call(message, "feature")) - $root.google.cloud.aiplatform.v1beta1.Feature.encode(message.feature, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + $root.google.cloud.aiplatform.v1beta1.Feature.encode(message.feature, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.featureId != null && Object.hasOwnProperty.call(message, "featureId")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureId); return writer; }; /** - * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. + * Encodes the specified CreateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest} message UpdateFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureRequest} message CreateFeatureRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer. + * Decodes a CreateFeatureRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFeatureRequest.decode = function decode(reader, length) { + CreateFeatureRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.feature = $root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.feature = $root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32()); + break; + case 3: + message.featureId = reader.string(); break; default: reader.skipType(tag & 7); @@ -196962,126 +203004,131 @@ }; /** - * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateFeatureRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + CreateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateFeatureRequest message. + * Verifies a CreateFeatureRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateFeatureRequest.verify = function verify(message) { + CreateFeatureRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; if (message.feature != null && message.hasOwnProperty("feature")) { var error = $root.google.cloud.aiplatform.v1beta1.Feature.verify(message.feature); if (error) return "feature." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); - if (error) - return "updateMask." + error; - } + if (message.featureId != null && message.hasOwnProperty("featureId")) + if (!$util.isString(message.featureId)) + return "featureId: string expected"; return null; }; /** - * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateFeatureRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} CreateFeatureRequest */ - UpdateFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) + CreateFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest(); + if (object.parent != null) + message.parent = String(object.parent); if (object.feature != null) { if (typeof object.feature !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.feature: object expected"); + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeatureRequest.feature: object expected"); message.feature = $root.google.cloud.aiplatform.v1beta1.Feature.fromObject(object.feature); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); - } + if (object.featureId != null) + message.featureId = String(object.featureId); return message; }; /** - * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateFeatureRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} message UpdateFeatureRequest + * @param {google.cloud.aiplatform.v1beta1.CreateFeatureRequest} message CreateFeatureRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFeatureRequest.toObject = function toObject(message, options) { + CreateFeatureRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { + object.parent = ""; object.feature = null; - object.updateMask = null; + object.featureId = ""; } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; if (message.feature != null && message.hasOwnProperty("feature")) object.feature = $root.google.cloud.aiplatform.v1beta1.Feature.toObject(message.feature, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.featureId != null && message.hasOwnProperty("featureId")) + object.featureId = message.featureId; return object; }; /** - * Converts this UpdateFeatureRequest to JSON. + * Converts this CreateFeatureRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureRequest * @instance * @returns {Object.} JSON object */ - UpdateFeatureRequest.prototype.toJSON = function toJSON() { + CreateFeatureRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateFeatureRequest; + return CreateFeatureRequest; })(); - v1beta1.DeleteFeatureRequest = (function() { + v1beta1.BatchCreateFeaturesRequest = (function() { /** - * Properties of a DeleteFeatureRequest. + * Properties of a BatchCreateFeaturesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteFeatureRequest - * @property {string|null} [name] DeleteFeatureRequest name + * @interface IBatchCreateFeaturesRequest + * @property {string|null} [parent] BatchCreateFeaturesRequest parent + * @property {Array.|null} [requests] BatchCreateFeaturesRequest requests */ /** - * Constructs a new DeleteFeatureRequest. + * Constructs a new BatchCreateFeaturesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteFeatureRequest. - * @implements IDeleteFeatureRequest + * @classdesc Represents a BatchCreateFeaturesRequest. + * @implements IBatchCreateFeaturesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest=} [properties] Properties to set */ - function DeleteFeatureRequest(properties) { + function BatchCreateFeaturesRequest(properties) { + this.requests = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197089,75 +203136,91 @@ } /** - * DeleteFeatureRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * BatchCreateFeaturesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @instance */ - DeleteFeatureRequest.prototype.name = ""; + BatchCreateFeaturesRequest.prototype.parent = ""; /** - * Creates a new DeleteFeatureRequest instance using the specified properties. + * BatchCreateFeaturesRequest requests. + * @member {Array.} requests + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest + * @instance + */ + BatchCreateFeaturesRequest.prototype.requests = $util.emptyArray; + + /** + * Creates a new BatchCreateFeaturesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest instance */ - DeleteFeatureRequest.create = function create(properties) { - return new DeleteFeatureRequest(properties); + BatchCreateFeaturesRequest.create = function create(properties) { + return new BatchCreateFeaturesRequest(properties); }; /** - * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. + * Encodes the specified BatchCreateFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest} message DeleteFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} message BatchCreateFeaturesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeatureRequest.encode = function encode(message, writer) { + BatchCreateFeaturesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.requests != null && message.requests.length) + for (var i = 0; i < message.requests.length; ++i) + $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.encode(message.requests[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. + * Encodes the specified BatchCreateFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest} message DeleteFeatureRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesRequest} message BatchCreateFeaturesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { + BatchCreateFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeatureRequest.decode = function decode(reader, length) { + BatchCreateFeaturesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + if (!(message.requests && message.requests.length)) + message.requests = []; + message.requests.push($root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -197168,107 +203231,134 @@ }; /** - * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteFeatureRequest.decodeDelimited = function decodeDelimited(reader) { + BatchCreateFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteFeatureRequest message. + * Verifies a BatchCreateFeaturesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteFeatureRequest.verify = function verify(message) { + BatchCreateFeaturesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.requests != null && message.hasOwnProperty("requests")) { + if (!Array.isArray(message.requests)) + return "requests: array expected"; + for (var i = 0; i < message.requests.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.verify(message.requests[i]); + if (error) + return "requests." + error; + } + } return null; }; /** - * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} BatchCreateFeaturesRequest */ - DeleteFeatureRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) + BatchCreateFeaturesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.requests) { + if (!Array.isArray(object.requests)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.requests: array expected"); + message.requests = []; + for (var i = 0; i < object.requests.length; ++i) { + if (typeof object.requests[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest.requests: object expected"); + message.requests[i] = $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.fromObject(object.requests[i]); + } + } return message; }; /** - * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. + * Creates a plain object from a BatchCreateFeaturesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} message DeleteFeatureRequest + * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest} message BatchCreateFeaturesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteFeatureRequest.toObject = function toObject(message, options) { + BatchCreateFeaturesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.requests = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.requests && message.requests.length) { + object.requests = []; + for (var j = 0; j < message.requests.length; ++j) + object.requests[j] = $root.google.cloud.aiplatform.v1beta1.CreateFeatureRequest.toObject(message.requests[j], options); + } return object; }; /** - * Converts this DeleteFeatureRequest to JSON. + * Converts this BatchCreateFeaturesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesRequest * @instance * @returns {Object.} JSON object */ - DeleteFeatureRequest.prototype.toJSON = function toJSON() { + BatchCreateFeaturesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteFeatureRequest; + return BatchCreateFeaturesRequest; })(); - v1beta1.CreateFeaturestoreOperationMetadata = (function() { + v1beta1.BatchCreateFeaturesResponse = (function() { /** - * Properties of a CreateFeaturestoreOperationMetadata. + * Properties of a BatchCreateFeaturesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateFeaturestoreOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateFeaturestoreOperationMetadata genericMetadata + * @interface IBatchCreateFeaturesResponse + * @property {Array.|null} [features] BatchCreateFeaturesResponse features */ /** - * Constructs a new CreateFeaturestoreOperationMetadata. + * Constructs a new BatchCreateFeaturesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateFeaturestoreOperationMetadata. - * @implements ICreateFeaturestoreOperationMetadata + * @classdesc Represents a BatchCreateFeaturesResponse. + * @implements IBatchCreateFeaturesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse=} [properties] Properties to set */ - function CreateFeaturestoreOperationMetadata(properties) { + function BatchCreateFeaturesResponse(properties) { + this.features = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197276,75 +203366,78 @@ } /** - * CreateFeaturestoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * BatchCreateFeaturesResponse features. + * @member {Array.} features + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @instance */ - CreateFeaturestoreOperationMetadata.prototype.genericMetadata = null; + BatchCreateFeaturesResponse.prototype.features = $util.emptyArray; /** - * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. + * Creates a new BatchCreateFeaturesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse instance */ - CreateFeaturestoreOperationMetadata.create = function create(properties) { - return new CreateFeaturestoreOperationMetadata(properties); + BatchCreateFeaturesResponse.create = function create(properties) { + return new BatchCreateFeaturesResponse(properties); }; /** - * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * Encodes the specified BatchCreateFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse} message BatchCreateFeaturesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeaturestoreOperationMetadata.encode = function encode(message, writer) { + BatchCreateFeaturesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.features != null && message.features.length) + for (var i = 0; i < message.features.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Feature.encode(message.features[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * Encodes the specified BatchCreateFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesResponse} message BatchCreateFeaturesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + BatchCreateFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeaturestoreOperationMetadata.decode = function decode(reader, length) { + BatchCreateFeaturesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.features && message.features.length)) + message.features = []; + message.features.push($root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -197355,112 +203448,124 @@ }; /** - * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a BatchCreateFeaturesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + BatchCreateFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFeaturestoreOperationMetadata message. + * Verifies a BatchCreateFeaturesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFeaturestoreOperationMetadata.verify = function verify(message) { + BatchCreateFeaturesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; + if (message.features != null && message.hasOwnProperty("features")) { + if (!Array.isArray(message.features)) + return "features: array expected"; + for (var i = 0; i < message.features.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Feature.verify(message.features[i]); + if (error) + return "features." + error; + } } return null; }; /** - * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a BatchCreateFeaturesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} BatchCreateFeaturesResponse */ - CreateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) + BatchCreateFeaturesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse(); + if (object.features) { + if (!Array.isArray(object.features)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.features: array expected"); + message.features = []; + for (var i = 0; i < object.features.length; ++i) { + if (typeof object.features[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse.features: object expected"); + message.features[i] = $root.google.cloud.aiplatform.v1beta1.Feature.fromObject(object.features[i]); + } } return message; }; /** - * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a BatchCreateFeaturesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse} message BatchCreateFeaturesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFeaturestoreOperationMetadata.toObject = function toObject(message, options) { + BatchCreateFeaturesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.arrays || options.defaults) + object.features = []; + if (message.features && message.features.length) { + object.features = []; + for (var j = 0; j < message.features.length; ++j) + object.features[j] = $root.google.cloud.aiplatform.v1beta1.Feature.toObject(message.features[j], options); + } return object; }; /** - * Converts this CreateFeaturestoreOperationMetadata to JSON. + * Converts this BatchCreateFeaturesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse * @instance * @returns {Object.} JSON object */ - CreateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + BatchCreateFeaturesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFeaturestoreOperationMetadata; + return BatchCreateFeaturesResponse; })(); - v1beta1.UpdateFeaturestoreOperationMetadata = (function() { + v1beta1.GetFeatureRequest = (function() { /** - * Properties of an UpdateFeaturestoreOperationMetadata. + * Properties of a GetFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateFeaturestoreOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateFeaturestoreOperationMetadata genericMetadata + * @interface IGetFeatureRequest + * @property {string|null} [name] GetFeatureRequest name */ /** - * Constructs a new UpdateFeaturestoreOperationMetadata. + * Constructs a new GetFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateFeaturestoreOperationMetadata. - * @implements IUpdateFeaturestoreOperationMetadata + * @classdesc Represents a GetFeatureRequest. + * @implements IGetFeatureRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest=} [properties] Properties to set */ - function UpdateFeaturestoreOperationMetadata(properties) { + function GetFeatureRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197468,75 +203573,75 @@ } /** - * UpdateFeaturestoreOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * GetFeatureRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @instance */ - UpdateFeaturestoreOperationMetadata.prototype.genericMetadata = null; + GetFeatureRequest.prototype.name = ""; /** - * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. + * Creates a new GetFeatureRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest instance */ - UpdateFeaturestoreOperationMetadata.create = function create(properties) { - return new UpdateFeaturestoreOperationMetadata(properties); + GetFeatureRequest.create = function create(properties) { + return new GetFeatureRequest(properties); }; /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * Encodes the specified GetFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest} message GetFeatureRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFeaturestoreOperationMetadata.encode = function encode(message, writer) { + GetFeatureRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. + * Encodes the specified GetFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetFeatureRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetFeatureRequest} message GetFeatureRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + GetFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. + * Decodes a GetFeatureRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFeaturestoreOperationMetadata.decode = function decode(reader, length) { + GetFeatureRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -197547,115 +203652,113 @@ }; /** - * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a GetFeatureRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + GetFeatureRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateFeaturestoreOperationMetadata message. + * Verifies a GetFeatureRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateFeaturestoreOperationMetadata.verify = function verify(message) { + GetFeatureRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a GetFeatureRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.GetFeatureRequest} GetFeatureRequest */ - UpdateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) + GetFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1beta1.GetFeatureRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a GetFeatureRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.GetFeatureRequest} message GetFeatureRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateFeaturestoreOperationMetadata.toObject = function toObject(message, options) { + GetFeatureRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this UpdateFeaturestoreOperationMetadata to JSON. + * Converts this GetFeatureRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.GetFeatureRequest * @instance * @returns {Object.} JSON object */ - UpdateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + GetFeatureRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateFeaturestoreOperationMetadata; + return GetFeatureRequest; })(); - v1beta1.ImportFeatureValuesOperationMetadata = (function() { + v1beta1.ListFeaturesRequest = (function() { /** - * Properties of an ImportFeatureValuesOperationMetadata. + * Properties of a ListFeaturesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IImportFeatureValuesOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ImportFeatureValuesOperationMetadata genericMetadata - * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesOperationMetadata importedEntityCount - * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesOperationMetadata importedFeatureValueCount - * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesOperationMetadata invalidRowCount + * @interface IListFeaturesRequest + * @property {string|null} [parent] ListFeaturesRequest parent + * @property {string|null} [filter] ListFeaturesRequest filter + * @property {number|null} [pageSize] ListFeaturesRequest pageSize + * @property {string|null} [pageToken] ListFeaturesRequest pageToken + * @property {string|null} [orderBy] ListFeaturesRequest orderBy + * @property {google.protobuf.IFieldMask|null} [readMask] ListFeaturesRequest readMask + * @property {number|null} [latestStatsCount] ListFeaturesRequest latestStatsCount */ /** - * Constructs a new ImportFeatureValuesOperationMetadata. + * Constructs a new ListFeaturesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ImportFeatureValuesOperationMetadata. - * @implements IImportFeatureValuesOperationMetadata + * @classdesc Represents a ListFeaturesRequest. + * @implements IListFeaturesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest=} [properties] Properties to set */ - function ImportFeatureValuesOperationMetadata(properties) { + function ListFeaturesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197663,114 +203766,153 @@ } /** - * ImportFeatureValuesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * ListFeaturesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @instance */ - ImportFeatureValuesOperationMetadata.prototype.genericMetadata = null; + ListFeaturesRequest.prototype.parent = ""; /** - * ImportFeatureValuesOperationMetadata importedEntityCount. - * @member {number|Long} importedEntityCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * ListFeaturesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @instance */ - ImportFeatureValuesOperationMetadata.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListFeaturesRequest.prototype.filter = ""; /** - * ImportFeatureValuesOperationMetadata importedFeatureValueCount. - * @member {number|Long} importedFeatureValueCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * ListFeaturesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @instance */ - ImportFeatureValuesOperationMetadata.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListFeaturesRequest.prototype.pageSize = 0; /** - * ImportFeatureValuesOperationMetadata invalidRowCount. - * @member {number|Long} invalidRowCount - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * ListFeaturesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @instance */ - ImportFeatureValuesOperationMetadata.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ListFeaturesRequest.prototype.pageToken = ""; /** - * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. + * ListFeaturesRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.orderBy = ""; + + /** + * ListFeaturesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.readMask = null; + + /** + * ListFeaturesRequest latestStatsCount. + * @member {number} latestStatsCount + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest + * @instance + */ + ListFeaturesRequest.prototype.latestStatsCount = 0; + + /** + * Creates a new ListFeaturesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest instance */ - ImportFeatureValuesOperationMetadata.create = function create(properties) { - return new ImportFeatureValuesOperationMetadata(properties); + ListFeaturesRequest.create = function create(properties) { + return new ListFeaturesRequest(properties); }; /** - * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified ListFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest} message ListFeaturesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFeatureValuesOperationMetadata.encode = function encode(message, writer) { + ListFeaturesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.importedEntityCount != null && Object.hasOwnProperty.call(message, "importedEntityCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.importedEntityCount); - if (message.importedFeatureValueCount != null && Object.hasOwnProperty.call(message, "importedFeatureValueCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.importedFeatureValueCount); - if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) - writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.orderBy); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.latestStatsCount != null && Object.hasOwnProperty.call(message, "latestStatsCount")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.latestStatsCount); return writer; }; /** - * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified ListFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesRequest} message ListFeaturesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ImportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a ListFeaturesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFeatureValuesOperationMetadata.decode = function decode(reader, length) { + ListFeaturesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.importedEntityCount = reader.int64(); + message.filter = reader.string(); break; case 3: - message.importedFeatureValueCount = reader.int64(); + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.orderBy = reader.string(); break; case 6: - message.invalidRowCount = reader.int64(); + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 7: + message.latestStatsCount = reader.int32(); break; default: reader.skipType(tag & 7); @@ -197781,179 +203923,163 @@ }; /** - * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ImportFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ImportFeatureValuesOperationMetadata message. + * Verifies a ListFeaturesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ImportFeatureValuesOperationMetadata.verify = function verify(message) { + ListFeaturesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "genericMetadata." + error; + return "readMask." + error; } - if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) - if (!$util.isInteger(message.importedEntityCount) && !(message.importedEntityCount && $util.isInteger(message.importedEntityCount.low) && $util.isInteger(message.importedEntityCount.high))) - return "importedEntityCount: integer|Long expected"; - if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) - if (!$util.isInteger(message.importedFeatureValueCount) && !(message.importedFeatureValueCount && $util.isInteger(message.importedFeatureValueCount.low) && $util.isInteger(message.importedFeatureValueCount.high))) - return "importedFeatureValueCount: integer|Long expected"; - if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) - if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) - return "invalidRowCount: integer|Long expected"; + if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) + if (!$util.isInteger(message.latestStatsCount)) + return "latestStatsCount: integer expected"; return null; }; /** - * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} ListFeaturesRequest */ - ImportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) + ListFeaturesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.orderBy != null) + message.orderBy = String(object.orderBy); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } - if (object.importedEntityCount != null) - if ($util.Long) - (message.importedEntityCount = $util.Long.fromValue(object.importedEntityCount)).unsigned = false; - else if (typeof object.importedEntityCount === "string") - message.importedEntityCount = parseInt(object.importedEntityCount, 10); - else if (typeof object.importedEntityCount === "number") - message.importedEntityCount = object.importedEntityCount; - else if (typeof object.importedEntityCount === "object") - message.importedEntityCount = new $util.LongBits(object.importedEntityCount.low >>> 0, object.importedEntityCount.high >>> 0).toNumber(); - if (object.importedFeatureValueCount != null) - if ($util.Long) - (message.importedFeatureValueCount = $util.Long.fromValue(object.importedFeatureValueCount)).unsigned = false; - else if (typeof object.importedFeatureValueCount === "string") - message.importedFeatureValueCount = parseInt(object.importedFeatureValueCount, 10); - else if (typeof object.importedFeatureValueCount === "number") - message.importedFeatureValueCount = object.importedFeatureValueCount; - else if (typeof object.importedFeatureValueCount === "object") - message.importedFeatureValueCount = new $util.LongBits(object.importedFeatureValueCount.low >>> 0, object.importedFeatureValueCount.high >>> 0).toNumber(); - if (object.invalidRowCount != null) - if ($util.Long) - (message.invalidRowCount = $util.Long.fromValue(object.invalidRowCount)).unsigned = false; - else if (typeof object.invalidRowCount === "string") - message.invalidRowCount = parseInt(object.invalidRowCount, 10); - else if (typeof object.invalidRowCount === "number") - message.invalidRowCount = object.invalidRowCount; - else if (typeof object.invalidRowCount === "object") - message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); + if (object.latestStatsCount != null) + message.latestStatsCount = object.latestStatsCount | 0; return message; }; /** - * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListFeaturesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListFeaturesRequest} message ListFeaturesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ImportFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + ListFeaturesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.genericMetadata = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.importedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.importedEntityCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.importedFeatureValueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.importedFeatureValueCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invalidRowCount = options.longs === String ? "0" : 0; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.orderBy = ""; + object.readMask = null; + object.latestStatsCount = 0; } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) - if (typeof message.importedEntityCount === "number") - object.importedEntityCount = options.longs === String ? String(message.importedEntityCount) : message.importedEntityCount; - else - object.importedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedEntityCount) : options.longs === Number ? new $util.LongBits(message.importedEntityCount.low >>> 0, message.importedEntityCount.high >>> 0).toNumber() : message.importedEntityCount; - if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) - if (typeof message.importedFeatureValueCount === "number") - object.importedFeatureValueCount = options.longs === String ? String(message.importedFeatureValueCount) : message.importedFeatureValueCount; - else - object.importedFeatureValueCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedFeatureValueCount) : options.longs === Number ? new $util.LongBits(message.importedFeatureValueCount.low >>> 0, message.importedFeatureValueCount.high >>> 0).toNumber() : message.importedFeatureValueCount; - if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) - if (typeof message.invalidRowCount === "number") - object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; - else - object.invalidRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRowCount) : options.longs === Number ? new $util.LongBits(message.invalidRowCount.low >>> 0, message.invalidRowCount.high >>> 0).toNumber() : message.invalidRowCount; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.latestStatsCount != null && message.hasOwnProperty("latestStatsCount")) + object.latestStatsCount = message.latestStatsCount; return object; }; /** - * Converts this ImportFeatureValuesOperationMetadata to JSON. + * Converts this ListFeaturesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesRequest * @instance * @returns {Object.} JSON object */ - ImportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + ListFeaturesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ImportFeatureValuesOperationMetadata; + return ListFeaturesRequest; })(); - v1beta1.ExportFeatureValuesOperationMetadata = (function() { + v1beta1.ListFeaturesResponse = (function() { /** - * Properties of an ExportFeatureValuesOperationMetadata. + * Properties of a ListFeaturesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IExportFeatureValuesOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportFeatureValuesOperationMetadata genericMetadata + * @interface IListFeaturesResponse + * @property {Array.|null} [features] ListFeaturesResponse features + * @property {string|null} [nextPageToken] ListFeaturesResponse nextPageToken */ /** - * Constructs a new ExportFeatureValuesOperationMetadata. + * Constructs a new ListFeaturesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an ExportFeatureValuesOperationMetadata. - * @implements IExportFeatureValuesOperationMetadata + * @classdesc Represents a ListFeaturesResponse. + * @implements IListFeaturesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse=} [properties] Properties to set */ - function ExportFeatureValuesOperationMetadata(properties) { + function ListFeaturesResponse(properties) { + this.features = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -197961,75 +204087,91 @@ } /** - * ExportFeatureValuesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * ListFeaturesResponse features. + * @member {Array.} features + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @instance */ - ExportFeatureValuesOperationMetadata.prototype.genericMetadata = null; + ListFeaturesResponse.prototype.features = $util.emptyArray; /** - * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. + * ListFeaturesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse + * @instance + */ + ListFeaturesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListFeaturesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse instance */ - ExportFeatureValuesOperationMetadata.create = function create(properties) { - return new ExportFeatureValuesOperationMetadata(properties); + ListFeaturesResponse.create = function create(properties) { + return new ListFeaturesResponse(properties); }; /** - * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified ListFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse} message ListFeaturesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesOperationMetadata.encode = function encode(message, writer) { + ListFeaturesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.features != null && message.features.length) + for (var i = 0; i < message.features.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Feature.encode(message.features[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified ListFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListFeaturesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListFeaturesResponse} message ListFeaturesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a ListFeaturesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesOperationMetadata.decode = function decode(reader, length) { + ListFeaturesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.features && message.features.length)) + message.features = []; + message.features.push($root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -198040,112 +204182,136 @@ }; /** - * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListFeaturesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExportFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExportFeatureValuesOperationMetadata message. + * Verifies a ListFeaturesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExportFeatureValuesOperationMetadata.verify = function verify(message) { + ListFeaturesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; + if (message.features != null && message.hasOwnProperty("features")) { + if (!Array.isArray(message.features)) + return "features: array expected"; + for (var i = 0; i < message.features.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Feature.verify(message.features[i]); + if (error) + return "features." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListFeaturesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} ListFeaturesResponse */ - ExportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) + ListFeaturesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListFeaturesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListFeaturesResponse(); + if (object.features) { + if (!Array.isArray(object.features)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturesResponse.features: array expected"); + message.features = []; + for (var i = 0; i < object.features.length; ++i) { + if (typeof object.features[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListFeaturesResponse.features: object expected"); + message.features[i] = $root.google.cloud.aiplatform.v1beta1.Feature.fromObject(object.features[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListFeaturesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListFeaturesResponse} message ListFeaturesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExportFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + ListFeaturesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.features = []; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.nextPageToken = ""; + if (message.features && message.features.length) { + object.features = []; + for (var j = 0; j < message.features.length; ++j) + object.features[j] = $root.google.cloud.aiplatform.v1beta1.Feature.toObject(message.features[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ExportFeatureValuesOperationMetadata to JSON. + * Converts this ListFeaturesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListFeaturesResponse * @instance * @returns {Object.} JSON object */ - ExportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + ListFeaturesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ExportFeatureValuesOperationMetadata; + return ListFeaturesResponse; })(); - v1beta1.BatchReadFeatureValuesOperationMetadata = (function() { + v1beta1.SearchFeaturesRequest = (function() { /** - * Properties of a BatchReadFeatureValuesOperationMetadata. + * Properties of a SearchFeaturesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchReadFeatureValuesOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchReadFeatureValuesOperationMetadata genericMetadata + * @interface ISearchFeaturesRequest + * @property {string|null} [location] SearchFeaturesRequest location + * @property {string|null} [query] SearchFeaturesRequest query + * @property {number|null} [pageSize] SearchFeaturesRequest pageSize + * @property {string|null} [pageToken] SearchFeaturesRequest pageToken */ /** - * Constructs a new BatchReadFeatureValuesOperationMetadata. + * Constructs a new SearchFeaturesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchReadFeatureValuesOperationMetadata. - * @implements IBatchReadFeatureValuesOperationMetadata + * @classdesc Represents a SearchFeaturesRequest. + * @implements ISearchFeaturesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest=} [properties] Properties to set */ - function BatchReadFeatureValuesOperationMetadata(properties) { + function SearchFeaturesRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -198153,75 +204319,114 @@ } /** - * BatchReadFeatureValuesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * SearchFeaturesRequest location. + * @member {string} location + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @instance */ - BatchReadFeatureValuesOperationMetadata.prototype.genericMetadata = null; + SearchFeaturesRequest.prototype.location = ""; /** - * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. + * SearchFeaturesRequest query. + * @member {string} query + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @instance + */ + SearchFeaturesRequest.prototype.query = ""; + + /** + * SearchFeaturesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @instance + */ + SearchFeaturesRequest.prototype.pageSize = 0; + + /** + * SearchFeaturesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest + * @instance + */ + SearchFeaturesRequest.prototype.pageToken = ""; + + /** + * Creates a new SearchFeaturesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest instance */ - BatchReadFeatureValuesOperationMetadata.create = function create(properties) { - return new BatchReadFeatureValuesOperationMetadata(properties); + SearchFeaturesRequest.create = function create(properties) { + return new SearchFeaturesRequest(properties); }; /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified SearchFeaturesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest} message SearchFeaturesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchReadFeatureValuesOperationMetadata.encode = function encode(message, writer) { + SearchFeaturesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.location != null && Object.hasOwnProperty.call(message, "location")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.location); + if (message.query != null && Object.hasOwnProperty.call(message, "query")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.query); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.pageToken); return writer; }; /** - * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. + * Encodes the specified SearchFeaturesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesRequest} message SearchFeaturesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchReadFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + SearchFeaturesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. + * Decodes a SearchFeaturesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchReadFeatureValuesOperationMetadata.decode = function decode(reader, length) { + SearchFeaturesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.location = reader.string(); + break; + case 3: + message.query = reader.string(); + break; + case 4: + message.pageSize = reader.int32(); + break; + case 5: + message.pageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -198232,112 +204437,134 @@ }; /** - * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a SearchFeaturesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchReadFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + SearchFeaturesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchReadFeatureValuesOperationMetadata message. + * Verifies a SearchFeaturesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchReadFeatureValuesOperationMetadata.verify = function verify(message) { + SearchFeaturesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } + if (message.location != null && message.hasOwnProperty("location")) + if (!$util.isString(message.location)) + return "location: string expected"; + if (message.query != null && message.hasOwnProperty("query")) + if (!$util.isString(message.query)) + return "query: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; return null; }; /** - * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a SearchFeaturesRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} SearchFeaturesRequest */ - BatchReadFeatureValuesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) + SearchFeaturesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1beta1.SearchFeaturesRequest(); + if (object.location != null) + message.location = String(object.location); + if (object.query != null) + message.query = String(object.query); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); return message; }; /** - * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a SearchFeaturesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.SearchFeaturesRequest} message SearchFeaturesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchReadFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + SearchFeaturesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.location = ""; + object.query = ""; + object.pageSize = 0; + object.pageToken = ""; + } + if (message.location != null && message.hasOwnProperty("location")) + object.location = message.location; + if (message.query != null && message.hasOwnProperty("query")) + object.query = message.query; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; return object; }; /** - * Converts this BatchReadFeatureValuesOperationMetadata to JSON. + * Converts this SearchFeaturesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesRequest * @instance * @returns {Object.} JSON object */ - BatchReadFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + SearchFeaturesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchReadFeatureValuesOperationMetadata; + return SearchFeaturesRequest; })(); - v1beta1.CreateEntityTypeOperationMetadata = (function() { + v1beta1.SearchFeaturesResponse = (function() { /** - * Properties of a CreateEntityTypeOperationMetadata. + * Properties of a SearchFeaturesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateEntityTypeOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateEntityTypeOperationMetadata genericMetadata + * @interface ISearchFeaturesResponse + * @property {Array.|null} [features] SearchFeaturesResponse features + * @property {string|null} [nextPageToken] SearchFeaturesResponse nextPageToken */ /** - * Constructs a new CreateEntityTypeOperationMetadata. + * Constructs a new SearchFeaturesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateEntityTypeOperationMetadata. - * @implements ICreateEntityTypeOperationMetadata + * @classdesc Represents a SearchFeaturesResponse. + * @implements ISearchFeaturesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse=} [properties] Properties to set */ - function CreateEntityTypeOperationMetadata(properties) { + function SearchFeaturesResponse(properties) { + this.features = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -198345,75 +204572,91 @@ } /** - * CreateEntityTypeOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * SearchFeaturesResponse features. + * @member {Array.} features + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @instance */ - CreateEntityTypeOperationMetadata.prototype.genericMetadata = null; + SearchFeaturesResponse.prototype.features = $util.emptyArray; /** - * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. + * SearchFeaturesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse + * @instance + */ + SearchFeaturesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new SearchFeaturesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse instance */ - CreateEntityTypeOperationMetadata.create = function create(properties) { - return new CreateEntityTypeOperationMetadata(properties); + SearchFeaturesResponse.create = function create(properties) { + return new SearchFeaturesResponse(properties); }; /** - * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * Encodes the specified SearchFeaturesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse} message SearchFeaturesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeOperationMetadata.encode = function encode(message, writer) { + SearchFeaturesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.features != null && message.features.length) + for (var i = 0; i < message.features.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Feature.encode(message.features[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * Encodes the specified SearchFeaturesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchFeaturesResponse} message SearchFeaturesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateEntityTypeOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + SearchFeaturesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. + * Decodes a SearchFeaturesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeOperationMetadata.decode = function decode(reader, length) { + SearchFeaturesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + if (!(message.features && message.features.length)) + message.features = []; + message.features.push($root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -198424,112 +204667,134 @@ }; /** - * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a SearchFeaturesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateEntityTypeOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + SearchFeaturesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateEntityTypeOperationMetadata message. + * Verifies a SearchFeaturesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateEntityTypeOperationMetadata.verify = function verify(message) { + SearchFeaturesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; + if (message.features != null && message.hasOwnProperty("features")) { + if (!Array.isArray(message.features)) + return "features: array expected"; + for (var i = 0; i < message.features.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Feature.verify(message.features[i]); + if (error) + return "features." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a SearchFeaturesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} SearchFeaturesResponse */ - CreateEntityTypeOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) + SearchFeaturesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchFeaturesResponse(); + if (object.features) { + if (!Array.isArray(object.features)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.features: array expected"); + message.features = []; + for (var i = 0; i < object.features.length; ++i) { + if (typeof object.features[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchFeaturesResponse.features: object expected"); + message.features[i] = $root.google.cloud.aiplatform.v1beta1.Feature.fromObject(object.features[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a SearchFeaturesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.SearchFeaturesResponse} message SearchFeaturesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateEntityTypeOperationMetadata.toObject = function toObject(message, options) { + SearchFeaturesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.features = []; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.nextPageToken = ""; + if (message.features && message.features.length) { + object.features = []; + for (var j = 0; j < message.features.length; ++j) + object.features[j] = $root.google.cloud.aiplatform.v1beta1.Feature.toObject(message.features[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateEntityTypeOperationMetadata to JSON. + * Converts this SearchFeaturesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchFeaturesResponse * @instance * @returns {Object.} JSON object */ - CreateEntityTypeOperationMetadata.prototype.toJSON = function toJSON() { + SearchFeaturesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateEntityTypeOperationMetadata; + return SearchFeaturesResponse; })(); - v1beta1.CreateFeatureOperationMetadata = (function() { + v1beta1.UpdateFeatureRequest = (function() { /** - * Properties of a CreateFeatureOperationMetadata. + * Properties of an UpdateFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateFeatureOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateFeatureOperationMetadata genericMetadata + * @interface IUpdateFeatureRequest + * @property {google.cloud.aiplatform.v1beta1.IFeature|null} [feature] UpdateFeatureRequest feature + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateFeatureRequest updateMask */ /** - * Constructs a new CreateFeatureOperationMetadata. + * Constructs a new UpdateFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateFeatureOperationMetadata. - * @implements ICreateFeatureOperationMetadata + * @classdesc Represents an UpdateFeatureRequest. + * @implements IUpdateFeatureRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest=} [properties] Properties to set */ - function CreateFeatureOperationMetadata(properties) { + function UpdateFeatureRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -198537,75 +204802,88 @@ } /** - * CreateFeatureOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * UpdateFeatureRequest feature. + * @member {google.cloud.aiplatform.v1beta1.IFeature|null|undefined} feature + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @instance */ - CreateFeatureOperationMetadata.prototype.genericMetadata = null; + UpdateFeatureRequest.prototype.feature = null; /** - * Creates a new CreateFeatureOperationMetadata instance using the specified properties. + * UpdateFeatureRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest + * @instance + */ + UpdateFeatureRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateFeatureRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest instance */ - CreateFeatureOperationMetadata.create = function create(properties) { - return new CreateFeatureOperationMetadata(properties); + UpdateFeatureRequest.create = function create(properties) { + return new UpdateFeatureRequest(properties); }; /** - * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata} message CreateFeatureOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest} message UpdateFeatureRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeatureOperationMetadata.encode = function encode(message, writer) { + UpdateFeatureRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.feature != null && Object.hasOwnProperty.call(message, "feature")) + $root.google.cloud.aiplatform.v1beta1.Feature.encode(message.feature, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. + * Encodes the specified UpdateFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata} message CreateFeatureOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeatureRequest} message UpdateFeatureRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateFeatureOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. + * Decodes an UpdateFeatureRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeatureOperationMetadata.decode = function decode(reader, length) { + UpdateFeatureRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.feature = $root.google.cloud.aiplatform.v1beta1.Feature.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -198616,112 +204894,126 @@ }; /** - * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeatureRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateFeatureOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + UpdateFeatureRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateFeatureOperationMetadata message. + * Verifies an UpdateFeatureRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateFeatureOperationMetadata.verify = function verify(message) { + UpdateFeatureRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.feature != null && message.hasOwnProperty("feature")) { + var error = $root.google.cloud.aiplatform.v1beta1.Feature.verify(message.feature); if (error) - return "genericMetadata." + error; + return "feature." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeatureRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} UpdateFeatureRequest */ - CreateFeatureOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) + UpdateFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeatureRequest(); + if (object.feature != null) { + if (typeof object.feature !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.feature: object expected"); + message.feature = $root.google.cloud.aiplatform.v1beta1.Feature.fromObject(object.feature); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateFeatureRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFeatureRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} message CreateFeatureOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.UpdateFeatureRequest} message UpdateFeatureRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateFeatureOperationMetadata.toObject = function toObject(message, options) { + UpdateFeatureRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.feature = null; + object.updateMask = null; + } + if (message.feature != null && message.hasOwnProperty("feature")) + object.feature = $root.google.cloud.aiplatform.v1beta1.Feature.toObject(message.feature, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this CreateFeatureOperationMetadata to JSON. + * Converts this UpdateFeatureRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeatureRequest * @instance * @returns {Object.} JSON object */ - CreateFeatureOperationMetadata.prototype.toJSON = function toJSON() { + UpdateFeatureRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateFeatureOperationMetadata; + return UpdateFeatureRequest; })(); - v1beta1.BatchCreateFeaturesOperationMetadata = (function() { + v1beta1.DeleteFeatureRequest = (function() { /** - * Properties of a BatchCreateFeaturesOperationMetadata. + * Properties of a DeleteFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IBatchCreateFeaturesOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchCreateFeaturesOperationMetadata genericMetadata + * @interface IDeleteFeatureRequest + * @property {string|null} [name] DeleteFeatureRequest name */ /** - * Constructs a new BatchCreateFeaturesOperationMetadata. + * Constructs a new DeleteFeatureRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a BatchCreateFeaturesOperationMetadata. - * @implements IBatchCreateFeaturesOperationMetadata + * @classdesc Represents a DeleteFeatureRequest. + * @implements IDeleteFeatureRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest=} [properties] Properties to set */ - function BatchCreateFeaturesOperationMetadata(properties) { + function DeleteFeatureRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -198729,75 +205021,75 @@ } /** - * BatchCreateFeaturesOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * DeleteFeatureRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @instance */ - BatchCreateFeaturesOperationMetadata.prototype.genericMetadata = null; + DeleteFeatureRequest.prototype.name = ""; /** - * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. + * Creates a new DeleteFeatureRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest instance */ - BatchCreateFeaturesOperationMetadata.create = function create(properties) { - return new BatchCreateFeaturesOperationMetadata(properties); + DeleteFeatureRequest.create = function create(properties) { + return new DeleteFeatureRequest(properties); }; /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteFeatureRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest} message DeleteFeatureRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateFeaturesOperationMetadata.encode = function encode(message, writer) { + DeleteFeatureRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteFeatureRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteFeatureRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteFeatureRequest} message DeleteFeatureRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - BatchCreateFeaturesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteFeatureRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteFeatureRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateFeaturesOperationMetadata.decode = function decode(reader, length) { + DeleteFeatureRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -198808,129 +205100,107 @@ }; /** - * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteFeatureRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - BatchCreateFeaturesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + DeleteFeatureRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a BatchCreateFeaturesOperationMetadata message. + * Verifies a DeleteFeatureRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - BatchCreateFeaturesOperationMetadata.verify = function verify(message) { + DeleteFeatureRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteFeatureRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} DeleteFeatureRequest */ - BatchCreateFeaturesOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) + DeleteFeatureRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteFeatureRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeleteFeatureRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @static - * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.DeleteFeatureRequest} message DeleteFeatureRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - BatchCreateFeaturesOperationMetadata.toObject = function toObject(message, options) { + DeleteFeatureRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this BatchCreateFeaturesOperationMetadata to JSON. + * Converts this DeleteFeatureRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteFeatureRequest * @instance * @returns {Object.} JSON object */ - BatchCreateFeaturesOperationMetadata.prototype.toJSON = function toJSON() { + DeleteFeatureRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return BatchCreateFeaturesOperationMetadata; + return DeleteFeatureRequest; })(); - v1beta1.HyperparameterTuningJob = (function() { + v1beta1.CreateFeaturestoreOperationMetadata = (function() { /** - * Properties of a HyperparameterTuningJob. + * Properties of a CreateFeaturestoreOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IHyperparameterTuningJob - * @property {string|null} [name] HyperparameterTuningJob name - * @property {string|null} [displayName] HyperparameterTuningJob displayName - * @property {google.cloud.aiplatform.v1beta1.IStudySpec|null} [studySpec] HyperparameterTuningJob studySpec - * @property {number|null} [maxTrialCount] HyperparameterTuningJob maxTrialCount - * @property {number|null} [parallelTrialCount] HyperparameterTuningJob parallelTrialCount - * @property {number|null} [maxFailedTrialCount] HyperparameterTuningJob maxFailedTrialCount - * @property {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null} [trialJobSpec] HyperparameterTuningJob trialJobSpec - * @property {Array.|null} [trials] HyperparameterTuningJob trials - * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] HyperparameterTuningJob state - * @property {google.protobuf.ITimestamp|null} [createTime] HyperparameterTuningJob createTime - * @property {google.protobuf.ITimestamp|null} [startTime] HyperparameterTuningJob startTime - * @property {google.protobuf.ITimestamp|null} [endTime] HyperparameterTuningJob endTime - * @property {google.protobuf.ITimestamp|null} [updateTime] HyperparameterTuningJob updateTime - * @property {google.rpc.IStatus|null} [error] HyperparameterTuningJob error - * @property {Object.|null} [labels] HyperparameterTuningJob labels - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] HyperparameterTuningJob encryptionSpec + * @interface ICreateFeaturestoreOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateFeaturestoreOperationMetadata genericMetadata */ /** - * Constructs a new HyperparameterTuningJob. + * Constructs a new CreateFeaturestoreOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a HyperparameterTuningJob. - * @implements IHyperparameterTuningJob + * @classdesc Represents a CreateFeaturestoreOperationMetadata. + * @implements ICreateFeaturestoreOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set */ - function HyperparameterTuningJob(properties) { - this.trials = []; - this.labels = {}; + function CreateFeaturestoreOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -198938,293 +205208,267 @@ } /** - * HyperparameterTuningJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.name = ""; - - /** - * HyperparameterTuningJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * CreateFeaturestoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata * @instance */ - HyperparameterTuningJob.prototype.displayName = ""; + CreateFeaturestoreOperationMetadata.prototype.genericMetadata = null; /** - * HyperparameterTuningJob studySpec. - * @member {google.cloud.aiplatform.v1beta1.IStudySpec|null|undefined} studySpec - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance + * Creates a new CreateFeaturestoreOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata instance */ - HyperparameterTuningJob.prototype.studySpec = null; + CreateFeaturestoreOperationMetadata.create = function create(properties) { + return new CreateFeaturestoreOperationMetadata(properties); + }; /** - * HyperparameterTuningJob maxTrialCount. - * @member {number} maxTrialCount - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance + * Encodes the specified CreateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - HyperparameterTuningJob.prototype.maxTrialCount = 0; + CreateFeaturestoreOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; /** - * HyperparameterTuningJob parallelTrialCount. - * @member {number} parallelTrialCount - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance + * Encodes the specified CreateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - HyperparameterTuningJob.prototype.parallelTrialCount = 0; + CreateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * HyperparameterTuningJob maxFailedTrialCount. - * @member {number} maxFailedTrialCount - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HyperparameterTuningJob.prototype.maxFailedTrialCount = 0; + CreateFeaturestoreOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * HyperparameterTuningJob trialJobSpec. - * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} trialJobSpec - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance + * Decodes a CreateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HyperparameterTuningJob.prototype.trialJobSpec = null; + CreateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * HyperparameterTuningJob trials. - * @member {Array.} trials - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance + * Verifies a CreateFeaturestoreOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HyperparameterTuningJob.prototype.trials = $util.emptyArray; + CreateFeaturestoreOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; /** - * HyperparameterTuningJob state. - * @member {google.cloud.aiplatform.v1beta1.JobState} state - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance + * Creates a CreateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} CreateFeaturestoreOperationMetadata */ - HyperparameterTuningJob.prototype.state = 0; + CreateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; /** - * HyperparameterTuningJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance + * Creates a plain object from a CreateFeaturestoreOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata} message CreateFeaturestoreOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - HyperparameterTuningJob.prototype.createTime = null; + CreateFeaturestoreOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; /** - * HyperparameterTuningJob startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * Converts this CreateFeaturestoreOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateFeaturestoreOperationMetadata * @instance + * @returns {Object.} JSON object */ - HyperparameterTuningJob.prototype.startTime = null; + CreateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * HyperparameterTuningJob endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.endTime = null; + return CreateFeaturestoreOperationMetadata; + })(); - /** - * HyperparameterTuningJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance - */ - HyperparameterTuningJob.prototype.updateTime = null; + v1beta1.UpdateFeaturestoreOperationMetadata = (function() { /** - * HyperparameterTuningJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance + * Properties of an UpdateFeaturestoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IUpdateFeaturestoreOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateFeaturestoreOperationMetadata genericMetadata */ - HyperparameterTuningJob.prototype.error = null; /** - * HyperparameterTuningJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob - * @instance + * Constructs a new UpdateFeaturestoreOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents an UpdateFeaturestoreOperationMetadata. + * @implements IUpdateFeaturestoreOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set */ - HyperparameterTuningJob.prototype.labels = $util.emptyObject; + function UpdateFeaturestoreOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * HyperparameterTuningJob encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * UpdateFeaturestoreOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata * @instance */ - HyperparameterTuningJob.prototype.encryptionSpec = null; + UpdateFeaturestoreOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new HyperparameterTuningJob instance using the specified properties. + * Creates a new UpdateFeaturestoreOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata instance */ - HyperparameterTuningJob.create = function create(properties) { - return new HyperparameterTuningJob(properties); + UpdateFeaturestoreOperationMetadata.create = function create(properties) { + return new UpdateFeaturestoreOperationMetadata(properties); }; /** - * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. + * Encodes the specified UpdateFeaturestoreOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob} message HyperparameterTuningJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HyperparameterTuningJob.encode = function encode(message, writer) { + UpdateFeaturestoreOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.studySpec != null && Object.hasOwnProperty.call(message, "studySpec")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.encode(message.studySpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.maxTrialCount != null && Object.hasOwnProperty.call(message, "maxTrialCount")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxTrialCount); - if (message.parallelTrialCount != null && Object.hasOwnProperty.call(message, "parallelTrialCount")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.parallelTrialCount); - if (message.maxFailedTrialCount != null && Object.hasOwnProperty.call(message, "maxFailedTrialCount")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxFailedTrialCount); - if (message.trialJobSpec != null && Object.hasOwnProperty.call(message, "trialJobSpec")) - $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.encode(message.trialJobSpec, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.trials != null && message.trials.length) - for (var i = 0; i < message.trials.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Trial.encode(message.trials[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 10, wireType 0 =*/80).int32(message.state); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. + * Encodes the specified UpdateFeaturestoreOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob} message HyperparameterTuningJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - HyperparameterTuningJob.encodeDelimited = function encodeDelimited(message, writer) { + UpdateFeaturestoreOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer. + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HyperparameterTuningJob.decode = function decode(reader, length) { + UpdateFeaturestoreOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 4: - message.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.decode(reader, reader.uint32()); - break; - case 5: - message.maxTrialCount = reader.int32(); - break; - case 6: - message.parallelTrialCount = reader.int32(); - break; - case 7: - message.maxFailedTrialCount = reader.int32(); - break; - case 8: - message.trialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.decode(reader, reader.uint32()); - break; - case 9: - if (!(message.trials && message.trials.length)) - message.trials = []; - message.trials.push($root.google.cloud.aiplatform.v1beta1.Trial.decode(reader, reader.uint32())); - break; - case 10: - message.state = reader.int32(); - break; - case 11: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 12: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 13: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 14: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 15: - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); - break; - case 16: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 17: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -199235,364 +205479,115 @@ }; /** - * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. + * Decodes an UpdateFeaturestoreOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - HyperparameterTuningJob.decodeDelimited = function decodeDelimited(reader) { + UpdateFeaturestoreOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a HyperparameterTuningJob message. + * Verifies an UpdateFeaturestoreOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - HyperparameterTuningJob.verify = function verify(message) { + UpdateFeaturestoreOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.studySpec != null && message.hasOwnProperty("studySpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.verify(message.studySpec); - if (error) - return "studySpec." + error; - } - if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) - if (!$util.isInteger(message.maxTrialCount)) - return "maxTrialCount: integer expected"; - if (message.parallelTrialCount != null && message.hasOwnProperty("parallelTrialCount")) - if (!$util.isInteger(message.parallelTrialCount)) - return "parallelTrialCount: integer expected"; - if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) - if (!$util.isInteger(message.maxFailedTrialCount)) - return "maxFailedTrialCount: integer expected"; - if (message.trialJobSpec != null && message.hasOwnProperty("trialJobSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.verify(message.trialJobSpec); - if (error) - return "trialJobSpec." + error; - } - if (message.trials != null && message.hasOwnProperty("trials")) { - if (!Array.isArray(message.trials)) - return "trials: array expected"; - for (var i = 0; i < message.trials.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Trial.verify(message.trials[i]); - if (error) - return "trials." + error; - } - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "encryptionSpec." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateFeaturestoreOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob + * @returns {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} UpdateFeaturestoreOperationMetadata */ - HyperparameterTuningJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) + UpdateFeaturestoreOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.studySpec != null) { - if (typeof object.studySpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.studySpec: object expected"); - message.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.fromObject(object.studySpec); - } - if (object.maxTrialCount != null) - message.maxTrialCount = object.maxTrialCount | 0; - if (object.parallelTrialCount != null) - message.parallelTrialCount = object.parallelTrialCount | 0; - if (object.maxFailedTrialCount != null) - message.maxFailedTrialCount = object.maxFailedTrialCount | 0; - if (object.trialJobSpec != null) { - if (typeof object.trialJobSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trialJobSpec: object expected"); - message.trialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.fromObject(object.trialJobSpec); - } - if (object.trials) { - if (!Array.isArray(object.trials)) - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials: array expected"); - message.trials = []; - for (var i = 0; i < object.trials.length; ++i) { - if (typeof object.trials[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials: object expected"); - message.trials[i] = $root.google.cloud.aiplatform.v1beta1.Trial.fromObject(object.trials[i]); - } - } - switch (object.state) { - case "JOB_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "JOB_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "JOB_STATE_PENDING": - case 2: - message.state = 2; - break; - case "JOB_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "JOB_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "JOB_STATE_FAILED": - case 5: - message.state = 5; - break; - case "JOB_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "JOB_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "JOB_STATE_PAUSED": - case 8: - message.state = 8; - break; - case "JOB_STATE_EXPIRED": - case 9: - message.state = 9; - break; - case "JOB_STATE_UPDATING": - case 10: - message.state = 10; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. + * Creates a plain object from an UpdateFeaturestoreOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} message HyperparameterTuningJob + * @param {google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata} message UpdateFeaturestoreOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - HyperparameterTuningJob.toObject = function toObject(message, options) { + UpdateFeaturestoreOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.trials = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.studySpec = null; - object.maxTrialCount = 0; - object.parallelTrialCount = 0; - object.maxFailedTrialCount = 0; - object.trialJobSpec = null; - object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; - object.createTime = null; - object.startTime = null; - object.endTime = null; - object.updateTime = null; - object.error = null; - object.encryptionSpec = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.studySpec != null && message.hasOwnProperty("studySpec")) - object.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.toObject(message.studySpec, options); - if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) - object.maxTrialCount = message.maxTrialCount; - if (message.parallelTrialCount != null && message.hasOwnProperty("parallelTrialCount")) - object.parallelTrialCount = message.parallelTrialCount; - if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) - object.maxFailedTrialCount = message.maxFailedTrialCount; - if (message.trialJobSpec != null && message.hasOwnProperty("trialJobSpec")) - object.trialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.toObject(message.trialJobSpec, options); - if (message.trials && message.trials.length) { - object.trials = []; - for (var j = 0; j < message.trials.length; ++j) - object.trials[j] = $root.google.cloud.aiplatform.v1beta1.Trial.toObject(message.trials[j], options); - } - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this HyperparameterTuningJob to JSON. + * Converts this UpdateFeaturestoreOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateFeaturestoreOperationMetadata * @instance * @returns {Object.} JSON object */ - HyperparameterTuningJob.prototype.toJSON = function toJSON() { + UpdateFeaturestoreOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return HyperparameterTuningJob; + return UpdateFeaturestoreOperationMetadata; })(); - v1beta1.Study = (function() { + v1beta1.ImportFeatureValuesOperationMetadata = (function() { /** - * Properties of a Study. + * Properties of an ImportFeatureValuesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStudy - * @property {string|null} [name] Study name - * @property {string|null} [displayName] Study displayName - * @property {google.cloud.aiplatform.v1beta1.IStudySpec|null} [studySpec] Study studySpec - * @property {google.cloud.aiplatform.v1beta1.Study.State|null} [state] Study state - * @property {google.protobuf.ITimestamp|null} [createTime] Study createTime - * @property {string|null} [inactiveReason] Study inactiveReason + * @interface IImportFeatureValuesOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ImportFeatureValuesOperationMetadata genericMetadata + * @property {number|Long|null} [importedEntityCount] ImportFeatureValuesOperationMetadata importedEntityCount + * @property {number|Long|null} [importedFeatureValueCount] ImportFeatureValuesOperationMetadata importedFeatureValueCount + * @property {number|Long|null} [invalidRowCount] ImportFeatureValuesOperationMetadata invalidRowCount */ /** - * Constructs a new Study. + * Constructs a new ImportFeatureValuesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Study. - * @implements IStudy + * @classdesc Represents an ImportFeatureValuesOperationMetadata. + * @implements IImportFeatureValuesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStudy=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set */ - function Study(properties) { + function ImportFeatureValuesOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -199600,140 +205595,114 @@ } /** - * Study name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Study - * @instance - */ - Study.prototype.name = ""; - - /** - * Study displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Study - * @instance - */ - Study.prototype.displayName = ""; - - /** - * Study studySpec. - * @member {google.cloud.aiplatform.v1beta1.IStudySpec|null|undefined} studySpec - * @memberof google.cloud.aiplatform.v1beta1.Study + * ImportFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @instance */ - Study.prototype.studySpec = null; + ImportFeatureValuesOperationMetadata.prototype.genericMetadata = null; /** - * Study state. - * @member {google.cloud.aiplatform.v1beta1.Study.State} state - * @memberof google.cloud.aiplatform.v1beta1.Study + * ImportFeatureValuesOperationMetadata importedEntityCount. + * @member {number|Long} importedEntityCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @instance */ - Study.prototype.state = 0; + ImportFeatureValuesOperationMetadata.prototype.importedEntityCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Study createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Study + * ImportFeatureValuesOperationMetadata importedFeatureValueCount. + * @member {number|Long} importedFeatureValueCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @instance */ - Study.prototype.createTime = null; + ImportFeatureValuesOperationMetadata.prototype.importedFeatureValueCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Study inactiveReason. - * @member {string} inactiveReason - * @memberof google.cloud.aiplatform.v1beta1.Study + * ImportFeatureValuesOperationMetadata invalidRowCount. + * @member {number|Long} invalidRowCount + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @instance */ - Study.prototype.inactiveReason = ""; + ImportFeatureValuesOperationMetadata.prototype.invalidRowCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new Study instance using the specified properties. + * Creates a new ImportFeatureValuesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStudy=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Study} Study instance + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata instance */ - Study.create = function create(properties) { - return new Study(properties); + ImportFeatureValuesOperationMetadata.create = function create(properties) { + return new ImportFeatureValuesOperationMetadata(properties); }; /** - * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. + * Encodes the specified ImportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStudy} message Study message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Study.encode = function encode(message, writer) { + ImportFeatureValuesOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.studySpec != null && Object.hasOwnProperty.call(message, "studySpec")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.encode(message.studySpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.inactiveReason != null && Object.hasOwnProperty.call(message, "inactiveReason")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.inactiveReason); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.importedEntityCount != null && Object.hasOwnProperty.call(message, "importedEntityCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.importedEntityCount); + if (message.importedFeatureValueCount != null && Object.hasOwnProperty.call(message, "importedFeatureValueCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.importedFeatureValueCount); + if (message.invalidRowCount != null && Object.hasOwnProperty.call(message, "invalidRowCount")) + writer.uint32(/* id 6, wireType 0 =*/48).int64(message.invalidRowCount); return writer; }; /** - * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. + * Encodes the specified ImportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStudy} message Study message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Study.encodeDelimited = function encodeDelimited(message, writer) { + ImportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Study message from the specified reader or buffer. + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Study} Study + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Study.decode = function decode(reader, length) { + ImportFeatureValuesOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Study(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; case 2: - message.displayName = reader.string(); + message.importedEntityCount = reader.int64(); break; case 3: - message.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.decode(reader, reader.uint32()); - break; - case 4: - message.state = reader.int32(); - break; - case 5: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.importedFeatureValueCount = reader.int64(); break; case 6: - message.inactiveReason = reader.string(); + message.invalidRowCount = reader.int64(); break; default: reader.skipType(tag & 7); @@ -199744,213 +205713,179 @@ }; /** - * Decodes a Study message from the specified reader or buffer, length delimited. + * Decodes an ImportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Study} Study + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Study.decodeDelimited = function decodeDelimited(reader) { + ImportFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Study message. + * Verifies an ImportFeatureValuesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Study.verify = function verify(message) { + ImportFeatureValuesOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.studySpec != null && message.hasOwnProperty("studySpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.verify(message.studySpec); - if (error) - return "studySpec." + error; - } - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "createTime." + error; + return "genericMetadata." + error; } - if (message.inactiveReason != null && message.hasOwnProperty("inactiveReason")) - if (!$util.isString(message.inactiveReason)) - return "inactiveReason: string expected"; + if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) + if (!$util.isInteger(message.importedEntityCount) && !(message.importedEntityCount && $util.isInteger(message.importedEntityCount.low) && $util.isInteger(message.importedEntityCount.high))) + return "importedEntityCount: integer|Long expected"; + if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) + if (!$util.isInteger(message.importedFeatureValueCount) && !(message.importedFeatureValueCount && $util.isInteger(message.importedFeatureValueCount.low) && $util.isInteger(message.importedFeatureValueCount.high))) + return "importedFeatureValueCount: integer|Long expected"; + if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) + if (!$util.isInteger(message.invalidRowCount) && !(message.invalidRowCount && $util.isInteger(message.invalidRowCount.low) && $util.isInteger(message.invalidRowCount.high))) + return "invalidRowCount: integer|Long expected"; return null; }; /** - * Creates a Study message from a plain object. Also converts values to their respective internal types. + * Creates an ImportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Study} Study + * @returns {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} ImportFeatureValuesOperationMetadata */ - Study.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Study) + ImportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Study(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.studySpec != null) { - if (typeof object.studySpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Study.studySpec: object expected"); - message.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.fromObject(object.studySpec); - } - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "ACTIVE": - case 1: - message.state = 1; - break; - case "INACTIVE": - case 2: - message.state = 2; - break; - case "COMPLETED": - case 3: - message.state = 3; - break; - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Study.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + var message = new $root.google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.inactiveReason != null) - message.inactiveReason = String(object.inactiveReason); + if (object.importedEntityCount != null) + if ($util.Long) + (message.importedEntityCount = $util.Long.fromValue(object.importedEntityCount)).unsigned = false; + else if (typeof object.importedEntityCount === "string") + message.importedEntityCount = parseInt(object.importedEntityCount, 10); + else if (typeof object.importedEntityCount === "number") + message.importedEntityCount = object.importedEntityCount; + else if (typeof object.importedEntityCount === "object") + message.importedEntityCount = new $util.LongBits(object.importedEntityCount.low >>> 0, object.importedEntityCount.high >>> 0).toNumber(); + if (object.importedFeatureValueCount != null) + if ($util.Long) + (message.importedFeatureValueCount = $util.Long.fromValue(object.importedFeatureValueCount)).unsigned = false; + else if (typeof object.importedFeatureValueCount === "string") + message.importedFeatureValueCount = parseInt(object.importedFeatureValueCount, 10); + else if (typeof object.importedFeatureValueCount === "number") + message.importedFeatureValueCount = object.importedFeatureValueCount; + else if (typeof object.importedFeatureValueCount === "object") + message.importedFeatureValueCount = new $util.LongBits(object.importedFeatureValueCount.low >>> 0, object.importedFeatureValueCount.high >>> 0).toNumber(); + if (object.invalidRowCount != null) + if ($util.Long) + (message.invalidRowCount = $util.Long.fromValue(object.invalidRowCount)).unsigned = false; + else if (typeof object.invalidRowCount === "string") + message.invalidRowCount = parseInt(object.invalidRowCount, 10); + else if (typeof object.invalidRowCount === "number") + message.invalidRowCount = object.invalidRowCount; + else if (typeof object.invalidRowCount === "object") + message.invalidRowCount = new $util.LongBits(object.invalidRowCount.low >>> 0, object.invalidRowCount.high >>> 0).toNumber(); return message; }; /** - * Creates a plain object from a Study message. Also converts values to other types if specified. + * Creates a plain object from an ImportFeatureValuesOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.Study} message Study + * @param {google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata} message ImportFeatureValuesOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Study.toObject = function toObject(message, options) { + ImportFeatureValuesOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.studySpec = null; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.createTime = null; - object.inactiveReason = ""; + object.genericMetadata = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.importedEntityCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.importedEntityCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.importedFeatureValueCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.importedFeatureValueCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.invalidRowCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.invalidRowCount = options.longs === String ? "0" : 0; } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.studySpec != null && message.hasOwnProperty("studySpec")) - object.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.toObject(message.studySpec, options); - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Study.State[message.state] : message.state; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.inactiveReason != null && message.hasOwnProperty("inactiveReason")) - object.inactiveReason = message.inactiveReason; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.importedEntityCount != null && message.hasOwnProperty("importedEntityCount")) + if (typeof message.importedEntityCount === "number") + object.importedEntityCount = options.longs === String ? String(message.importedEntityCount) : message.importedEntityCount; + else + object.importedEntityCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedEntityCount) : options.longs === Number ? new $util.LongBits(message.importedEntityCount.low >>> 0, message.importedEntityCount.high >>> 0).toNumber() : message.importedEntityCount; + if (message.importedFeatureValueCount != null && message.hasOwnProperty("importedFeatureValueCount")) + if (typeof message.importedFeatureValueCount === "number") + object.importedFeatureValueCount = options.longs === String ? String(message.importedFeatureValueCount) : message.importedFeatureValueCount; + else + object.importedFeatureValueCount = options.longs === String ? $util.Long.prototype.toString.call(message.importedFeatureValueCount) : options.longs === Number ? new $util.LongBits(message.importedFeatureValueCount.low >>> 0, message.importedFeatureValueCount.high >>> 0).toNumber() : message.importedFeatureValueCount; + if (message.invalidRowCount != null && message.hasOwnProperty("invalidRowCount")) + if (typeof message.invalidRowCount === "number") + object.invalidRowCount = options.longs === String ? String(message.invalidRowCount) : message.invalidRowCount; + else + object.invalidRowCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRowCount) : options.longs === Number ? new $util.LongBits(message.invalidRowCount.low >>> 0, message.invalidRowCount.high >>> 0).toNumber() : message.invalidRowCount; return object; }; /** - * Converts this Study to JSON. + * Converts this ImportFeatureValuesOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Study + * @memberof google.cloud.aiplatform.v1beta1.ImportFeatureValuesOperationMetadata * @instance * @returns {Object.} JSON object */ - Study.prototype.toJSON = function toJSON() { + ImportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * State enum. - * @name google.cloud.aiplatform.v1beta1.Study.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} ACTIVE=1 ACTIVE value - * @property {number} INACTIVE=2 INACTIVE value - * @property {number} COMPLETED=3 COMPLETED value - */ - Study.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "ACTIVE"] = 1; - values[valuesById[2] = "INACTIVE"] = 2; - values[valuesById[3] = "COMPLETED"] = 3; - return values; - })(); - - return Study; + return ImportFeatureValuesOperationMetadata; })(); - v1beta1.Trial = (function() { + v1beta1.ExportFeatureValuesOperationMetadata = (function() { /** - * Properties of a Trial. + * Properties of an ExportFeatureValuesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ITrial - * @property {string|null} [name] Trial name - * @property {string|null} [id] Trial id - * @property {google.cloud.aiplatform.v1beta1.Trial.State|null} [state] Trial state - * @property {Array.|null} [parameters] Trial parameters - * @property {google.cloud.aiplatform.v1beta1.IMeasurement|null} [finalMeasurement] Trial finalMeasurement - * @property {Array.|null} [measurements] Trial measurements - * @property {google.protobuf.ITimestamp|null} [startTime] Trial startTime - * @property {google.protobuf.ITimestamp|null} [endTime] Trial endTime - * @property {string|null} [clientId] Trial clientId - * @property {string|null} [infeasibleReason] Trial infeasibleReason - * @property {string|null} [customJob] Trial customJob - * @property {Object.|null} [webAccessUris] Trial webAccessUris + * @interface IExportFeatureValuesOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] ExportFeatureValuesOperationMetadata genericMetadata */ /** - * Constructs a new Trial. + * Constructs a new ExportFeatureValuesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Trial. - * @implements ITrial + * @classdesc Represents an ExportFeatureValuesOperationMetadata. + * @implements IExportFeatureValuesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.ITrial=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set */ - function Trial(properties) { - this.parameters = []; - this.measurements = []; - this.webAccessUris = {}; + function ExportFeatureValuesOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -199958,244 +205893,75 @@ } /** - * Trial name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.name = ""; - - /** - * Trial id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.id = ""; - - /** - * Trial state. - * @member {google.cloud.aiplatform.v1beta1.Trial.State} state - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.state = 0; - - /** - * Trial parameters. - * @member {Array.} parameters - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.parameters = $util.emptyArray; - - /** - * Trial finalMeasurement. - * @member {google.cloud.aiplatform.v1beta1.IMeasurement|null|undefined} finalMeasurement - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.finalMeasurement = null; - - /** - * Trial measurements. - * @member {Array.} measurements - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.measurements = $util.emptyArray; - - /** - * Trial startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.startTime = null; - - /** - * Trial endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.endTime = null; - - /** - * Trial clientId. - * @member {string} clientId - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.clientId = ""; - - /** - * Trial infeasibleReason. - * @member {string} infeasibleReason - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.infeasibleReason = ""; - - /** - * Trial customJob. - * @member {string} customJob - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @instance - */ - Trial.prototype.customJob = ""; - - /** - * Trial webAccessUris. - * @member {Object.} webAccessUris - * @memberof google.cloud.aiplatform.v1beta1.Trial + * ExportFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @instance */ - Trial.prototype.webAccessUris = $util.emptyObject; + ExportFeatureValuesOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new Trial instance using the specified properties. + * Creates a new ExportFeatureValuesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ITrial=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial instance + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata instance */ - Trial.create = function create(properties) { - return new Trial(properties); + ExportFeatureValuesOperationMetadata.create = function create(properties) { + return new ExportFeatureValuesOperationMetadata(properties); }; /** - * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. + * Encodes the specified ExportFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ITrial} message Trial message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Trial.encode = function encode(message, writer) { + ExportFeatureValuesOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.id); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Trial.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) - $root.google.cloud.aiplatform.v1beta1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.measurements != null && message.measurements.length) - for (var i = 0; i < message.measurements.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Measurement.encode(message.measurements[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.clientId); - if (message.infeasibleReason != null && Object.hasOwnProperty.call(message, "infeasibleReason")) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.infeasibleReason); - if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.customJob); - if (message.webAccessUris != null && Object.hasOwnProperty.call(message, "webAccessUris")) - for (var keys = Object.keys(message.webAccessUris), i = 0; i < keys.length; ++i) - writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webAccessUris[keys[i]]).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. + * Encodes the specified ExportFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ITrial} message Trial message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - Trial.encodeDelimited = function encodeDelimited(message, writer) { + ExportFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a Trial message from the specified reader or buffer. + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Trial.decode = function decode(reader, length) { + ExportFeatureValuesOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Trial(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); - break; - case 2: - message.id = reader.string(); - break; - case 3: - message.state = reader.int32(); - break; - case 4: - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.aiplatform.v1beta1.Trial.Parameter.decode(reader, reader.uint32())); - break; - case 5: - message.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.decode(reader, reader.uint32()); - break; - case 6: - if (!(message.measurements && message.measurements.length)) - message.measurements = []; - message.measurements.push($root.google.cloud.aiplatform.v1beta1.Measurement.decode(reader, reader.uint32())); - break; - case 7: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.clientId = reader.string(); - break; - case 10: - message.infeasibleReason = reader.string(); - break; - case 11: - message.customJob = reader.string(); - break; - case 12: - if (message.webAccessUris === $util.emptyObject) - message.webAccessUris = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.webAccessUris[key] = value; + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -200206,542 +205972,112 @@ }; /** - * Decodes a Trial message from the specified reader or buffer, length delimited. + * Decodes an ExportFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Trial.decodeDelimited = function decodeDelimited(reader) { + ExportFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a Trial message. + * Verifies an ExportFeatureValuesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Trial.verify = function verify(message) { + ExportFeatureValuesOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - break; - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Trial.Parameter.verify(message.parameters[i]); - if (error) - return "parameters." + error; - } - } - if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { - var error = $root.google.cloud.aiplatform.v1beta1.Measurement.verify(message.finalMeasurement); - if (error) - return "finalMeasurement." + error; - } - if (message.measurements != null && message.hasOwnProperty("measurements")) { - if (!Array.isArray(message.measurements)) - return "measurements: array expected"; - for (var i = 0; i < message.measurements.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Measurement.verify(message.measurements[i]); - if (error) - return "measurements." + error; - } - } - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "endTime." + error; - } - if (message.clientId != null && message.hasOwnProperty("clientId")) - if (!$util.isString(message.clientId)) - return "clientId: string expected"; - if (message.infeasibleReason != null && message.hasOwnProperty("infeasibleReason")) - if (!$util.isString(message.infeasibleReason)) - return "infeasibleReason: string expected"; - if (message.customJob != null && message.hasOwnProperty("customJob")) - if (!$util.isString(message.customJob)) - return "customJob: string expected"; - if (message.webAccessUris != null && message.hasOwnProperty("webAccessUris")) { - if (!$util.isObject(message.webAccessUris)) - return "webAccessUris: object expected"; - var key = Object.keys(message.webAccessUris); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.webAccessUris[key[i]])) - return "webAccessUris: string{k:string} expected"; + return "genericMetadata." + error; } return null; }; /** - * Creates a Trial message from a plain object. Also converts values to their respective internal types. + * Creates an ExportFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial + * @returns {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} ExportFeatureValuesOperationMetadata */ - Trial.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Trial) + ExportFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Trial(); - if (object.name != null) - message.name = String(object.name); - if (object.id != null) - message.id = String(object.id); - switch (object.state) { - case "STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "REQUESTED": - case 1: - message.state = 1; - break; - case "ACTIVE": - case 2: - message.state = 2; - break; - case "STOPPING": - case 3: - message.state = 3; - break; - case "SUCCEEDED": - case 4: - message.state = 4; - break; - case "INFEASIBLE": - case 5: - message.state = 5; - break; - } - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.parameters: object expected"); - message.parameters[i] = $root.google.cloud.aiplatform.v1beta1.Trial.Parameter.fromObject(object.parameters[i]); - } - } - if (object.finalMeasurement != null) { - if (typeof object.finalMeasurement !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.finalMeasurement: object expected"); - message.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.fromObject(object.finalMeasurement); - } - if (object.measurements) { - if (!Array.isArray(object.measurements)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.measurements: array expected"); - message.measurements = []; - for (var i = 0; i < object.measurements.length; ++i) { - if (typeof object.measurements[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.measurements: object expected"); - message.measurements[i] = $root.google.cloud.aiplatform.v1beta1.Measurement.fromObject(object.measurements[i]); - } - } - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } - if (object.clientId != null) - message.clientId = String(object.clientId); - if (object.infeasibleReason != null) - message.infeasibleReason = String(object.infeasibleReason); - if (object.customJob != null) - message.customJob = String(object.customJob); - if (object.webAccessUris) { - if (typeof object.webAccessUris !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.webAccessUris: object expected"); - message.webAccessUris = {}; - for (var keys = Object.keys(object.webAccessUris), i = 0; i < keys.length; ++i) - message.webAccessUris[keys[i]] = String(object.webAccessUris[keys[i]]); + var message = new $root.google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a Trial message. Also converts values to other types if specified. + * Creates a plain object from an ExportFeatureValuesOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.Trial} message Trial + * @param {google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata} message ExportFeatureValuesOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - Trial.toObject = function toObject(message, options) { + ExportFeatureValuesOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.parameters = []; - object.measurements = []; - } - if (options.objects || options.defaults) - object.webAccessUris = {}; - if (options.defaults) { - object.name = ""; - object.id = ""; - object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; - object.finalMeasurement = null; - object.startTime = null; - object.endTime = null; - object.clientId = ""; - object.infeasibleReason = ""; - object.customJob = ""; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Trial.State[message.state] : message.state; - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.aiplatform.v1beta1.Trial.Parameter.toObject(message.parameters[j], options); - } - if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) - object.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.toObject(message.finalMeasurement, options); - if (message.measurements && message.measurements.length) { - object.measurements = []; - for (var j = 0; j < message.measurements.length; ++j) - object.measurements[j] = $root.google.cloud.aiplatform.v1beta1.Measurement.toObject(message.measurements[j], options); - } - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); - if (message.clientId != null && message.hasOwnProperty("clientId")) - object.clientId = message.clientId; - if (message.infeasibleReason != null && message.hasOwnProperty("infeasibleReason")) - object.infeasibleReason = message.infeasibleReason; - if (message.customJob != null && message.hasOwnProperty("customJob")) - object.customJob = message.customJob; - var keys2; - if (message.webAccessUris && (keys2 = Object.keys(message.webAccessUris)).length) { - object.webAccessUris = {}; - for (var j = 0; j < keys2.length; ++j) - object.webAccessUris[keys2[j]] = message.webAccessUris[keys2[j]]; - } + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this Trial to JSON. + * Converts this ExportFeatureValuesOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Trial + * @memberof google.cloud.aiplatform.v1beta1.ExportFeatureValuesOperationMetadata * @instance * @returns {Object.} JSON object */ - Trial.prototype.toJSON = function toJSON() { + ExportFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - Trial.Parameter = (function() { - - /** - * Properties of a Parameter. - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @interface IParameter - * @property {string|null} [parameterId] Parameter parameterId - * @property {google.protobuf.IValue|null} [value] Parameter value - */ - - /** - * Constructs a new Parameter. - * @memberof google.cloud.aiplatform.v1beta1.Trial - * @classdesc Represents a Parameter. - * @implements IParameter - * @constructor - * @param {google.cloud.aiplatform.v1beta1.Trial.IParameter=} [properties] Properties to set - */ - function Parameter(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Parameter parameterId. - * @member {string} parameterId - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @instance - */ - Parameter.prototype.parameterId = ""; - - /** - * Parameter value. - * @member {google.protobuf.IValue|null|undefined} value - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @instance - */ - Parameter.prototype.value = null; - - /** - * Creates a new Parameter instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @static - * @param {google.cloud.aiplatform.v1beta1.Trial.IParameter=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Trial.Parameter} Parameter instance - */ - Parameter.create = function create(properties) { - return new Parameter(properties); - }; - - /** - * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @static - * @param {google.cloud.aiplatform.v1beta1.Trial.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameterId); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @static - * @param {google.cloud.aiplatform.v1beta1.Trial.IParameter} message Parameter message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Parameter.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a Parameter message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Trial.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Trial.Parameter(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parameterId = reader.string(); - break; - case 2: - message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a Parameter message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Trial.Parameter} Parameter - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Parameter.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a Parameter message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Parameter.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - if (!$util.isString(message.parameterId)) - return "parameterId: string expected"; - if (message.value != null && message.hasOwnProperty("value")) { - var error = $root.google.protobuf.Value.verify(message.value); - if (error) - return "value." + error; - } - return null; - }; - - /** - * Creates a Parameter message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Trial.Parameter} Parameter - */ - Parameter.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Trial.Parameter) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Trial.Parameter(); - if (object.parameterId != null) - message.parameterId = String(object.parameterId); - if (object.value != null) { - if (typeof object.value !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.Parameter.value: object expected"); - message.value = $root.google.protobuf.Value.fromObject(object.value); - } - return message; - }; - - /** - * Creates a plain object from a Parameter message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @static - * @param {google.cloud.aiplatform.v1beta1.Trial.Parameter} message Parameter - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Parameter.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parameterId = ""; - object.value = null; - } - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - object.parameterId = message.parameterId; - if (message.value != null && message.hasOwnProperty("value")) - object.value = $root.google.protobuf.Value.toObject(message.value, options); - return object; - }; - - /** - * Converts this Parameter to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter - * @instance - * @returns {Object.} JSON object - */ - Parameter.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return Parameter; - })(); - - /** - * State enum. - * @name google.cloud.aiplatform.v1beta1.Trial.State - * @enum {number} - * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value - * @property {number} REQUESTED=1 REQUESTED value - * @property {number} ACTIVE=2 ACTIVE value - * @property {number} STOPPING=3 STOPPING value - * @property {number} SUCCEEDED=4 SUCCEEDED value - * @property {number} INFEASIBLE=5 INFEASIBLE value - */ - Trial.State = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "REQUESTED"] = 1; - values[valuesById[2] = "ACTIVE"] = 2; - values[valuesById[3] = "STOPPING"] = 3; - values[valuesById[4] = "SUCCEEDED"] = 4; - values[valuesById[5] = "INFEASIBLE"] = 5; - return values; - })(); - - return Trial; + return ExportFeatureValuesOperationMetadata; })(); - v1beta1.StudySpec = (function() { + v1beta1.BatchReadFeatureValuesOperationMetadata = (function() { /** - * Properties of a StudySpec. + * Properties of a BatchReadFeatureValuesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IStudySpec - * @property {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null} [decayCurveStoppingSpec] StudySpec decayCurveStoppingSpec - * @property {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null} [medianAutomatedStoppingSpec] StudySpec medianAutomatedStoppingSpec - * @property {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null} [convexStopConfig] StudySpec convexStopConfig - * @property {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null} [convexAutomatedStoppingSpec] StudySpec convexAutomatedStoppingSpec - * @property {Array.|null} [metrics] StudySpec metrics - * @property {Array.|null} [parameters] StudySpec parameters - * @property {google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null} [algorithm] StudySpec algorithm - * @property {google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null} [observationNoise] StudySpec observationNoise - * @property {google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null} [measurementSelectionType] StudySpec measurementSelectionType + * @interface IBatchReadFeatureValuesOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchReadFeatureValuesOperationMetadata genericMetadata */ /** - * Constructs a new StudySpec. + * Constructs a new BatchReadFeatureValuesOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a StudySpec. - * @implements IStudySpec + * @classdesc Represents a BatchReadFeatureValuesOperationMetadata. + * @implements IBatchReadFeatureValuesOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IStudySpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set */ - function StudySpec(properties) { - this.metrics = []; - this.parameters = []; + function BatchReadFeatureValuesOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -200749,199 +206085,75 @@ } /** - * StudySpec decayCurveStoppingSpec. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null|undefined} decayCurveStoppingSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @instance - */ - StudySpec.prototype.decayCurveStoppingSpec = null; - - /** - * StudySpec medianAutomatedStoppingSpec. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null|undefined} medianAutomatedStoppingSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @instance - */ - StudySpec.prototype.medianAutomatedStoppingSpec = null; - - /** - * StudySpec convexStopConfig. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null|undefined} convexStopConfig - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @instance - */ - StudySpec.prototype.convexStopConfig = null; - - /** - * StudySpec convexAutomatedStoppingSpec. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null|undefined} convexAutomatedStoppingSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @instance - */ - StudySpec.prototype.convexAutomatedStoppingSpec = null; - - /** - * StudySpec metrics. - * @member {Array.} metrics - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @instance - */ - StudySpec.prototype.metrics = $util.emptyArray; - - /** - * StudySpec parameters. - * @member {Array.} parameters - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @instance - */ - StudySpec.prototype.parameters = $util.emptyArray; - - /** - * StudySpec algorithm. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.Algorithm} algorithm - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @instance - */ - StudySpec.prototype.algorithm = 0; - - /** - * StudySpec observationNoise. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise} observationNoise - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @instance - */ - StudySpec.prototype.observationNoise = 0; - - /** - * StudySpec measurementSelectionType. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType} measurementSelectionType - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @instance - */ - StudySpec.prototype.measurementSelectionType = 0; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * StudySpec automatedStoppingSpec. - * @member {"decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"|undefined} automatedStoppingSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * BatchReadFeatureValuesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @instance */ - Object.defineProperty(StudySpec.prototype, "automatedStoppingSpec", { - get: $util.oneOfGetter($oneOfFields = ["decayCurveStoppingSpec", "medianAutomatedStoppingSpec", "convexStopConfig", "convexAutomatedStoppingSpec"]), - set: $util.oneOfSetter($oneOfFields) - }); + BatchReadFeatureValuesOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new StudySpec instance using the specified properties. + * Creates a new BatchReadFeatureValuesOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStudySpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec instance + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata instance */ - StudySpec.create = function create(properties) { - return new StudySpec(properties); + BatchReadFeatureValuesOperationMetadata.create = function create(properties) { + return new BatchReadFeatureValuesOperationMetadata(properties); }; /** - * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. + * Encodes the specified BatchReadFeatureValuesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStudySpec} message StudySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StudySpec.encode = function encode(message, writer) { + BatchReadFeatureValuesOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.encode(message.metrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parameters != null && message.parameters.length) - for (var i = 0; i < message.parameters.length; ++i) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.encode(message.parameters[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.algorithm != null && Object.hasOwnProperty.call(message, "algorithm")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.algorithm); - if (message.decayCurveStoppingSpec != null && Object.hasOwnProperty.call(message, "decayCurveStoppingSpec")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.encode(message.decayCurveStoppingSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.medianAutomatedStoppingSpec != null && Object.hasOwnProperty.call(message, "medianAutomatedStoppingSpec")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.encode(message.medianAutomatedStoppingSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.observationNoise != null && Object.hasOwnProperty.call(message, "observationNoise")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.observationNoise); - if (message.measurementSelectionType != null && Object.hasOwnProperty.call(message, "measurementSelectionType")) - writer.uint32(/* id 7, wireType 0 =*/56).int32(message.measurementSelectionType); - if (message.convexStopConfig != null && Object.hasOwnProperty.call(message, "convexStopConfig")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.encode(message.convexStopConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.convexAutomatedStoppingSpec != null && Object.hasOwnProperty.call(message, "convexAutomatedStoppingSpec")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.encode(message.convexAutomatedStoppingSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. + * Encodes the specified BatchReadFeatureValuesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IStudySpec} message StudySpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IBatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - StudySpec.encodeDelimited = function encodeDelimited(message, writer) { + BatchReadFeatureValuesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a StudySpec message from the specified reader or buffer. + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StudySpec.decode = function decode(reader, length) { + BatchReadFeatureValuesOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 4: - message.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.decode(reader, reader.uint32()); - break; - case 5: - message.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.decode(reader, reader.uint32()); - break; - case 8: - message.convexStopConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.decode(reader, reader.uint32()); - break; - case 9: - message.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.decode(reader, reader.uint32()); - break; case 1: - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.decode(reader, reader.uint32())); - break; - case 2: - if (!(message.parameters && message.parameters.length)) - message.parameters = []; - message.parameters.push($root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.decode(reader, reader.uint32())); - break; - case 3: - message.algorithm = reader.int32(); - break; - case 6: - message.observationNoise = reader.int32(); - break; - case 7: - message.measurementSelectionType = reader.int32(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -200952,3159 +206164,2267 @@ }; /** - * Decodes a StudySpec message from the specified reader or buffer, length delimited. + * Decodes a BatchReadFeatureValuesOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - StudySpec.decodeDelimited = function decodeDelimited(reader) { + BatchReadFeatureValuesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a StudySpec message. + * Verifies a BatchReadFeatureValuesOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - StudySpec.verify = function verify(message) { + BatchReadFeatureValuesOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.decayCurveStoppingSpec != null && message.hasOwnProperty("decayCurveStoppingSpec")) { - properties.automatedStoppingSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify(message.decayCurveStoppingSpec); - if (error) - return "decayCurveStoppingSpec." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } - if (message.medianAutomatedStoppingSpec != null && message.hasOwnProperty("medianAutomatedStoppingSpec")) { - if (properties.automatedStoppingSpec === 1) - return "automatedStoppingSpec: multiple values"; - properties.automatedStoppingSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify(message.medianAutomatedStoppingSpec); - if (error) - return "medianAutomatedStoppingSpec." + error; - } + return null; + }; + + /** + * Creates a BatchReadFeatureValuesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} BatchReadFeatureValuesOperationMetadata + */ + BatchReadFeatureValuesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (message.convexStopConfig != null && message.hasOwnProperty("convexStopConfig")) { - if (properties.automatedStoppingSpec === 1) - return "automatedStoppingSpec: multiple values"; - properties.automatedStoppingSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify(message.convexStopConfig); - if (error) - return "convexStopConfig." + error; - } - } - if (message.convexAutomatedStoppingSpec != null && message.hasOwnProperty("convexAutomatedStoppingSpec")) { - if (properties.automatedStoppingSpec === 1) - return "automatedStoppingSpec: multiple values"; - properties.automatedStoppingSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify(message.convexAutomatedStoppingSpec); - if (error) - return "convexAutomatedStoppingSpec." + error; - } - } - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } - } - if (message.parameters != null && message.hasOwnProperty("parameters")) { - if (!Array.isArray(message.parameters)) - return "parameters: array expected"; - for (var i = 0; i < message.parameters.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify(message.parameters[i]); - if (error) - return "parameters." + error; - } - } - if (message.algorithm != null && message.hasOwnProperty("algorithm")) - switch (message.algorithm) { - default: - return "algorithm: enum value expected"; - case 0: - case 2: - case 3: - break; - } - if (message.observationNoise != null && message.hasOwnProperty("observationNoise")) - switch (message.observationNoise) { - default: - return "observationNoise: enum value expected"; - case 0: + return message; + }; + + /** + * Creates a plain object from a BatchReadFeatureValuesOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata} message BatchReadFeatureValuesOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchReadFeatureValuesOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; + + /** + * Converts this BatchReadFeatureValuesOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + BatchReadFeatureValuesOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchReadFeatureValuesOperationMetadata; + })(); + + v1beta1.CreateEntityTypeOperationMetadata = (function() { + + /** + * Properties of a CreateEntityTypeOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateEntityTypeOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateEntityTypeOperationMetadata genericMetadata + */ + + /** + * Constructs a new CreateEntityTypeOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateEntityTypeOperationMetadata. + * @implements ICreateEntityTypeOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata=} [properties] Properties to set + */ + function CreateEntityTypeOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * CreateEntityTypeOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @instance + */ + CreateEntityTypeOperationMetadata.prototype.genericMetadata = null; + + /** + * Creates a new CreateEntityTypeOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata instance + */ + CreateEntityTypeOperationMetadata.create = function create(properties) { + return new CreateEntityTypeOperationMetadata(properties); + }; + + /** + * Encodes the specified CreateEntityTypeOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateEntityTypeOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified CreateEntityTypeOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateEntityTypeOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateEntityTypeOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 1: - case 2: + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; - } - if (message.measurementSelectionType != null && message.hasOwnProperty("measurementSelectionType")) - switch (message.measurementSelectionType) { default: - return "measurementSelectionType: enum value expected"; - case 0: - case 1: - case 2: + reader.skipType(tag & 7); break; } + } + return message; + }; + + /** + * Decodes a CreateEntityTypeOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateEntityTypeOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a CreateEntityTypeOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateEntityTypeOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } return null; }; /** - * Creates a StudySpec message from a plain object. Also converts values to their respective internal types. + * Creates a CreateEntityTypeOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec + * @returns {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} CreateEntityTypeOperationMetadata */ - StudySpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec) + CreateEntityTypeOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec(); - if (object.decayCurveStoppingSpec != null) { - if (typeof object.decayCurveStoppingSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.decayCurveStoppingSpec: object expected"); - message.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.fromObject(object.decayCurveStoppingSpec); - } - if (object.medianAutomatedStoppingSpec != null) { - if (typeof object.medianAutomatedStoppingSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.medianAutomatedStoppingSpec: object expected"); - message.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.fromObject(object.medianAutomatedStoppingSpec); - } - if (object.convexStopConfig != null) { - if (typeof object.convexStopConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.convexStopConfig: object expected"); - message.convexStopConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.fromObject(object.convexStopConfig); - } - if (object.convexAutomatedStoppingSpec != null) { - if (typeof object.convexAutomatedStoppingSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.convexAutomatedStoppingSpec: object expected"); - message.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.fromObject(object.convexAutomatedStoppingSpec); - } - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.metrics: object expected"); - message.metrics[i] = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.fromObject(object.metrics[i]); - } - } - if (object.parameters) { - if (!Array.isArray(object.parameters)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.parameters: array expected"); - message.parameters = []; - for (var i = 0; i < object.parameters.length; ++i) { - if (typeof object.parameters[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.parameters: object expected"); - message.parameters[i] = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.fromObject(object.parameters[i]); - } - } - switch (object.algorithm) { - case "ALGORITHM_UNSPECIFIED": - case 0: - message.algorithm = 0; - break; - case "GRID_SEARCH": - case 2: - message.algorithm = 2; - break; - case "RANDOM_SEARCH": - case 3: - message.algorithm = 3; - break; - } - switch (object.observationNoise) { - case "OBSERVATION_NOISE_UNSPECIFIED": - case 0: - message.observationNoise = 0; - break; - case "LOW": - case 1: - message.observationNoise = 1; - break; - case "HIGH": - case 2: - message.observationNoise = 2; - break; - } - switch (object.measurementSelectionType) { - case "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED": - case 0: - message.measurementSelectionType = 0; - break; - case "LAST_MEASUREMENT": - case 1: - message.measurementSelectionType = 1; - break; - case "BEST_MEASUREMENT": - case 2: - message.measurementSelectionType = 2; - break; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a StudySpec message. Also converts values to other types if specified. + * Creates a plain object from a CreateEntityTypeOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec} message StudySpec + * @param {google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata} message CreateEntityTypeOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - StudySpec.toObject = function toObject(message, options) { + CreateEntityTypeOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.metrics = []; - object.parameters = []; - } - if (options.defaults) { - object.algorithm = options.enums === String ? "ALGORITHM_UNSPECIFIED" : 0; - object.observationNoise = options.enums === String ? "OBSERVATION_NOISE_UNSPECIFIED" : 0; - object.measurementSelectionType = options.enums === String ? "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED" : 0; - } - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.toObject(message.metrics[j], options); - } - if (message.parameters && message.parameters.length) { - object.parameters = []; - for (var j = 0; j < message.parameters.length; ++j) - object.parameters[j] = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.toObject(message.parameters[j], options); - } - if (message.algorithm != null && message.hasOwnProperty("algorithm")) - object.algorithm = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm[message.algorithm] : message.algorithm; - if (message.decayCurveStoppingSpec != null && message.hasOwnProperty("decayCurveStoppingSpec")) { - object.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.toObject(message.decayCurveStoppingSpec, options); - if (options.oneofs) - object.automatedStoppingSpec = "decayCurveStoppingSpec"; - } - if (message.medianAutomatedStoppingSpec != null && message.hasOwnProperty("medianAutomatedStoppingSpec")) { - object.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.toObject(message.medianAutomatedStoppingSpec, options); - if (options.oneofs) - object.automatedStoppingSpec = "medianAutomatedStoppingSpec"; - } - if (message.observationNoise != null && message.hasOwnProperty("observationNoise")) - object.observationNoise = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise[message.observationNoise] : message.observationNoise; - if (message.measurementSelectionType != null && message.hasOwnProperty("measurementSelectionType")) - object.measurementSelectionType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType[message.measurementSelectionType] : message.measurementSelectionType; - if (message.convexStopConfig != null && message.hasOwnProperty("convexStopConfig")) { - object.convexStopConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.toObject(message.convexStopConfig, options); - if (options.oneofs) - object.automatedStoppingSpec = "convexStopConfig"; - } - if (message.convexAutomatedStoppingSpec != null && message.hasOwnProperty("convexAutomatedStoppingSpec")) { - object.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.toObject(message.convexAutomatedStoppingSpec, options); - if (options.oneofs) - object.automatedStoppingSpec = "convexAutomatedStoppingSpec"; - } + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this StudySpec to JSON. + * Converts this CreateEntityTypeOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @memberof google.cloud.aiplatform.v1beta1.CreateEntityTypeOperationMetadata * @instance * @returns {Object.} JSON object */ - StudySpec.prototype.toJSON = function toJSON() { + CreateEntityTypeOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - StudySpec.MetricSpec = (function() { - - /** - * Properties of a MetricSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IMetricSpec - * @property {string|null} [metricId] MetricSpec metricId - * @property {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null} [goal] MetricSpec goal - */ - - /** - * Constructs a new MetricSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a MetricSpec. - * @implements IMetricSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec=} [properties] Properties to set - */ - function MetricSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * MetricSpec metricId. - * @member {string} metricId - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @instance - */ - MetricSpec.prototype.metricId = ""; + return CreateEntityTypeOperationMetadata; + })(); - /** - * MetricSpec goal. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType} goal - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @instance - */ - MetricSpec.prototype.goal = 0; + v1beta1.CreateFeatureOperationMetadata = (function() { - /** - * Creates a new MetricSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec} MetricSpec instance - */ - MetricSpec.create = function create(properties) { - return new MetricSpec(properties); - }; + /** + * Properties of a CreateFeatureOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateFeatureOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateFeatureOperationMetadata genericMetadata + */ - /** - * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec} message MetricSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); - if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); - return writer; - }; + /** + * Constructs a new CreateFeatureOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateFeatureOperationMetadata. + * @implements ICreateFeatureOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata=} [properties] Properties to set + */ + function CreateFeatureOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec} message MetricSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - MetricSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * CreateFeatureOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @instance + */ + CreateFeatureOperationMetadata.prototype.genericMetadata = null; - /** - * Decodes a MetricSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec} MetricSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metricId = reader.string(); - break; - case 2: - message.goal = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a new CreateFeatureOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata instance + */ + CreateFeatureOperationMetadata.create = function create(properties) { + return new CreateFeatureOperationMetadata(properties); + }; - /** - * Decodes a MetricSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec} MetricSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - MetricSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Encodes the specified CreateFeatureOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata} message CreateFeatureOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * Verifies a MetricSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - MetricSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metricId != null && message.hasOwnProperty("metricId")) - if (!$util.isString(message.metricId)) - return "metricId: string expected"; - if (message.goal != null && message.hasOwnProperty("goal")) - switch (message.goal) { - default: - return "goal: enum value expected"; - case 0: - case 1: - case 2: - break; - } - return null; - }; + /** + * Encodes the specified CreateFeatureOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateFeatureOperationMetadata} message CreateFeatureOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CreateFeatureOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec} MetricSpec - */ - MetricSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec(); - if (object.metricId != null) - message.metricId = String(object.metricId); - switch (object.goal) { - case "GOAL_TYPE_UNSPECIFIED": - case 0: - message.goal = 0; - break; - case "MAXIMIZE": + /** + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 1: - message.goal = 1; + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; - case "MINIMIZE": - case 2: - message.goal = 2; + default: + reader.skipType(tag & 7); break; } - return message; - }; - - /** - * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec} message MetricSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - MetricSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.metricId = ""; - object.goal = options.enums === String ? "GOAL_TYPE_UNSPECIFIED" : 0; - } - if (message.metricId != null && message.hasOwnProperty("metricId")) - object.metricId = message.metricId; - if (message.goal != null && message.hasOwnProperty("goal")) - object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType[message.goal] : message.goal; - return object; - }; + } + return message; + }; - /** - * Converts this MetricSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec - * @instance - * @returns {Object.} JSON object - */ - MetricSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a CreateFeatureOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CreateFeatureOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * GoalType enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType - * @enum {number} - * @property {number} GOAL_TYPE_UNSPECIFIED=0 GOAL_TYPE_UNSPECIFIED value - * @property {number} MAXIMIZE=1 MAXIMIZE value - * @property {number} MINIMIZE=2 MINIMIZE value - */ - MetricSpec.GoalType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "GOAL_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "MAXIMIZE"] = 1; - values[valuesById[2] = "MINIMIZE"] = 2; - return values; - })(); + /** + * Verifies a CreateFeatureOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CreateFeatureOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; - return MetricSpec; - })(); + /** + * Creates a CreateFeatureOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} CreateFeatureOperationMetadata + */ + CreateFeatureOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; - StudySpec.ParameterSpec = (function() { + /** + * Creates a plain object from a CreateFeatureOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata} message CreateFeatureOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CreateFeatureOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; - /** - * Properties of a ParameterSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IParameterSpec - * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null} [doubleValueSpec] ParameterSpec doubleValueSpec - * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null} [integerValueSpec] ParameterSpec integerValueSpec - * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null} [categoricalValueSpec] ParameterSpec categoricalValueSpec - * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null} [discreteValueSpec] ParameterSpec discreteValueSpec - * @property {string|null} [parameterId] ParameterSpec parameterId - * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|null} [scaleType] ParameterSpec scaleType - * @property {Array.|null} [conditionalParameterSpecs] ParameterSpec conditionalParameterSpecs - */ + /** + * Converts this CreateFeatureOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateFeatureOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + CreateFeatureOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Constructs a new ParameterSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a ParameterSpec. - * @implements IParameterSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec=} [properties] Properties to set - */ - function ParameterSpec(properties) { - this.conditionalParameterSpecs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return CreateFeatureOperationMetadata; + })(); - /** - * ParameterSpec doubleValueSpec. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null|undefined} doubleValueSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.doubleValueSpec = null; + v1beta1.BatchCreateFeaturesOperationMetadata = (function() { - /** - * ParameterSpec integerValueSpec. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null|undefined} integerValueSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.integerValueSpec = null; + /** + * Properties of a BatchCreateFeaturesOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IBatchCreateFeaturesOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] BatchCreateFeaturesOperationMetadata genericMetadata + */ - /** - * ParameterSpec categoricalValueSpec. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null|undefined} categoricalValueSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.categoricalValueSpec = null; + /** + * Constructs a new BatchCreateFeaturesOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchCreateFeaturesOperationMetadata. + * @implements IBatchCreateFeaturesOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set + */ + function BatchCreateFeaturesOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * ParameterSpec discreteValueSpec. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null|undefined} discreteValueSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.discreteValueSpec = null; + /** + * BatchCreateFeaturesOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @instance + */ + BatchCreateFeaturesOperationMetadata.prototype.genericMetadata = null; - /** - * ParameterSpec parameterId. - * @member {string} parameterId - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.parameterId = ""; + /** + * Creates a new BatchCreateFeaturesOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata instance + */ + BatchCreateFeaturesOperationMetadata.create = function create(properties) { + return new BatchCreateFeaturesOperationMetadata(properties); + }; - /** - * ParameterSpec scaleType. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType} scaleType - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.scaleType = 0; + /** + * Encodes the specified BatchCreateFeaturesOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateFeaturesOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + return writer; + }; - /** - * ParameterSpec conditionalParameterSpecs. - * @member {Array.} conditionalParameterSpecs - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @instance - */ - ParameterSpec.prototype.conditionalParameterSpecs = $util.emptyArray; + /** + * Encodes the specified BatchCreateFeaturesOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchCreateFeaturesOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateFeaturesOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * ParameterSpec parameterValueSpec. - * @member {"doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"|undefined} parameterValueSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @instance - */ - Object.defineProperty(ParameterSpec.prototype, "parameterValueSpec", { - get: $util.oneOfGetter($oneOfFields = ["doubleValueSpec", "integerValueSpec", "categoricalValueSpec", "discreteValueSpec"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * Decodes a BatchCreateFeaturesOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchCreateFeaturesOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a new ParameterSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec} ParameterSpec instance - */ - ParameterSpec.create = function create(properties) { - return new ParameterSpec(properties); - }; + /** + * Verifies a BatchCreateFeaturesOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchCreateFeaturesOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + return null; + }; - /** - * Encodes the specified ParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec} message ParameterSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameterId); - if (message.doubleValueSpec != null && Object.hasOwnProperty.call(message, "doubleValueSpec")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.encode(message.doubleValueSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.integerValueSpec != null && Object.hasOwnProperty.call(message, "integerValueSpec")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.encode(message.integerValueSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.categoricalValueSpec != null && Object.hasOwnProperty.call(message, "categoricalValueSpec")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.encode(message.categoricalValueSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.discreteValueSpec != null && Object.hasOwnProperty.call(message, "discreteValueSpec")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.encode(message.discreteValueSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.scaleType != null && Object.hasOwnProperty.call(message, "scaleType")) - writer.uint32(/* id 6, wireType 0 =*/48).int32(message.scaleType); - if (message.conditionalParameterSpecs != null && message.conditionalParameterSpecs.length) - for (var i = 0; i < message.conditionalParameterSpecs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.encode(message.conditionalParameterSpecs[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec} message ParameterSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ParameterSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ParameterSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec} ParameterSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.doubleValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.decode(reader, reader.uint32()); - break; - case 3: - message.integerValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.decode(reader, reader.uint32()); - break; - case 4: - message.categoricalValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.decode(reader, reader.uint32()); - break; - case 5: - message.discreteValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.decode(reader, reader.uint32()); - break; - case 1: - message.parameterId = reader.string(); - break; - case 6: - message.scaleType = reader.int32(); - break; - case 10: - if (!(message.conditionalParameterSpecs && message.conditionalParameterSpecs.length)) - message.conditionalParameterSpecs = []; - message.conditionalParameterSpecs.push($root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ParameterSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec} ParameterSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ParameterSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ParameterSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ParameterSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.doubleValueSpec != null && message.hasOwnProperty("doubleValueSpec")) { - properties.parameterValueSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify(message.doubleValueSpec); - if (error) - return "doubleValueSpec." + error; - } - } - if (message.integerValueSpec != null && message.hasOwnProperty("integerValueSpec")) { - if (properties.parameterValueSpec === 1) - return "parameterValueSpec: multiple values"; - properties.parameterValueSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify(message.integerValueSpec); - if (error) - return "integerValueSpec." + error; - } - } - if (message.categoricalValueSpec != null && message.hasOwnProperty("categoricalValueSpec")) { - if (properties.parameterValueSpec === 1) - return "parameterValueSpec: multiple values"; - properties.parameterValueSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify(message.categoricalValueSpec); - if (error) - return "categoricalValueSpec." + error; - } - } - if (message.discreteValueSpec != null && message.hasOwnProperty("discreteValueSpec")) { - if (properties.parameterValueSpec === 1) - return "parameterValueSpec: multiple values"; - properties.parameterValueSpec = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify(message.discreteValueSpec); - if (error) - return "discreteValueSpec." + error; - } - } - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - if (!$util.isString(message.parameterId)) - return "parameterId: string expected"; - if (message.scaleType != null && message.hasOwnProperty("scaleType")) - switch (message.scaleType) { - default: - return "scaleType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.conditionalParameterSpecs != null && message.hasOwnProperty("conditionalParameterSpecs")) { - if (!Array.isArray(message.conditionalParameterSpecs)) - return "conditionalParameterSpecs: array expected"; - for (var i = 0; i < message.conditionalParameterSpecs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify(message.conditionalParameterSpecs[i]); - if (error) - return "conditionalParameterSpecs." + error; - } - } - return null; - }; - - /** - * Creates a ParameterSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec} ParameterSpec - */ - ParameterSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec(); - if (object.doubleValueSpec != null) { - if (typeof object.doubleValueSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.doubleValueSpec: object expected"); - message.doubleValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.fromObject(object.doubleValueSpec); - } - if (object.integerValueSpec != null) { - if (typeof object.integerValueSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.integerValueSpec: object expected"); - message.integerValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.fromObject(object.integerValueSpec); - } - if (object.categoricalValueSpec != null) { - if (typeof object.categoricalValueSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.categoricalValueSpec: object expected"); - message.categoricalValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.fromObject(object.categoricalValueSpec); - } - if (object.discreteValueSpec != null) { - if (typeof object.discreteValueSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.discreteValueSpec: object expected"); - message.discreteValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.fromObject(object.discreteValueSpec); - } - if (object.parameterId != null) - message.parameterId = String(object.parameterId); - switch (object.scaleType) { - case "SCALE_TYPE_UNSPECIFIED": - case 0: - message.scaleType = 0; - break; - case "UNIT_LINEAR_SCALE": - case 1: - message.scaleType = 1; - break; - case "UNIT_LOG_SCALE": - case 2: - message.scaleType = 2; - break; - case "UNIT_REVERSE_LOG_SCALE": - case 3: - message.scaleType = 3; - break; - } - if (object.conditionalParameterSpecs) { - if (!Array.isArray(object.conditionalParameterSpecs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.conditionalParameterSpecs: array expected"); - message.conditionalParameterSpecs = []; - for (var i = 0; i < object.conditionalParameterSpecs.length; ++i) { - if (typeof object.conditionalParameterSpecs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.conditionalParameterSpecs: object expected"); - message.conditionalParameterSpecs[i] = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.fromObject(object.conditionalParameterSpecs[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a ParameterSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec} message ParameterSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ParameterSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.conditionalParameterSpecs = []; - if (options.defaults) { - object.parameterId = ""; - object.scaleType = options.enums === String ? "SCALE_TYPE_UNSPECIFIED" : 0; - } - if (message.parameterId != null && message.hasOwnProperty("parameterId")) - object.parameterId = message.parameterId; - if (message.doubleValueSpec != null && message.hasOwnProperty("doubleValueSpec")) { - object.doubleValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.toObject(message.doubleValueSpec, options); - if (options.oneofs) - object.parameterValueSpec = "doubleValueSpec"; - } - if (message.integerValueSpec != null && message.hasOwnProperty("integerValueSpec")) { - object.integerValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.toObject(message.integerValueSpec, options); - if (options.oneofs) - object.parameterValueSpec = "integerValueSpec"; - } - if (message.categoricalValueSpec != null && message.hasOwnProperty("categoricalValueSpec")) { - object.categoricalValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.toObject(message.categoricalValueSpec, options); - if (options.oneofs) - object.parameterValueSpec = "categoricalValueSpec"; - } - if (message.discreteValueSpec != null && message.hasOwnProperty("discreteValueSpec")) { - object.discreteValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.toObject(message.discreteValueSpec, options); - if (options.oneofs) - object.parameterValueSpec = "discreteValueSpec"; - } - if (message.scaleType != null && message.hasOwnProperty("scaleType")) - object.scaleType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType[message.scaleType] : message.scaleType; - if (message.conditionalParameterSpecs && message.conditionalParameterSpecs.length) { - object.conditionalParameterSpecs = []; - for (var j = 0; j < message.conditionalParameterSpecs.length; ++j) - object.conditionalParameterSpecs[j] = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.toObject(message.conditionalParameterSpecs[j], options); - } + /** + * Creates a BatchCreateFeaturesOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} BatchCreateFeaturesOperationMetadata + */ + BatchCreateFeaturesOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata) return object; - }; - - /** - * Converts this ParameterSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @instance - * @returns {Object.} JSON object - */ - ParameterSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ParameterSpec.DoubleValueSpec = (function() { - - /** - * Properties of a DoubleValueSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @interface IDoubleValueSpec - * @property {number|null} [minValue] DoubleValueSpec minValue - * @property {number|null} [maxValue] DoubleValueSpec maxValue - * @property {number|null} [defaultValue] DoubleValueSpec defaultValue - */ - - /** - * Constructs a new DoubleValueSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @classdesc Represents a DoubleValueSpec. - * @implements IDoubleValueSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec=} [properties] Properties to set - */ - function DoubleValueSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DoubleValueSpec minValue. - * @member {number} minValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - DoubleValueSpec.prototype.minValue = 0; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + return message; + }; - /** - * DoubleValueSpec maxValue. - * @member {number} maxValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - DoubleValueSpec.prototype.maxValue = 0; + /** + * Creates a plain object from a BatchCreateFeaturesOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata} message BatchCreateFeaturesOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchCreateFeaturesOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + return object; + }; - /** - * DoubleValueSpec defaultValue. - * @member {number|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - DoubleValueSpec.prototype.defaultValue = null; + /** + * Converts this BatchCreateFeaturesOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchCreateFeaturesOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + BatchCreateFeaturesOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + return BatchCreateFeaturesOperationMetadata; + })(); - /** - * DoubleValueSpec _defaultValue. - * @member {"defaultValue"|undefined} _defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - */ - Object.defineProperty(DoubleValueSpec.prototype, "_defaultValue", { - get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + v1beta1.HyperparameterTuningJob = (function() { - /** - * Creates a new DoubleValueSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec instance - */ - DoubleValueSpec.create = function create(properties) { - return new DoubleValueSpec(properties); - }; + /** + * Properties of a HyperparameterTuningJob. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IHyperparameterTuningJob + * @property {string|null} [name] HyperparameterTuningJob name + * @property {string|null} [displayName] HyperparameterTuningJob displayName + * @property {google.cloud.aiplatform.v1beta1.IStudySpec|null} [studySpec] HyperparameterTuningJob studySpec + * @property {number|null} [maxTrialCount] HyperparameterTuningJob maxTrialCount + * @property {number|null} [parallelTrialCount] HyperparameterTuningJob parallelTrialCount + * @property {number|null} [maxFailedTrialCount] HyperparameterTuningJob maxFailedTrialCount + * @property {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null} [trialJobSpec] HyperparameterTuningJob trialJobSpec + * @property {Array.|null} [trials] HyperparameterTuningJob trials + * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] HyperparameterTuningJob state + * @property {google.protobuf.ITimestamp|null} [createTime] HyperparameterTuningJob createTime + * @property {google.protobuf.ITimestamp|null} [startTime] HyperparameterTuningJob startTime + * @property {google.protobuf.ITimestamp|null} [endTime] HyperparameterTuningJob endTime + * @property {google.protobuf.ITimestamp|null} [updateTime] HyperparameterTuningJob updateTime + * @property {google.rpc.IStatus|null} [error] HyperparameterTuningJob error + * @property {Object.|null} [labels] HyperparameterTuningJob labels + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] HyperparameterTuningJob encryptionSpec + */ - /** - * Encodes the specified DoubleValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec} message DoubleValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DoubleValueSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.minValue != null && Object.hasOwnProperty.call(message, "minValue")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.minValue); - if (message.maxValue != null && Object.hasOwnProperty.call(message, "maxValue")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.maxValue); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 4, wireType 1 =*/33).double(message.defaultValue); - return writer; - }; + /** + * Constructs a new HyperparameterTuningJob. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a HyperparameterTuningJob. + * @implements IHyperparameterTuningJob + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob=} [properties] Properties to set + */ + function HyperparameterTuningJob(properties) { + this.trials = []; + this.labels = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Encodes the specified DoubleValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec} message DoubleValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DoubleValueSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * HyperparameterTuningJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.name = ""; - /** - * Decodes a DoubleValueSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DoubleValueSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.minValue = reader.double(); - break; - case 2: - message.maxValue = reader.double(); - break; - case 4: - message.defaultValue = reader.double(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * HyperparameterTuningJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.displayName = ""; - /** - * Decodes a DoubleValueSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DoubleValueSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * HyperparameterTuningJob studySpec. + * @member {google.cloud.aiplatform.v1beta1.IStudySpec|null|undefined} studySpec + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.studySpec = null; - /** - * Verifies a DoubleValueSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DoubleValueSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.minValue != null && message.hasOwnProperty("minValue")) - if (typeof message.minValue !== "number") - return "minValue: number expected"; - if (message.maxValue != null && message.hasOwnProperty("maxValue")) - if (typeof message.maxValue !== "number") - return "maxValue: number expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - properties._defaultValue = 1; - if (typeof message.defaultValue !== "number") - return "defaultValue: number expected"; - } - return null; - }; + /** + * HyperparameterTuningJob maxTrialCount. + * @member {number} maxTrialCount + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.maxTrialCount = 0; - /** - * Creates a DoubleValueSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec - */ - DoubleValueSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec(); - if (object.minValue != null) - message.minValue = Number(object.minValue); - if (object.maxValue != null) - message.maxValue = Number(object.maxValue); - if (object.defaultValue != null) - message.defaultValue = Number(object.defaultValue); - return message; - }; + /** + * HyperparameterTuningJob parallelTrialCount. + * @member {number} parallelTrialCount + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.parallelTrialCount = 0; - /** - * Creates a plain object from a DoubleValueSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec} message DoubleValueSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DoubleValueSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.minValue = 0; - object.maxValue = 0; - } - if (message.minValue != null && message.hasOwnProperty("minValue")) - object.minValue = options.json && !isFinite(message.minValue) ? String(message.minValue) : message.minValue; - if (message.maxValue != null && message.hasOwnProperty("maxValue")) - object.maxValue = options.json && !isFinite(message.maxValue) ? String(message.maxValue) : message.maxValue; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - object.defaultValue = options.json && !isFinite(message.defaultValue) ? String(message.defaultValue) : message.defaultValue; - if (options.oneofs) - object._defaultValue = "defaultValue"; - } - return object; - }; + /** + * HyperparameterTuningJob maxFailedTrialCount. + * @member {number} maxFailedTrialCount + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.maxFailedTrialCount = 0; - /** - * Converts this DoubleValueSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec - * @instance - * @returns {Object.} JSON object - */ - DoubleValueSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * HyperparameterTuningJob trialJobSpec. + * @member {google.cloud.aiplatform.v1beta1.ICustomJobSpec|null|undefined} trialJobSpec + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.trialJobSpec = null; - return DoubleValueSpec; - })(); + /** + * HyperparameterTuningJob trials. + * @member {Array.} trials + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.trials = $util.emptyArray; - ParameterSpec.IntegerValueSpec = (function() { + /** + * HyperparameterTuningJob state. + * @member {google.cloud.aiplatform.v1beta1.JobState} state + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.state = 0; - /** - * Properties of an IntegerValueSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @interface IIntegerValueSpec - * @property {number|Long|null} [minValue] IntegerValueSpec minValue - * @property {number|Long|null} [maxValue] IntegerValueSpec maxValue - * @property {number|Long|null} [defaultValue] IntegerValueSpec defaultValue - */ + /** + * HyperparameterTuningJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.createTime = null; - /** - * Constructs a new IntegerValueSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @classdesc Represents an IntegerValueSpec. - * @implements IIntegerValueSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec=} [properties] Properties to set - */ - function IntegerValueSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * HyperparameterTuningJob startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.startTime = null; - /** - * IntegerValueSpec minValue. - * @member {number|Long} minValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - */ - IntegerValueSpec.prototype.minValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * HyperparameterTuningJob endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.endTime = null; - /** - * IntegerValueSpec maxValue. - * @member {number|Long} maxValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - */ - IntegerValueSpec.prototype.maxValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * HyperparameterTuningJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.updateTime = null; - /** - * IntegerValueSpec defaultValue. - * @member {number|Long|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - */ - IntegerValueSpec.prototype.defaultValue = null; + /** + * HyperparameterTuningJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.error = null; - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * HyperparameterTuningJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.labels = $util.emptyObject; - /** - * IntegerValueSpec _defaultValue. - * @member {"defaultValue"|undefined} _defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - */ - Object.defineProperty(IntegerValueSpec.prototype, "_defaultValue", { - get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * HyperparameterTuningJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + */ + HyperparameterTuningJob.prototype.encryptionSpec = null; - /** - * Creates a new IntegerValueSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec instance - */ - IntegerValueSpec.create = function create(properties) { - return new IntegerValueSpec(properties); - }; + /** + * Creates a new HyperparameterTuningJob instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @static + * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob instance + */ + HyperparameterTuningJob.create = function create(properties) { + return new HyperparameterTuningJob(properties); + }; - /** - * Encodes the specified IntegerValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec} message IntegerValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntegerValueSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.minValue != null && Object.hasOwnProperty.call(message, "minValue")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.minValue); - if (message.maxValue != null && Object.hasOwnProperty.call(message, "maxValue")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.maxValue); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 4, wireType 0 =*/32).int64(message.defaultValue); - return writer; - }; + /** + * Encodes the specified HyperparameterTuningJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @static + * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob} message HyperparameterTuningJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HyperparameterTuningJob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.studySpec != null && Object.hasOwnProperty.call(message, "studySpec")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.encode(message.studySpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.maxTrialCount != null && Object.hasOwnProperty.call(message, "maxTrialCount")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.maxTrialCount); + if (message.parallelTrialCount != null && Object.hasOwnProperty.call(message, "parallelTrialCount")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.parallelTrialCount); + if (message.maxFailedTrialCount != null && Object.hasOwnProperty.call(message, "maxFailedTrialCount")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.maxFailedTrialCount); + if (message.trialJobSpec != null && Object.hasOwnProperty.call(message, "trialJobSpec")) + $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.encode(message.trialJobSpec, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.trials != null && message.trials.length) + for (var i = 0; i < message.trials.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Trial.encode(message.trials[i], writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 10, wireType 0 =*/80).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 16, wireType 2 =*/130).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified IntegerValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec} message IntegerValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntegerValueSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified HyperparameterTuningJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @static + * @param {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob} message HyperparameterTuningJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + HyperparameterTuningJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an IntegerValueSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntegerValueSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { + /** + * Decodes a HyperparameterTuningJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HyperparameterTuningJob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 4: + message.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.decode(reader, reader.uint32()); + break; + case 5: + message.maxTrialCount = reader.int32(); + break; + case 6: + message.parallelTrialCount = reader.int32(); + break; + case 7: + message.maxFailedTrialCount = reader.int32(); + break; + case 8: + message.trialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.decode(reader, reader.uint32()); + break; + case 9: + if (!(message.trials && message.trials.length)) + message.trials = []; + message.trials.push($root.google.cloud.aiplatform.v1beta1.Trial.decode(reader, reader.uint32())); + break; + case 10: + message.state = reader.int32(); + break; + case 11: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 12: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 13: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 14: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 15: + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + case 16: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { case 1: - message.minValue = reader.int64(); + key = reader.string(); break; case 2: - message.maxValue = reader.int64(); - break; - case 4: - message.defaultValue = reader.int64(); + value = reader.string(); break; default: - reader.skipType(tag & 7); + reader.skipType(tag2 & 7); break; } } - return message; - }; + message.labels[key] = value; + break; + case 17: + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Decodes an IntegerValueSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntegerValueSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IntegerValueSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntegerValueSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.minValue != null && message.hasOwnProperty("minValue")) - if (!$util.isInteger(message.minValue) && !(message.minValue && $util.isInteger(message.minValue.low) && $util.isInteger(message.minValue.high))) - return "minValue: integer|Long expected"; - if (message.maxValue != null && message.hasOwnProperty("maxValue")) - if (!$util.isInteger(message.maxValue) && !(message.maxValue && $util.isInteger(message.maxValue.low) && $util.isInteger(message.maxValue.high))) - return "maxValue: integer|Long expected"; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - properties._defaultValue = 1; - if (!$util.isInteger(message.defaultValue) && !(message.defaultValue && $util.isInteger(message.defaultValue.low) && $util.isInteger(message.defaultValue.high))) - return "defaultValue: integer|Long expected"; - } - return null; - }; - - /** - * Creates an IntegerValueSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec - */ - IntegerValueSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec(); - if (object.minValue != null) - if ($util.Long) - (message.minValue = $util.Long.fromValue(object.minValue)).unsigned = false; - else if (typeof object.minValue === "string") - message.minValue = parseInt(object.minValue, 10); - else if (typeof object.minValue === "number") - message.minValue = object.minValue; - else if (typeof object.minValue === "object") - message.minValue = new $util.LongBits(object.minValue.low >>> 0, object.minValue.high >>> 0).toNumber(); - if (object.maxValue != null) - if ($util.Long) - (message.maxValue = $util.Long.fromValue(object.maxValue)).unsigned = false; - else if (typeof object.maxValue === "string") - message.maxValue = parseInt(object.maxValue, 10); - else if (typeof object.maxValue === "number") - message.maxValue = object.maxValue; - else if (typeof object.maxValue === "object") - message.maxValue = new $util.LongBits(object.maxValue.low >>> 0, object.maxValue.high >>> 0).toNumber(); - if (object.defaultValue != null) - if ($util.Long) - (message.defaultValue = $util.Long.fromValue(object.defaultValue)).unsigned = false; - else if (typeof object.defaultValue === "string") - message.defaultValue = parseInt(object.defaultValue, 10); - else if (typeof object.defaultValue === "number") - message.defaultValue = object.defaultValue; - else if (typeof object.defaultValue === "object") - message.defaultValue = new $util.LongBits(object.defaultValue.low >>> 0, object.defaultValue.high >>> 0).toNumber(); - return message; - }; - - /** - * Creates a plain object from an IntegerValueSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec} message IntegerValueSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntegerValueSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minValue = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxValue = options.longs === String ? "0" : 0; - } - if (message.minValue != null && message.hasOwnProperty("minValue")) - if (typeof message.minValue === "number") - object.minValue = options.longs === String ? String(message.minValue) : message.minValue; - else - object.minValue = options.longs === String ? $util.Long.prototype.toString.call(message.minValue) : options.longs === Number ? new $util.LongBits(message.minValue.low >>> 0, message.minValue.high >>> 0).toNumber() : message.minValue; - if (message.maxValue != null && message.hasOwnProperty("maxValue")) - if (typeof message.maxValue === "number") - object.maxValue = options.longs === String ? String(message.maxValue) : message.maxValue; - else - object.maxValue = options.longs === String ? $util.Long.prototype.toString.call(message.maxValue) : options.longs === Number ? new $util.LongBits(message.maxValue.low >>> 0, message.maxValue.high >>> 0).toNumber() : message.maxValue; - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - if (typeof message.defaultValue === "number") - object.defaultValue = options.longs === String ? String(message.defaultValue) : message.defaultValue; - else - object.defaultValue = options.longs === String ? $util.Long.prototype.toString.call(message.defaultValue) : options.longs === Number ? new $util.LongBits(message.defaultValue.low >>> 0, message.defaultValue.high >>> 0).toNumber() : message.defaultValue; - if (options.oneofs) - object._defaultValue = "defaultValue"; - } - return object; - }; - - /** - * Converts this IntegerValueSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec - * @instance - * @returns {Object.} JSON object - */ - IntegerValueSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return IntegerValueSpec; - })(); - - ParameterSpec.CategoricalValueSpec = (function() { - - /** - * Properties of a CategoricalValueSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @interface ICategoricalValueSpec - * @property {Array.|null} [values] CategoricalValueSpec values - * @property {string|null} [defaultValue] CategoricalValueSpec defaultValue - */ + /** + * Decodes a HyperparameterTuningJob message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + HyperparameterTuningJob.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new CategoricalValueSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @classdesc Represents a CategoricalValueSpec. - * @implements ICategoricalValueSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec=} [properties] Properties to set - */ - function CategoricalValueSpec(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Verifies a HyperparameterTuningJob message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + HyperparameterTuningJob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.studySpec != null && message.hasOwnProperty("studySpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.verify(message.studySpec); + if (error) + return "studySpec." + error; + } + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + if (!$util.isInteger(message.maxTrialCount)) + return "maxTrialCount: integer expected"; + if (message.parallelTrialCount != null && message.hasOwnProperty("parallelTrialCount")) + if (!$util.isInteger(message.parallelTrialCount)) + return "parallelTrialCount: integer expected"; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + if (!$util.isInteger(message.maxFailedTrialCount)) + return "maxFailedTrialCount: integer expected"; + if (message.trialJobSpec != null && message.hasOwnProperty("trialJobSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.verify(message.trialJobSpec); + if (error) + return "trialJobSpec." + error; + } + if (message.trials != null && message.hasOwnProperty("trials")) { + if (!Array.isArray(message.trials)) + return "trials: array expected"; + for (var i = 0; i < message.trials.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Trial.verify(message.trials[i]); + if (error) + return "trials." + error; } - - /** - * CategoricalValueSpec values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @instance - */ - CategoricalValueSpec.prototype.values = $util.emptyArray; - - /** - * CategoricalValueSpec defaultValue. - * @member {string|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @instance - */ - CategoricalValueSpec.prototype.defaultValue = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * CategoricalValueSpec _defaultValue. - * @member {"defaultValue"|undefined} _defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @instance - */ - Object.defineProperty(CategoricalValueSpec.prototype, "_defaultValue", { - get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new CategoricalValueSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec instance - */ - CategoricalValueSpec.create = function create(properties) { - return new CategoricalValueSpec(properties); - }; - - /** - * Encodes the specified CategoricalValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec} message CategoricalValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultValue); - return writer; - }; - - /** - * Encodes the specified CategoricalValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec} message CategoricalValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CategoricalValueSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - case 3: - message.defaultValue = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CategoricalValueSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CategoricalValueSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CategoricalValueSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - properties._defaultValue = 1; - if (!$util.isString(message.defaultValue)) - return "defaultValue: string expected"; - } - return null; - }; - - /** - * Creates a CategoricalValueSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec - */ - CategoricalValueSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); - } - if (object.defaultValue != null) - message.defaultValue = String(object.defaultValue); - return message; - }; - - /** - * Creates a plain object from a CategoricalValueSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec} message CategoricalValueSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CategoricalValueSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - object.defaultValue = message.defaultValue; - if (options.oneofs) - object._defaultValue = "defaultValue"; - } - return object; - }; - - /** - * Converts this CategoricalValueSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec - * @instance - * @returns {Object.} JSON object - */ - CategoricalValueSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CategoricalValueSpec; - })(); - - ParameterSpec.DiscreteValueSpec = (function() { - - /** - * Properties of a DiscreteValueSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @interface IDiscreteValueSpec - * @property {Array.|null} [values] DiscreteValueSpec values - * @property {number|null} [defaultValue] DiscreteValueSpec defaultValue - */ - - /** - * Constructs a new DiscreteValueSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @classdesc Represents a DiscreteValueSpec. - * @implements IDiscreteValueSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec=} [properties] Properties to set - */ - function DiscreteValueSpec(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + return null; + }; - /** - * DiscreteValueSpec values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @instance - */ - DiscreteValueSpec.prototype.values = $util.emptyArray; - - /** - * DiscreteValueSpec defaultValue. - * @member {number|null|undefined} defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @instance - */ - DiscreteValueSpec.prototype.defaultValue = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * DiscreteValueSpec _defaultValue. - * @member {"defaultValue"|undefined} _defaultValue - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @instance - */ - Object.defineProperty(DiscreteValueSpec.prototype, "_defaultValue", { - get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new DiscreteValueSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec instance - */ - DiscreteValueSpec.create = function create(properties) { - return new DiscreteValueSpec(properties); - }; - - /** - * Encodes the specified DiscreteValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec} message DiscreteValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DiscreteValueSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.double(message.values[i]); - writer.ldelim(); - } - if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) - writer.uint32(/* id 3, wireType 1 =*/25).double(message.defaultValue); - return writer; - }; - - /** - * Encodes the specified DiscreteValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec} message DiscreteValueSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DiscreteValueSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DiscreteValueSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DiscreteValueSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.double()); - } else - message.values.push(reader.double()); - break; - case 3: - message.defaultValue = reader.double(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DiscreteValueSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DiscreteValueSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DiscreteValueSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DiscreteValueSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (typeof message.values[i] !== "number") - return "values: number[] expected"; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - properties._defaultValue = 1; - if (typeof message.defaultValue !== "number") - return "defaultValue: number expected"; - } - return null; - }; - - /** - * Creates a DiscreteValueSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec - */ - DiscreteValueSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = Number(object.values[i]); - } - if (object.defaultValue != null) - message.defaultValue = Number(object.defaultValue); - return message; - }; - - /** - * Creates a plain object from a DiscreteValueSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec} message DiscreteValueSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DiscreteValueSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; - } - if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { - object.defaultValue = options.json && !isFinite(message.defaultValue) ? String(message.defaultValue) : message.defaultValue; - if (options.oneofs) - object._defaultValue = "defaultValue"; - } - return object; - }; - - /** - * Converts this DiscreteValueSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec - * @instance - * @returns {Object.} JSON object - */ - DiscreteValueSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DiscreteValueSpec; - })(); - - ParameterSpec.ConditionalParameterSpec = (function() { - - /** - * Properties of a ConditionalParameterSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @interface IConditionalParameterSpec - * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null} [parentDiscreteValues] ConditionalParameterSpec parentDiscreteValues - * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null} [parentIntValues] ConditionalParameterSpec parentIntValues - * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null} [parentCategoricalValues] ConditionalParameterSpec parentCategoricalValues - * @property {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null} [parameterSpec] ConditionalParameterSpec parameterSpec - */ - - /** - * Constructs a new ConditionalParameterSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec - * @classdesc Represents a ConditionalParameterSpec. - * @implements IConditionalParameterSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec=} [properties] Properties to set - */ - function ConditionalParameterSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + /** + * Creates a HyperparameterTuningJob message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} HyperparameterTuningJob + */ + HyperparameterTuningJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.studySpec != null) { + if (typeof object.studySpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.studySpec: object expected"); + message.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.fromObject(object.studySpec); + } + if (object.maxTrialCount != null) + message.maxTrialCount = object.maxTrialCount | 0; + if (object.parallelTrialCount != null) + message.parallelTrialCount = object.parallelTrialCount | 0; + if (object.maxFailedTrialCount != null) + message.maxFailedTrialCount = object.maxFailedTrialCount | 0; + if (object.trialJobSpec != null) { + if (typeof object.trialJobSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trialJobSpec: object expected"); + message.trialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.fromObject(object.trialJobSpec); + } + if (object.trials) { + if (!Array.isArray(object.trials)) + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials: array expected"); + message.trials = []; + for (var i = 0; i < object.trials.length; ++i) { + if (typeof object.trials[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.trials: object expected"); + message.trials[i] = $root.google.cloud.aiplatform.v1beta1.Trial.fromObject(object.trials[i]); } + } + switch (object.state) { + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + return message; + }; - /** - * ConditionalParameterSpec parentDiscreteValues. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null|undefined} parentDiscreteValues - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - */ - ConditionalParameterSpec.prototype.parentDiscreteValues = null; - - /** - * ConditionalParameterSpec parentIntValues. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null|undefined} parentIntValues - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - */ - ConditionalParameterSpec.prototype.parentIntValues = null; - - /** - * ConditionalParameterSpec parentCategoricalValues. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null|undefined} parentCategoricalValues - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - */ - ConditionalParameterSpec.prototype.parentCategoricalValues = null; - - /** - * ConditionalParameterSpec parameterSpec. - * @member {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null|undefined} parameterSpec - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - */ - ConditionalParameterSpec.prototype.parameterSpec = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * ConditionalParameterSpec parentValueCondition. - * @member {"parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"|undefined} parentValueCondition - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - */ - Object.defineProperty(ConditionalParameterSpec.prototype, "parentValueCondition", { - get: $util.oneOfGetter($oneOfFields = ["parentDiscreteValues", "parentIntValues", "parentCategoricalValues"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new ConditionalParameterSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec instance - */ - ConditionalParameterSpec.create = function create(properties) { - return new ConditionalParameterSpec(properties); - }; - - /** - * Encodes the specified ConditionalParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec} message ConditionalParameterSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConditionalParameterSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parameterSpec != null && Object.hasOwnProperty.call(message, "parameterSpec")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.encode(message.parameterSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.parentDiscreteValues != null && Object.hasOwnProperty.call(message, "parentDiscreteValues")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.encode(message.parentDiscreteValues, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.parentIntValues != null && Object.hasOwnProperty.call(message, "parentIntValues")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.encode(message.parentIntValues, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.parentCategoricalValues != null && Object.hasOwnProperty.call(message, "parentCategoricalValues")) - $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.encode(message.parentCategoricalValues, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ConditionalParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec} message ConditionalParameterSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ConditionalParameterSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ConditionalParameterSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConditionalParameterSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.parentDiscreteValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.decode(reader, reader.uint32()); - break; - case 3: - message.parentIntValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.decode(reader, reader.uint32()); - break; - case 4: - message.parentCategoricalValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.decode(reader, reader.uint32()); - break; - case 1: - message.parameterSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ConditionalParameterSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ConditionalParameterSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ConditionalParameterSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ConditionalParameterSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.parentDiscreteValues != null && message.hasOwnProperty("parentDiscreteValues")) { - properties.parentValueCondition = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify(message.parentDiscreteValues); - if (error) - return "parentDiscreteValues." + error; - } - } - if (message.parentIntValues != null && message.hasOwnProperty("parentIntValues")) { - if (properties.parentValueCondition === 1) - return "parentValueCondition: multiple values"; - properties.parentValueCondition = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify(message.parentIntValues); - if (error) - return "parentIntValues." + error; - } - } - if (message.parentCategoricalValues != null && message.hasOwnProperty("parentCategoricalValues")) { - if (properties.parentValueCondition === 1) - return "parentValueCondition: multiple values"; - properties.parentValueCondition = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify(message.parentCategoricalValues); - if (error) - return "parentCategoricalValues." + error; - } - } - if (message.parameterSpec != null && message.hasOwnProperty("parameterSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify(message.parameterSpec); - if (error) - return "parameterSpec." + error; - } - return null; - }; - - /** - * Creates a ConditionalParameterSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec - */ - ConditionalParameterSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec(); - if (object.parentDiscreteValues != null) { - if (typeof object.parentDiscreteValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentDiscreteValues: object expected"); - message.parentDiscreteValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.fromObject(object.parentDiscreteValues); - } - if (object.parentIntValues != null) { - if (typeof object.parentIntValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentIntValues: object expected"); - message.parentIntValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.fromObject(object.parentIntValues); - } - if (object.parentCategoricalValues != null) { - if (typeof object.parentCategoricalValues !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentCategoricalValues: object expected"); - message.parentCategoricalValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.fromObject(object.parentCategoricalValues); - } - if (object.parameterSpec != null) { - if (typeof object.parameterSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.parameterSpec: object expected"); - message.parameterSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.fromObject(object.parameterSpec); - } - return message; - }; - - /** - * Creates a plain object from a ConditionalParameterSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec} message ConditionalParameterSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ConditionalParameterSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.parameterSpec = null; - if (message.parameterSpec != null && message.hasOwnProperty("parameterSpec")) - object.parameterSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.toObject(message.parameterSpec, options); - if (message.parentDiscreteValues != null && message.hasOwnProperty("parentDiscreteValues")) { - object.parentDiscreteValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.toObject(message.parentDiscreteValues, options); - if (options.oneofs) - object.parentValueCondition = "parentDiscreteValues"; - } - if (message.parentIntValues != null && message.hasOwnProperty("parentIntValues")) { - object.parentIntValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.toObject(message.parentIntValues, options); - if (options.oneofs) - object.parentValueCondition = "parentIntValues"; - } - if (message.parentCategoricalValues != null && message.hasOwnProperty("parentCategoricalValues")) { - object.parentCategoricalValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.toObject(message.parentCategoricalValues, options); - if (options.oneofs) - object.parentValueCondition = "parentCategoricalValues"; - } - return object; - }; - - /** - * Converts this ConditionalParameterSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @instance - * @returns {Object.} JSON object - */ - ConditionalParameterSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - ConditionalParameterSpec.DiscreteValueCondition = (function() { - - /** - * Properties of a DiscreteValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface IDiscreteValueCondition - * @property {Array.|null} [values] DiscreteValueCondition values - */ - - /** - * Constructs a new DiscreteValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @classdesc Represents a DiscreteValueCondition. - * @implements IDiscreteValueCondition - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition=} [properties] Properties to set - */ - function DiscreteValueCondition(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * DiscreteValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @instance - */ - DiscreteValueCondition.prototype.values = $util.emptyArray; - - /** - * Creates a new DiscreteValueCondition instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition instance - */ - DiscreteValueCondition.create = function create(properties) { - return new DiscreteValueCondition(properties); - }; - - /** - * Encodes the specified DiscreteValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition} message DiscreteValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DiscreteValueCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.double(message.values[i]); - writer.ldelim(); - } - return writer; - }; - - /** - * Encodes the specified DiscreteValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition} message DiscreteValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DiscreteValueCondition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a DiscreteValueCondition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DiscreteValueCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.double()); - } else - message.values.push(reader.double()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a DiscreteValueCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DiscreteValueCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a DiscreteValueCondition message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DiscreteValueCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (typeof message.values[i] !== "number") - return "values: number[] expected"; - } - return null; - }; - - /** - * Creates a DiscreteValueCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition - */ - DiscreteValueCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = Number(object.values[i]); - } - return message; - }; - - /** - * Creates a plain object from a DiscreteValueCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} message DiscreteValueCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DiscreteValueCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; - } - return object; - }; + /** + * Creates a plain object from a HyperparameterTuningJob message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @static + * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} message HyperparameterTuningJob + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + HyperparameterTuningJob.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.trials = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.studySpec = null; + object.maxTrialCount = 0; + object.parallelTrialCount = 0; + object.maxFailedTrialCount = 0; + object.trialJobSpec = null; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.startTime = null; + object.endTime = null; + object.updateTime = null; + object.error = null; + object.encryptionSpec = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.studySpec != null && message.hasOwnProperty("studySpec")) + object.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.toObject(message.studySpec, options); + if (message.maxTrialCount != null && message.hasOwnProperty("maxTrialCount")) + object.maxTrialCount = message.maxTrialCount; + if (message.parallelTrialCount != null && message.hasOwnProperty("parallelTrialCount")) + object.parallelTrialCount = message.parallelTrialCount; + if (message.maxFailedTrialCount != null && message.hasOwnProperty("maxFailedTrialCount")) + object.maxFailedTrialCount = message.maxFailedTrialCount; + if (message.trialJobSpec != null && message.hasOwnProperty("trialJobSpec")) + object.trialJobSpec = $root.google.cloud.aiplatform.v1beta1.CustomJobSpec.toObject(message.trialJobSpec, options); + if (message.trials && message.trials.length) { + object.trials = []; + for (var j = 0; j < message.trials.length; ++j) + object.trials[j] = $root.google.cloud.aiplatform.v1beta1.Trial.toObject(message.trials[j], options); + } + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + return object; + }; - /** - * Converts this DiscreteValueCondition to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition - * @instance - * @returns {Object.} JSON object - */ - DiscreteValueCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this HyperparameterTuningJob to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.HyperparameterTuningJob + * @instance + * @returns {Object.} JSON object + */ + HyperparameterTuningJob.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return DiscreteValueCondition; - })(); + return HyperparameterTuningJob; + })(); - ConditionalParameterSpec.IntValueCondition = (function() { + v1beta1.Study = (function() { - /** - * Properties of an IntValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface IIntValueCondition - * @property {Array.|null} [values] IntValueCondition values - */ + /** + * Properties of a Study. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IStudy + * @property {string|null} [name] Study name + * @property {string|null} [displayName] Study displayName + * @property {google.cloud.aiplatform.v1beta1.IStudySpec|null} [studySpec] Study studySpec + * @property {google.cloud.aiplatform.v1beta1.Study.State|null} [state] Study state + * @property {google.protobuf.ITimestamp|null} [createTime] Study createTime + * @property {string|null} [inactiveReason] Study inactiveReason + */ - /** - * Constructs a new IntValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @classdesc Represents an IntValueCondition. - * @implements IIntValueCondition - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition=} [properties] Properties to set - */ - function IntValueCondition(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Constructs a new Study. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a Study. + * @implements IStudy + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IStudy=} [properties] Properties to set + */ + function Study(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * IntValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @instance - */ - IntValueCondition.prototype.values = $util.emptyArray; + /** + * Study name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Study + * @instance + */ + Study.prototype.name = ""; - /** - * Creates a new IntValueCondition instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition instance - */ - IntValueCondition.create = function create(properties) { - return new IntValueCondition(properties); - }; + /** + * Study displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Study + * @instance + */ + Study.prototype.displayName = ""; - /** - * Encodes the specified IntValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition} message IntValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntValueCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) { - writer.uint32(/* id 1, wireType 2 =*/10).fork(); - for (var i = 0; i < message.values.length; ++i) - writer.int64(message.values[i]); - writer.ldelim(); - } - return writer; - }; + /** + * Study studySpec. + * @member {google.cloud.aiplatform.v1beta1.IStudySpec|null|undefined} studySpec + * @memberof google.cloud.aiplatform.v1beta1.Study + * @instance + */ + Study.prototype.studySpec = null; - /** - * Encodes the specified IntValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition} message IntValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IntValueCondition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Study state. + * @member {google.cloud.aiplatform.v1beta1.Study.State} state + * @memberof google.cloud.aiplatform.v1beta1.Study + * @instance + */ + Study.prototype.state = 0; - /** - * Decodes an IntValueCondition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntValueCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - if ((tag & 7) === 2) { - var end2 = reader.uint32() + reader.pos; - while (reader.pos < end2) - message.values.push(reader.int64()); - } else - message.values.push(reader.int64()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Study createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Study + * @instance + */ + Study.prototype.createTime = null; - /** - * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IntValueCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Study inactiveReason. + * @member {string} inactiveReason + * @memberof google.cloud.aiplatform.v1beta1.Study + * @instance + */ + Study.prototype.inactiveReason = ""; - /** - * Verifies an IntValueCondition message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IntValueCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) - return "values: integer|Long[] expected"; - } - return null; - }; + /** + * Creates a new Study instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Study + * @static + * @param {google.cloud.aiplatform.v1beta1.IStudy=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Study} Study instance + */ + Study.create = function create(properties) { + return new Study(properties); + }; - /** - * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition - */ - IntValueCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - if ($util.Long) - (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; - else if (typeof object.values[i] === "string") - message.values[i] = parseInt(object.values[i], 10); - else if (typeof object.values[i] === "number") - message.values[i] = object.values[i]; - else if (typeof object.values[i] === "object") - message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); - } - return message; - }; + /** + * Encodes the specified Study message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Study + * @static + * @param {google.cloud.aiplatform.v1beta1.IStudy} message Study message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Study.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.studySpec != null && Object.hasOwnProperty.call(message, "studySpec")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.encode(message.studySpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.inactiveReason != null && Object.hasOwnProperty.call(message, "inactiveReason")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.inactiveReason); + return writer; + }; - /** - * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} message IntValueCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IntValueCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - if (typeof message.values[j] === "number") - object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; - else - object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; - } - return object; - }; + /** + * Encodes the specified Study message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Study.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Study + * @static + * @param {google.cloud.aiplatform.v1beta1.IStudy} message Study message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Study.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this IntValueCondition to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition - * @instance - * @returns {Object.} JSON object - */ - IntValueCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a Study message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Study + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Study} Study + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Study.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Study(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.decode(reader, reader.uint32()); + break; + case 4: + message.state = reader.int32(); + break; + case 5: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 6: + message.inactiveReason = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - return IntValueCondition; - })(); + /** + * Decodes a Study message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Study + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Study} Study + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Study.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - ConditionalParameterSpec.CategoricalValueCondition = (function() { + /** + * Verifies a Study message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Study + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Study.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.studySpec != null && message.hasOwnProperty("studySpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.verify(message.studySpec); + if (error) + return "studySpec." + error; + } + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.inactiveReason != null && message.hasOwnProperty("inactiveReason")) + if (!$util.isString(message.inactiveReason)) + return "inactiveReason: string expected"; + return null; + }; - /** - * Properties of a CategoricalValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @interface ICategoricalValueCondition - * @property {Array.|null} [values] CategoricalValueCondition values - */ + /** + * Creates a Study message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Study + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Study} Study + */ + Study.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Study) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Study(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.studySpec != null) { + if (typeof object.studySpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Study.studySpec: object expected"); + message.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.fromObject(object.studySpec); + } + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "ACTIVE": + case 1: + message.state = 1; + break; + case "INACTIVE": + case 2: + message.state = 2; + break; + case "COMPLETED": + case 3: + message.state = 3; + break; + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Study.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.inactiveReason != null) + message.inactiveReason = String(object.inactiveReason); + return message; + }; - /** - * Constructs a new CategoricalValueCondition. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec - * @classdesc Represents a CategoricalValueCondition. - * @implements ICategoricalValueCondition - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set - */ - function CategoricalValueCondition(properties) { - this.values = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a plain object from a Study message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Study + * @static + * @param {google.cloud.aiplatform.v1beta1.Study} message Study + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Study.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.studySpec = null; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.createTime = null; + object.inactiveReason = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.studySpec != null && message.hasOwnProperty("studySpec")) + object.studySpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.toObject(message.studySpec, options); + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Study.State[message.state] : message.state; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.inactiveReason != null && message.hasOwnProperty("inactiveReason")) + object.inactiveReason = message.inactiveReason; + return object; + }; - /** - * CategoricalValueCondition values. - * @member {Array.} values - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @instance - */ - CategoricalValueCondition.prototype.values = $util.emptyArray; + /** + * Converts this Study to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Study + * @instance + * @returns {Object.} JSON object + */ + Study.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new CategoricalValueCondition instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition instance - */ - CategoricalValueCondition.create = function create(properties) { - return new CategoricalValueCondition(properties); - }; + /** + * State enum. + * @name google.cloud.aiplatform.v1beta1.Study.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} ACTIVE=1 ACTIVE value + * @property {number} INACTIVE=2 INACTIVE value + * @property {number} COMPLETED=3 COMPLETED value + */ + Study.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "ACTIVE"] = 1; + values[valuesById[2] = "INACTIVE"] = 2; + values[valuesById[3] = "COMPLETED"] = 3; + return values; + })(); - /** - * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueCondition.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.values != null && message.values.length) - for (var i = 0; i < message.values.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); - return writer; - }; + return Study; + })(); - /** - * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CategoricalValueCondition.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + v1beta1.Trial = (function() { - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueCondition.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.values && message.values.length)) - message.values = []; - message.values.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Properties of a Trial. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ITrial + * @property {string|null} [name] Trial name + * @property {string|null} [id] Trial id + * @property {google.cloud.aiplatform.v1beta1.Trial.State|null} [state] Trial state + * @property {Array.|null} [parameters] Trial parameters + * @property {google.cloud.aiplatform.v1beta1.IMeasurement|null} [finalMeasurement] Trial finalMeasurement + * @property {Array.|null} [measurements] Trial measurements + * @property {google.protobuf.ITimestamp|null} [startTime] Trial startTime + * @property {google.protobuf.ITimestamp|null} [endTime] Trial endTime + * @property {string|null} [clientId] Trial clientId + * @property {string|null} [infeasibleReason] Trial infeasibleReason + * @property {string|null} [customJob] Trial customJob + * @property {Object.|null} [webAccessUris] Trial webAccessUris + */ - /** - * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CategoricalValueCondition.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Constructs a new Trial. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a Trial. + * @implements ITrial + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ITrial=} [properties] Properties to set + */ + function Trial(properties) { + this.parameters = []; + this.measurements = []; + this.webAccessUris = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Verifies a CategoricalValueCondition message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CategoricalValueCondition.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.values != null && message.hasOwnProperty("values")) { - if (!Array.isArray(message.values)) - return "values: array expected"; - for (var i = 0; i < message.values.length; ++i) - if (!$util.isString(message.values[i])) - return "values: string[] expected"; - } - return null; - }; + /** + * Trial name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.name = ""; - /** - * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition - */ - CategoricalValueCondition.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); - if (object.values) { - if (!Array.isArray(object.values)) - throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.values: array expected"); - message.values = []; - for (var i = 0; i < object.values.length; ++i) - message.values[i] = String(object.values[i]); - } - return message; - }; + /** + * Trial id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.id = ""; - /** - * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} message CategoricalValueCondition - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CategoricalValueCondition.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.values = []; - if (message.values && message.values.length) { - object.values = []; - for (var j = 0; j < message.values.length; ++j) - object.values[j] = message.values[j]; - } - return object; - }; + /** + * Trial state. + * @member {google.cloud.aiplatform.v1beta1.Trial.State} state + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.state = 0; - /** - * Converts this CategoricalValueCondition to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition - * @instance - * @returns {Object.} JSON object - */ - CategoricalValueCondition.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Trial parameters. + * @member {Array.} parameters + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.parameters = $util.emptyArray; - return CategoricalValueCondition; - })(); + /** + * Trial finalMeasurement. + * @member {google.cloud.aiplatform.v1beta1.IMeasurement|null|undefined} finalMeasurement + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.finalMeasurement = null; - return ConditionalParameterSpec; - })(); + /** + * Trial measurements. + * @member {Array.} measurements + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.measurements = $util.emptyArray; - /** - * ScaleType enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType - * @enum {number} - * @property {number} SCALE_TYPE_UNSPECIFIED=0 SCALE_TYPE_UNSPECIFIED value - * @property {number} UNIT_LINEAR_SCALE=1 UNIT_LINEAR_SCALE value - * @property {number} UNIT_LOG_SCALE=2 UNIT_LOG_SCALE value - * @property {number} UNIT_REVERSE_LOG_SCALE=3 UNIT_REVERSE_LOG_SCALE value - */ - ParameterSpec.ScaleType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "SCALE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "UNIT_LINEAR_SCALE"] = 1; - values[valuesById[2] = "UNIT_LOG_SCALE"] = 2; - values[valuesById[3] = "UNIT_REVERSE_LOG_SCALE"] = 3; - return values; - })(); + /** + * Trial startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.startTime = null; - return ParameterSpec; - })(); + /** + * Trial endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.endTime = null; - StudySpec.DecayCurveAutomatedStoppingSpec = (function() { + /** + * Trial clientId. + * @member {string} clientId + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.clientId = ""; - /** - * Properties of a DecayCurveAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IDecayCurveAutomatedStoppingSpec - * @property {boolean|null} [useElapsedDuration] DecayCurveAutomatedStoppingSpec useElapsedDuration - */ + /** + * Trial infeasibleReason. + * @member {string} infeasibleReason + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.infeasibleReason = ""; - /** - * Constructs a new DecayCurveAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a DecayCurveAutomatedStoppingSpec. - * @implements IDecayCurveAutomatedStoppingSpec - * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set - */ - function DecayCurveAutomatedStoppingSpec(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Trial customJob. + * @member {string} customJob + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.customJob = ""; - /** - * DecayCurveAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @instance - */ - DecayCurveAutomatedStoppingSpec.prototype.useElapsedDuration = false; + /** + * Trial webAccessUris. + * @member {Object.} webAccessUris + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + */ + Trial.prototype.webAccessUris = $util.emptyObject; - /** - * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec instance - */ - DecayCurveAutomatedStoppingSpec.create = function create(properties) { - return new DecayCurveAutomatedStoppingSpec(properties); - }; + /** + * Creates a new Trial instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @static + * @param {google.cloud.aiplatform.v1beta1.ITrial=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial instance + */ + Trial.create = function create(properties) { + return new Trial(properties); + }; - /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DecayCurveAutomatedStoppingSpec.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); - return writer; - }; + /** + * Encodes the specified Trial message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @static + * @param {google.cloud.aiplatform.v1beta1.ITrial} message Trial message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Trial.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.id); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.state); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Trial.Parameter.encode(message.parameters[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.finalMeasurement != null && Object.hasOwnProperty.call(message, "finalMeasurement")) + $root.google.cloud.aiplatform.v1beta1.Measurement.encode(message.finalMeasurement, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.measurements != null && message.measurements.length) + for (var i = 0; i < message.measurements.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Measurement.encode(message.measurements[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.clientId != null && Object.hasOwnProperty.call(message, "clientId")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.clientId); + if (message.infeasibleReason != null && Object.hasOwnProperty.call(message, "infeasibleReason")) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.infeasibleReason); + if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.customJob); + if (message.webAccessUris != null && Object.hasOwnProperty.call(message, "webAccessUris")) + for (var keys = Object.keys(message.webAccessUris), i = 0; i < keys.length; ++i) + writer.uint32(/* id 12, wireType 2 =*/98).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.webAccessUris[keys[i]]).ldelim(); + return writer; + }; - /** - * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DecayCurveAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified Trial message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @static + * @param {google.cloud.aiplatform.v1beta1.ITrial} message Trial message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Trial.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DecayCurveAutomatedStoppingSpec.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.useElapsedDuration = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a Trial message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Trial.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Trial(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.id = reader.string(); + break; + case 3: + message.state = reader.int32(); + break; + case 4: + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.aiplatform.v1beta1.Trial.Parameter.decode(reader, reader.uint32())); + break; + case 5: + message.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.decode(reader, reader.uint32()); + break; + case 6: + if (!(message.measurements && message.measurements.length)) + message.measurements = []; + message.measurements.push($root.google.cloud.aiplatform.v1beta1.Measurement.decode(reader, reader.uint32())); + break; + case 7: + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.clientId = reader.string(); + break; + case 10: + message.infeasibleReason = reader.string(); + break; + case 11: + message.customJob = reader.string(); + break; + case 12: + if (message.webAccessUris === $util.emptyObject) + message.webAccessUris = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } } + message.webAccessUris[key] = value; + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; - - /** - * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DecayCurveAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + } + return message; + }; - /** - * Verifies a DecayCurveAutomatedStoppingSpec message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DecayCurveAutomatedStoppingSpec.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; - return null; - }; + /** + * Decodes a Trial message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Trial.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec - */ - DecayCurveAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); - return message; - }; + /** + * Verifies a Trial message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Trial.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + break; + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Trial.Parameter.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) { + var error = $root.google.cloud.aiplatform.v1beta1.Measurement.verify(message.finalMeasurement); + if (error) + return "finalMeasurement." + error; + } + if (message.measurements != null && message.hasOwnProperty("measurements")) { + if (!Array.isArray(message.measurements)) + return "measurements: array expected"; + for (var i = 0; i < message.measurements.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Measurement.verify(message.measurements[i]); + if (error) + return "measurements." + error; + } + } + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; + } + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; + } + if (message.clientId != null && message.hasOwnProperty("clientId")) + if (!$util.isString(message.clientId)) + return "clientId: string expected"; + if (message.infeasibleReason != null && message.hasOwnProperty("infeasibleReason")) + if (!$util.isString(message.infeasibleReason)) + return "infeasibleReason: string expected"; + if (message.customJob != null && message.hasOwnProperty("customJob")) + if (!$util.isString(message.customJob)) + return "customJob: string expected"; + if (message.webAccessUris != null && message.hasOwnProperty("webAccessUris")) { + if (!$util.isObject(message.webAccessUris)) + return "webAccessUris: object expected"; + var key = Object.keys(message.webAccessUris); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.webAccessUris[key[i]])) + return "webAccessUris: string{k:string} expected"; + } + return null; + }; - /** - * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DecayCurveAutomatedStoppingSpec.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.useElapsedDuration = false; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; + /** + * Creates a Trial message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Trial} Trial + */ + Trial.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Trial) return object; - }; + var message = new $root.google.cloud.aiplatform.v1beta1.Trial(); + if (object.name != null) + message.name = String(object.name); + if (object.id != null) + message.id = String(object.id); + switch (object.state) { + case "STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "REQUESTED": + case 1: + message.state = 1; + break; + case "ACTIVE": + case 2: + message.state = 2; + break; + case "STOPPING": + case 3: + message.state = 3; + break; + case "SUCCEEDED": + case 4: + message.state = 4; + break; + case "INFEASIBLE": + case 5: + message.state = 5; + break; + } + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.parameters: object expected"); + message.parameters[i] = $root.google.cloud.aiplatform.v1beta1.Trial.Parameter.fromObject(object.parameters[i]); + } + } + if (object.finalMeasurement != null) { + if (typeof object.finalMeasurement !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.finalMeasurement: object expected"); + message.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.fromObject(object.finalMeasurement); + } + if (object.measurements) { + if (!Array.isArray(object.measurements)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.measurements: array expected"); + message.measurements = []; + for (var i = 0; i < object.measurements.length; ++i) { + if (typeof object.measurements[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.measurements: object expected"); + message.measurements[i] = $root.google.cloud.aiplatform.v1beta1.Measurement.fromObject(object.measurements[i]); + } + } + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); + } + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); + } + if (object.clientId != null) + message.clientId = String(object.clientId); + if (object.infeasibleReason != null) + message.infeasibleReason = String(object.infeasibleReason); + if (object.customJob != null) + message.customJob = String(object.customJob); + if (object.webAccessUris) { + if (typeof object.webAccessUris !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.webAccessUris: object expected"); + message.webAccessUris = {}; + for (var keys = Object.keys(object.webAccessUris), i = 0; i < keys.length; ++i) + message.webAccessUris[keys[i]] = String(object.webAccessUris[keys[i]]); + } + return message; + }; - /** - * Converts this DecayCurveAutomatedStoppingSpec to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec - * @instance - * @returns {Object.} JSON object - */ - DecayCurveAutomatedStoppingSpec.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a Trial message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @static + * @param {google.cloud.aiplatform.v1beta1.Trial} message Trial + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Trial.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.parameters = []; + object.measurements = []; + } + if (options.objects || options.defaults) + object.webAccessUris = {}; + if (options.defaults) { + object.name = ""; + object.id = ""; + object.state = options.enums === String ? "STATE_UNSPECIFIED" : 0; + object.finalMeasurement = null; + object.startTime = null; + object.endTime = null; + object.clientId = ""; + object.infeasibleReason = ""; + object.customJob = ""; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.Trial.State[message.state] : message.state; + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.google.cloud.aiplatform.v1beta1.Trial.Parameter.toObject(message.parameters[j], options); + } + if (message.finalMeasurement != null && message.hasOwnProperty("finalMeasurement")) + object.finalMeasurement = $root.google.cloud.aiplatform.v1beta1.Measurement.toObject(message.finalMeasurement, options); + if (message.measurements && message.measurements.length) { + object.measurements = []; + for (var j = 0; j < message.measurements.length; ++j) + object.measurements[j] = $root.google.cloud.aiplatform.v1beta1.Measurement.toObject(message.measurements[j], options); + } + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.clientId != null && message.hasOwnProperty("clientId")) + object.clientId = message.clientId; + if (message.infeasibleReason != null && message.hasOwnProperty("infeasibleReason")) + object.infeasibleReason = message.infeasibleReason; + if (message.customJob != null && message.hasOwnProperty("customJob")) + object.customJob = message.customJob; + var keys2; + if (message.webAccessUris && (keys2 = Object.keys(message.webAccessUris)).length) { + object.webAccessUris = {}; + for (var j = 0; j < keys2.length; ++j) + object.webAccessUris[keys2[j]] = message.webAccessUris[keys2[j]]; + } + return object; + }; - return DecayCurveAutomatedStoppingSpec; - })(); + /** + * Converts this Trial to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @instance + * @returns {Object.} JSON object + */ + Trial.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - StudySpec.MedianAutomatedStoppingSpec = (function() { + Trial.Parameter = (function() { /** - * Properties of a MedianAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IMedianAutomatedStoppingSpec - * @property {boolean|null} [useElapsedDuration] MedianAutomatedStoppingSpec useElapsedDuration + * Properties of a Parameter. + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @interface IParameter + * @property {string|null} [parameterId] Parameter parameterId + * @property {google.protobuf.IValue|null} [value] Parameter value */ /** - * Constructs a new MedianAutomatedStoppingSpec. - * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a MedianAutomatedStoppingSpec. - * @implements IMedianAutomatedStoppingSpec + * Constructs a new Parameter. + * @memberof google.cloud.aiplatform.v1beta1.Trial + * @classdesc Represents a Parameter. + * @implements IParameter * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.Trial.IParameter=} [properties] Properties to set */ - function MedianAutomatedStoppingSpec(properties) { + function Parameter(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -204112,75 +208432,88 @@ } /** - * MedianAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * Parameter parameterId. + * @member {string} parameterId + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter * @instance */ - MedianAutomatedStoppingSpec.prototype.useElapsedDuration = false; + Parameter.prototype.parameterId = ""; /** - * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. + * Parameter value. + * @member {google.protobuf.IValue|null|undefined} value + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter + * @instance + */ + Parameter.prototype.value = null; + + /** + * Creates a new Parameter instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec instance + * @param {google.cloud.aiplatform.v1beta1.Trial.IParameter=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Trial.Parameter} Parameter instance */ - MedianAutomatedStoppingSpec.create = function create(properties) { - return new MedianAutomatedStoppingSpec(properties); + Parameter.create = function create(properties) { + return new Parameter(properties); }; /** - * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * Encodes the specified Parameter message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.Trial.IParameter} message Parameter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MedianAutomatedStoppingSpec.encode = function encode(message, writer) { + Parameter.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); + if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameterId); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + $root.google.protobuf.Value.encode(message.value, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * Encodes the specified Parameter message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Trial.Parameter.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.Trial.IParameter} message Parameter message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MedianAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + Parameter.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. + * Decodes a Parameter message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.Trial.Parameter} Parameter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MedianAutomatedStoppingSpec.decode = function decode(reader, length) { + Parameter.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Trial.Parameter(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.useElapsedDuration = reader.bool(); + message.parameterId = reader.string(); + break; + case 2: + message.value = $root.google.protobuf.Value.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -204191,111 +208524,667 @@ }; /** - * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * Decodes a Parameter message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.Trial.Parameter} Parameter * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MedianAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + Parameter.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MedianAutomatedStoppingSpec message. + * Verifies a Parameter message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MedianAutomatedStoppingSpec.verify = function verify(message) { + Parameter.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + if (!$util.isString(message.parameterId)) + return "parameterId: string expected"; + if (message.value != null && message.hasOwnProperty("value")) { + var error = $root.google.protobuf.Value.verify(message.value); + if (error) + return "value." + error; + } return null; }; /** - * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * Creates a Parameter message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.Trial.Parameter} Parameter */ - MedianAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + Parameter.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Trial.Parameter) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); + var message = new $root.google.cloud.aiplatform.v1beta1.Trial.Parameter(); + if (object.parameterId != null) + message.parameterId = String(object.parameterId); + if (object.value != null) { + if (typeof object.value !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Trial.Parameter.value: object expected"); + message.value = $root.google.protobuf.Value.fromObject(object.value); + } return message; }; /** - * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. + * Creates a plain object from a Parameter message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec + * @param {google.cloud.aiplatform.v1beta1.Trial.Parameter} message Parameter * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MedianAutomatedStoppingSpec.toObject = function toObject(message, options) { + Parameter.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.useElapsedDuration = false; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; + if (options.defaults) { + object.parameterId = ""; + object.value = null; + } + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + object.parameterId = message.parameterId; + if (message.value != null && message.hasOwnProperty("value")) + object.value = $root.google.protobuf.Value.toObject(message.value, options); return object; }; /** - * Converts this MedianAutomatedStoppingSpec to JSON. + * Converts this Parameter to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.Trial.Parameter * @instance * @returns {Object.} JSON object */ - MedianAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + Parameter.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MedianAutomatedStoppingSpec; + return Parameter; })(); - StudySpec.ConvexAutomatedStoppingSpec = (function() { + /** + * State enum. + * @name google.cloud.aiplatform.v1beta1.Trial.State + * @enum {number} + * @property {number} STATE_UNSPECIFIED=0 STATE_UNSPECIFIED value + * @property {number} REQUESTED=1 REQUESTED value + * @property {number} ACTIVE=2 ACTIVE value + * @property {number} STOPPING=3 STOPPING value + * @property {number} SUCCEEDED=4 SUCCEEDED value + * @property {number} INFEASIBLE=5 INFEASIBLE value + */ + Trial.State = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "REQUESTED"] = 1; + values[valuesById[2] = "ACTIVE"] = 2; + values[valuesById[3] = "STOPPING"] = 3; + values[valuesById[4] = "SUCCEEDED"] = 4; + values[valuesById[5] = "INFEASIBLE"] = 5; + return values; + })(); + + return Trial; + })(); + + v1beta1.StudySpec = (function() { + + /** + * Properties of a StudySpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IStudySpec + * @property {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null} [decayCurveStoppingSpec] StudySpec decayCurveStoppingSpec + * @property {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null} [medianAutomatedStoppingSpec] StudySpec medianAutomatedStoppingSpec + * @property {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null} [convexStopConfig] StudySpec convexStopConfig + * @property {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null} [convexAutomatedStoppingSpec] StudySpec convexAutomatedStoppingSpec + * @property {Array.|null} [metrics] StudySpec metrics + * @property {Array.|null} [parameters] StudySpec parameters + * @property {google.cloud.aiplatform.v1beta1.StudySpec.Algorithm|null} [algorithm] StudySpec algorithm + * @property {google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise|null} [observationNoise] StudySpec observationNoise + * @property {google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType|null} [measurementSelectionType] StudySpec measurementSelectionType + */ + + /** + * Constructs a new StudySpec. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a StudySpec. + * @implements IStudySpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IStudySpec=} [properties] Properties to set + */ + function StudySpec(properties) { + this.metrics = []; + this.parameters = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * StudySpec decayCurveStoppingSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec|null|undefined} decayCurveStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.decayCurveStoppingSpec = null; + + /** + * StudySpec medianAutomatedStoppingSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec|null|undefined} medianAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.medianAutomatedStoppingSpec = null; + + /** + * StudySpec convexStopConfig. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig|null|undefined} convexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.convexStopConfig = null; + + /** + * StudySpec convexAutomatedStoppingSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec|null|undefined} convexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.convexAutomatedStoppingSpec = null; + + /** + * StudySpec metrics. + * @member {Array.} metrics + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.metrics = $util.emptyArray; + + /** + * StudySpec parameters. + * @member {Array.} parameters + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.parameters = $util.emptyArray; + + /** + * StudySpec algorithm. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.Algorithm} algorithm + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.algorithm = 0; + + /** + * StudySpec observationNoise. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise} observationNoise + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.observationNoise = 0; + + /** + * StudySpec measurementSelectionType. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType} measurementSelectionType + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + StudySpec.prototype.measurementSelectionType = 0; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * StudySpec automatedStoppingSpec. + * @member {"decayCurveStoppingSpec"|"medianAutomatedStoppingSpec"|"convexStopConfig"|"convexAutomatedStoppingSpec"|undefined} automatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + */ + Object.defineProperty(StudySpec.prototype, "automatedStoppingSpec", { + get: $util.oneOfGetter($oneOfFields = ["decayCurveStoppingSpec", "medianAutomatedStoppingSpec", "convexStopConfig", "convexAutomatedStoppingSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new StudySpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IStudySpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec instance + */ + StudySpec.create = function create(properties) { + return new StudySpec(properties); + }; + + /** + * Encodes the specified StudySpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IStudySpec} message StudySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudySpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.encode(message.metrics[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parameters != null && message.parameters.length) + for (var i = 0; i < message.parameters.length; ++i) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.encode(message.parameters[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.algorithm != null && Object.hasOwnProperty.call(message, "algorithm")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.algorithm); + if (message.decayCurveStoppingSpec != null && Object.hasOwnProperty.call(message, "decayCurveStoppingSpec")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.encode(message.decayCurveStoppingSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.medianAutomatedStoppingSpec != null && Object.hasOwnProperty.call(message, "medianAutomatedStoppingSpec")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.encode(message.medianAutomatedStoppingSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.observationNoise != null && Object.hasOwnProperty.call(message, "observationNoise")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.observationNoise); + if (message.measurementSelectionType != null && Object.hasOwnProperty.call(message, "measurementSelectionType")) + writer.uint32(/* id 7, wireType 0 =*/56).int32(message.measurementSelectionType); + if (message.convexStopConfig != null && Object.hasOwnProperty.call(message, "convexStopConfig")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.encode(message.convexStopConfig, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.convexAutomatedStoppingSpec != null && Object.hasOwnProperty.call(message, "convexAutomatedStoppingSpec")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.encode(message.convexAutomatedStoppingSpec, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified StudySpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.IStudySpec} message StudySpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + StudySpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a StudySpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudySpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 4: + message.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.decode(reader, reader.uint32()); + break; + case 5: + message.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.decode(reader, reader.uint32()); + break; + case 8: + message.convexStopConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.decode(reader, reader.uint32()); + break; + case 9: + message.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.decode(reader, reader.uint32()); + break; + case 1: + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.decode(reader, reader.uint32())); + break; + case 2: + if (!(message.parameters && message.parameters.length)) + message.parameters = []; + message.parameters.push($root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.decode(reader, reader.uint32())); + break; + case 3: + message.algorithm = reader.int32(); + break; + case 6: + message.observationNoise = reader.int32(); + break; + case 7: + message.measurementSelectionType = reader.int32(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a StudySpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + StudySpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a StudySpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + StudySpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.decayCurveStoppingSpec != null && message.hasOwnProperty("decayCurveStoppingSpec")) { + properties.automatedStoppingSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify(message.decayCurveStoppingSpec); + if (error) + return "decayCurveStoppingSpec." + error; + } + } + if (message.medianAutomatedStoppingSpec != null && message.hasOwnProperty("medianAutomatedStoppingSpec")) { + if (properties.automatedStoppingSpec === 1) + return "automatedStoppingSpec: multiple values"; + properties.automatedStoppingSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify(message.medianAutomatedStoppingSpec); + if (error) + return "medianAutomatedStoppingSpec." + error; + } + } + if (message.convexStopConfig != null && message.hasOwnProperty("convexStopConfig")) { + if (properties.automatedStoppingSpec === 1) + return "automatedStoppingSpec: multiple values"; + properties.automatedStoppingSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify(message.convexStopConfig); + if (error) + return "convexStopConfig." + error; + } + } + if (message.convexAutomatedStoppingSpec != null && message.hasOwnProperty("convexAutomatedStoppingSpec")) { + if (properties.automatedStoppingSpec === 1) + return "automatedStoppingSpec: multiple values"; + properties.automatedStoppingSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify(message.convexAutomatedStoppingSpec); + if (error) + return "convexAutomatedStoppingSpec." + error; + } + } + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } + if (message.parameters != null && message.hasOwnProperty("parameters")) { + if (!Array.isArray(message.parameters)) + return "parameters: array expected"; + for (var i = 0; i < message.parameters.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify(message.parameters[i]); + if (error) + return "parameters." + error; + } + } + if (message.algorithm != null && message.hasOwnProperty("algorithm")) + switch (message.algorithm) { + default: + return "algorithm: enum value expected"; + case 0: + case 2: + case 3: + break; + } + if (message.observationNoise != null && message.hasOwnProperty("observationNoise")) + switch (message.observationNoise) { + default: + return "observationNoise: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.measurementSelectionType != null && message.hasOwnProperty("measurementSelectionType")) + switch (message.measurementSelectionType) { + default: + return "measurementSelectionType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + return null; + }; + + /** + * Creates a StudySpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec} StudySpec + */ + StudySpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec(); + if (object.decayCurveStoppingSpec != null) { + if (typeof object.decayCurveStoppingSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.decayCurveStoppingSpec: object expected"); + message.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.fromObject(object.decayCurveStoppingSpec); + } + if (object.medianAutomatedStoppingSpec != null) { + if (typeof object.medianAutomatedStoppingSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.medianAutomatedStoppingSpec: object expected"); + message.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.fromObject(object.medianAutomatedStoppingSpec); + } + if (object.convexStopConfig != null) { + if (typeof object.convexStopConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.convexStopConfig: object expected"); + message.convexStopConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.fromObject(object.convexStopConfig); + } + if (object.convexAutomatedStoppingSpec != null) { + if (typeof object.convexAutomatedStoppingSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.convexAutomatedStoppingSpec: object expected"); + message.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.fromObject(object.convexAutomatedStoppingSpec); + } + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.metrics: object expected"); + message.metrics[i] = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.fromObject(object.metrics[i]); + } + } + if (object.parameters) { + if (!Array.isArray(object.parameters)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.parameters: array expected"); + message.parameters = []; + for (var i = 0; i < object.parameters.length; ++i) { + if (typeof object.parameters[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.parameters: object expected"); + message.parameters[i] = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.fromObject(object.parameters[i]); + } + } + switch (object.algorithm) { + case "ALGORITHM_UNSPECIFIED": + case 0: + message.algorithm = 0; + break; + case "GRID_SEARCH": + case 2: + message.algorithm = 2; + break; + case "RANDOM_SEARCH": + case 3: + message.algorithm = 3; + break; + } + switch (object.observationNoise) { + case "OBSERVATION_NOISE_UNSPECIFIED": + case 0: + message.observationNoise = 0; + break; + case "LOW": + case 1: + message.observationNoise = 1; + break; + case "HIGH": + case 2: + message.observationNoise = 2; + break; + } + switch (object.measurementSelectionType) { + case "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED": + case 0: + message.measurementSelectionType = 0; + break; + case "LAST_MEASUREMENT": + case 1: + message.measurementSelectionType = 1; + break; + case "BEST_MEASUREMENT": + case 2: + message.measurementSelectionType = 2; + break; + } + return message; + }; + + /** + * Creates a plain object from a StudySpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec} message StudySpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + StudySpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.metrics = []; + object.parameters = []; + } + if (options.defaults) { + object.algorithm = options.enums === String ? "ALGORITHM_UNSPECIFIED" : 0; + object.observationNoise = options.enums === String ? "OBSERVATION_NOISE_UNSPECIFIED" : 0; + object.measurementSelectionType = options.enums === String ? "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED" : 0; + } + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.toObject(message.metrics[j], options); + } + if (message.parameters && message.parameters.length) { + object.parameters = []; + for (var j = 0; j < message.parameters.length; ++j) + object.parameters[j] = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.toObject(message.parameters[j], options); + } + if (message.algorithm != null && message.hasOwnProperty("algorithm")) + object.algorithm = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.Algorithm[message.algorithm] : message.algorithm; + if (message.decayCurveStoppingSpec != null && message.hasOwnProperty("decayCurveStoppingSpec")) { + object.decayCurveStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.toObject(message.decayCurveStoppingSpec, options); + if (options.oneofs) + object.automatedStoppingSpec = "decayCurveStoppingSpec"; + } + if (message.medianAutomatedStoppingSpec != null && message.hasOwnProperty("medianAutomatedStoppingSpec")) { + object.medianAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.toObject(message.medianAutomatedStoppingSpec, options); + if (options.oneofs) + object.automatedStoppingSpec = "medianAutomatedStoppingSpec"; + } + if (message.observationNoise != null && message.hasOwnProperty("observationNoise")) + object.observationNoise = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise[message.observationNoise] : message.observationNoise; + if (message.measurementSelectionType != null && message.hasOwnProperty("measurementSelectionType")) + object.measurementSelectionType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType[message.measurementSelectionType] : message.measurementSelectionType; + if (message.convexStopConfig != null && message.hasOwnProperty("convexStopConfig")) { + object.convexStopConfig = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.toObject(message.convexStopConfig, options); + if (options.oneofs) + object.automatedStoppingSpec = "convexStopConfig"; + } + if (message.convexAutomatedStoppingSpec != null && message.hasOwnProperty("convexAutomatedStoppingSpec")) { + object.convexAutomatedStoppingSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.toObject(message.convexAutomatedStoppingSpec, options); + if (options.oneofs) + object.automatedStoppingSpec = "convexAutomatedStoppingSpec"; + } + return object; + }; + + /** + * Converts this StudySpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @instance + * @returns {Object.} JSON object + */ + StudySpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + StudySpec.MetricSpec = (function() { /** - * Properties of a ConvexAutomatedStoppingSpec. + * Properties of a MetricSpec. * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IConvexAutomatedStoppingSpec - * @property {number|Long|null} [maxStepCount] ConvexAutomatedStoppingSpec maxStepCount - * @property {number|Long|null} [minStepCount] ConvexAutomatedStoppingSpec minStepCount - * @property {number|Long|null} [minMeasurementCount] ConvexAutomatedStoppingSpec minMeasurementCount - * @property {string|null} [learningRateParameterName] ConvexAutomatedStoppingSpec learningRateParameterName - * @property {boolean|null} [useElapsedDuration] ConvexAutomatedStoppingSpec useElapsedDuration + * @interface IMetricSpec + * @property {string|null} [metricId] MetricSpec metricId + * @property {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType|null} [goal] MetricSpec goal */ /** - * Constructs a new ConvexAutomatedStoppingSpec. + * Constructs a new MetricSpec. * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a ConvexAutomatedStoppingSpec. - * @implements IConvexAutomatedStoppingSpec + * @classdesc Represents a MetricSpec. + * @implements IMetricSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec=} [properties] Properties to set */ - function ConvexAutomatedStoppingSpec(properties) { + function MetricSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -204303,127 +209192,88 @@ } /** - * ConvexAutomatedStoppingSpec maxStepCount. - * @member {number|Long} maxStepCount - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.maxStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ConvexAutomatedStoppingSpec minStepCount. - * @member {number|Long} minStepCount - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.minStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ConvexAutomatedStoppingSpec minMeasurementCount. - * @member {number|Long} minMeasurementCount - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec - * @instance - */ - ConvexAutomatedStoppingSpec.prototype.minMeasurementCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ConvexAutomatedStoppingSpec learningRateParameterName. - * @member {string} learningRateParameterName - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * MetricSpec metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @instance */ - ConvexAutomatedStoppingSpec.prototype.learningRateParameterName = ""; + MetricSpec.prototype.metricId = ""; /** - * ConvexAutomatedStoppingSpec useElapsedDuration. - * @member {boolean} useElapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * MetricSpec goal. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType} goal + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @instance */ - ConvexAutomatedStoppingSpec.prototype.useElapsedDuration = false; + MetricSpec.prototype.goal = 0; /** - * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * Creates a new MetricSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec instance + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec} MetricSpec instance */ - ConvexAutomatedStoppingSpec.create = function create(properties) { - return new ConvexAutomatedStoppingSpec(properties); + MetricSpec.create = function create(properties) { + return new MetricSpec(properties); }; /** - * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * Encodes the specified MetricSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec} message MetricSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConvexAutomatedStoppingSpec.encode = function encode(message, writer) { + MetricSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.maxStepCount != null && Object.hasOwnProperty.call(message, "maxStepCount")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxStepCount); - if (message.minStepCount != null && Object.hasOwnProperty.call(message, "minStepCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minStepCount); - if (message.minMeasurementCount != null && Object.hasOwnProperty.call(message, "minMeasurementCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.minMeasurementCount); - if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); - if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useElapsedDuration); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.goal != null && Object.hasOwnProperty.call(message, "goal")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.goal); return writer; }; /** - * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * Encodes the specified MetricSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMetricSpec} message MetricSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConvexAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + MetricSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * Decodes a MetricSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec} MetricSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConvexAutomatedStoppingSpec.decode = function decode(reader, length) { + MetricSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.maxStepCount = reader.int64(); + message.metricId = reader.string(); break; case 2: - message.minStepCount = reader.int64(); - break; - case 3: - message.minMeasurementCount = reader.int64(); - break; - case 4: - message.learningRateParameterName = reader.string(); - break; - case 5: - message.useElapsedDuration = reader.bool(); + message.goal = reader.int32(); break; default: reader.skipType(tag & 7); @@ -204434,186 +209284,157 @@ }; /** - * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * Decodes a MetricSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec} MetricSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConvexAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + MetricSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConvexAutomatedStoppingSpec message. + * Verifies a MetricSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConvexAutomatedStoppingSpec.verify = function verify(message) { + MetricSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) - if (!$util.isInteger(message.maxStepCount) && !(message.maxStepCount && $util.isInteger(message.maxStepCount.low) && $util.isInteger(message.maxStepCount.high))) - return "maxStepCount: integer|Long expected"; - if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) - if (!$util.isInteger(message.minStepCount) && !(message.minStepCount && $util.isInteger(message.minStepCount.low) && $util.isInteger(message.minStepCount.high))) - return "minStepCount: integer|Long expected"; - if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) - if (!$util.isInteger(message.minMeasurementCount) && !(message.minMeasurementCount && $util.isInteger(message.minMeasurementCount.low) && $util.isInteger(message.minMeasurementCount.high))) - return "minMeasurementCount: integer|Long expected"; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - if (!$util.isString(message.learningRateParameterName)) - return "learningRateParameterName: string expected"; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - if (typeof message.useElapsedDuration !== "boolean") - return "useElapsedDuration: boolean expected"; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.goal != null && message.hasOwnProperty("goal")) + switch (message.goal) { + default: + return "goal: enum value expected"; + case 0: + case 1: + case 2: + break; + } return null; }; /** - * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * Creates a MetricSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec} MetricSpec */ - ConvexAutomatedStoppingSpec.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + MetricSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); - if (object.maxStepCount != null) - if ($util.Long) - (message.maxStepCount = $util.Long.fromValue(object.maxStepCount)).unsigned = false; - else if (typeof object.maxStepCount === "string") - message.maxStepCount = parseInt(object.maxStepCount, 10); - else if (typeof object.maxStepCount === "number") - message.maxStepCount = object.maxStepCount; - else if (typeof object.maxStepCount === "object") - message.maxStepCount = new $util.LongBits(object.maxStepCount.low >>> 0, object.maxStepCount.high >>> 0).toNumber(); - if (object.minStepCount != null) - if ($util.Long) - (message.minStepCount = $util.Long.fromValue(object.minStepCount)).unsigned = false; - else if (typeof object.minStepCount === "string") - message.minStepCount = parseInt(object.minStepCount, 10); - else if (typeof object.minStepCount === "number") - message.minStepCount = object.minStepCount; - else if (typeof object.minStepCount === "object") - message.minStepCount = new $util.LongBits(object.minStepCount.low >>> 0, object.minStepCount.high >>> 0).toNumber(); - if (object.minMeasurementCount != null) - if ($util.Long) - (message.minMeasurementCount = $util.Long.fromValue(object.minMeasurementCount)).unsigned = false; - else if (typeof object.minMeasurementCount === "string") - message.minMeasurementCount = parseInt(object.minMeasurementCount, 10); - else if (typeof object.minMeasurementCount === "number") - message.minMeasurementCount = object.minMeasurementCount; - else if (typeof object.minMeasurementCount === "object") - message.minMeasurementCount = new $util.LongBits(object.minMeasurementCount.low >>> 0, object.minMeasurementCount.high >>> 0).toNumber(); - if (object.learningRateParameterName != null) - message.learningRateParameterName = String(object.learningRateParameterName); - if (object.useElapsedDuration != null) - message.useElapsedDuration = Boolean(object.useElapsedDuration); + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec(); + if (object.metricId != null) + message.metricId = String(object.metricId); + switch (object.goal) { + case "GOAL_TYPE_UNSPECIFIED": + case 0: + message.goal = 0; + break; + case "MAXIMIZE": + case 1: + message.goal = 1; + break; + case "MINIMIZE": + case 2: + message.goal = 2; + break; + } return message; }; /** - * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. + * Creates a plain object from a MetricSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec} message MetricSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConvexAutomatedStoppingSpec.toObject = function toObject(message, options) { + MetricSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxStepCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minStepCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minMeasurementCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minMeasurementCount = options.longs === String ? "0" : 0; - object.learningRateParameterName = ""; - object.useElapsedDuration = false; + object.metricId = ""; + object.goal = options.enums === String ? "GOAL_TYPE_UNSPECIFIED" : 0; } - if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) - if (typeof message.maxStepCount === "number") - object.maxStepCount = options.longs === String ? String(message.maxStepCount) : message.maxStepCount; - else - object.maxStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxStepCount) : options.longs === Number ? new $util.LongBits(message.maxStepCount.low >>> 0, message.maxStepCount.high >>> 0).toNumber() : message.maxStepCount; - if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) - if (typeof message.minStepCount === "number") - object.minStepCount = options.longs === String ? String(message.minStepCount) : message.minStepCount; - else - object.minStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.minStepCount) : options.longs === Number ? new $util.LongBits(message.minStepCount.low >>> 0, message.minStepCount.high >>> 0).toNumber() : message.minStepCount; - if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) - if (typeof message.minMeasurementCount === "number") - object.minMeasurementCount = options.longs === String ? String(message.minMeasurementCount) : message.minMeasurementCount; - else - object.minMeasurementCount = options.longs === String ? $util.Long.prototype.toString.call(message.minMeasurementCount) : options.longs === Number ? new $util.LongBits(message.minMeasurementCount.low >>> 0, message.minMeasurementCount.high >>> 0).toNumber() : message.minMeasurementCount; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - object.learningRateParameterName = message.learningRateParameterName; - if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) - object.useElapsedDuration = message.useElapsedDuration; + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.goal != null && message.hasOwnProperty("goal")) + object.goal = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType[message.goal] : message.goal; return object; }; /** - * Converts this ConvexAutomatedStoppingSpec to JSON. + * Converts this MetricSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec * @instance * @returns {Object.} JSON object */ - ConvexAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + MetricSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConvexAutomatedStoppingSpec; + /** + * GoalType enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.MetricSpec.GoalType + * @enum {number} + * @property {number} GOAL_TYPE_UNSPECIFIED=0 GOAL_TYPE_UNSPECIFIED value + * @property {number} MAXIMIZE=1 MAXIMIZE value + * @property {number} MINIMIZE=2 MINIMIZE value + */ + MetricSpec.GoalType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "GOAL_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "MAXIMIZE"] = 1; + values[valuesById[2] = "MINIMIZE"] = 2; + return values; + })(); + + return MetricSpec; })(); - StudySpec.ConvexStopConfig = (function() { + StudySpec.ParameterSpec = (function() { /** - * Properties of a ConvexStopConfig. + * Properties of a ParameterSpec. * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @interface IConvexStopConfig - * @property {number|Long|null} [maxNumSteps] ConvexStopConfig maxNumSteps - * @property {number|Long|null} [minNumSteps] ConvexStopConfig minNumSteps - * @property {number|Long|null} [autoregressiveOrder] ConvexStopConfig autoregressiveOrder - * @property {string|null} [learningRateParameterName] ConvexStopConfig learningRateParameterName - * @property {boolean|null} [useSeconds] ConvexStopConfig useSeconds + * @interface IParameterSpec + * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null} [doubleValueSpec] ParameterSpec doubleValueSpec + * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null} [integerValueSpec] ParameterSpec integerValueSpec + * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null} [categoricalValueSpec] ParameterSpec categoricalValueSpec + * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null} [discreteValueSpec] ParameterSpec discreteValueSpec + * @property {string|null} [parameterId] ParameterSpec parameterId + * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType|null} [scaleType] ParameterSpec scaleType + * @property {Array.|null} [conditionalParameterSpecs] ParameterSpec conditionalParameterSpecs */ /** - * Constructs a new ConvexStopConfig. + * Constructs a new ParameterSpec. * @memberof google.cloud.aiplatform.v1beta1.StudySpec - * @classdesc Represents a ConvexStopConfig. - * @implements IConvexStopConfig + * @classdesc Represents a ParameterSpec. + * @implements IParameterSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec=} [properties] Properties to set */ - function ConvexStopConfig(properties) { + function ParameterSpec(properties) { + this.conditionalParameterSpecs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -204621,127 +209442,170 @@ } /** - * ConvexStopConfig maxNumSteps. - * @member {number|Long} maxNumSteps - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * ParameterSpec doubleValueSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec|null|undefined} doubleValueSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @instance */ - ConvexStopConfig.prototype.maxNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ParameterSpec.prototype.doubleValueSpec = null; /** - * ConvexStopConfig minNumSteps. - * @member {number|Long} minNumSteps - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * ParameterSpec integerValueSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec|null|undefined} integerValueSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @instance */ - ConvexStopConfig.prototype.minNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ParameterSpec.prototype.integerValueSpec = null; /** - * ConvexStopConfig autoregressiveOrder. - * @member {number|Long} autoregressiveOrder - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * ParameterSpec categoricalValueSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec|null|undefined} categoricalValueSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @instance */ - ConvexStopConfig.prototype.autoregressiveOrder = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + ParameterSpec.prototype.categoricalValueSpec = null; /** - * ConvexStopConfig learningRateParameterName. - * @member {string} learningRateParameterName - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * ParameterSpec discreteValueSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec|null|undefined} discreteValueSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @instance */ - ConvexStopConfig.prototype.learningRateParameterName = ""; + ParameterSpec.prototype.discreteValueSpec = null; /** - * ConvexStopConfig useSeconds. - * @member {boolean} useSeconds - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * ParameterSpec parameterId. + * @member {string} parameterId + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @instance */ - ConvexStopConfig.prototype.useSeconds = false; + ParameterSpec.prototype.parameterId = ""; + + /** + * ParameterSpec scaleType. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType} scaleType + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.scaleType = 0; + + /** + * ParameterSpec conditionalParameterSpecs. + * @member {Array.} conditionalParameterSpecs + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @instance + */ + ParameterSpec.prototype.conditionalParameterSpecs = $util.emptyArray; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * ParameterSpec parameterValueSpec. + * @member {"doubleValueSpec"|"integerValueSpec"|"categoricalValueSpec"|"discreteValueSpec"|undefined} parameterValueSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @instance + */ + Object.defineProperty(ParameterSpec.prototype, "parameterValueSpec", { + get: $util.oneOfGetter($oneOfFields = ["doubleValueSpec", "integerValueSpec", "categoricalValueSpec", "discreteValueSpec"]), + set: $util.oneOfSetter($oneOfFields) + }); /** - * Creates a new ConvexStopConfig instance using the specified properties. + * Creates a new ParameterSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig instance + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec} ParameterSpec instance */ - ConvexStopConfig.create = function create(properties) { - return new ConvexStopConfig(properties); + ParameterSpec.create = function create(properties) { + return new ParameterSpec(properties); }; /** - * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * Encodes the specified ParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec} message ParameterSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConvexStopConfig.encode = function encode(message, writer) { + ParameterSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.maxNumSteps != null && Object.hasOwnProperty.call(message, "maxNumSteps")) - writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxNumSteps); - if (message.minNumSteps != null && Object.hasOwnProperty.call(message, "minNumSteps")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minNumSteps); - if (message.autoregressiveOrder != null && Object.hasOwnProperty.call(message, "autoregressiveOrder")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.autoregressiveOrder); - if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); - if (message.useSeconds != null && Object.hasOwnProperty.call(message, "useSeconds")) - writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useSeconds); + if (message.parameterId != null && Object.hasOwnProperty.call(message, "parameterId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parameterId); + if (message.doubleValueSpec != null && Object.hasOwnProperty.call(message, "doubleValueSpec")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.encode(message.doubleValueSpec, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.integerValueSpec != null && Object.hasOwnProperty.call(message, "integerValueSpec")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.encode(message.integerValueSpec, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.categoricalValueSpec != null && Object.hasOwnProperty.call(message, "categoricalValueSpec")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.encode(message.categoricalValueSpec, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.discreteValueSpec != null && Object.hasOwnProperty.call(message, "discreteValueSpec")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.encode(message.discreteValueSpec, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.scaleType != null && Object.hasOwnProperty.call(message, "scaleType")) + writer.uint32(/* id 6, wireType 0 =*/48).int32(message.scaleType); + if (message.conditionalParameterSpecs != null && message.conditionalParameterSpecs.length) + for (var i = 0; i < message.conditionalParameterSpecs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.encode(message.conditionalParameterSpecs[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); return writer; }; /** - * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * Encodes the specified ParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec} message ParameterSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ConvexStopConfig.encodeDelimited = function encodeDelimited(message, writer) { + ParameterSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ConvexStopConfig message from the specified reader or buffer. + * Decodes a ParameterSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec} ParameterSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConvexStopConfig.decode = function decode(reader, length) { + ParameterSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - message.maxNumSteps = reader.int64(); - break; case 2: - message.minNumSteps = reader.int64(); + message.doubleValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.decode(reader, reader.uint32()); break; case 3: - message.autoregressiveOrder = reader.int64(); + message.integerValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.decode(reader, reader.uint32()); break; case 4: - message.learningRateParameterName = reader.string(); + message.categoricalValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.decode(reader, reader.uint32()); break; case 5: - message.useSeconds = reader.bool(); + message.discreteValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.decode(reader, reader.uint32()); + break; + case 1: + message.parameterId = reader.string(); + break; + case 6: + message.scaleType = reader.int32(); + break; + case 10: + if (!(message.conditionalParameterSpecs && message.conditionalParameterSpecs.length)) + message.conditionalParameterSpecs = []; + message.conditionalParameterSpecs.push($root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -204752,2298 +209616,2240 @@ }; /** - * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. + * Decodes a ParameterSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec} ParameterSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ConvexStopConfig.decodeDelimited = function decodeDelimited(reader) { + ParameterSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ConvexStopConfig message. + * Verifies a ParameterSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ConvexStopConfig.verify = function verify(message) { + ParameterSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) - if (!$util.isInteger(message.maxNumSteps) && !(message.maxNumSteps && $util.isInteger(message.maxNumSteps.low) && $util.isInteger(message.maxNumSteps.high))) - return "maxNumSteps: integer|Long expected"; - if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) - if (!$util.isInteger(message.minNumSteps) && !(message.minNumSteps && $util.isInteger(message.minNumSteps.low) && $util.isInteger(message.minNumSteps.high))) - return "minNumSteps: integer|Long expected"; - if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) - if (!$util.isInteger(message.autoregressiveOrder) && !(message.autoregressiveOrder && $util.isInteger(message.autoregressiveOrder.low) && $util.isInteger(message.autoregressiveOrder.high))) - return "autoregressiveOrder: integer|Long expected"; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - if (!$util.isString(message.learningRateParameterName)) - return "learningRateParameterName: string expected"; - if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) - if (typeof message.useSeconds !== "boolean") - return "useSeconds: boolean expected"; + var properties = {}; + if (message.doubleValueSpec != null && message.hasOwnProperty("doubleValueSpec")) { + properties.parameterValueSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify(message.doubleValueSpec); + if (error) + return "doubleValueSpec." + error; + } + } + if (message.integerValueSpec != null && message.hasOwnProperty("integerValueSpec")) { + if (properties.parameterValueSpec === 1) + return "parameterValueSpec: multiple values"; + properties.parameterValueSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify(message.integerValueSpec); + if (error) + return "integerValueSpec." + error; + } + } + if (message.categoricalValueSpec != null && message.hasOwnProperty("categoricalValueSpec")) { + if (properties.parameterValueSpec === 1) + return "parameterValueSpec: multiple values"; + properties.parameterValueSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify(message.categoricalValueSpec); + if (error) + return "categoricalValueSpec." + error; + } + } + if (message.discreteValueSpec != null && message.hasOwnProperty("discreteValueSpec")) { + if (properties.parameterValueSpec === 1) + return "parameterValueSpec: multiple values"; + properties.parameterValueSpec = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify(message.discreteValueSpec); + if (error) + return "discreteValueSpec." + error; + } + } + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + if (!$util.isString(message.parameterId)) + return "parameterId: string expected"; + if (message.scaleType != null && message.hasOwnProperty("scaleType")) + switch (message.scaleType) { + default: + return "scaleType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; + } + if (message.conditionalParameterSpecs != null && message.hasOwnProperty("conditionalParameterSpecs")) { + if (!Array.isArray(message.conditionalParameterSpecs)) + return "conditionalParameterSpecs: array expected"; + for (var i = 0; i < message.conditionalParameterSpecs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify(message.conditionalParameterSpecs[i]); + if (error) + return "conditionalParameterSpecs." + error; + } + } return null; }; /** - * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ParameterSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec} ParameterSpec */ - ConvexStopConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + ParameterSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); - if (object.maxNumSteps != null) - if ($util.Long) - (message.maxNumSteps = $util.Long.fromValue(object.maxNumSteps)).unsigned = false; - else if (typeof object.maxNumSteps === "string") - message.maxNumSteps = parseInt(object.maxNumSteps, 10); - else if (typeof object.maxNumSteps === "number") - message.maxNumSteps = object.maxNumSteps; - else if (typeof object.maxNumSteps === "object") - message.maxNumSteps = new $util.LongBits(object.maxNumSteps.low >>> 0, object.maxNumSteps.high >>> 0).toNumber(); - if (object.minNumSteps != null) - if ($util.Long) - (message.minNumSteps = $util.Long.fromValue(object.minNumSteps)).unsigned = false; - else if (typeof object.minNumSteps === "string") - message.minNumSteps = parseInt(object.minNumSteps, 10); - else if (typeof object.minNumSteps === "number") - message.minNumSteps = object.minNumSteps; - else if (typeof object.minNumSteps === "object") - message.minNumSteps = new $util.LongBits(object.minNumSteps.low >>> 0, object.minNumSteps.high >>> 0).toNumber(); - if (object.autoregressiveOrder != null) - if ($util.Long) - (message.autoregressiveOrder = $util.Long.fromValue(object.autoregressiveOrder)).unsigned = false; - else if (typeof object.autoregressiveOrder === "string") - message.autoregressiveOrder = parseInt(object.autoregressiveOrder, 10); - else if (typeof object.autoregressiveOrder === "number") - message.autoregressiveOrder = object.autoregressiveOrder; - else if (typeof object.autoregressiveOrder === "object") - message.autoregressiveOrder = new $util.LongBits(object.autoregressiveOrder.low >>> 0, object.autoregressiveOrder.high >>> 0).toNumber(); - if (object.learningRateParameterName != null) - message.learningRateParameterName = String(object.learningRateParameterName); - if (object.useSeconds != null) - message.useSeconds = Boolean(object.useSeconds); + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec(); + if (object.doubleValueSpec != null) { + if (typeof object.doubleValueSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.doubleValueSpec: object expected"); + message.doubleValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.fromObject(object.doubleValueSpec); + } + if (object.integerValueSpec != null) { + if (typeof object.integerValueSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.integerValueSpec: object expected"); + message.integerValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.fromObject(object.integerValueSpec); + } + if (object.categoricalValueSpec != null) { + if (typeof object.categoricalValueSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.categoricalValueSpec: object expected"); + message.categoricalValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.fromObject(object.categoricalValueSpec); + } + if (object.discreteValueSpec != null) { + if (typeof object.discreteValueSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.discreteValueSpec: object expected"); + message.discreteValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.fromObject(object.discreteValueSpec); + } + if (object.parameterId != null) + message.parameterId = String(object.parameterId); + switch (object.scaleType) { + case "SCALE_TYPE_UNSPECIFIED": + case 0: + message.scaleType = 0; + break; + case "UNIT_LINEAR_SCALE": + case 1: + message.scaleType = 1; + break; + case "UNIT_LOG_SCALE": + case 2: + message.scaleType = 2; + break; + case "UNIT_REVERSE_LOG_SCALE": + case 3: + message.scaleType = 3; + break; + } + if (object.conditionalParameterSpecs) { + if (!Array.isArray(object.conditionalParameterSpecs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.conditionalParameterSpecs: array expected"); + message.conditionalParameterSpecs = []; + for (var i = 0; i < object.conditionalParameterSpecs.length; ++i) { + if (typeof object.conditionalParameterSpecs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.conditionalParameterSpecs: object expected"); + message.conditionalParameterSpecs[i] = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.fromObject(object.conditionalParameterSpecs[i]); + } + } return message; }; /** - * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. + * Creates a plain object from a ParameterSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @static - * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} message ConvexStopConfig + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec} message ParameterSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ConvexStopConfig.toObject = function toObject(message, options) { + ParameterSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.conditionalParameterSpecs = []; if (options.defaults) { - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.maxNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.maxNumSteps = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.minNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.minNumSteps = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.autoregressiveOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.autoregressiveOrder = options.longs === String ? "0" : 0; - object.learningRateParameterName = ""; - object.useSeconds = false; + object.parameterId = ""; + object.scaleType = options.enums === String ? "SCALE_TYPE_UNSPECIFIED" : 0; + } + if (message.parameterId != null && message.hasOwnProperty("parameterId")) + object.parameterId = message.parameterId; + if (message.doubleValueSpec != null && message.hasOwnProperty("doubleValueSpec")) { + object.doubleValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.toObject(message.doubleValueSpec, options); + if (options.oneofs) + object.parameterValueSpec = "doubleValueSpec"; + } + if (message.integerValueSpec != null && message.hasOwnProperty("integerValueSpec")) { + object.integerValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.toObject(message.integerValueSpec, options); + if (options.oneofs) + object.parameterValueSpec = "integerValueSpec"; + } + if (message.categoricalValueSpec != null && message.hasOwnProperty("categoricalValueSpec")) { + object.categoricalValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.toObject(message.categoricalValueSpec, options); + if (options.oneofs) + object.parameterValueSpec = "categoricalValueSpec"; + } + if (message.discreteValueSpec != null && message.hasOwnProperty("discreteValueSpec")) { + object.discreteValueSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.toObject(message.discreteValueSpec, options); + if (options.oneofs) + object.parameterValueSpec = "discreteValueSpec"; + } + if (message.scaleType != null && message.hasOwnProperty("scaleType")) + object.scaleType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType[message.scaleType] : message.scaleType; + if (message.conditionalParameterSpecs && message.conditionalParameterSpecs.length) { + object.conditionalParameterSpecs = []; + for (var j = 0; j < message.conditionalParameterSpecs.length; ++j) + object.conditionalParameterSpecs[j] = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.toObject(message.conditionalParameterSpecs[j], options); } - if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) - if (typeof message.maxNumSteps === "number") - object.maxNumSteps = options.longs === String ? String(message.maxNumSteps) : message.maxNumSteps; - else - object.maxNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.maxNumSteps) : options.longs === Number ? new $util.LongBits(message.maxNumSteps.low >>> 0, message.maxNumSteps.high >>> 0).toNumber() : message.maxNumSteps; - if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) - if (typeof message.minNumSteps === "number") - object.minNumSteps = options.longs === String ? String(message.minNumSteps) : message.minNumSteps; - else - object.minNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.minNumSteps) : options.longs === Number ? new $util.LongBits(message.minNumSteps.low >>> 0, message.minNumSteps.high >>> 0).toNumber() : message.minNumSteps; - if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) - if (typeof message.autoregressiveOrder === "number") - object.autoregressiveOrder = options.longs === String ? String(message.autoregressiveOrder) : message.autoregressiveOrder; - else - object.autoregressiveOrder = options.longs === String ? $util.Long.prototype.toString.call(message.autoregressiveOrder) : options.longs === Number ? new $util.LongBits(message.autoregressiveOrder.low >>> 0, message.autoregressiveOrder.high >>> 0).toNumber() : message.autoregressiveOrder; - if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) - object.learningRateParameterName = message.learningRateParameterName; - if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) - object.useSeconds = message.useSeconds; return object; }; /** - * Converts this ConvexStopConfig to JSON. + * Converts this ParameterSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec * @instance * @returns {Object.} JSON object */ - ConvexStopConfig.prototype.toJSON = function toJSON() { + ParameterSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ConvexStopConfig; - })(); - - /** - * Algorithm enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.Algorithm - * @enum {number} - * @property {number} ALGORITHM_UNSPECIFIED=0 ALGORITHM_UNSPECIFIED value - * @property {number} GRID_SEARCH=2 GRID_SEARCH value - * @property {number} RANDOM_SEARCH=3 RANDOM_SEARCH value - */ - StudySpec.Algorithm = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ALGORITHM_UNSPECIFIED"] = 0; - values[valuesById[2] = "GRID_SEARCH"] = 2; - values[valuesById[3] = "RANDOM_SEARCH"] = 3; - return values; - })(); - - /** - * ObservationNoise enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise - * @enum {number} - * @property {number} OBSERVATION_NOISE_UNSPECIFIED=0 OBSERVATION_NOISE_UNSPECIFIED value - * @property {number} LOW=1 LOW value - * @property {number} HIGH=2 HIGH value - */ - StudySpec.ObservationNoise = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "OBSERVATION_NOISE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LOW"] = 1; - values[valuesById[2] = "HIGH"] = 2; - return values; - })(); - - /** - * MeasurementSelectionType enum. - * @name google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType - * @enum {number} - * @property {number} MEASUREMENT_SELECTION_TYPE_UNSPECIFIED=0 MEASUREMENT_SELECTION_TYPE_UNSPECIFIED value - * @property {number} LAST_MEASUREMENT=1 LAST_MEASUREMENT value - * @property {number} BEST_MEASUREMENT=2 BEST_MEASUREMENT value - */ - StudySpec.MeasurementSelectionType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "LAST_MEASUREMENT"] = 1; - values[valuesById[2] = "BEST_MEASUREMENT"] = 2; - return values; - })(); - - return StudySpec; - })(); - - v1beta1.Measurement = (function() { - - /** - * Properties of a Measurement. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMeasurement - * @property {google.protobuf.IDuration|null} [elapsedDuration] Measurement elapsedDuration - * @property {number|Long|null} [stepCount] Measurement stepCount - * @property {Array.|null} [metrics] Measurement metrics - */ - - /** - * Constructs a new Measurement. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a Measurement. - * @implements IMeasurement - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set - */ - function Measurement(properties) { - this.metrics = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * Measurement elapsedDuration. - * @member {google.protobuf.IDuration|null|undefined} elapsedDuration - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @instance - */ - Measurement.prototype.elapsedDuration = null; + ParameterSpec.DoubleValueSpec = (function() { - /** - * Measurement stepCount. - * @member {number|Long} stepCount - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @instance - */ - Measurement.prototype.stepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + /** + * Properties of a DoubleValueSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @interface IDoubleValueSpec + * @property {number|null} [minValue] DoubleValueSpec minValue + * @property {number|null} [maxValue] DoubleValueSpec maxValue + * @property {number|null} [defaultValue] DoubleValueSpec defaultValue + */ - /** - * Measurement metrics. - * @member {Array.} metrics - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @instance - */ - Measurement.prototype.metrics = $util.emptyArray; + /** + * Constructs a new DoubleValueSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @classdesc Represents a DoubleValueSpec. + * @implements IDoubleValueSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec=} [properties] Properties to set + */ + function DoubleValueSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a new Measurement instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement instance - */ - Measurement.create = function create(properties) { - return new Measurement(properties); - }; + /** + * DoubleValueSpec minValue. + * @member {number} minValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + */ + DoubleValueSpec.prototype.minValue = 0; - /** - * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Measurement.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.elapsedDuration != null && Object.hasOwnProperty.call(message, "elapsedDuration")) - $root.google.protobuf.Duration.encode(message.elapsedDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.stepCount != null && Object.hasOwnProperty.call(message, "stepCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stepCount); - if (message.metrics != null && message.metrics.length) - for (var i = 0; i < message.metrics.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * DoubleValueSpec maxValue. + * @member {number} maxValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + */ + DoubleValueSpec.prototype.maxValue = 0; - /** - * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @static - * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Measurement.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * DoubleValueSpec defaultValue. + * @member {number|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + */ + DoubleValueSpec.prototype.defaultValue = null; - /** - * Decodes a Measurement message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Measurement.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Measurement(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 2: - message.stepCount = reader.int64(); - break; - case 3: - if (!(message.metrics && message.metrics.length)) - message.metrics = []; - message.metrics.push($root.google.cloud.aiplatform.v1beta1.Measurement.Metric.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Decodes a Measurement message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Measurement.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * DoubleValueSpec _defaultValue. + * @member {"defaultValue"|undefined} _defaultValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + */ + Object.defineProperty(DoubleValueSpec.prototype, "_defaultValue", { + get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Verifies a Measurement message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Measurement.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) { - var error = $root.google.protobuf.Duration.verify(message.elapsedDuration); - if (error) - return "elapsedDuration." + error; - } - if (message.stepCount != null && message.hasOwnProperty("stepCount")) - if (!$util.isInteger(message.stepCount) && !(message.stepCount && $util.isInteger(message.stepCount.low) && $util.isInteger(message.stepCount.high))) - return "stepCount: integer|Long expected"; - if (message.metrics != null && message.hasOwnProperty("metrics")) { - if (!Array.isArray(message.metrics)) - return "metrics: array expected"; - for (var i = 0; i < message.metrics.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.verify(message.metrics[i]); - if (error) - return "metrics." + error; - } - } - return null; - }; + /** + * Creates a new DoubleValueSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec instance + */ + DoubleValueSpec.create = function create(properties) { + return new DoubleValueSpec(properties); + }; - /** - * Creates a Measurement message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement - */ - Measurement.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Measurement(); - if (object.elapsedDuration != null) { - if (typeof object.elapsedDuration !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.elapsedDuration: object expected"); - message.elapsedDuration = $root.google.protobuf.Duration.fromObject(object.elapsedDuration); - } - if (object.stepCount != null) - if ($util.Long) - (message.stepCount = $util.Long.fromValue(object.stepCount)).unsigned = false; - else if (typeof object.stepCount === "string") - message.stepCount = parseInt(object.stepCount, 10); - else if (typeof object.stepCount === "number") - message.stepCount = object.stepCount; - else if (typeof object.stepCount === "object") - message.stepCount = new $util.LongBits(object.stepCount.low >>> 0, object.stepCount.high >>> 0).toNumber(); - if (object.metrics) { - if (!Array.isArray(object.metrics)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: array expected"); - message.metrics = []; - for (var i = 0; i < object.metrics.length; ++i) { - if (typeof object.metrics[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: object expected"); - message.metrics[i] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.fromObject(object.metrics[i]); - } - } - return message; - }; + /** + * Encodes the specified DoubleValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec} message DoubleValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DoubleValueSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.minValue != null && Object.hasOwnProperty.call(message, "minValue")) + writer.uint32(/* id 1, wireType 1 =*/9).double(message.minValue); + if (message.maxValue != null && Object.hasOwnProperty.call(message, "maxValue")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.maxValue); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 4, wireType 1 =*/33).double(message.defaultValue); + return writer; + }; - /** - * Creates a plain object from a Measurement message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement} message Measurement - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Measurement.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.metrics = []; - if (options.defaults) { - object.elapsedDuration = null; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.stepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.stepCount = options.longs === String ? "0" : 0; - } - if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) - object.elapsedDuration = $root.google.protobuf.Duration.toObject(message.elapsedDuration, options); - if (message.stepCount != null && message.hasOwnProperty("stepCount")) - if (typeof message.stepCount === "number") - object.stepCount = options.longs === String ? String(message.stepCount) : message.stepCount; - else - object.stepCount = options.longs === String ? $util.Long.prototype.toString.call(message.stepCount) : options.longs === Number ? new $util.LongBits(message.stepCount.low >>> 0, message.stepCount.high >>> 0).toNumber() : message.stepCount; - if (message.metrics && message.metrics.length) { - object.metrics = []; - for (var j = 0; j < message.metrics.length; ++j) - object.metrics[j] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.toObject(message.metrics[j], options); - } - return object; - }; + /** + * Encodes the specified DoubleValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDoubleValueSpec} message DoubleValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DoubleValueSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Converts this Measurement to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @instance - * @returns {Object.} JSON object - */ - Measurement.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a DoubleValueSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DoubleValueSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minValue = reader.double(); + break; + case 2: + message.maxValue = reader.double(); + break; + case 4: + message.defaultValue = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - Measurement.Metric = (function() { + /** + * Decodes a DoubleValueSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DoubleValueSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Properties of a Metric. - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @interface IMetric - * @property {string|null} [metricId] Metric metricId - * @property {number|null} [value] Metric value - */ + /** + * Verifies a DoubleValueSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DoubleValueSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.minValue != null && message.hasOwnProperty("minValue")) + if (typeof message.minValue !== "number") + return "minValue: number expected"; + if (message.maxValue != null && message.hasOwnProperty("maxValue")) + if (typeof message.maxValue !== "number") + return "maxValue: number expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + properties._defaultValue = 1; + if (typeof message.defaultValue !== "number") + return "defaultValue: number expected"; + } + return null; + }; - /** - * Constructs a new Metric. - * @memberof google.cloud.aiplatform.v1beta1.Measurement - * @classdesc Represents a Metric. - * @implements IMetric - * @constructor - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set - */ - function Metric(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Creates a DoubleValueSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec} DoubleValueSpec + */ + DoubleValueSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec(); + if (object.minValue != null) + message.minValue = Number(object.minValue); + if (object.maxValue != null) + message.maxValue = Number(object.maxValue); + if (object.defaultValue != null) + message.defaultValue = Number(object.defaultValue); + return message; + }; - /** - * Metric metricId. - * @member {string} metricId - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @instance - */ - Metric.prototype.metricId = ""; + /** + * Creates a plain object from a DoubleValueSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec} message DoubleValueSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DoubleValueSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.minValue = 0; + object.maxValue = 0; + } + if (message.minValue != null && message.hasOwnProperty("minValue")) + object.minValue = options.json && !isFinite(message.minValue) ? String(message.minValue) : message.minValue; + if (message.maxValue != null && message.hasOwnProperty("maxValue")) + object.maxValue = options.json && !isFinite(message.maxValue) ? String(message.maxValue) : message.maxValue; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + object.defaultValue = options.json && !isFinite(message.defaultValue) ? String(message.defaultValue) : message.defaultValue; + if (options.oneofs) + object._defaultValue = "defaultValue"; + } + return object; + }; - /** - * Metric value. - * @member {number} value - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @instance - */ - Metric.prototype.value = 0; + /** + * Converts this DoubleValueSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DoubleValueSpec + * @instance + * @returns {Object.} JSON object + */ + DoubleValueSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates a new Metric instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric instance - */ - Metric.create = function create(properties) { - return new Metric(properties); - }; + return DoubleValueSpec; + })(); - /** - * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); - return writer; - }; + ParameterSpec.IntegerValueSpec = (function() { - /** - * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Metric.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Properties of an IntegerValueSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @interface IIntegerValueSpec + * @property {number|Long|null} [minValue] IntegerValueSpec minValue + * @property {number|Long|null} [maxValue] IntegerValueSpec maxValue + * @property {number|Long|null} [defaultValue] IntegerValueSpec defaultValue + */ - /** - * Decodes a Metric message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Measurement.Metric(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.metricId = reader.string(); - break; - case 2: - message.value = reader.double(); - break; - default: - reader.skipType(tag & 7); - break; - } + /** + * Constructs a new IntegerValueSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @classdesc Represents an IntegerValueSpec. + * @implements IIntegerValueSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec=} [properties] Properties to set + */ + function IntegerValueSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - return message; - }; - /** - * Decodes a Metric message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Metric.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * IntegerValueSpec minValue. + * @member {number|Long} minValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + */ + IntegerValueSpec.prototype.minValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Verifies a Metric message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Metric.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.metricId != null && message.hasOwnProperty("metricId")) - if (!$util.isString(message.metricId)) - return "metricId: string expected"; - if (message.value != null && message.hasOwnProperty("value")) - if (typeof message.value !== "number") - return "value: number expected"; - return null; - }; + /** + * IntegerValueSpec maxValue. + * @member {number|Long} maxValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + */ + IntegerValueSpec.prototype.maxValue = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Creates a Metric message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric - */ - Metric.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement.Metric) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Measurement.Metric(); - if (object.metricId != null) - message.metricId = String(object.metricId); - if (object.value != null) - message.value = Number(object.value); - return message; - }; + /** + * IntegerValueSpec defaultValue. + * @member {number|Long|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + */ + IntegerValueSpec.prototype.defaultValue = null; - /** - * Creates a plain object from a Metric message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @static - * @param {google.cloud.aiplatform.v1beta1.Measurement.Metric} message Metric - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Metric.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.metricId = ""; - object.value = 0; - } - if (message.metricId != null && message.hasOwnProperty("metricId")) - object.metricId = message.metricId; - if (message.value != null && message.hasOwnProperty("value")) - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - return object; - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Converts this Metric to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric - * @instance - * @returns {Object.} JSON object - */ - Metric.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * IntegerValueSpec _defaultValue. + * @member {"defaultValue"|undefined} _defaultValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + */ + Object.defineProperty(IntegerValueSpec.prototype, "_defaultValue", { + get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), + set: $util.oneOfSetter($oneOfFields) + }); - return Metric; - })(); + /** + * Creates a new IntegerValueSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec instance + */ + IntegerValueSpec.create = function create(properties) { + return new IntegerValueSpec(properties); + }; - return Measurement; - })(); + /** + * Encodes the specified IntegerValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec} message IntegerValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntegerValueSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.minValue != null && Object.hasOwnProperty.call(message, "minValue")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.minValue); + if (message.maxValue != null && Object.hasOwnProperty.call(message, "maxValue")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.maxValue); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 4, wireType 0 =*/32).int64(message.defaultValue); + return writer; + }; - v1beta1.Index = (function() { + /** + * Encodes the specified IntegerValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IIntegerValueSpec} message IntegerValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntegerValueSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Properties of an Index. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndex - * @property {string|null} [name] Index name - * @property {string|null} [displayName] Index displayName - * @property {string|null} [description] Index description - * @property {string|null} [metadataSchemaUri] Index metadataSchemaUri - * @property {google.protobuf.IValue|null} [metadata] Index metadata - * @property {Array.|null} [deployedIndexes] Index deployedIndexes - * @property {string|null} [etag] Index etag - * @property {Object.|null} [labels] Index labels - * @property {google.protobuf.ITimestamp|null} [createTime] Index createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] Index updateTime - */ + /** + * Decodes an IntegerValueSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntegerValueSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.minValue = reader.int64(); + break; + case 2: + message.maxValue = reader.int64(); + break; + case 4: + message.defaultValue = reader.int64(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Constructs a new Index. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an Index. - * @implements IIndex - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set - */ - function Index(properties) { - this.deployedIndexes = []; - this.labels = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Decodes an IntegerValueSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntegerValueSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Index name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - */ - Index.prototype.name = ""; + /** + * Verifies an IntegerValueSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntegerValueSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.minValue != null && message.hasOwnProperty("minValue")) + if (!$util.isInteger(message.minValue) && !(message.minValue && $util.isInteger(message.minValue.low) && $util.isInteger(message.minValue.high))) + return "minValue: integer|Long expected"; + if (message.maxValue != null && message.hasOwnProperty("maxValue")) + if (!$util.isInteger(message.maxValue) && !(message.maxValue && $util.isInteger(message.maxValue.low) && $util.isInteger(message.maxValue.high))) + return "maxValue: integer|Long expected"; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + properties._defaultValue = 1; + if (!$util.isInteger(message.defaultValue) && !(message.defaultValue && $util.isInteger(message.defaultValue.low) && $util.isInteger(message.defaultValue.high))) + return "defaultValue: integer|Long expected"; + } + return null; + }; - /** - * Index displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - */ - Index.prototype.displayName = ""; + /** + * Creates an IntegerValueSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec} IntegerValueSpec + */ + IntegerValueSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec(); + if (object.minValue != null) + if ($util.Long) + (message.minValue = $util.Long.fromValue(object.minValue)).unsigned = false; + else if (typeof object.minValue === "string") + message.minValue = parseInt(object.minValue, 10); + else if (typeof object.minValue === "number") + message.minValue = object.minValue; + else if (typeof object.minValue === "object") + message.minValue = new $util.LongBits(object.minValue.low >>> 0, object.minValue.high >>> 0).toNumber(); + if (object.maxValue != null) + if ($util.Long) + (message.maxValue = $util.Long.fromValue(object.maxValue)).unsigned = false; + else if (typeof object.maxValue === "string") + message.maxValue = parseInt(object.maxValue, 10); + else if (typeof object.maxValue === "number") + message.maxValue = object.maxValue; + else if (typeof object.maxValue === "object") + message.maxValue = new $util.LongBits(object.maxValue.low >>> 0, object.maxValue.high >>> 0).toNumber(); + if (object.defaultValue != null) + if ($util.Long) + (message.defaultValue = $util.Long.fromValue(object.defaultValue)).unsigned = false; + else if (typeof object.defaultValue === "string") + message.defaultValue = parseInt(object.defaultValue, 10); + else if (typeof object.defaultValue === "number") + message.defaultValue = object.defaultValue; + else if (typeof object.defaultValue === "object") + message.defaultValue = new $util.LongBits(object.defaultValue.low >>> 0, object.defaultValue.high >>> 0).toNumber(); + return message; + }; - /** - * Index description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - */ - Index.prototype.description = ""; + /** + * Creates a plain object from an IntegerValueSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec} message IntegerValueSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntegerValueSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minValue = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxValue = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxValue = options.longs === String ? "0" : 0; + } + if (message.minValue != null && message.hasOwnProperty("minValue")) + if (typeof message.minValue === "number") + object.minValue = options.longs === String ? String(message.minValue) : message.minValue; + else + object.minValue = options.longs === String ? $util.Long.prototype.toString.call(message.minValue) : options.longs === Number ? new $util.LongBits(message.minValue.low >>> 0, message.minValue.high >>> 0).toNumber() : message.minValue; + if (message.maxValue != null && message.hasOwnProperty("maxValue")) + if (typeof message.maxValue === "number") + object.maxValue = options.longs === String ? String(message.maxValue) : message.maxValue; + else + object.maxValue = options.longs === String ? $util.Long.prototype.toString.call(message.maxValue) : options.longs === Number ? new $util.LongBits(message.maxValue.low >>> 0, message.maxValue.high >>> 0).toNumber() : message.maxValue; + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + if (typeof message.defaultValue === "number") + object.defaultValue = options.longs === String ? String(message.defaultValue) : message.defaultValue; + else + object.defaultValue = options.longs === String ? $util.Long.prototype.toString.call(message.defaultValue) : options.longs === Number ? new $util.LongBits(message.defaultValue.low >>> 0, message.defaultValue.high >>> 0).toNumber() : message.defaultValue; + if (options.oneofs) + object._defaultValue = "defaultValue"; + } + return object; + }; - /** - * Index metadataSchemaUri. - * @member {string} metadataSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - */ - Index.prototype.metadataSchemaUri = ""; + /** + * Converts this IntegerValueSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IntegerValueSpec + * @instance + * @returns {Object.} JSON object + */ + IntegerValueSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Index metadata. - * @member {google.protobuf.IValue|null|undefined} metadata - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - */ - Index.prototype.metadata = null; + return IntegerValueSpec; + })(); - /** - * Index deployedIndexes. - * @member {Array.} deployedIndexes - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - */ - Index.prototype.deployedIndexes = $util.emptyArray; + ParameterSpec.CategoricalValueSpec = (function() { - /** - * Index etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - */ - Index.prototype.etag = ""; + /** + * Properties of a CategoricalValueSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @interface ICategoricalValueSpec + * @property {Array.|null} [values] CategoricalValueSpec values + * @property {string|null} [defaultValue] CategoricalValueSpec defaultValue + */ - /** - * Index labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - */ - Index.prototype.labels = $util.emptyObject; + /** + * Constructs a new CategoricalValueSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @classdesc Represents a CategoricalValueSpec. + * @implements ICategoricalValueSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec=} [properties] Properties to set + */ + function CategoricalValueSpec(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Index createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - */ - Index.prototype.createTime = null; + /** + * CategoricalValueSpec values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @instance + */ + CategoricalValueSpec.prototype.values = $util.emptyArray; - /** - * Index updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - */ - Index.prototype.updateTime = null; + /** + * CategoricalValueSpec defaultValue. + * @member {string|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @instance + */ + CategoricalValueSpec.prototype.defaultValue = null; - /** - * Creates a new Index instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.Index - * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.Index} Index instance - */ - Index.create = function create(properties) { - return new Index(properties); - }; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.Index - * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Index.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.metadataSchemaUri); - if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) - $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.deployedIndexes != null && message.deployedIndexes.length) - for (var i = 0; i < message.deployedIndexes.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.encode(message.deployedIndexes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); - return writer; - }; + /** + * CategoricalValueSpec _defaultValue. + * @member {"defaultValue"|undefined} _defaultValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @instance + */ + Object.defineProperty(CategoricalValueSpec.prototype, "_defaultValue", { + get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Index - * @static - * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - Index.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a new CategoricalValueSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec instance + */ + CategoricalValueSpec.create = function create(properties) { + return new CategoricalValueSpec(properties); + }; - /** - * Decodes an Index message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.Index - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.Index} Index - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Index.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Index(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - message.metadataSchemaUri = reader.string(); - break; - case 6: - message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - case 7: - if (!(message.deployedIndexes && message.deployedIndexes.length)) - message.deployedIndexes = []; - message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.decode(reader, reader.uint32())); - break; - case 8: - message.etag = reader.string(); - break; - case 9: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { + /** + * Encodes the specified CategoricalValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec} message CategoricalValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.defaultValue); + return writer; + }; + + /** + * Encodes the specified CategoricalValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ICategoricalValueSpec} message CategoricalValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a CategoricalValueSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 1: - key = reader.string(); + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); break; - case 2: - value = reader.string(); + case 3: + message.defaultValue = reader.string(); break; default: - reader.skipType(tag2 & 7); + reader.skipType(tag & 7); break; } } - message.labels[key] = value; - break; - case 10: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 11: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return message; + }; - /** - * Decodes an Index message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.Index - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.Index} Index - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - Index.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a CategoricalValueSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an Index message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.Index - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - Index.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - if (!$util.isString(message.metadataSchemaUri)) - return "metadataSchemaUri: string expected"; - if (message.metadata != null && message.hasOwnProperty("metadata")) { - var error = $root.google.protobuf.Value.verify(message.metadata); - if (error) - return "metadata." + error; - } - if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { - if (!Array.isArray(message.deployedIndexes)) - return "deployedIndexes: array expected"; - for (var i = 0; i < message.deployedIndexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify(message.deployedIndexes[i]); - if (error) - return "deployedIndexes." + error; - } - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - return null; - }; + /** + * Verifies a CategoricalValueSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CategoricalValueSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + properties._defaultValue = 1; + if (!$util.isString(message.defaultValue)) + return "defaultValue: string expected"; + } + return null; + }; - /** - * Creates an Index message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.Index - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.Index} Index - */ - Index.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.Index) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.Index(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.metadataSchemaUri != null) - message.metadataSchemaUri = String(object.metadataSchemaUri); - if (object.metadata != null) { - if (typeof object.metadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.metadata: object expected"); - message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); - } - if (object.deployedIndexes) { - if (!Array.isArray(object.deployedIndexes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: array expected"); - message.deployedIndexes = []; - for (var i = 0; i < object.deployedIndexes.length; ++i) { - if (typeof object.deployedIndexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: object expected"); - message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.fromObject(object.deployedIndexes[i]); + /** + * Creates a CategoricalValueSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec} CategoricalValueSpec + */ + CategoricalValueSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + if (object.defaultValue != null) + message.defaultValue = String(object.defaultValue); + return message; + }; + + /** + * Creates a plain object from a CategoricalValueSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec} message CategoricalValueSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CategoricalValueSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + object.defaultValue = message.defaultValue; + if (options.oneofs) + object._defaultValue = "defaultValue"; + } + return object; + }; + + /** + * Converts this CategoricalValueSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.CategoricalValueSpec + * @instance + * @returns {Object.} JSON object + */ + CategoricalValueSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return CategoricalValueSpec; + })(); + + ParameterSpec.DiscreteValueSpec = (function() { + + /** + * Properties of a DiscreteValueSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @interface IDiscreteValueSpec + * @property {Array.|null} [values] DiscreteValueSpec values + * @property {number|null} [defaultValue] DiscreteValueSpec defaultValue + */ + + /** + * Constructs a new DiscreteValueSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @classdesc Represents a DiscreteValueSpec. + * @implements IDiscreteValueSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec=} [properties] Properties to set + */ + function DiscreteValueSpec(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; } - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.Index.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - return message; - }; - /** - * Creates a plain object from an Index message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.Index - * @static - * @param {google.cloud.aiplatform.v1beta1.Index} message Index - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - Index.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.deployedIndexes = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.metadataSchemaUri = ""; - object.metadata = null; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) - object.metadataSchemaUri = message.metadataSchemaUri; - if (message.metadata != null && message.hasOwnProperty("metadata")) - object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); - if (message.deployedIndexes && message.deployedIndexes.length) { - object.deployedIndexes = []; - for (var j = 0; j < message.deployedIndexes.length; ++j) - object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.toObject(message.deployedIndexes[j], options); - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - return object; - }; + /** + * DiscreteValueSpec values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @instance + */ + DiscreteValueSpec.prototype.values = $util.emptyArray; + + /** + * DiscreteValueSpec defaultValue. + * @member {number|null|undefined} defaultValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @instance + */ + DiscreteValueSpec.prototype.defaultValue = null; + + // OneOf field names bound to virtual getters and setters + var $oneOfFields; + + /** + * DiscreteValueSpec _defaultValue. + * @member {"defaultValue"|undefined} _defaultValue + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @instance + */ + Object.defineProperty(DiscreteValueSpec.prototype, "_defaultValue", { + get: $util.oneOfGetter($oneOfFields = ["defaultValue"]), + set: $util.oneOfSetter($oneOfFields) + }); + + /** + * Creates a new DiscreteValueSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec instance + */ + DiscreteValueSpec.create = function create(properties) { + return new DiscreteValueSpec(properties); + }; + + /** + * Encodes the specified DiscreteValueSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec} message DiscreteValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiscreteValueSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.double(message.values[i]); + writer.ldelim(); + } + if (message.defaultValue != null && Object.hasOwnProperty.call(message, "defaultValue")) + writer.uint32(/* id 3, wireType 1 =*/25).double(message.defaultValue); + return writer; + }; + + /** + * Encodes the specified DiscreteValueSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IDiscreteValueSpec} message DiscreteValueSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiscreteValueSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DiscreteValueSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiscreteValueSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.double()); + } else + message.values.push(reader.double()); + break; + case 3: + message.defaultValue = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Converts this Index to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.Index - * @instance - * @returns {Object.} JSON object - */ - Index.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a DiscreteValueSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiscreteValueSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return Index; - })(); + /** + * Verifies a DiscreteValueSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DiscreteValueSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (typeof message.values[i] !== "number") + return "values: number[] expected"; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + properties._defaultValue = 1; + if (typeof message.defaultValue !== "number") + return "defaultValue: number expected"; + } + return null; + }; - v1beta1.IndexEndpoint = (function() { + /** + * Creates a DiscreteValueSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec} DiscreteValueSpec + */ + DiscreteValueSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = Number(object.values[i]); + } + if (object.defaultValue != null) + message.defaultValue = Number(object.defaultValue); + return message; + }; - /** - * Properties of an IndexEndpoint. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexEndpoint - * @property {string|null} [name] IndexEndpoint name - * @property {string|null} [displayName] IndexEndpoint displayName - * @property {string|null} [description] IndexEndpoint description - * @property {Array.|null} [deployedIndexes] IndexEndpoint deployedIndexes - * @property {string|null} [etag] IndexEndpoint etag - * @property {Object.|null} [labels] IndexEndpoint labels - * @property {google.protobuf.ITimestamp|null} [createTime] IndexEndpoint createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] IndexEndpoint updateTime - * @property {string|null} [network] IndexEndpoint network - * @property {boolean|null} [enablePrivateServiceConnect] IndexEndpoint enablePrivateServiceConnect - */ + /** + * Creates a plain object from a DiscreteValueSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec} message DiscreteValueSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DiscreteValueSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; + } + if (message.defaultValue != null && message.hasOwnProperty("defaultValue")) { + object.defaultValue = options.json && !isFinite(message.defaultValue) ? String(message.defaultValue) : message.defaultValue; + if (options.oneofs) + object._defaultValue = "defaultValue"; + } + return object; + }; - /** - * Constructs a new IndexEndpoint. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexEndpoint. - * @implements IIndexEndpoint - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set - */ - function IndexEndpoint(properties) { - this.deployedIndexes = []; - this.labels = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Converts this DiscreteValueSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.DiscreteValueSpec + * @instance + * @returns {Object.} JSON object + */ + DiscreteValueSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * IndexEndpoint name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.name = ""; + return DiscreteValueSpec; + })(); - /** - * IndexEndpoint displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.displayName = ""; + ParameterSpec.ConditionalParameterSpec = (function() { - /** - * IndexEndpoint description. - * @member {string} description - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.description = ""; + /** + * Properties of a ConditionalParameterSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @interface IConditionalParameterSpec + * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null} [parentDiscreteValues] ConditionalParameterSpec parentDiscreteValues + * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null} [parentIntValues] ConditionalParameterSpec parentIntValues + * @property {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null} [parentCategoricalValues] ConditionalParameterSpec parentCategoricalValues + * @property {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null} [parameterSpec] ConditionalParameterSpec parameterSpec + */ - /** - * IndexEndpoint deployedIndexes. - * @member {Array.} deployedIndexes - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.deployedIndexes = $util.emptyArray; + /** + * Constructs a new ConditionalParameterSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec + * @classdesc Represents a ConditionalParameterSpec. + * @implements IConditionalParameterSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec=} [properties] Properties to set + */ + function ConditionalParameterSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * IndexEndpoint etag. - * @member {string} etag - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.etag = ""; + /** + * ConditionalParameterSpec parentDiscreteValues. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition|null|undefined} parentDiscreteValues + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + */ + ConditionalParameterSpec.prototype.parentDiscreteValues = null; - /** - * IndexEndpoint labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.labels = $util.emptyObject; + /** + * ConditionalParameterSpec parentIntValues. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition|null|undefined} parentIntValues + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + */ + ConditionalParameterSpec.prototype.parentIntValues = null; - /** - * IndexEndpoint createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.createTime = null; + /** + * ConditionalParameterSpec parentCategoricalValues. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition|null|undefined} parentCategoricalValues + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + */ + ConditionalParameterSpec.prototype.parentCategoricalValues = null; - /** - * IndexEndpoint updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.updateTime = null; + /** + * ConditionalParameterSpec parameterSpec. + * @member {google.cloud.aiplatform.v1beta1.StudySpec.IParameterSpec|null|undefined} parameterSpec + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + */ + ConditionalParameterSpec.prototype.parameterSpec = null; - /** - * IndexEndpoint network. - * @member {string} network - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.network = ""; + // OneOf field names bound to virtual getters and setters + var $oneOfFields; - /** - * IndexEndpoint enablePrivateServiceConnect. - * @member {boolean} enablePrivateServiceConnect - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - */ - IndexEndpoint.prototype.enablePrivateServiceConnect = false; + /** + * ConditionalParameterSpec parentValueCondition. + * @member {"parentDiscreteValues"|"parentIntValues"|"parentCategoricalValues"|undefined} parentValueCondition + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + */ + Object.defineProperty(ConditionalParameterSpec.prototype, "parentValueCondition", { + get: $util.oneOfGetter($oneOfFields = ["parentDiscreteValues", "parentIntValues", "parentCategoricalValues"]), + set: $util.oneOfSetter($oneOfFields) + }); - /** - * Creates a new IndexEndpoint instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint instance - */ - IndexEndpoint.create = function create(properties) { - return new IndexEndpoint(properties); - }; + /** + * Creates a new ConditionalParameterSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec instance + */ + ConditionalParameterSpec.create = function create(properties) { + return new ConditionalParameterSpec(properties); + }; - /** - * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IndexEndpoint.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.description != null && Object.hasOwnProperty.call(message, "description")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); - if (message.deployedIndexes != null && message.deployedIndexes.length) - for (var i = 0; i < message.deployedIndexes.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.network != null && Object.hasOwnProperty.call(message, "network")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.network); - if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) - writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enablePrivateServiceConnect); - return writer; - }; + /** + * Encodes the specified ConditionalParameterSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec} message ConditionalParameterSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConditionalParameterSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parameterSpec != null && Object.hasOwnProperty.call(message, "parameterSpec")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.encode(message.parameterSpec, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parentDiscreteValues != null && Object.hasOwnProperty.call(message, "parentDiscreteValues")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.encode(message.parentDiscreteValues, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parentIntValues != null && Object.hasOwnProperty.call(message, "parentIntValues")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.encode(message.parentIntValues, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.parentCategoricalValues != null && Object.hasOwnProperty.call(message, "parentCategoricalValues")) + $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.encode(message.parentCategoricalValues, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IndexEndpoint.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ConditionalParameterSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.IConditionalParameterSpec} message ConditionalParameterSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConditionalParameterSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an IndexEndpoint message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IndexEndpoint.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexEndpoint(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - case 2: - message.displayName = reader.string(); - break; - case 3: - message.description = reader.string(); - break; - case 4: - if (!(message.deployedIndexes && message.deployedIndexes.length)) - message.deployedIndexes = []; - message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32())); - break; - case 5: - message.etag = reader.string(); - break; - case 6: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; + /** + * Decodes a ConditionalParameterSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConditionalParameterSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { case 2: - value = reader.string(); + message.parentDiscreteValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.decode(reader, reader.uint32()); + break; + case 3: + message.parentIntValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.decode(reader, reader.uint32()); + break; + case 4: + message.parentCategoricalValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.decode(reader, reader.uint32()); + break; + case 1: + message.parameterSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.decode(reader, reader.uint32()); break; default: - reader.skipType(tag2 & 7); + reader.skipType(tag & 7); break; } } - message.labels[key] = value; - break; - case 7: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 9: - message.network = reader.string(); - break; - case 10: - message.enablePrivateServiceConnect = reader.bool(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + return message; + }; - /** - * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IndexEndpoint.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ConditionalParameterSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConditionalParameterSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies an IndexEndpoint message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IndexEndpoint.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.description != null && message.hasOwnProperty("description")) - if (!$util.isString(message.description)) - return "description: string expected"; - if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { - if (!Array.isArray(message.deployedIndexes)) - return "deployedIndexes: array expected"; - for (var i = 0; i < message.deployedIndexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndexes[i]); - if (error) - return "deployedIndexes." + error; - } - } - if (message.etag != null && message.hasOwnProperty("etag")) - if (!$util.isString(message.etag)) - return "etag: string expected"; - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.network != null && message.hasOwnProperty("network")) - if (!$util.isString(message.network)) - return "network: string expected"; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - if (typeof message.enablePrivateServiceConnect !== "boolean") - return "enablePrivateServiceConnect: boolean expected"; - return null; - }; + /** + * Verifies a ConditionalParameterSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConditionalParameterSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + var properties = {}; + if (message.parentDiscreteValues != null && message.hasOwnProperty("parentDiscreteValues")) { + properties.parentValueCondition = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify(message.parentDiscreteValues); + if (error) + return "parentDiscreteValues." + error; + } + } + if (message.parentIntValues != null && message.hasOwnProperty("parentIntValues")) { + if (properties.parentValueCondition === 1) + return "parentValueCondition: multiple values"; + properties.parentValueCondition = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify(message.parentIntValues); + if (error) + return "parentIntValues." + error; + } + } + if (message.parentCategoricalValues != null && message.hasOwnProperty("parentCategoricalValues")) { + if (properties.parentValueCondition === 1) + return "parentValueCondition: multiple values"; + properties.parentValueCondition = 1; + { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify(message.parentCategoricalValues); + if (error) + return "parentCategoricalValues." + error; + } + } + if (message.parameterSpec != null && message.hasOwnProperty("parameterSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.verify(message.parameterSpec); + if (error) + return "parameterSpec." + error; + } + return null; + }; - /** - * Creates an IndexEndpoint message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint - */ - IndexEndpoint.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexEndpoint) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexEndpoint(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.description != null) - message.description = String(object.description); - if (object.deployedIndexes) { - if (!Array.isArray(object.deployedIndexes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: array expected"); - message.deployedIndexes = []; - for (var i = 0; i < object.deployedIndexes.length; ++i) { - if (typeof object.deployedIndexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: object expected"); - message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndexes[i]); - } - } - if (object.etag != null) - message.etag = String(object.etag); - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); - } - if (object.network != null) - message.network = String(object.network); - if (object.enablePrivateServiceConnect != null) - message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); - return message; - }; + /** + * Creates a ConditionalParameterSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec} ConditionalParameterSpec + */ + ConditionalParameterSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec(); + if (object.parentDiscreteValues != null) { + if (typeof object.parentDiscreteValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentDiscreteValues: object expected"); + message.parentDiscreteValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.fromObject(object.parentDiscreteValues); + } + if (object.parentIntValues != null) { + if (typeof object.parentIntValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentIntValues: object expected"); + message.parentIntValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.fromObject(object.parentIntValues); + } + if (object.parentCategoricalValues != null) { + if (typeof object.parentCategoricalValues !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.parentCategoricalValues: object expected"); + message.parentCategoricalValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.fromObject(object.parentCategoricalValues); + } + if (object.parameterSpec != null) { + if (typeof object.parameterSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.parameterSpec: object expected"); + message.parameterSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.fromObject(object.parameterSpec); + } + return message; + }; - /** - * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} message IndexEndpoint - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IndexEndpoint.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.deployedIndexes = []; - if (options.objects || options.defaults) - object.labels = {}; - if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.description = ""; - object.etag = ""; - object.createTime = null; - object.updateTime = null; - object.network = ""; - object.enablePrivateServiceConnect = false; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.description != null && message.hasOwnProperty("description")) - object.description = message.description; - if (message.deployedIndexes && message.deployedIndexes.length) { - object.deployedIndexes = []; - for (var j = 0; j < message.deployedIndexes.length; ++j) - object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndexes[j], options); - } - if (message.etag != null && message.hasOwnProperty("etag")) - object.etag = message.etag; - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.network != null && message.hasOwnProperty("network")) - object.network = message.network; - if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) - object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; - return object; - }; + /** + * Creates a plain object from a ConditionalParameterSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec} message ConditionalParameterSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConditionalParameterSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.parameterSpec = null; + if (message.parameterSpec != null && message.hasOwnProperty("parameterSpec")) + object.parameterSpec = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.toObject(message.parameterSpec, options); + if (message.parentDiscreteValues != null && message.hasOwnProperty("parentDiscreteValues")) { + object.parentDiscreteValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.toObject(message.parentDiscreteValues, options); + if (options.oneofs) + object.parentValueCondition = "parentDiscreteValues"; + } + if (message.parentIntValues != null && message.hasOwnProperty("parentIntValues")) { + object.parentIntValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.toObject(message.parentIntValues, options); + if (options.oneofs) + object.parentValueCondition = "parentIntValues"; + } + if (message.parentCategoricalValues != null && message.hasOwnProperty("parentCategoricalValues")) { + object.parentCategoricalValues = $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.toObject(message.parentCategoricalValues, options); + if (options.oneofs) + object.parentValueCondition = "parentCategoricalValues"; + } + return object; + }; - /** - * Converts this IndexEndpoint to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint - * @instance - * @returns {Object.} JSON object - */ - IndexEndpoint.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Converts this ConditionalParameterSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @instance + * @returns {Object.} JSON object + */ + ConditionalParameterSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return IndexEndpoint; - })(); + ConditionalParameterSpec.DiscreteValueCondition = (function() { - v1beta1.DeployedIndex = (function() { + /** + * Properties of a DiscreteValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @interface IDiscreteValueCondition + * @property {Array.|null} [values] DiscreteValueCondition values + */ + + /** + * Constructs a new DiscreteValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @classdesc Represents a DiscreteValueCondition. + * @implements IDiscreteValueCondition + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition=} [properties] Properties to set + */ + function DiscreteValueCondition(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * DiscreteValueCondition values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @instance + */ + DiscreteValueCondition.prototype.values = $util.emptyArray; + + /** + * Creates a new DiscreteValueCondition instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition instance + */ + DiscreteValueCondition.create = function create(properties) { + return new DiscreteValueCondition(properties); + }; + + /** + * Encodes the specified DiscreteValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition} message DiscreteValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiscreteValueCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.double(message.values[i]); + writer.ldelim(); + } + return writer; + }; + + /** + * Encodes the specified DiscreteValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IDiscreteValueCondition} message DiscreteValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + DiscreteValueCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a DiscreteValueCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiscreteValueCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.double()); + } else + message.values.push(reader.double()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Properties of a DeployedIndex. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedIndex - * @property {string|null} [id] DeployedIndex id - * @property {string|null} [index] DeployedIndex index - * @property {string|null} [displayName] DeployedIndex displayName - * @property {google.protobuf.ITimestamp|null} [createTime] DeployedIndex createTime - * @property {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null} [privateEndpoints] DeployedIndex privateEndpoints - * @property {google.protobuf.ITimestamp|null} [indexSyncTime] DeployedIndex indexSyncTime - * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] DeployedIndex automaticResources - * @property {google.cloud.aiplatform.v1beta1.IDedicatedResources|null} [dedicatedResources] DeployedIndex dedicatedResources - * @property {boolean|null} [enableAccessLogging] DeployedIndex enableAccessLogging - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null} [deployedIndexAuthConfig] DeployedIndex deployedIndexAuthConfig - * @property {Array.|null} [reservedIpRanges] DeployedIndex reservedIpRanges - * @property {string|null} [deploymentGroup] DeployedIndex deploymentGroup - */ + /** + * Decodes a DiscreteValueCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + DiscreteValueCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Constructs a new DeployedIndex. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedIndex. - * @implements IDeployedIndex - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set - */ - function DeployedIndex(properties) { - this.reservedIpRanges = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Verifies a DiscreteValueCondition message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + DiscreteValueCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (typeof message.values[i] !== "number") + return "values: number[] expected"; + } + return null; + }; - /** - * DeployedIndex id. - * @member {string} id - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.id = ""; + /** + * Creates a DiscreteValueCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} DiscreteValueCondition + */ + DiscreteValueCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = Number(object.values[i]); + } + return message; + }; - /** - * DeployedIndex index. - * @member {string} index - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.index = ""; + /** + * Creates a plain object from a DiscreteValueCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition} message DiscreteValueCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + DiscreteValueCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = options.json && !isFinite(message.values[j]) ? String(message.values[j]) : message.values[j]; + } + return object; + }; - /** - * DeployedIndex displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.displayName = ""; + /** + * Converts this DiscreteValueCondition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.DiscreteValueCondition + * @instance + * @returns {Object.} JSON object + */ + DiscreteValueCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * DeployedIndex createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.createTime = null; + return DiscreteValueCondition; + })(); - /** - * DeployedIndex privateEndpoints. - * @member {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null|undefined} privateEndpoints - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.privateEndpoints = null; + ConditionalParameterSpec.IntValueCondition = (function() { - /** - * DeployedIndex indexSyncTime. - * @member {google.protobuf.ITimestamp|null|undefined} indexSyncTime - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.indexSyncTime = null; + /** + * Properties of an IntValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @interface IIntValueCondition + * @property {Array.|null} [values] IntValueCondition values + */ - /** - * DeployedIndex automaticResources. - * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.automaticResources = null; + /** + * Constructs a new IntValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @classdesc Represents an IntValueCondition. + * @implements IIntValueCondition + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition=} [properties] Properties to set + */ + function IntValueCondition(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * DeployedIndex dedicatedResources. - * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.dedicatedResources = null; + /** + * IntValueCondition values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @instance + */ + IntValueCondition.prototype.values = $util.emptyArray; - /** - * DeployedIndex enableAccessLogging. - * @member {boolean} enableAccessLogging - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.enableAccessLogging = false; + /** + * Creates a new IntValueCondition instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition instance + */ + IntValueCondition.create = function create(properties) { + return new IntValueCondition(properties); + }; - /** - * DeployedIndex deployedIndexAuthConfig. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null|undefined} deployedIndexAuthConfig - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.deployedIndexAuthConfig = null; + /** + * Encodes the specified IntValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition} message IntValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntValueCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) { + writer.uint32(/* id 1, wireType 2 =*/10).fork(); + for (var i = 0; i < message.values.length; ++i) + writer.int64(message.values[i]); + writer.ldelim(); + } + return writer; + }; - /** - * DeployedIndex reservedIpRanges. - * @member {Array.} reservedIpRanges - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.reservedIpRanges = $util.emptyArray; + /** + * Encodes the specified IntValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IIntValueCondition} message IntValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + IntValueCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * DeployedIndex deploymentGroup. - * @member {string} deploymentGroup - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - */ - DeployedIndex.prototype.deploymentGroup = ""; + /** + * Decodes an IntValueCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntValueCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + if ((tag & 7) === 2) { + var end2 = reader.uint32() + reader.pos; + while (reader.pos < end2) + message.values.push(reader.int64()); + } else + message.values.push(reader.int64()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new DeployedIndex instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex instance - */ - DeployedIndex.create = function create(properties) { - return new DeployedIndex(properties); - }; + /** + * Decodes an IntValueCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + IntValueCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeployedIndex.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.id != null && Object.hasOwnProperty.call(message, "id")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.index); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.privateEndpoints != null && Object.hasOwnProperty.call(message, "privateEndpoints")) - $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.indexSyncTime != null && Object.hasOwnProperty.call(message, "indexSyncTime")) - $root.google.protobuf.Timestamp.encode(message.indexSyncTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) - $root.google.cloud.aiplatform.v1beta1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.enableAccessLogging != null && Object.hasOwnProperty.call(message, "enableAccessLogging")) - writer.uint32(/* id 8, wireType 0 =*/64).bool(message.enableAccessLogging); - if (message.deployedIndexAuthConfig != null && Object.hasOwnProperty.call(message, "deployedIndexAuthConfig")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.encode(message.deployedIndexAuthConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); - if (message.reservedIpRanges != null && message.reservedIpRanges.length) - for (var i = 0; i < message.reservedIpRanges.length; ++i) - writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedIpRanges[i]); - if (message.deploymentGroup != null && Object.hasOwnProperty.call(message, "deploymentGroup")) - writer.uint32(/* id 11, wireType 2 =*/90).string(message.deploymentGroup); - if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) - $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); - return writer; - }; + /** + * Verifies an IntValueCondition message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + IntValueCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isInteger(message.values[i]) && !(message.values[i] && $util.isInteger(message.values[i].low) && $util.isInteger(message.values[i].high))) + return "values: integer|Long[] expected"; + } + return null; + }; - /** - * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeployedIndex.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates an IntValueCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} IntValueCondition + */ + IntValueCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + if ($util.Long) + (message.values[i] = $util.Long.fromValue(object.values[i])).unsigned = false; + else if (typeof object.values[i] === "string") + message.values[i] = parseInt(object.values[i], 10); + else if (typeof object.values[i] === "number") + message.values[i] = object.values[i]; + else if (typeof object.values[i] === "object") + message.values[i] = new $util.LongBits(object.values[i].low >>> 0, object.values[i].high >>> 0).toNumber(); + } + return message; + }; - /** - * Decodes a DeployedIndex message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeployedIndex.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndex(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.id = reader.string(); - break; - case 2: - message.index = reader.string(); - break; - case 3: - message.displayName = reader.string(); - break; - case 4: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 5: - message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.decode(reader, reader.uint32()); - break; - case 6: - message.indexSyncTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 7: - message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); - break; - case 16: - message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.decode(reader, reader.uint32()); - break; - case 8: - message.enableAccessLogging = reader.bool(); - break; - case 9: - message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.decode(reader, reader.uint32()); - break; - case 10: - if (!(message.reservedIpRanges && message.reservedIpRanges.length)) - message.reservedIpRanges = []; - message.reservedIpRanges.push(reader.string()); - break; - case 11: - message.deploymentGroup = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a plain object from an IntValueCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition} message IntValueCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + IntValueCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + if (typeof message.values[j] === "number") + object.values[j] = options.longs === String ? String(message.values[j]) : message.values[j]; + else + object.values[j] = options.longs === String ? $util.Long.prototype.toString.call(message.values[j]) : options.longs === Number ? new $util.LongBits(message.values[j].low >>> 0, message.values[j].high >>> 0).toNumber() : message.values[j]; + } + return object; + }; - /** - * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeployedIndex.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this IntValueCondition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.IntValueCondition + * @instance + * @returns {Object.} JSON object + */ + IntValueCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a DeployedIndex message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeployedIndex.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.id != null && message.hasOwnProperty("id")) - if (!$util.isString(message.id)) - return "id: string expected"; - if (message.index != null && message.hasOwnProperty("index")) - if (!$util.isString(message.index)) - return "index: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify(message.privateEndpoints); - if (error) - return "privateEndpoints." + error; - } - if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.indexSyncTime); - if (error) - return "indexSyncTime." + error; - } - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { - var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); - if (error) - return "automaticResources." + error; - } - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { - var error = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.verify(message.dedicatedResources); - if (error) - return "dedicatedResources." + error; - } - if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) - if (typeof message.enableAccessLogging !== "boolean") - return "enableAccessLogging: boolean expected"; - if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify(message.deployedIndexAuthConfig); - if (error) - return "deployedIndexAuthConfig." + error; - } - if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { - if (!Array.isArray(message.reservedIpRanges)) - return "reservedIpRanges: array expected"; - for (var i = 0; i < message.reservedIpRanges.length; ++i) - if (!$util.isString(message.reservedIpRanges[i])) - return "reservedIpRanges: string[] expected"; - } - if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) - if (!$util.isString(message.deploymentGroup)) - return "deploymentGroup: string expected"; - return null; - }; + return IntValueCondition; + })(); - /** - * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex - */ - DeployedIndex.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndex) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndex(); - if (object.id != null) - message.id = String(object.id); - if (object.index != null) - message.index = String(object.index); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.privateEndpoints != null) { - if (typeof object.privateEndpoints !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.privateEndpoints: object expected"); - message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.fromObject(object.privateEndpoints); - } - if (object.indexSyncTime != null) { - if (typeof object.indexSyncTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.indexSyncTime: object expected"); - message.indexSyncTime = $root.google.protobuf.Timestamp.fromObject(object.indexSyncTime); - } - if (object.automaticResources != null) { - if (typeof object.automaticResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.automaticResources: object expected"); - message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); - } - if (object.dedicatedResources != null) { - if (typeof object.dedicatedResources !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.dedicatedResources: object expected"); - message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.fromObject(object.dedicatedResources); - } - if (object.enableAccessLogging != null) - message.enableAccessLogging = Boolean(object.enableAccessLogging); - if (object.deployedIndexAuthConfig != null) { - if (typeof object.deployedIndexAuthConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.deployedIndexAuthConfig: object expected"); - message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.fromObject(object.deployedIndexAuthConfig); - } - if (object.reservedIpRanges) { - if (!Array.isArray(object.reservedIpRanges)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.reservedIpRanges: array expected"); - message.reservedIpRanges = []; - for (var i = 0; i < object.reservedIpRanges.length; ++i) - message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); - } - if (object.deploymentGroup != null) - message.deploymentGroup = String(object.deploymentGroup); - return message; - }; + ConditionalParameterSpec.CategoricalValueCondition = (function() { - /** - * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndex} message DeployedIndex - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeployedIndex.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.reservedIpRanges = []; - if (options.defaults) { - object.id = ""; - object.index = ""; - object.displayName = ""; - object.createTime = null; - object.privateEndpoints = null; - object.indexSyncTime = null; - object.automaticResources = null; - object.enableAccessLogging = false; - object.deployedIndexAuthConfig = null; - object.deploymentGroup = ""; - object.dedicatedResources = null; - } - if (message.id != null && message.hasOwnProperty("id")) - object.id = message.id; - if (message.index != null && message.hasOwnProperty("index")) - object.index = message.index; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) - object.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.toObject(message.privateEndpoints, options); - if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) - object.indexSyncTime = $root.google.protobuf.Timestamp.toObject(message.indexSyncTime, options); - if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) - object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); - if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) - object.enableAccessLogging = message.enableAccessLogging; - if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) - object.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.toObject(message.deployedIndexAuthConfig, options); - if (message.reservedIpRanges && message.reservedIpRanges.length) { - object.reservedIpRanges = []; - for (var j = 0; j < message.reservedIpRanges.length; ++j) - object.reservedIpRanges[j] = message.reservedIpRanges[j]; - } - if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) - object.deploymentGroup = message.deploymentGroup; - if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) - object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); - return object; - }; + /** + * Properties of a CategoricalValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @interface ICategoricalValueCondition + * @property {Array.|null} [values] CategoricalValueCondition values + */ - /** - * Converts this DeployedIndex to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex - * @instance - * @returns {Object.} JSON object - */ - DeployedIndex.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Constructs a new CategoricalValueCondition. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec + * @classdesc Represents a CategoricalValueCondition. + * @implements ICategoricalValueCondition + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set + */ + function CategoricalValueCondition(properties) { + this.values = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - return DeployedIndex; - })(); + /** + * CategoricalValueCondition values. + * @member {Array.} values + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @instance + */ + CategoricalValueCondition.prototype.values = $util.emptyArray; - v1beta1.DeployedIndexAuthConfig = (function() { + /** + * Creates a new CategoricalValueCondition instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition instance + */ + CategoricalValueCondition.create = function create(properties) { + return new CategoricalValueCondition(properties); + }; - /** - * Properties of a DeployedIndexAuthConfig. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployedIndexAuthConfig - * @property {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null} [authProvider] DeployedIndexAuthConfig authProvider - */ + /** + * Encodes the specified CategoricalValueCondition message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueCondition.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.values != null && message.values.length) + for (var i = 0; i < message.values.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.values[i]); + return writer; + }; - /** - * Constructs a new DeployedIndexAuthConfig. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployedIndexAuthConfig. - * @implements IDeployedIndexAuthConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set - */ - function DeployedIndexAuthConfig(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified CategoricalValueCondition message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.ICategoricalValueCondition} message CategoricalValueCondition message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + CategoricalValueCondition.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * DeployedIndexAuthConfig authProvider. - * @member {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null|undefined} authProvider - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @instance - */ - DeployedIndexAuthConfig.prototype.authProvider = null; + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueCondition.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.values && message.values.length)) + message.values = []; + message.values.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new DeployedIndexAuthConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig instance - */ - DeployedIndexAuthConfig.create = function create(properties) { - return new DeployedIndexAuthConfig(properties); - }; + /** + * Decodes a CategoricalValueCondition message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + CategoricalValueCondition.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeployedIndexAuthConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.encode(message.authProvider, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; + /** + * Verifies a CategoricalValueCondition message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + CategoricalValueCondition.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.values != null && message.hasOwnProperty("values")) { + if (!Array.isArray(message.values)) + return "values: array expected"; + for (var i = 0; i < message.values.length; ++i) + if (!$util.isString(message.values[i])) + return "values: string[] expected"; + } + return null; + }; - /** - * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - DeployedIndexAuthConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a CategoricalValueCondition message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} CategoricalValueCondition + */ + CategoricalValueCondition.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition(); + if (object.values) { + if (!Array.isArray(object.values)) + throw TypeError(".google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition.values: array expected"); + message.values = []; + for (var i = 0; i < object.values.length; ++i) + message.values[i] = String(object.values[i]); + } + return message; + }; - /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeployedIndexAuthConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Creates a plain object from a CategoricalValueCondition message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition} message CategoricalValueCondition + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + CategoricalValueCondition.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.values = []; + if (message.values && message.values.length) { + object.values = []; + for (var j = 0; j < message.values.length; ++j) + object.values[j] = message.values[j]; + } + return object; + }; - /** - * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - DeployedIndexAuthConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this CategoricalValueCondition to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ConditionalParameterSpec.CategoricalValueCondition + * @instance + * @returns {Object.} JSON object + */ + CategoricalValueCondition.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a DeployedIndexAuthConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - DeployedIndexAuthConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.authProvider != null && message.hasOwnProperty("authProvider")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify(message.authProvider); - if (error) - return "authProvider." + error; - } - return null; - }; + return CategoricalValueCondition; + })(); - /** - * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig - */ - DeployedIndexAuthConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); - if (object.authProvider != null) { - if (typeof object.authProvider !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.authProvider: object expected"); - message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.fromObject(object.authProvider); - } - return message; - }; + return ConditionalParameterSpec; + })(); - /** - * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} message DeployedIndexAuthConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - DeployedIndexAuthConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.authProvider = null; - if (message.authProvider != null && message.hasOwnProperty("authProvider")) - object.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.toObject(message.authProvider, options); - return object; - }; + /** + * ScaleType enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.ParameterSpec.ScaleType + * @enum {number} + * @property {number} SCALE_TYPE_UNSPECIFIED=0 SCALE_TYPE_UNSPECIFIED value + * @property {number} UNIT_LINEAR_SCALE=1 UNIT_LINEAR_SCALE value + * @property {number} UNIT_LOG_SCALE=2 UNIT_LOG_SCALE value + * @property {number} UNIT_REVERSE_LOG_SCALE=3 UNIT_REVERSE_LOG_SCALE value + */ + ParameterSpec.ScaleType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "SCALE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "UNIT_LINEAR_SCALE"] = 1; + values[valuesById[2] = "UNIT_LOG_SCALE"] = 2; + values[valuesById[3] = "UNIT_REVERSE_LOG_SCALE"] = 3; + return values; + })(); - /** - * Converts this DeployedIndexAuthConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @instance - * @returns {Object.} JSON object - */ - DeployedIndexAuthConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return ParameterSpec; + })(); - DeployedIndexAuthConfig.AuthProvider = (function() { + StudySpec.DecayCurveAutomatedStoppingSpec = (function() { /** - * Properties of an AuthProvider. - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @interface IAuthProvider - * @property {Array.|null} [audiences] AuthProvider audiences - * @property {Array.|null} [allowedIssuers] AuthProvider allowedIssuers + * Properties of a DecayCurveAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IDecayCurveAutomatedStoppingSpec + * @property {boolean|null} [useElapsedDuration] DecayCurveAutomatedStoppingSpec useElapsedDuration */ /** - * Constructs a new AuthProvider. - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig - * @classdesc Represents an AuthProvider. - * @implements IAuthProvider + * Constructs a new DecayCurveAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a DecayCurveAutomatedStoppingSpec. + * @implements IDecayCurveAutomatedStoppingSpec * @constructor - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set */ - function AuthProvider(properties) { - this.audiences = []; - this.allowedIssuers = []; + function DecayCurveAutomatedStoppingSpec(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -207051,94 +211857,75 @@ } /** - * AuthProvider audiences. - * @member {Array.} audiences - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider - * @instance - */ - AuthProvider.prototype.audiences = $util.emptyArray; - - /** - * AuthProvider allowedIssuers. - * @member {Array.} allowedIssuers - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * DecayCurveAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec * @instance */ - AuthProvider.prototype.allowedIssuers = $util.emptyArray; + DecayCurveAutomatedStoppingSpec.prototype.useElapsedDuration = false; /** - * Creates a new AuthProvider instance using the specified properties. + * Creates a new DecayCurveAutomatedStoppingSpec instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider instance + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec instance */ - AuthProvider.create = function create(properties) { - return new AuthProvider(properties); + DecayCurveAutomatedStoppingSpec.create = function create(properties) { + return new DecayCurveAutomatedStoppingSpec(properties); }; /** - * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * Encodes the specified DecayCurveAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuthProvider.encode = function encode(message, writer) { + DecayCurveAutomatedStoppingSpec.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.audiences != null && message.audiences.length) - for (var i = 0; i < message.audiences.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.audiences[i]); - if (message.allowedIssuers != null && message.allowedIssuers.length) - for (var i = 0; i < message.allowedIssuers.length; ++i) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowedIssuers[i]); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); return writer; }; /** - * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * Encodes the specified DecayCurveAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IDecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - AuthProvider.encodeDelimited = function encodeDelimited(message, writer) { + DecayCurveAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an AuthProvider message from the specified reader or buffer. + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuthProvider.decode = function decode(reader, length) { + DecayCurveAutomatedStoppingSpec.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.audiences && message.audiences.length)) - message.audiences = []; - message.audiences.push(reader.string()); - break; - case 2: - if (!(message.allowedIssuers && message.allowedIssuers.length)) - message.allowedIssuers = []; - message.allowedIssuers.push(reader.string()); + message.useElapsedDuration = reader.bool(); break; default: reader.skipType(tag & 7); @@ -207149,867 +211936,984 @@ }; /** - * Decodes an AuthProvider message from the specified reader or buffer, length delimited. + * Decodes a DecayCurveAutomatedStoppingSpec message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - AuthProvider.decodeDelimited = function decodeDelimited(reader) { + DecayCurveAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an AuthProvider message. + * Verifies a DecayCurveAutomatedStoppingSpec message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - AuthProvider.verify = function verify(message) { + DecayCurveAutomatedStoppingSpec.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.audiences != null && message.hasOwnProperty("audiences")) { - if (!Array.isArray(message.audiences)) - return "audiences: array expected"; - for (var i = 0; i < message.audiences.length; ++i) - if (!$util.isString(message.audiences[i])) - return "audiences: string[] expected"; - } - if (message.allowedIssuers != null && message.hasOwnProperty("allowedIssuers")) { - if (!Array.isArray(message.allowedIssuers)) - return "allowedIssuers: array expected"; - for (var i = 0; i < message.allowedIssuers.length; ++i) - if (!$util.isString(message.allowedIssuers[i])) - return "allowedIssuers: string[] expected"; - } + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; return null; }; /** - * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. + * Creates a DecayCurveAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} DecayCurveAutomatedStoppingSpec */ - AuthProvider.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) + DecayCurveAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); - if (object.audiences) { - if (!Array.isArray(object.audiences)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.audiences: array expected"); - message.audiences = []; - for (var i = 0; i < object.audiences.length; ++i) - message.audiences[i] = String(object.audiences[i]); - } - if (object.allowedIssuers) { - if (!Array.isArray(object.allowedIssuers)) - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.allowedIssuers: array expected"); - message.allowedIssuers = []; - for (var i = 0; i < object.allowedIssuers.length; ++i) - message.allowedIssuers[i] = String(object.allowedIssuers[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec(); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); return message; }; /** - * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. + * Creates a plain object from a DecayCurveAutomatedStoppingSpec message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec * @static - * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} message AuthProvider + * @param {google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec} message DecayCurveAutomatedStoppingSpec * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - AuthProvider.toObject = function toObject(message, options) { + DecayCurveAutomatedStoppingSpec.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.audiences = []; - object.allowedIssuers = []; - } - if (message.audiences && message.audiences.length) { - object.audiences = []; - for (var j = 0; j < message.audiences.length; ++j) - object.audiences[j] = message.audiences[j]; - } - if (message.allowedIssuers && message.allowedIssuers.length) { - object.allowedIssuers = []; - for (var j = 0; j < message.allowedIssuers.length; ++j) - object.allowedIssuers[j] = message.allowedIssuers[j]; - } + if (options.defaults) + object.useElapsedDuration = false; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; return object; }; /** - * Converts this AuthProvider to JSON. + * Converts this DecayCurveAutomatedStoppingSpec to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.DecayCurveAutomatedStoppingSpec * @instance * @returns {Object.} JSON object */ - AuthProvider.prototype.toJSON = function toJSON() { + DecayCurveAutomatedStoppingSpec.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return AuthProvider; + return DecayCurveAutomatedStoppingSpec; })(); - return DeployedIndexAuthConfig; - })(); - - v1beta1.IndexPrivateEndpoints = (function() { - - /** - * Properties of an IndexPrivateEndpoints. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IIndexPrivateEndpoints - * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress - * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment - */ + StudySpec.MedianAutomatedStoppingSpec = (function() { - /** - * Constructs a new IndexPrivateEndpoints. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexPrivateEndpoints. - * @implements IIndexPrivateEndpoints - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set - */ - function IndexPrivateEndpoints(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Properties of a MedianAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IMedianAutomatedStoppingSpec + * @property {boolean|null} [useElapsedDuration] MedianAutomatedStoppingSpec useElapsedDuration + */ - /** - * IndexPrivateEndpoints matchGrpcAddress. - * @member {string} matchGrpcAddress - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @instance - */ - IndexPrivateEndpoints.prototype.matchGrpcAddress = ""; + /** + * Constructs a new MedianAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a MedianAutomatedStoppingSpec. + * @implements IMedianAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set + */ + function MedianAutomatedStoppingSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * IndexPrivateEndpoints serviceAttachment. - * @member {string} serviceAttachment - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @instance - */ - IndexPrivateEndpoints.prototype.serviceAttachment = ""; + /** + * MedianAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @instance + */ + MedianAutomatedStoppingSpec.prototype.useElapsedDuration = false; - /** - * Creates a new IndexPrivateEndpoints instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints instance - */ - IndexPrivateEndpoints.create = function create(properties) { - return new IndexPrivateEndpoints(properties); - }; + /** + * Creates a new MedianAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec instance + */ + MedianAutomatedStoppingSpec.create = function create(properties) { + return new MedianAutomatedStoppingSpec(properties); + }; - /** - * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IndexPrivateEndpoints.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.matchGrpcAddress != null && Object.hasOwnProperty.call(message, "matchGrpcAddress")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchGrpcAddress); - if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAttachment); - return writer; - }; + /** + * Encodes the specified MedianAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MedianAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 1, wireType 0 =*/8).bool(message.useElapsedDuration); + return writer; + }; - /** - * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @static - * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - IndexPrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified MedianAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IMedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + MedianAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IndexPrivateEndpoints.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.matchGrpcAddress = reader.string(); - break; - case 2: - message.serviceAttachment = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MedianAutomatedStoppingSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.useElapsedDuration = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } } - } - return message; - }; - - /** - * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - IndexPrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an IndexPrivateEndpoints message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - IndexPrivateEndpoints.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) - if (!$util.isString(message.matchGrpcAddress)) - return "matchGrpcAddress: string expected"; - if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) - if (!$util.isString(message.serviceAttachment)) - return "serviceAttachment: string expected"; - return null; - }; - - /** - * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints - */ - IndexPrivateEndpoints.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); - if (object.matchGrpcAddress != null) - message.matchGrpcAddress = String(object.matchGrpcAddress); - if (object.serviceAttachment != null) - message.serviceAttachment = String(object.serviceAttachment); - return message; - }; - - /** - * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @static - * @param {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} message IndexPrivateEndpoints - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - IndexPrivateEndpoints.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.matchGrpcAddress = ""; - object.serviceAttachment = ""; - } - if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) - object.matchGrpcAddress = message.matchGrpcAddress; - if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) - object.serviceAttachment = message.serviceAttachment; - return object; - }; + return message; + }; - /** - * Converts this IndexPrivateEndpoints to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints - * @instance - * @returns {Object.} JSON object - */ - IndexPrivateEndpoints.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Decodes a MedianAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + MedianAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - return IndexPrivateEndpoints; - })(); + /** + * Verifies a MedianAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + MedianAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + return null; + }; - v1beta1.IndexEndpointService = (function() { + /** + * Creates a MedianAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} MedianAutomatedStoppingSpec + */ + MedianAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec(); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + return message; + }; - /** - * Constructs a new IndexEndpointService service. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexEndpointService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function IndexEndpointService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } + /** + * Creates a plain object from a MedianAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec} message MedianAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + MedianAutomatedStoppingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.useElapsedDuration = false; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + return object; + }; - (IndexEndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexEndpointService; + /** + * Converts this MedianAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.MedianAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + MedianAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Creates new IndexEndpointService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IndexEndpointService} RPC service. Useful where requests and/or responses are streamed. - */ - IndexEndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; + return MedianAutomatedStoppingSpec; + })(); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#createIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef CreateIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + StudySpec.ConvexAutomatedStoppingSpec = (function() { - /** - * Calls CreateIndexEndpoint. - * @function createIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.createIndexEndpoint = function createIndexEndpoint(request, callback) { - return this.rpcCall(createIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateIndexEndpoint" }); + /** + * Properties of a ConvexAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IConvexAutomatedStoppingSpec + * @property {number|Long|null} [maxStepCount] ConvexAutomatedStoppingSpec maxStepCount + * @property {number|Long|null} [minStepCount] ConvexAutomatedStoppingSpec minStepCount + * @property {number|Long|null} [minMeasurementCount] ConvexAutomatedStoppingSpec minMeasurementCount + * @property {string|null} [learningRateParameterName] ConvexAutomatedStoppingSpec learningRateParameterName + * @property {boolean|null} [useElapsedDuration] ConvexAutomatedStoppingSpec useElapsedDuration + */ - /** - * Calls CreateIndexEndpoint. - * @function createIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Constructs a new ConvexAutomatedStoppingSpec. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a ConvexAutomatedStoppingSpec. + * @implements IConvexAutomatedStoppingSpec + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set + */ + function ConvexAutomatedStoppingSpec(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#getIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef GetIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint - */ + /** + * ConvexAutomatedStoppingSpec maxStepCount. + * @member {number|Long} maxStepCount + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.maxStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Calls GetIndexEndpoint. - * @function getIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.getIndexEndpoint = function getIndexEndpoint(request, callback) { - return this.rpcCall(getIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); - }, "name", { value: "GetIndexEndpoint" }); + /** + * ConvexAutomatedStoppingSpec minStepCount. + * @member {number|Long} minStepCount + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.minStepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Calls GetIndexEndpoint. - * @function getIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * ConvexAutomatedStoppingSpec minMeasurementCount. + * @member {number|Long} minMeasurementCount + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.minMeasurementCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#listIndexEndpoints}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef ListIndexEndpointsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} [response] ListIndexEndpointsResponse - */ + /** + * ConvexAutomatedStoppingSpec learningRateParameterName. + * @member {string} learningRateParameterName + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.learningRateParameterName = ""; - /** - * Calls ListIndexEndpoints. - * @function listIndexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback} callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.listIndexEndpoints = function listIndexEndpoints(request, callback) { - return this.rpcCall(listIndexEndpoints, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, request, callback); - }, "name", { value: "ListIndexEndpoints" }); + /** + * ConvexAutomatedStoppingSpec useElapsedDuration. + * @member {boolean} useElapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + */ + ConvexAutomatedStoppingSpec.prototype.useElapsedDuration = false; - /** - * Calls ListIndexEndpoints. - * @function listIndexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a new ConvexAutomatedStoppingSpec instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec instance + */ + ConvexAutomatedStoppingSpec.create = function create(properties) { + return new ConvexAutomatedStoppingSpec(properties); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#updateIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef UpdateIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint - */ + /** + * Encodes the specified ConvexAutomatedStoppingSpec message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexAutomatedStoppingSpec.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxStepCount != null && Object.hasOwnProperty.call(message, "maxStepCount")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxStepCount); + if (message.minStepCount != null && Object.hasOwnProperty.call(message, "minStepCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minStepCount); + if (message.minMeasurementCount != null && Object.hasOwnProperty.call(message, "minMeasurementCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.minMeasurementCount); + if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); + if (message.useElapsedDuration != null && Object.hasOwnProperty.call(message, "useElapsedDuration")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useElapsedDuration); + return writer; + }; - /** - * Calls UpdateIndexEndpoint. - * @function updateIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.updateIndexEndpoint = function updateIndexEndpoint(request, callback) { - return this.rpcCall(updateIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); - }, "name", { value: "UpdateIndexEndpoint" }); + /** + * Encodes the specified ConvexAutomatedStoppingSpec message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexAutomatedStoppingSpec.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Calls UpdateIndexEndpoint. - * @function updateIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexAutomatedStoppingSpec.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxStepCount = reader.int64(); + break; + case 2: + message.minStepCount = reader.int64(); + break; + case 3: + message.minMeasurementCount = reader.int64(); + break; + case 4: + message.learningRateParameterName = reader.string(); + break; + case 5: + message.useElapsedDuration = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#deleteIndexEndpoint}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef DeleteIndexEndpointCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * Decodes a ConvexAutomatedStoppingSpec message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexAutomatedStoppingSpec.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Calls DeleteIndexEndpoint. - * @function deleteIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.deleteIndexEndpoint = function deleteIndexEndpoint(request, callback) { - return this.rpcCall(deleteIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteIndexEndpoint" }); + /** + * Verifies a ConvexAutomatedStoppingSpec message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConvexAutomatedStoppingSpec.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) + if (!$util.isInteger(message.maxStepCount) && !(message.maxStepCount && $util.isInteger(message.maxStepCount.low) && $util.isInteger(message.maxStepCount.high))) + return "maxStepCount: integer|Long expected"; + if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) + if (!$util.isInteger(message.minStepCount) && !(message.minStepCount && $util.isInteger(message.minStepCount.low) && $util.isInteger(message.minStepCount.high))) + return "minStepCount: integer|Long expected"; + if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) + if (!$util.isInteger(message.minMeasurementCount) && !(message.minMeasurementCount && $util.isInteger(message.minMeasurementCount.low) && $util.isInteger(message.minMeasurementCount.high))) + return "minMeasurementCount: integer|Long expected"; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + if (!$util.isString(message.learningRateParameterName)) + return "learningRateParameterName: string expected"; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + if (typeof message.useElapsedDuration !== "boolean") + return "useElapsedDuration: boolean expected"; + return null; + }; - /** - * Calls DeleteIndexEndpoint. - * @function deleteIndexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Creates a ConvexAutomatedStoppingSpec message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} ConvexAutomatedStoppingSpec + */ + ConvexAutomatedStoppingSpec.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec(); + if (object.maxStepCount != null) + if ($util.Long) + (message.maxStepCount = $util.Long.fromValue(object.maxStepCount)).unsigned = false; + else if (typeof object.maxStepCount === "string") + message.maxStepCount = parseInt(object.maxStepCount, 10); + else if (typeof object.maxStepCount === "number") + message.maxStepCount = object.maxStepCount; + else if (typeof object.maxStepCount === "object") + message.maxStepCount = new $util.LongBits(object.maxStepCount.low >>> 0, object.maxStepCount.high >>> 0).toNumber(); + if (object.minStepCount != null) + if ($util.Long) + (message.minStepCount = $util.Long.fromValue(object.minStepCount)).unsigned = false; + else if (typeof object.minStepCount === "string") + message.minStepCount = parseInt(object.minStepCount, 10); + else if (typeof object.minStepCount === "number") + message.minStepCount = object.minStepCount; + else if (typeof object.minStepCount === "object") + message.minStepCount = new $util.LongBits(object.minStepCount.low >>> 0, object.minStepCount.high >>> 0).toNumber(); + if (object.minMeasurementCount != null) + if ($util.Long) + (message.minMeasurementCount = $util.Long.fromValue(object.minMeasurementCount)).unsigned = false; + else if (typeof object.minMeasurementCount === "string") + message.minMeasurementCount = parseInt(object.minMeasurementCount, 10); + else if (typeof object.minMeasurementCount === "number") + message.minMeasurementCount = object.minMeasurementCount; + else if (typeof object.minMeasurementCount === "object") + message.minMeasurementCount = new $util.LongBits(object.minMeasurementCount.low >>> 0, object.minMeasurementCount.high >>> 0).toNumber(); + if (object.learningRateParameterName != null) + message.learningRateParameterName = String(object.learningRateParameterName); + if (object.useElapsedDuration != null) + message.useElapsedDuration = Boolean(object.useElapsedDuration); + return message; + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#deployIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef DeployIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * Creates a plain object from a ConvexAutomatedStoppingSpec message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec} message ConvexAutomatedStoppingSpec + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConvexAutomatedStoppingSpec.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxStepCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minStepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minStepCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minMeasurementCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minMeasurementCount = options.longs === String ? "0" : 0; + object.learningRateParameterName = ""; + object.useElapsedDuration = false; + } + if (message.maxStepCount != null && message.hasOwnProperty("maxStepCount")) + if (typeof message.maxStepCount === "number") + object.maxStepCount = options.longs === String ? String(message.maxStepCount) : message.maxStepCount; + else + object.maxStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.maxStepCount) : options.longs === Number ? new $util.LongBits(message.maxStepCount.low >>> 0, message.maxStepCount.high >>> 0).toNumber() : message.maxStepCount; + if (message.minStepCount != null && message.hasOwnProperty("minStepCount")) + if (typeof message.minStepCount === "number") + object.minStepCount = options.longs === String ? String(message.minStepCount) : message.minStepCount; + else + object.minStepCount = options.longs === String ? $util.Long.prototype.toString.call(message.minStepCount) : options.longs === Number ? new $util.LongBits(message.minStepCount.low >>> 0, message.minStepCount.high >>> 0).toNumber() : message.minStepCount; + if (message.minMeasurementCount != null && message.hasOwnProperty("minMeasurementCount")) + if (typeof message.minMeasurementCount === "number") + object.minMeasurementCount = options.longs === String ? String(message.minMeasurementCount) : message.minMeasurementCount; + else + object.minMeasurementCount = options.longs === String ? $util.Long.prototype.toString.call(message.minMeasurementCount) : options.longs === Number ? new $util.LongBits(message.minMeasurementCount.low >>> 0, message.minMeasurementCount.high >>> 0).toNumber() : message.minMeasurementCount; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + object.learningRateParameterName = message.learningRateParameterName; + if (message.useElapsedDuration != null && message.hasOwnProperty("useElapsedDuration")) + object.useElapsedDuration = message.useElapsedDuration; + return object; + }; - /** - * Calls DeployIndex. - * @function deployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.deployIndex = function deployIndex(request, callback) { - return this.rpcCall(deployIndex, $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeployIndex" }); + /** + * Converts this ConvexAutomatedStoppingSpec to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexAutomatedStoppingSpec + * @instance + * @returns {Object.} JSON object + */ + ConvexAutomatedStoppingSpec.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Calls DeployIndex. - * @function deployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + return ConvexAutomatedStoppingSpec; + })(); - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#undeployIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef UndeployIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + StudySpec.ConvexStopConfig = (function() { - /** - * Calls UndeployIndex. - * @function undeployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.undeployIndex = function undeployIndex(request, callback) { - return this.rpcCall(undeployIndex, $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UndeployIndex" }); + /** + * Properties of a ConvexStopConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @interface IConvexStopConfig + * @property {number|Long|null} [maxNumSteps] ConvexStopConfig maxNumSteps + * @property {number|Long|null} [minNumSteps] ConvexStopConfig minNumSteps + * @property {number|Long|null} [autoregressiveOrder] ConvexStopConfig autoregressiveOrder + * @property {string|null} [learningRateParameterName] ConvexStopConfig learningRateParameterName + * @property {boolean|null} [useSeconds] ConvexStopConfig useSeconds + */ - /** - * Calls UndeployIndex. - * @function undeployIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * Constructs a new ConvexStopConfig. + * @memberof google.cloud.aiplatform.v1beta1.StudySpec + * @classdesc Represents a ConvexStopConfig. + * @implements IConvexStopConfig + * @constructor + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set + */ + function ConvexStopConfig(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#mutateDeployedIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @typedef MutateDeployedIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + /** + * ConvexStopConfig maxNumSteps. + * @member {number|Long} maxNumSteps + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.maxNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Calls MutateDeployedIndex. - * @function mutateDeployedIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexEndpointService.prototype.mutateDeployedIndex = function mutateDeployedIndex(request, callback) { - return this.rpcCall(mutateDeployedIndex, $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "MutateDeployedIndex" }); + /** + * ConvexStopConfig minNumSteps. + * @member {number|Long} minNumSteps + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.minNumSteps = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - /** - * Calls MutateDeployedIndex. - * @function mutateDeployedIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ + /** + * ConvexStopConfig autoregressiveOrder. + * @member {number|Long} autoregressiveOrder + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.autoregressiveOrder = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - return IndexEndpointService; - })(); + /** + * ConvexStopConfig learningRateParameterName. + * @member {string} learningRateParameterName + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.learningRateParameterName = ""; - v1beta1.CreateIndexEndpointRequest = (function() { + /** + * ConvexStopConfig useSeconds. + * @member {boolean} useSeconds + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + */ + ConvexStopConfig.prototype.useSeconds = false; - /** - * Properties of a CreateIndexEndpointRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexEndpointRequest - * @property {string|null} [parent] CreateIndexEndpointRequest parent - * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] CreateIndexEndpointRequest indexEndpoint - */ + /** + * Creates a new ConvexStopConfig instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig instance + */ + ConvexStopConfig.create = function create(properties) { + return new ConvexStopConfig(properties); + }; - /** - * Constructs a new CreateIndexEndpointRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexEndpointRequest. - * @implements ICreateIndexEndpointRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set - */ - function CreateIndexEndpointRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * Encodes the specified ConvexStopConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexStopConfig.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.maxNumSteps != null && Object.hasOwnProperty.call(message, "maxNumSteps")) + writer.uint32(/* id 1, wireType 0 =*/8).int64(message.maxNumSteps); + if (message.minNumSteps != null && Object.hasOwnProperty.call(message, "minNumSteps")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.minNumSteps); + if (message.autoregressiveOrder != null && Object.hasOwnProperty.call(message, "autoregressiveOrder")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.autoregressiveOrder); + if (message.learningRateParameterName != null && Object.hasOwnProperty.call(message, "learningRateParameterName")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.learningRateParameterName); + if (message.useSeconds != null && Object.hasOwnProperty.call(message, "useSeconds")) + writer.uint32(/* id 5, wireType 0 =*/40).bool(message.useSeconds); + return writer; + }; - /** - * CreateIndexEndpointRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @instance - */ - CreateIndexEndpointRequest.prototype.parent = ""; + /** + * Encodes the specified ConvexStopConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.IConvexStopConfig} message ConvexStopConfig message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ConvexStopConfig.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * CreateIndexEndpointRequest indexEndpoint. - * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @instance - */ - CreateIndexEndpointRequest.prototype.indexEndpoint = null; + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexStopConfig.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.maxNumSteps = reader.int64(); + break; + case 2: + message.minNumSteps = reader.int64(); + break; + case 3: + message.autoregressiveOrder = reader.int64(); + break; + case 4: + message.learningRateParameterName = reader.string(); + break; + case 5: + message.useSeconds = reader.bool(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Creates a new CreateIndexEndpointRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest instance - */ - CreateIndexEndpointRequest.create = function create(properties) { - return new CreateIndexEndpointRequest(properties); - }; + /** + * Decodes a ConvexStopConfig message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ConvexStopConfig.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateIndexEndpointRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + /** + * Verifies a ConvexStopConfig message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ConvexStopConfig.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) + if (!$util.isInteger(message.maxNumSteps) && !(message.maxNumSteps && $util.isInteger(message.maxNumSteps.low) && $util.isInteger(message.maxNumSteps.high))) + return "maxNumSteps: integer|Long expected"; + if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) + if (!$util.isInteger(message.minNumSteps) && !(message.minNumSteps && $util.isInteger(message.minNumSteps.low) && $util.isInteger(message.minNumSteps.high))) + return "minNumSteps: integer|Long expected"; + if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) + if (!$util.isInteger(message.autoregressiveOrder) && !(message.autoregressiveOrder && $util.isInteger(message.autoregressiveOrder.low) && $util.isInteger(message.autoregressiveOrder.high))) + return "autoregressiveOrder: integer|Long expected"; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + if (!$util.isString(message.learningRateParameterName)) + return "learningRateParameterName: string expected"; + if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) + if (typeof message.useSeconds !== "boolean") + return "useSeconds: boolean expected"; + return null; + }; - /** - * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Creates a ConvexStopConfig message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} ConvexStopConfig + */ + ConvexStopConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig(); + if (object.maxNumSteps != null) + if ($util.Long) + (message.maxNumSteps = $util.Long.fromValue(object.maxNumSteps)).unsigned = false; + else if (typeof object.maxNumSteps === "string") + message.maxNumSteps = parseInt(object.maxNumSteps, 10); + else if (typeof object.maxNumSteps === "number") + message.maxNumSteps = object.maxNumSteps; + else if (typeof object.maxNumSteps === "object") + message.maxNumSteps = new $util.LongBits(object.maxNumSteps.low >>> 0, object.maxNumSteps.high >>> 0).toNumber(); + if (object.minNumSteps != null) + if ($util.Long) + (message.minNumSteps = $util.Long.fromValue(object.minNumSteps)).unsigned = false; + else if (typeof object.minNumSteps === "string") + message.minNumSteps = parseInt(object.minNumSteps, 10); + else if (typeof object.minNumSteps === "number") + message.minNumSteps = object.minNumSteps; + else if (typeof object.minNumSteps === "object") + message.minNumSteps = new $util.LongBits(object.minNumSteps.low >>> 0, object.minNumSteps.high >>> 0).toNumber(); + if (object.autoregressiveOrder != null) + if ($util.Long) + (message.autoregressiveOrder = $util.Long.fromValue(object.autoregressiveOrder)).unsigned = false; + else if (typeof object.autoregressiveOrder === "string") + message.autoregressiveOrder = parseInt(object.autoregressiveOrder, 10); + else if (typeof object.autoregressiveOrder === "number") + message.autoregressiveOrder = object.autoregressiveOrder; + else if (typeof object.autoregressiveOrder === "object") + message.autoregressiveOrder = new $util.LongBits(object.autoregressiveOrder.low >>> 0, object.autoregressiveOrder.high >>> 0).toNumber(); + if (object.learningRateParameterName != null) + message.learningRateParameterName = String(object.learningRateParameterName); + if (object.useSeconds != null) + message.useSeconds = Boolean(object.useSeconds); + return message; + }; - /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateIndexEndpointRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; + /** + * Creates a plain object from a ConvexStopConfig message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @static + * @param {google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig} message ConvexStopConfig + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ConvexStopConfig.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.maxNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.maxNumSteps = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.minNumSteps = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.minNumSteps = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.autoregressiveOrder = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.autoregressiveOrder = options.longs === String ? "0" : 0; + object.learningRateParameterName = ""; + object.useSeconds = false; } - } - return message; - }; + if (message.maxNumSteps != null && message.hasOwnProperty("maxNumSteps")) + if (typeof message.maxNumSteps === "number") + object.maxNumSteps = options.longs === String ? String(message.maxNumSteps) : message.maxNumSteps; + else + object.maxNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.maxNumSteps) : options.longs === Number ? new $util.LongBits(message.maxNumSteps.low >>> 0, message.maxNumSteps.high >>> 0).toNumber() : message.maxNumSteps; + if (message.minNumSteps != null && message.hasOwnProperty("minNumSteps")) + if (typeof message.minNumSteps === "number") + object.minNumSteps = options.longs === String ? String(message.minNumSteps) : message.minNumSteps; + else + object.minNumSteps = options.longs === String ? $util.Long.prototype.toString.call(message.minNumSteps) : options.longs === Number ? new $util.LongBits(message.minNumSteps.low >>> 0, message.minNumSteps.high >>> 0).toNumber() : message.minNumSteps; + if (message.autoregressiveOrder != null && message.hasOwnProperty("autoregressiveOrder")) + if (typeof message.autoregressiveOrder === "number") + object.autoregressiveOrder = options.longs === String ? String(message.autoregressiveOrder) : message.autoregressiveOrder; + else + object.autoregressiveOrder = options.longs === String ? $util.Long.prototype.toString.call(message.autoregressiveOrder) : options.longs === Number ? new $util.LongBits(message.autoregressiveOrder.low >>> 0, message.autoregressiveOrder.high >>> 0).toNumber() : message.autoregressiveOrder; + if (message.learningRateParameterName != null && message.hasOwnProperty("learningRateParameterName")) + object.learningRateParameterName = message.learningRateParameterName; + if (message.useSeconds != null && message.hasOwnProperty("useSeconds")) + object.useSeconds = message.useSeconds; + return object; + }; - /** - * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Converts this ConvexStopConfig to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.StudySpec.ConvexStopConfig + * @instance + * @returns {Object.} JSON object + */ + ConvexStopConfig.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Verifies a CreateIndexEndpointRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateIndexEndpointRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); - if (error) - return "indexEndpoint." + error; - } - return null; - }; + return ConvexStopConfig; + })(); /** - * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest + * Algorithm enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.Algorithm + * @enum {number} + * @property {number} ALGORITHM_UNSPECIFIED=0 ALGORITHM_UNSPECIFIED value + * @property {number} GRID_SEARCH=2 GRID_SEARCH value + * @property {number} RANDOM_SEARCH=3 RANDOM_SEARCH value */ - CreateIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.indexEndpoint != null) { - if (typeof object.indexEndpoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.indexEndpoint: object expected"); - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); - } - return message; - }; + StudySpec.Algorithm = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ALGORITHM_UNSPECIFIED"] = 0; + values[valuesById[2] = "GRID_SEARCH"] = 2; + values[valuesById[3] = "RANDOM_SEARCH"] = 3; + return values; + })(); /** - * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} message CreateIndexEndpointRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * ObservationNoise enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.ObservationNoise + * @enum {number} + * @property {number} OBSERVATION_NOISE_UNSPECIFIED=0 OBSERVATION_NOISE_UNSPECIFIED value + * @property {number} LOW=1 LOW value + * @property {number} HIGH=2 HIGH value */ - CreateIndexEndpointRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.indexEndpoint = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); - return object; - }; + StudySpec.ObservationNoise = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "OBSERVATION_NOISE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LOW"] = 1; + values[valuesById[2] = "HIGH"] = 2; + return values; + })(); /** - * Converts this CreateIndexEndpointRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest - * @instance - * @returns {Object.} JSON object + * MeasurementSelectionType enum. + * @name google.cloud.aiplatform.v1beta1.StudySpec.MeasurementSelectionType + * @enum {number} + * @property {number} MEASUREMENT_SELECTION_TYPE_UNSPECIFIED=0 MEASUREMENT_SELECTION_TYPE_UNSPECIFIED value + * @property {number} LAST_MEASUREMENT=1 LAST_MEASUREMENT value + * @property {number} BEST_MEASUREMENT=2 BEST_MEASUREMENT value */ - CreateIndexEndpointRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + StudySpec.MeasurementSelectionType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MEASUREMENT_SELECTION_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "LAST_MEASUREMENT"] = 1; + values[valuesById[2] = "BEST_MEASUREMENT"] = 2; + return values; + })(); - return CreateIndexEndpointRequest; + return StudySpec; })(); - v1beta1.CreateIndexEndpointOperationMetadata = (function() { + v1beta1.Measurement = (function() { /** - * Properties of a CreateIndexEndpointOperationMetadata. + * Properties of a Measurement. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexEndpointOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexEndpointOperationMetadata genericMetadata + * @interface IMeasurement + * @property {google.protobuf.IDuration|null} [elapsedDuration] Measurement elapsedDuration + * @property {number|Long|null} [stepCount] Measurement stepCount + * @property {Array.|null} [metrics] Measurement metrics */ /** - * Constructs a new CreateIndexEndpointOperationMetadata. + * Constructs a new Measurement. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexEndpointOperationMetadata. - * @implements ICreateIndexEndpointOperationMetadata + * @classdesc Represents a Measurement. + * @implements IMeasurement * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set */ - function CreateIndexEndpointOperationMetadata(properties) { + function Measurement(properties) { + this.metrics = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -208017,267 +212921,104 @@ } /** - * CreateIndexEndpointOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * Measurement elapsedDuration. + * @member {google.protobuf.IDuration|null|undefined} elapsedDuration + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @instance */ - CreateIndexEndpointOperationMetadata.prototype.genericMetadata = null; - - /** - * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata instance - */ - CreateIndexEndpointOperationMetadata.create = function create(properties) { - return new CreateIndexEndpointOperationMetadata(properties); - }; - - /** - * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateIndexEndpointOperationMetadata.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - CreateIndexEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateIndexEndpointOperationMetadata.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - CreateIndexEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a CreateIndexEndpointOperationMetadata message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - CreateIndexEndpointOperationMetadata.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - return null; - }; - - /** - * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata - */ - CreateIndexEndpointOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - return message; - }; - - /** - * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - CreateIndexEndpointOperationMetadata.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - return object; - }; + Measurement.prototype.elapsedDuration = null; /** - * Converts this CreateIndexEndpointOperationMetadata to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata + * Measurement stepCount. + * @member {number|Long} stepCount + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @instance - * @returns {Object.} JSON object - */ - CreateIndexEndpointOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateIndexEndpointOperationMetadata; - })(); - - v1beta1.GetIndexEndpointRequest = (function() { - - /** - * Properties of a GetIndexEndpointRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetIndexEndpointRequest - * @property {string|null} [name] GetIndexEndpointRequest name - */ - - /** - * Constructs a new GetIndexEndpointRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetIndexEndpointRequest. - * @implements IGetIndexEndpointRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set */ - function GetIndexEndpointRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Measurement.prototype.stepCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * GetIndexEndpointRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * Measurement metrics. + * @member {Array.} metrics + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @instance */ - GetIndexEndpointRequest.prototype.name = ""; + Measurement.prototype.metrics = $util.emptyArray; /** - * Creates a new GetIndexEndpointRequest instance using the specified properties. + * Creates a new Measurement instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IMeasurement=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement instance */ - GetIndexEndpointRequest.create = function create(properties) { - return new GetIndexEndpointRequest(properties); + Measurement.create = function create(properties) { + return new Measurement(properties); }; /** - * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * Encodes the specified Measurement message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexEndpointRequest.encode = function encode(message, writer) { + Measurement.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.elapsedDuration != null && Object.hasOwnProperty.call(message, "elapsedDuration")) + $root.google.protobuf.Duration.encode(message.elapsedDuration, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.stepCount != null && Object.hasOwnProperty.call(message, "stepCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.stepCount); + if (message.metrics != null && message.metrics.length) + for (var i = 0; i < message.metrics.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.encode(message.metrics[i], writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. + * Encodes the specified Measurement message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMeasurement} message Measurement message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + Measurement.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. + * Decodes a Measurement message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexEndpointRequest.decode = function decode(reader, length) { + Measurement.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Measurement(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.elapsedDuration = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 2: + message.stepCount = reader.int64(); + break; + case 3: + if (!(message.metrics && message.metrics.length)) + message.metrics = []; + message.metrics.push($root.google.cloud.aiplatform.v1beta1.Measurement.Metric.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -208288,111 +213029,382 @@ }; /** - * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a Measurement message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + Measurement.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIndexEndpointRequest message. + * Verifies a Measurement message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIndexEndpointRequest.verify = function verify(message) { + Measurement.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) { + var error = $root.google.protobuf.Duration.verify(message.elapsedDuration); + if (error) + return "elapsedDuration." + error; + } + if (message.stepCount != null && message.hasOwnProperty("stepCount")) + if (!$util.isInteger(message.stepCount) && !(message.stepCount && $util.isInteger(message.stepCount.low) && $util.isInteger(message.stepCount.high))) + return "stepCount: integer|Long expected"; + if (message.metrics != null && message.hasOwnProperty("metrics")) { + if (!Array.isArray(message.metrics)) + return "metrics: array expected"; + for (var i = 0; i < message.metrics.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.verify(message.metrics[i]); + if (error) + return "metrics." + error; + } + } return null; }; /** - * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a Measurement message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.Measurement} Measurement */ - GetIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) + Measurement.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.Measurement(); + if (object.elapsedDuration != null) { + if (typeof object.elapsedDuration !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.elapsedDuration: object expected"); + message.elapsedDuration = $root.google.protobuf.Duration.fromObject(object.elapsedDuration); + } + if (object.stepCount != null) + if ($util.Long) + (message.stepCount = $util.Long.fromValue(object.stepCount)).unsigned = false; + else if (typeof object.stepCount === "string") + message.stepCount = parseInt(object.stepCount, 10); + else if (typeof object.stepCount === "number") + message.stepCount = object.stepCount; + else if (typeof object.stepCount === "object") + message.stepCount = new $util.LongBits(object.stepCount.low >>> 0, object.stepCount.high >>> 0).toNumber(); + if (object.metrics) { + if (!Array.isArray(object.metrics)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: array expected"); + message.metrics = []; + for (var i = 0; i < object.metrics.length; ++i) { + if (typeof object.metrics[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Measurement.metrics: object expected"); + message.metrics[i] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.fromObject(object.metrics[i]); + } + } return message; }; /** - * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a Measurement message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @static - * @param {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} message GetIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.Measurement} message Measurement * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIndexEndpointRequest.toObject = function toObject(message, options) { + Measurement.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.arrays || options.defaults) + object.metrics = []; + if (options.defaults) { + object.elapsedDuration = null; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.stepCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.stepCount = options.longs === String ? "0" : 0; + } + if (message.elapsedDuration != null && message.hasOwnProperty("elapsedDuration")) + object.elapsedDuration = $root.google.protobuf.Duration.toObject(message.elapsedDuration, options); + if (message.stepCount != null && message.hasOwnProperty("stepCount")) + if (typeof message.stepCount === "number") + object.stepCount = options.longs === String ? String(message.stepCount) : message.stepCount; + else + object.stepCount = options.longs === String ? $util.Long.prototype.toString.call(message.stepCount) : options.longs === Number ? new $util.LongBits(message.stepCount.low >>> 0, message.stepCount.high >>> 0).toNumber() : message.stepCount; + if (message.metrics && message.metrics.length) { + object.metrics = []; + for (var j = 0; j < message.metrics.length; ++j) + object.metrics[j] = $root.google.cloud.aiplatform.v1beta1.Measurement.Metric.toObject(message.metrics[j], options); + } return object; }; /** - * Converts this GetIndexEndpointRequest to JSON. + * Converts this Measurement to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.Measurement * @instance * @returns {Object.} JSON object */ - GetIndexEndpointRequest.prototype.toJSON = function toJSON() { + Measurement.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIndexEndpointRequest; + Measurement.Metric = (function() { + + /** + * Properties of a Metric. + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @interface IMetric + * @property {string|null} [metricId] Metric metricId + * @property {number|null} [value] Metric value + */ + + /** + * Constructs a new Metric. + * @memberof google.cloud.aiplatform.v1beta1.Measurement + * @classdesc Represents a Metric. + * @implements IMetric + * @constructor + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set + */ + function Metric(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * Metric metricId. + * @member {string} metricId + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + */ + Metric.prototype.metricId = ""; + + /** + * Metric value. + * @member {number} value + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + */ + Metric.prototype.value = 0; + + /** + * Creates a new Metric instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric instance + */ + Metric.create = function create(properties) { + return new Metric(properties); + }; + + /** + * Encodes the specified Metric message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.metricId != null && Object.hasOwnProperty.call(message, "metricId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.metricId); + if (message.value != null && Object.hasOwnProperty.call(message, "value")) + writer.uint32(/* id 2, wireType 1 =*/17).double(message.value); + return writer; + }; + + /** + * Encodes the specified Metric message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Measurement.Metric.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.IMetric} message Metric message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + Metric.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a Metric message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Measurement.Metric(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.metricId = reader.string(); + break; + case 2: + message.value = reader.double(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a Metric message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + Metric.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a Metric message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + Metric.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.metricId != null && message.hasOwnProperty("metricId")) + if (!$util.isString(message.metricId)) + return "metricId: string expected"; + if (message.value != null && message.hasOwnProperty("value")) + if (typeof message.value !== "number") + return "value: number expected"; + return null; + }; + + /** + * Creates a Metric message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.Measurement.Metric} Metric + */ + Metric.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Measurement.Metric) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.Measurement.Metric(); + if (object.metricId != null) + message.metricId = String(object.metricId); + if (object.value != null) + message.value = Number(object.value); + return message; + }; + + /** + * Creates a plain object from a Metric message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @static + * @param {google.cloud.aiplatform.v1beta1.Measurement.Metric} message Metric + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + Metric.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.metricId = ""; + object.value = 0; + } + if (message.metricId != null && message.hasOwnProperty("metricId")) + object.metricId = message.metricId; + if (message.value != null && message.hasOwnProperty("value")) + object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; + return object; + }; + + /** + * Converts this Metric to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.Measurement.Metric + * @instance + * @returns {Object.} JSON object + */ + Metric.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return Metric; + })(); + + return Measurement; })(); - v1beta1.ListIndexEndpointsRequest = (function() { + v1beta1.Index = (function() { /** - * Properties of a ListIndexEndpointsRequest. + * Properties of an Index. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexEndpointsRequest - * @property {string|null} [parent] ListIndexEndpointsRequest parent - * @property {string|null} [filter] ListIndexEndpointsRequest filter - * @property {number|null} [pageSize] ListIndexEndpointsRequest pageSize - * @property {string|null} [pageToken] ListIndexEndpointsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexEndpointsRequest readMask + * @interface IIndex + * @property {string|null} [name] Index name + * @property {string|null} [displayName] Index displayName + * @property {string|null} [description] Index description + * @property {string|null} [metadataSchemaUri] Index metadataSchemaUri + * @property {google.protobuf.IValue|null} [metadata] Index metadata + * @property {Array.|null} [deployedIndexes] Index deployedIndexes + * @property {string|null} [etag] Index etag + * @property {Object.|null} [labels] Index labels + * @property {google.protobuf.ITimestamp|null} [createTime] Index createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] Index updateTime */ /** - * Constructs a new ListIndexEndpointsRequest. + * Constructs a new Index. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexEndpointsRequest. - * @implements IListIndexEndpointsRequest + * @classdesc Represents an Index. + * @implements IIndex * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set */ - function ListIndexEndpointsRequest(properties) { + function Index(properties) { + this.deployedIndexes = []; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -208400,127 +213412,215 @@ } /** - * ListIndexEndpointsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * Index name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.Index * @instance */ - ListIndexEndpointsRequest.prototype.parent = ""; + Index.prototype.name = ""; /** - * ListIndexEndpointsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * Index displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.Index * @instance */ - ListIndexEndpointsRequest.prototype.filter = ""; + Index.prototype.displayName = ""; /** - * ListIndexEndpointsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * Index description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.Index * @instance */ - ListIndexEndpointsRequest.prototype.pageSize = 0; + Index.prototype.description = ""; /** - * ListIndexEndpointsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * Index metadataSchemaUri. + * @member {string} metadataSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.Index * @instance */ - ListIndexEndpointsRequest.prototype.pageToken = ""; + Index.prototype.metadataSchemaUri = ""; /** - * ListIndexEndpointsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * Index metadata. + * @member {google.protobuf.IValue|null|undefined} metadata + * @memberof google.cloud.aiplatform.v1beta1.Index * @instance */ - ListIndexEndpointsRequest.prototype.readMask = null; + Index.prototype.metadata = null; /** - * Creates a new ListIndexEndpointsRequest instance using the specified properties. + * Index deployedIndexes. + * @member {Array.} deployedIndexes + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.deployedIndexes = $util.emptyArray; + + /** + * Index etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.etag = ""; + + /** + * Index labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.labels = $util.emptyObject; + + /** + * Index createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.createTime = null; + + /** + * Index updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.Index + * @instance + */ + Index.prototype.updateTime = null; + + /** + * Creates a new Index instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.Index * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IIndex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.Index} Index instance */ - ListIndexEndpointsRequest.create = function create(properties) { - return new ListIndexEndpointsRequest(properties); + Index.create = function create(properties) { + return new Index(properties); }; /** - * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * Encodes the specified Index message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.Index * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsRequest.encode = function encode(message, writer) { + Index.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.metadataSchemaUri != null && Object.hasOwnProperty.call(message, "metadataSchemaUri")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.metadataSchemaUri); + if (message.metadata != null && Object.hasOwnProperty.call(message, "metadata")) + $root.google.protobuf.Value.encode(message.metadata, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.deployedIndexes != null && message.deployedIndexes.length) + for (var i = 0; i < message.deployedIndexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.encode(message.deployedIndexes[i], writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 8, wireType 2 =*/66).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 9, wireType 2 =*/74).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. + * Encodes the specified Index message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.Index.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.Index * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IIndex} message Index message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { + Index.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. + * Decodes an Index message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.Index * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.Index} Index * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsRequest.decode = function decode(reader, length) { + Index.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.Index(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.name = reader.string(); break; case 2: - message.filter = reader.string(); + message.displayName = reader.string(); break; case 3: - message.pageSize = reader.int32(); + message.description = reader.string(); break; case 4: - message.pageToken = reader.string(); + message.metadataSchemaUri = reader.string(); break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + case 6: + message.metadata = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 7: + if (!(message.deployedIndexes && message.deployedIndexes.length)) + message.deployedIndexes = []; + message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.decode(reader, reader.uint32())); + break; + case 8: + message.etag = reader.string(); + break; + case 9: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 10: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 11: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -208531,147 +213631,239 @@ }; /** - * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. + * Decodes an Index message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.Index * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.Index} Index * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { + Index.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexEndpointsRequest message. + * Verifies an Index message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.Index * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexEndpointsRequest.verify = function verify(message) { + Index.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + if (!$util.isString(message.metadataSchemaUri)) + return "metadataSchemaUri: string expected"; + if (message.metadata != null && message.hasOwnProperty("metadata")) { + var error = $root.google.protobuf.Value.verify(message.metadata); if (error) - return "readMask." + error; + return "metadata." + error; + } + if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { + if (!Array.isArray(message.deployedIndexes)) + return "deployedIndexes: array expected"; + for (var i = 0; i < message.deployedIndexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.verify(message.deployedIndexes[i]); + if (error) + return "deployedIndexes." + error; + } + } + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; } return null; }; /** - * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. + * Creates an Index message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.Index * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest + * @returns {google.cloud.aiplatform.v1beta1.Index} Index */ - ListIndexEndpointsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) + Index.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.Index) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + var message = new $root.google.cloud.aiplatform.v1beta1.Index(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.metadataSchemaUri != null) + message.metadataSchemaUri = String(object.metadataSchemaUri); + if (object.metadata != null) { + if (typeof object.metadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.metadata: object expected"); + message.metadata = $root.google.protobuf.Value.fromObject(object.metadata); + } + if (object.deployedIndexes) { + if (!Array.isArray(object.deployedIndexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: array expected"); + message.deployedIndexes = []; + for (var i = 0; i < object.deployedIndexes.length; ++i) { + if (typeof object.deployedIndexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.deployedIndexes: object expected"); + message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.fromObject(object.deployedIndexes[i]); + } + } + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.Index.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); } return message; }; /** - * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. + * Creates a plain object from an Index message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.Index * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} message ListIndexEndpointsRequest + * @param {google.cloud.aiplatform.v1beta1.Index} message Index * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexEndpointsRequest.toObject = function toObject(message, options) { + Index.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.deployedIndexes = []; + if (options.objects || options.defaults) + object.labels = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.name = ""; + object.displayName = ""; + object.description = ""; + object.metadataSchemaUri = ""; + object.metadata = null; + object.etag = ""; + object.createTime = null; + object.updateTime = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.metadataSchemaUri != null && message.hasOwnProperty("metadataSchemaUri")) + object.metadataSchemaUri = message.metadataSchemaUri; + if (message.metadata != null && message.hasOwnProperty("metadata")) + object.metadata = $root.google.protobuf.Value.toObject(message.metadata, options); + if (message.deployedIndexes && message.deployedIndexes.length) { + object.deployedIndexes = []; + for (var j = 0; j < message.deployedIndexes.length; ++j) + object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndexRef.toObject(message.deployedIndexes[j], options); + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); return object; }; /** - * Converts this ListIndexEndpointsRequest to JSON. + * Converts this Index to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @memberof google.cloud.aiplatform.v1beta1.Index * @instance * @returns {Object.} JSON object */ - ListIndexEndpointsRequest.prototype.toJSON = function toJSON() { + Index.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIndexEndpointsRequest; + return Index; })(); - v1beta1.ListIndexEndpointsResponse = (function() { + v1beta1.IndexEndpoint = (function() { /** - * Properties of a ListIndexEndpointsResponse. + * Properties of an IndexEndpoint. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexEndpointsResponse - * @property {Array.|null} [indexEndpoints] ListIndexEndpointsResponse indexEndpoints - * @property {string|null} [nextPageToken] ListIndexEndpointsResponse nextPageToken + * @interface IIndexEndpoint + * @property {string|null} [name] IndexEndpoint name + * @property {string|null} [displayName] IndexEndpoint displayName + * @property {string|null} [description] IndexEndpoint description + * @property {Array.|null} [deployedIndexes] IndexEndpoint deployedIndexes + * @property {string|null} [etag] IndexEndpoint etag + * @property {Object.|null} [labels] IndexEndpoint labels + * @property {google.protobuf.ITimestamp|null} [createTime] IndexEndpoint createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] IndexEndpoint updateTime + * @property {string|null} [network] IndexEndpoint network + * @property {boolean|null} [enablePrivateServiceConnect] IndexEndpoint enablePrivateServiceConnect */ /** - * Constructs a new ListIndexEndpointsResponse. + * Constructs a new IndexEndpoint. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexEndpointsResponse. - * @implements IListIndexEndpointsResponse + * @classdesc Represents an IndexEndpoint. + * @implements IIndexEndpoint * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set */ - function ListIndexEndpointsResponse(properties) { - this.indexEndpoints = []; + function IndexEndpoint(properties) { + this.deployedIndexes = []; + this.labels = {}; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -208679,91 +213871,215 @@ } /** - * ListIndexEndpointsResponse indexEndpoints. - * @member {Array.} indexEndpoints - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * IndexEndpoint name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @instance */ - ListIndexEndpointsResponse.prototype.indexEndpoints = $util.emptyArray; + IndexEndpoint.prototype.name = ""; /** - * ListIndexEndpointsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * IndexEndpoint displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @instance */ - ListIndexEndpointsResponse.prototype.nextPageToken = ""; + IndexEndpoint.prototype.displayName = ""; /** - * Creates a new ListIndexEndpointsResponse instance using the specified properties. + * IndexEndpoint description. + * @member {string} description + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.description = ""; + + /** + * IndexEndpoint deployedIndexes. + * @member {Array.} deployedIndexes + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.deployedIndexes = $util.emptyArray; + + /** + * IndexEndpoint etag. + * @member {string} etag + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.etag = ""; + + /** + * IndexEndpoint labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.labels = $util.emptyObject; + + /** + * IndexEndpoint createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.createTime = null; + + /** + * IndexEndpoint updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.updateTime = null; + + /** + * IndexEndpoint network. + * @member {string} network + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.network = ""; + + /** + * IndexEndpoint enablePrivateServiceConnect. + * @member {boolean} enablePrivateServiceConnect + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint + * @instance + */ + IndexEndpoint.prototype.enablePrivateServiceConnect = false; + + /** + * Creates a new IndexEndpoint instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint instance */ - ListIndexEndpointsResponse.create = function create(properties) { - return new ListIndexEndpointsResponse(properties); + IndexEndpoint.create = function create(properties) { + return new IndexEndpoint(properties); }; /** - * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * Encodes the specified IndexEndpoint message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsResponse.encode = function encode(message, writer) { + IndexEndpoint.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoints != null && message.indexEndpoints.length) - for (var i = 0; i < message.indexEndpoints.length; ++i) - $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.description != null && Object.hasOwnProperty.call(message, "description")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.description); + if (message.deployedIndexes != null && message.deployedIndexes.length) + for (var i = 0; i < message.deployedIndexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndexes[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.etag != null && Object.hasOwnProperty.call(message, "etag")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.etag); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 6, wireType 2 =*/50).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.network != null && Object.hasOwnProperty.call(message, "network")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.network); + if (message.enablePrivateServiceConnect != null && Object.hasOwnProperty.call(message, "enablePrivateServiceConnect")) + writer.uint32(/* id 10, wireType 0 =*/80).bool(message.enablePrivateServiceConnect); return writer; }; /** - * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. + * Encodes the specified IndexEndpoint message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexEndpoint.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IIndexEndpoint} message IndexEndpoint message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { + IndexEndpoint.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. + * Decodes an IndexEndpoint message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsResponse.decode = function decode(reader, length) { + IndexEndpoint.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexEndpoint(), key, value; while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.indexEndpoints && message.indexEndpoints.length)) - message.indexEndpoints = []; - message.indexEndpoints.push($root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32())); + message.name = reader.string(); break; case 2: - message.nextPageToken = reader.string(); + message.displayName = reader.string(); + break; + case 3: + message.description = reader.string(); + break; + case 4: + if (!(message.deployedIndexes && message.deployedIndexes.length)) + message.deployedIndexes = []; + message.deployedIndexes.push($root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32())); + break; + case 5: + message.etag = reader.string(); + break; + case 6: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; + } + } + message.labels[key] = value; + break; + case 7: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 8: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 9: + message.network = reader.string(); + break; + case 10: + message.enablePrivateServiceConnect = reader.bool(); break; default: reader.skipType(tag & 7); @@ -208774,134 +214090,235 @@ }; /** - * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. + * Decodes an IndexEndpoint message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { + IndexEndpoint.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexEndpointsResponse message. + * Verifies an IndexEndpoint message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexEndpointsResponse.verify = function verify(message) { + IndexEndpoint.verify = function verify(message) { if (typeof message !== "object" || message === null) - return "object expected"; - if (message.indexEndpoints != null && message.hasOwnProperty("indexEndpoints")) { - if (!Array.isArray(message.indexEndpoints)) - return "indexEndpoints: array expected"; - for (var i = 0; i < message.indexEndpoints.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoints[i]); + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.description != null && message.hasOwnProperty("description")) + if (!$util.isString(message.description)) + return "description: string expected"; + if (message.deployedIndexes != null && message.hasOwnProperty("deployedIndexes")) { + if (!Array.isArray(message.deployedIndexes)) + return "deployedIndexes: array expected"; + for (var i = 0; i < message.deployedIndexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndexes[i]); if (error) - return "indexEndpoints." + error; + return "deployedIndexes." + error; } } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.etag != null && message.hasOwnProperty("etag")) + if (!$util.isString(message.etag)) + return "etag: string expected"; + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.network != null && message.hasOwnProperty("network")) + if (!$util.isString(message.network)) + return "network: string expected"; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + if (typeof message.enablePrivateServiceConnect !== "boolean") + return "enablePrivateServiceConnect: boolean expected"; return null; }; /** - * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. + * Creates an IndexEndpoint message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse + * @returns {google.cloud.aiplatform.v1beta1.IndexEndpoint} IndexEndpoint */ - ListIndexEndpointsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) + IndexEndpoint.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexEndpoint) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); - if (object.indexEndpoints) { - if (!Array.isArray(object.indexEndpoints)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: array expected"); - message.indexEndpoints = []; - for (var i = 0; i < object.indexEndpoints.length; ++i) { - if (typeof object.indexEndpoints[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: object expected"); - message.indexEndpoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoints[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.IndexEndpoint(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.description != null) + message.description = String(object.description); + if (object.deployedIndexes) { + if (!Array.isArray(object.deployedIndexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: array expected"); + message.deployedIndexes = []; + for (var i = 0; i < object.deployedIndexes.length; ++i) { + if (typeof object.deployedIndexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.deployedIndexes: object expected"); + message.deployedIndexes[i] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndexes[i]); } } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + if (object.etag != null) + message.etag = String(object.etag); + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.IndexEndpoint.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.network != null) + message.network = String(object.network); + if (object.enablePrivateServiceConnect != null) + message.enablePrivateServiceConnect = Boolean(object.enablePrivateServiceConnect); return message; }; /** - * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. + * Creates a plain object from an IndexEndpoint message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} message ListIndexEndpointsResponse + * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} message IndexEndpoint * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexEndpointsResponse.toObject = function toObject(message, options) { + IndexEndpoint.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.indexEndpoints = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.indexEndpoints && message.indexEndpoints.length) { - object.indexEndpoints = []; - for (var j = 0; j < message.indexEndpoints.length; ++j) - object.indexEndpoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoints[j], options); + object.deployedIndexes = []; + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.description = ""; + object.etag = ""; + object.createTime = null; + object.updateTime = null; + object.network = ""; + object.enablePrivateServiceConnect = false; } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.description != null && message.hasOwnProperty("description")) + object.description = message.description; + if (message.deployedIndexes && message.deployedIndexes.length) { + object.deployedIndexes = []; + for (var j = 0; j < message.deployedIndexes.length; ++j) + object.deployedIndexes[j] = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndexes[j], options); + } + if (message.etag != null && message.hasOwnProperty("etag")) + object.etag = message.etag; + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.network != null && message.hasOwnProperty("network")) + object.network = message.network; + if (message.enablePrivateServiceConnect != null && message.hasOwnProperty("enablePrivateServiceConnect")) + object.enablePrivateServiceConnect = message.enablePrivateServiceConnect; return object; }; /** - * Converts this ListIndexEndpointsResponse to JSON. + * Converts this IndexEndpoint to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpoint * @instance * @returns {Object.} JSON object */ - ListIndexEndpointsResponse.prototype.toJSON = function toJSON() { + IndexEndpoint.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIndexEndpointsResponse; + return IndexEndpoint; })(); - v1beta1.UpdateIndexEndpointRequest = (function() { + v1beta1.DeployedIndex = (function() { /** - * Properties of an UpdateIndexEndpointRequest. + * Properties of a DeployedIndex. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateIndexEndpointRequest - * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] UpdateIndexEndpointRequest indexEndpoint - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexEndpointRequest updateMask + * @interface IDeployedIndex + * @property {string|null} [id] DeployedIndex id + * @property {string|null} [index] DeployedIndex index + * @property {string|null} [displayName] DeployedIndex displayName + * @property {google.protobuf.ITimestamp|null} [createTime] DeployedIndex createTime + * @property {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null} [privateEndpoints] DeployedIndex privateEndpoints + * @property {google.protobuf.ITimestamp|null} [indexSyncTime] DeployedIndex indexSyncTime + * @property {google.cloud.aiplatform.v1beta1.IAutomaticResources|null} [automaticResources] DeployedIndex automaticResources + * @property {google.cloud.aiplatform.v1beta1.IDedicatedResources|null} [dedicatedResources] DeployedIndex dedicatedResources + * @property {boolean|null} [enableAccessLogging] DeployedIndex enableAccessLogging + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null} [deployedIndexAuthConfig] DeployedIndex deployedIndexAuthConfig + * @property {Array.|null} [reservedIpRanges] DeployedIndex reservedIpRanges + * @property {string|null} [deploymentGroup] DeployedIndex deploymentGroup */ /** - * Constructs a new UpdateIndexEndpointRequest. + * Constructs a new DeployedIndex. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexEndpointRequest. - * @implements IUpdateIndexEndpointRequest + * @classdesc Represents a DeployedIndex. + * @implements IDeployedIndex * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set */ - function UpdateIndexEndpointRequest(properties) { + function DeployedIndex(properties) { + this.reservedIpRanges = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -208909,88 +214326,221 @@ } /** - * UpdateIndexEndpointRequest indexEndpoint. - * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * DeployedIndex id. + * @member {string} id + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @instance */ - UpdateIndexEndpointRequest.prototype.indexEndpoint = null; + DeployedIndex.prototype.id = ""; /** - * UpdateIndexEndpointRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * DeployedIndex index. + * @member {string} index + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @instance */ - UpdateIndexEndpointRequest.prototype.updateMask = null; + DeployedIndex.prototype.index = ""; /** - * Creates a new UpdateIndexEndpointRequest instance using the specified properties. + * DeployedIndex displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.displayName = ""; + + /** + * DeployedIndex createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.createTime = null; + + /** + * DeployedIndex privateEndpoints. + * @member {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints|null|undefined} privateEndpoints + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.privateEndpoints = null; + + /** + * DeployedIndex indexSyncTime. + * @member {google.protobuf.ITimestamp|null|undefined} indexSyncTime + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.indexSyncTime = null; + + /** + * DeployedIndex automaticResources. + * @member {google.cloud.aiplatform.v1beta1.IAutomaticResources|null|undefined} automaticResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.automaticResources = null; + + /** + * DeployedIndex dedicatedResources. + * @member {google.cloud.aiplatform.v1beta1.IDedicatedResources|null|undefined} dedicatedResources + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.dedicatedResources = null; + + /** + * DeployedIndex enableAccessLogging. + * @member {boolean} enableAccessLogging + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.enableAccessLogging = false; + + /** + * DeployedIndex deployedIndexAuthConfig. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig|null|undefined} deployedIndexAuthConfig + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.deployedIndexAuthConfig = null; + + /** + * DeployedIndex reservedIpRanges. + * @member {Array.} reservedIpRanges + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.reservedIpRanges = $util.emptyArray; + + /** + * DeployedIndex deploymentGroup. + * @member {string} deploymentGroup + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex + * @instance + */ + DeployedIndex.prototype.deploymentGroup = ""; + + /** + * Creates a new DeployedIndex instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex instance */ - UpdateIndexEndpointRequest.create = function create(properties) { - return new UpdateIndexEndpointRequest(properties); + DeployedIndex.create = function create(properties) { + return new DeployedIndex(properties); }; /** - * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified DeployedIndex message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexEndpointRequest.encode = function encode(message, writer) { + DeployedIndex.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.id != null && Object.hasOwnProperty.call(message, "id")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.id); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.index); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.displayName); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.privateEndpoints != null && Object.hasOwnProperty.call(message, "privateEndpoints")) + $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.encode(message.privateEndpoints, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.indexSyncTime != null && Object.hasOwnProperty.call(message, "indexSyncTime")) + $root.google.protobuf.Timestamp.encode(message.indexSyncTime, writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.automaticResources != null && Object.hasOwnProperty.call(message, "automaticResources")) + $root.google.cloud.aiplatform.v1beta1.AutomaticResources.encode(message.automaticResources, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.enableAccessLogging != null && Object.hasOwnProperty.call(message, "enableAccessLogging")) + writer.uint32(/* id 8, wireType 0 =*/64).bool(message.enableAccessLogging); + if (message.deployedIndexAuthConfig != null && Object.hasOwnProperty.call(message, "deployedIndexAuthConfig")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.encode(message.deployedIndexAuthConfig, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim(); + if (message.reservedIpRanges != null && message.reservedIpRanges.length) + for (var i = 0; i < message.reservedIpRanges.length; ++i) + writer.uint32(/* id 10, wireType 2 =*/82).string(message.reservedIpRanges[i]); + if (message.deploymentGroup != null && Object.hasOwnProperty.call(message, "deploymentGroup")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.deploymentGroup); + if (message.dedicatedResources != null && Object.hasOwnProperty.call(message, "dedicatedResources")) + $root.google.cloud.aiplatform.v1beta1.DedicatedResources.encode(message.dedicatedResources, writer.uint32(/* id 16, wireType 2 =*/130).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. + * Encodes the specified DeployedIndex message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndex.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndex} message DeployedIndex message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeployedIndex.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. + * Decodes a DeployedIndex message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexEndpointRequest.decode = function decode(reader, length) { + DeployedIndex.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndex(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); + message.id = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.index = reader.string(); + break; + case 3: + message.displayName = reader.string(); + break; + case 4: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 5: + message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.decode(reader, reader.uint32()); + break; + case 6: + message.indexSyncTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 7: + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.decode(reader, reader.uint32()); + break; + case 16: + message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.decode(reader, reader.uint32()); + break; + case 8: + message.enableAccessLogging = reader.bool(); + break; + case 9: + message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.decode(reader, reader.uint32()); + break; + case 10: + if (!(message.reservedIpRanges && message.reservedIpRanges.length)) + message.reservedIpRanges = []; + message.reservedIpRanges.push(reader.string()); + break; + case 11: + message.deploymentGroup = reader.string(); break; default: reader.skipType(tag & 7); @@ -209001,126 +214551,239 @@ }; /** - * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployedIndex message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + DeployedIndex.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexEndpointRequest message. + * Verifies a DeployedIndex message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexEndpointRequest.verify = function verify(message) { + DeployedIndex.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { - var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); + if (message.id != null && message.hasOwnProperty("id")) + if (!$util.isString(message.id)) + return "id: string expected"; + if (message.index != null && message.hasOwnProperty("index")) + if (!$util.isString(message.index)) + return "index: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); if (error) - return "indexEndpoint." + error; + return "createTime." + error; } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify(message.privateEndpoints); if (error) - return "updateMask." + error; + return "privateEndpoints." + error; + } + if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.indexSyncTime); + if (error) + return "indexSyncTime." + error; + } + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) { + var error = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.verify(message.automaticResources); + if (error) + return "automaticResources." + error; + } + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) { + var error = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.verify(message.dedicatedResources); + if (error) + return "dedicatedResources." + error; + } + if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) + if (typeof message.enableAccessLogging !== "boolean") + return "enableAccessLogging: boolean expected"; + if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify(message.deployedIndexAuthConfig); + if (error) + return "deployedIndexAuthConfig." + error; + } + if (message.reservedIpRanges != null && message.hasOwnProperty("reservedIpRanges")) { + if (!Array.isArray(message.reservedIpRanges)) + return "reservedIpRanges: array expected"; + for (var i = 0; i < message.reservedIpRanges.length; ++i) + if (!$util.isString(message.reservedIpRanges[i])) + return "reservedIpRanges: string[] expected"; } + if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) + if (!$util.isString(message.deploymentGroup)) + return "deploymentGroup: string expected"; return null; }; /** - * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedIndex message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndex} DeployedIndex */ - UpdateIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) + DeployedIndex.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndex) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); - if (object.indexEndpoint != null) { - if (typeof object.indexEndpoint !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.indexEndpoint: object expected"); - message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndex(); + if (object.id != null) + message.id = String(object.id); + if (object.index != null) + message.index = String(object.index); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + if (object.privateEndpoints != null) { + if (typeof object.privateEndpoints !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.privateEndpoints: object expected"); + message.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.fromObject(object.privateEndpoints); + } + if (object.indexSyncTime != null) { + if (typeof object.indexSyncTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.indexSyncTime: object expected"); + message.indexSyncTime = $root.google.protobuf.Timestamp.fromObject(object.indexSyncTime); + } + if (object.automaticResources != null) { + if (typeof object.automaticResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.automaticResources: object expected"); + message.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.fromObject(object.automaticResources); } + if (object.dedicatedResources != null) { + if (typeof object.dedicatedResources !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.dedicatedResources: object expected"); + message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.fromObject(object.dedicatedResources); + } + if (object.enableAccessLogging != null) + message.enableAccessLogging = Boolean(object.enableAccessLogging); + if (object.deployedIndexAuthConfig != null) { + if (typeof object.deployedIndexAuthConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.deployedIndexAuthConfig: object expected"); + message.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.fromObject(object.deployedIndexAuthConfig); + } + if (object.reservedIpRanges) { + if (!Array.isArray(object.reservedIpRanges)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndex.reservedIpRanges: array expected"); + message.reservedIpRanges = []; + for (var i = 0; i < object.reservedIpRanges.length; ++i) + message.reservedIpRanges[i] = String(object.reservedIpRanges[i]); + } + if (object.deploymentGroup != null) + message.deploymentGroup = String(object.deploymentGroup); return message; }; /** - * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeployedIndex message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} message UpdateIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.DeployedIndex} message DeployedIndex * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexEndpointRequest.toObject = function toObject(message, options) { + DeployedIndex.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.reservedIpRanges = []; if (options.defaults) { - object.indexEndpoint = null; - object.updateMask = null; + object.id = ""; + object.index = ""; + object.displayName = ""; + object.createTime = null; + object.privateEndpoints = null; + object.indexSyncTime = null; + object.automaticResources = null; + object.enableAccessLogging = false; + object.deployedIndexAuthConfig = null; + object.deploymentGroup = ""; + object.dedicatedResources = null; } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.id != null && message.hasOwnProperty("id")) + object.id = message.id; + if (message.index != null && message.hasOwnProperty("index")) + object.index = message.index; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.privateEndpoints != null && message.hasOwnProperty("privateEndpoints")) + object.privateEndpoints = $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.toObject(message.privateEndpoints, options); + if (message.indexSyncTime != null && message.hasOwnProperty("indexSyncTime")) + object.indexSyncTime = $root.google.protobuf.Timestamp.toObject(message.indexSyncTime, options); + if (message.automaticResources != null && message.hasOwnProperty("automaticResources")) + object.automaticResources = $root.google.cloud.aiplatform.v1beta1.AutomaticResources.toObject(message.automaticResources, options); + if (message.enableAccessLogging != null && message.hasOwnProperty("enableAccessLogging")) + object.enableAccessLogging = message.enableAccessLogging; + if (message.deployedIndexAuthConfig != null && message.hasOwnProperty("deployedIndexAuthConfig")) + object.deployedIndexAuthConfig = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.toObject(message.deployedIndexAuthConfig, options); + if (message.reservedIpRanges && message.reservedIpRanges.length) { + object.reservedIpRanges = []; + for (var j = 0; j < message.reservedIpRanges.length; ++j) + object.reservedIpRanges[j] = message.reservedIpRanges[j]; + } + if (message.deploymentGroup != null && message.hasOwnProperty("deploymentGroup")) + object.deploymentGroup = message.deploymentGroup; + if (message.dedicatedResources != null && message.hasOwnProperty("dedicatedResources")) + object.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.DedicatedResources.toObject(message.dedicatedResources, options); return object; }; /** - * Converts this UpdateIndexEndpointRequest to JSON. + * Converts this DeployedIndex to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndex * @instance * @returns {Object.} JSON object */ - UpdateIndexEndpointRequest.prototype.toJSON = function toJSON() { + DeployedIndex.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIndexEndpointRequest; + return DeployedIndex; })(); - v1beta1.DeleteIndexEndpointRequest = (function() { + v1beta1.DeployedIndexAuthConfig = (function() { /** - * Properties of a DeleteIndexEndpointRequest. + * Properties of a DeployedIndexAuthConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteIndexEndpointRequest - * @property {string|null} [name] DeleteIndexEndpointRequest name + * @interface IDeployedIndexAuthConfig + * @property {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null} [authProvider] DeployedIndexAuthConfig authProvider */ /** - * Constructs a new DeleteIndexEndpointRequest. + * Constructs a new DeployedIndexAuthConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteIndexEndpointRequest. - * @implements IDeleteIndexEndpointRequest + * @classdesc Represents a DeployedIndexAuthConfig. + * @implements IDeployedIndexAuthConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set */ - function DeleteIndexEndpointRequest(properties) { + function DeployedIndexAuthConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -209128,75 +214791,75 @@ } /** - * DeleteIndexEndpointRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * DeployedIndexAuthConfig authProvider. + * @member {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider|null|undefined} authProvider + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @instance */ - DeleteIndexEndpointRequest.prototype.name = ""; + DeployedIndexAuthConfig.prototype.authProvider = null; /** - * Creates a new DeleteIndexEndpointRequest instance using the specified properties. + * Creates a new DeployedIndexAuthConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig instance */ - DeleteIndexEndpointRequest.create = function create(properties) { - return new DeleteIndexEndpointRequest(properties); + DeployedIndexAuthConfig.create = function create(properties) { + return new DeployedIndexAuthConfig(properties); }; /** - * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * Encodes the specified DeployedIndexAuthConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexEndpointRequest.encode = function encode(message, writer) { + DeployedIndexAuthConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.authProvider != null && Object.hasOwnProperty.call(message, "authProvider")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.encode(message.authProvider, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. + * Encodes the specified DeployedIndexAuthConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployedIndexAuthConfig} message DeployedIndexAuthConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeployedIndexAuthConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexEndpointRequest.decode = function decode(reader, length) { + DeployedIndexAuthConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -209207,108 +214870,355 @@ }; /** - * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployedIndexAuthConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { + DeployedIndexAuthConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIndexEndpointRequest message. + * Verifies a DeployedIndexAuthConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIndexEndpointRequest.verify = function verify(message) { + DeployedIndexAuthConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.authProvider != null && message.hasOwnProperty("authProvider")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify(message.authProvider); + if (error) + return "authProvider." + error; + } return null; }; /** - * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployedIndexAuthConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} DeployedIndexAuthConfig */ - DeleteIndexEndpointRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) + DeployedIndexAuthConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig(); + if (object.authProvider != null) { + if (typeof object.authProvider !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.authProvider: object expected"); + message.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.fromObject(object.authProvider); + } return message; }; /** - * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeployedIndexAuthConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} message DeleteIndexEndpointRequest + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig} message DeployedIndexAuthConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexEndpointRequest.toObject = function toObject(message, options) { + DeployedIndexAuthConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.authProvider = null; + if (message.authProvider != null && message.hasOwnProperty("authProvider")) + object.authProvider = $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.toObject(message.authProvider, options); return object; }; /** - * Converts this DeleteIndexEndpointRequest to JSON. + * Converts this DeployedIndexAuthConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig * @instance * @returns {Object.} JSON object */ - DeleteIndexEndpointRequest.prototype.toJSON = function toJSON() { + DeployedIndexAuthConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteIndexEndpointRequest; + DeployedIndexAuthConfig.AuthProvider = (function() { + + /** + * Properties of an AuthProvider. + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @interface IAuthProvider + * @property {Array.|null} [audiences] AuthProvider audiences + * @property {Array.|null} [allowedIssuers] AuthProvider allowedIssuers + */ + + /** + * Constructs a new AuthProvider. + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig + * @classdesc Represents an AuthProvider. + * @implements IAuthProvider + * @constructor + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set + */ + function AuthProvider(properties) { + this.audiences = []; + this.allowedIssuers = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * AuthProvider audiences. + * @member {Array.} audiences + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @instance + */ + AuthProvider.prototype.audiences = $util.emptyArray; + + /** + * AuthProvider allowedIssuers. + * @member {Array.} allowedIssuers + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @instance + */ + AuthProvider.prototype.allowedIssuers = $util.emptyArray; + + /** + * Creates a new AuthProvider instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider instance + */ + AuthProvider.create = function create(properties) { + return new AuthProvider(properties); + }; + + /** + * Encodes the specified AuthProvider message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuthProvider.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.audiences != null && message.audiences.length) + for (var i = 0; i < message.audiences.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.audiences[i]); + if (message.allowedIssuers != null && message.allowedIssuers.length) + for (var i = 0; i < message.allowedIssuers.length; ++i) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.allowedIssuers[i]); + return writer; + }; + + /** + * Encodes the specified AuthProvider message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.IAuthProvider} message AuthProvider message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + AuthProvider.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an AuthProvider message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuthProvider.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.audiences && message.audiences.length)) + message.audiences = []; + message.audiences.push(reader.string()); + break; + case 2: + if (!(message.allowedIssuers && message.allowedIssuers.length)) + message.allowedIssuers = []; + message.allowedIssuers.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an AuthProvider message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + AuthProvider.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an AuthProvider message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + AuthProvider.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.audiences != null && message.hasOwnProperty("audiences")) { + if (!Array.isArray(message.audiences)) + return "audiences: array expected"; + for (var i = 0; i < message.audiences.length; ++i) + if (!$util.isString(message.audiences[i])) + return "audiences: string[] expected"; + } + if (message.allowedIssuers != null && message.hasOwnProperty("allowedIssuers")) { + if (!Array.isArray(message.allowedIssuers)) + return "allowedIssuers: array expected"; + for (var i = 0; i < message.allowedIssuers.length; ++i) + if (!$util.isString(message.allowedIssuers[i])) + return "allowedIssuers: string[] expected"; + } + return null; + }; + + /** + * Creates an AuthProvider message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} AuthProvider + */ + AuthProvider.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider(); + if (object.audiences) { + if (!Array.isArray(object.audiences)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.audiences: array expected"); + message.audiences = []; + for (var i = 0; i < object.audiences.length; ++i) + message.audiences[i] = String(object.audiences[i]); + } + if (object.allowedIssuers) { + if (!Array.isArray(object.allowedIssuers)) + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider.allowedIssuers: array expected"); + message.allowedIssuers = []; + for (var i = 0; i < object.allowedIssuers.length; ++i) + message.allowedIssuers[i] = String(object.allowedIssuers[i]); + } + return message; + }; + + /** + * Creates a plain object from an AuthProvider message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @static + * @param {google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider} message AuthProvider + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + AuthProvider.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.audiences = []; + object.allowedIssuers = []; + } + if (message.audiences && message.audiences.length) { + object.audiences = []; + for (var j = 0; j < message.audiences.length; ++j) + object.audiences[j] = message.audiences[j]; + } + if (message.allowedIssuers && message.allowedIssuers.length) { + object.allowedIssuers = []; + for (var j = 0; j < message.allowedIssuers.length; ++j) + object.allowedIssuers[j] = message.allowedIssuers[j]; + } + return object; + }; + + /** + * Converts this AuthProvider to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.DeployedIndexAuthConfig.AuthProvider + * @instance + * @returns {Object.} JSON object + */ + AuthProvider.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return AuthProvider; + })(); + + return DeployedIndexAuthConfig; })(); - v1beta1.DeployIndexRequest = (function() { + v1beta1.IndexPrivateEndpoints = (function() { /** - * Properties of a DeployIndexRequest. + * Properties of an IndexPrivateEndpoints. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexRequest - * @property {string|null} [indexEndpoint] DeployIndexRequest indexEndpoint - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexRequest deployedIndex + * @interface IIndexPrivateEndpoints + * @property {string|null} [matchGrpcAddress] IndexPrivateEndpoints matchGrpcAddress + * @property {string|null} [serviceAttachment] IndexPrivateEndpoints serviceAttachment */ /** - * Constructs a new DeployIndexRequest. + * Constructs a new IndexPrivateEndpoints. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexRequest. - * @implements IDeployIndexRequest + * @classdesc Represents an IndexPrivateEndpoints. + * @implements IIndexPrivateEndpoints * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set */ - function DeployIndexRequest(properties) { + function IndexPrivateEndpoints(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -209316,88 +215226,88 @@ } /** - * DeployIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * IndexPrivateEndpoints matchGrpcAddress. + * @member {string} matchGrpcAddress + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @instance */ - DeployIndexRequest.prototype.indexEndpoint = ""; + IndexPrivateEndpoints.prototype.matchGrpcAddress = ""; /** - * DeployIndexRequest deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * IndexPrivateEndpoints serviceAttachment. + * @member {string} serviceAttachment + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @instance */ - DeployIndexRequest.prototype.deployedIndex = null; + IndexPrivateEndpoints.prototype.serviceAttachment = ""; /** - * Creates a new DeployIndexRequest instance using the specified properties. + * Creates a new IndexPrivateEndpoints instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints instance */ - DeployIndexRequest.create = function create(properties) { - return new DeployIndexRequest(properties); + IndexPrivateEndpoints.create = function create(properties) { + return new IndexPrivateEndpoints(properties); }; /** - * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * Encodes the specified IndexPrivateEndpoints message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexRequest.encode = function encode(message, writer) { + IndexPrivateEndpoints.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.matchGrpcAddress != null && Object.hasOwnProperty.call(message, "matchGrpcAddress")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.matchGrpcAddress); + if (message.serviceAttachment != null && Object.hasOwnProperty.call(message, "serviceAttachment")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.serviceAttachment); return writer; }; /** - * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. + * Encodes the specified IndexPrivateEndpoints message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IIndexPrivateEndpoints} message IndexPrivateEndpoints message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + IndexPrivateEndpoints.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer. + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexRequest.decode = function decode(reader, length) { + IndexPrivateEndpoints.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.indexEndpoint = reader.string(); + message.matchGrpcAddress = reader.string(); break; case 2: - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + message.serviceAttachment = reader.string(); break; default: reader.skipType(tag & 7); @@ -209408,314 +215318,416 @@ }; /** - * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an IndexPrivateEndpoints message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + IndexPrivateEndpoints.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexRequest message. + * Verifies an IndexPrivateEndpoints message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexRequest.verify = function verify(message) { + IndexPrivateEndpoints.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; - } + if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) + if (!$util.isString(message.matchGrpcAddress)) + return "matchGrpcAddress: string expected"; + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + if (!$util.isString(message.serviceAttachment)) + return "serviceAttachment: string expected"; return null; }; /** - * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an IndexPrivateEndpoints message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} IndexPrivateEndpoints */ - DeployIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest) + IndexPrivateEndpoints.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexRequest.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); - } + var message = new $root.google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints(); + if (object.matchGrpcAddress != null) + message.matchGrpcAddress = String(object.matchGrpcAddress); + if (object.serviceAttachment != null) + message.serviceAttachment = String(object.serviceAttachment); return message; }; /** - * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from an IndexPrivateEndpoints message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexRequest} message DeployIndexRequest + * @param {google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints} message IndexPrivateEndpoints * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexRequest.toObject = function toObject(message, options) { + IndexPrivateEndpoints.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndex = null; + object.matchGrpcAddress = ""; + object.serviceAttachment = ""; } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); + if (message.matchGrpcAddress != null && message.hasOwnProperty("matchGrpcAddress")) + object.matchGrpcAddress = message.matchGrpcAddress; + if (message.serviceAttachment != null && message.hasOwnProperty("serviceAttachment")) + object.serviceAttachment = message.serviceAttachment; return object; }; /** - * Converts this DeployIndexRequest to JSON. + * Converts this IndexPrivateEndpoints to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.IndexPrivateEndpoints * @instance * @returns {Object.} JSON object */ - DeployIndexRequest.prototype.toJSON = function toJSON() { + IndexPrivateEndpoints.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployIndexRequest; + return IndexPrivateEndpoints; })(); - v1beta1.DeployIndexResponse = (function() { + v1beta1.IndexEndpointService = (function() { /** - * Properties of a DeployIndexResponse. + * Constructs a new IndexEndpointService service. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexResponse - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexResponse deployedIndex + * @classdesc Represents an IndexEndpointService + * @extends $protobuf.rpc.Service + * @constructor + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + */ + function IndexEndpointService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); + } + + (IndexEndpointService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexEndpointService; + + /** + * Creates new IndexEndpointService service using the specified rpc implementation. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @static + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {IndexEndpointService} RPC service. Useful where requests and/or responses are streamed. */ + IndexEndpointService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); + }; /** - * Constructs a new DeployIndexResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexResponse. - * @implements IDeployIndexResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#createIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef CreateIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function DeployIndexResponse(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * DeployIndexResponse deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * Calls CreateIndexEndpoint. + * @function createIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.CreateIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - DeployIndexResponse.prototype.deployedIndex = null; + Object.defineProperty(IndexEndpointService.prototype.createIndexEndpoint = function createIndexEndpoint(request, callback) { + return this.rpcCall(createIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateIndexEndpoint" }); /** - * Creates a new DeployIndexResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse instance + * Calls CreateIndexEndpoint. + * @function createIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} request CreateIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeployIndexResponse.create = function create(properties) { - return new DeployIndexResponse(properties); - }; /** - * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#getIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef GetIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint */ - DeployIndexResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - return writer; - }; /** - * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls GetIndexEndpoint. + * @function getIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.GetIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint + * @returns {undefined} + * @variation 1 */ - DeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(IndexEndpointService.prototype.getIndexEndpoint = function getIndexEndpoint(request, callback) { + return this.rpcCall(getIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); + }, "name", { value: "GetIndexEndpoint" }); /** - * Decodes a DeployIndexResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls GetIndexEndpoint. + * @function getIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} request GetIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeployIndexResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#listIndexEndpoints}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef ListIndexEndpointsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} [response] ListIndexEndpointsResponse */ - DeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a DeployIndexResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls ListIndexEndpoints. + * @function listIndexEndpoints + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.ListIndexEndpointsCallback} callback Node-style callback called with the error, if any, and ListIndexEndpointsResponse + * @returns {undefined} + * @variation 1 */ - DeployIndexResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; - } - return null; - }; + Object.defineProperty(IndexEndpointService.prototype.listIndexEndpoints = function listIndexEndpoints(request, callback) { + return this.rpcCall(listIndexEndpoints, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse, request, callback); + }, "name", { value: "ListIndexEndpoints" }); /** - * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse + * Calls ListIndexEndpoints. + * @function listIndexEndpoints + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} request ListIndexEndpointsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeployIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexResponse.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); - } - return message; - }; /** - * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexResponse} message DeployIndexResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#updateIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef UpdateIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.IndexEndpoint} [response] IndexEndpoint */ - DeployIndexResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.deployedIndex = null; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); - return object; - }; /** - * Converts this DeployIndexResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse + * Calls UpdateIndexEndpoint. + * @function updateIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UpdateIndexEndpointCallback} callback Node-style callback called with the error, if any, and IndexEndpoint + * @returns {undefined} + * @variation 1 */ - DeployIndexResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + Object.defineProperty(IndexEndpointService.prototype.updateIndexEndpoint = function updateIndexEndpoint(request, callback) { + return this.rpcCall(updateIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest, $root.google.cloud.aiplatform.v1beta1.IndexEndpoint, request, callback); + }, "name", { value: "UpdateIndexEndpoint" }); - return DeployIndexResponse; + /** + * Calls UpdateIndexEndpoint. + * @function updateIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} request UpdateIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#deleteIndexEndpoint}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef DeleteIndexEndpointCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteIndexEndpoint. + * @function deleteIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeleteIndexEndpointCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.deleteIndexEndpoint = function deleteIndexEndpoint(request, callback) { + return this.rpcCall(deleteIndexEndpoint, $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteIndexEndpoint" }); + + /** + * Calls DeleteIndexEndpoint. + * @function deleteIndexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} request DeleteIndexEndpointRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#deployIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef DeployIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeployIndex. + * @function deployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.DeployIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.deployIndex = function deployIndex(request, callback) { + return this.rpcCall(deployIndex, $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeployIndex" }); + + /** + * Calls DeployIndex. + * @function deployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} request DeployIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#undeployIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef UndeployIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls UndeployIndex. + * @function undeployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.UndeployIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.undeployIndex = function undeployIndex(request, callback) { + return this.rpcCall(undeployIndex, $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UndeployIndex" }); + + /** + * Calls UndeployIndex. + * @function undeployIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} request UndeployIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexEndpointService#mutateDeployedIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @typedef MutateDeployedIndexCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls MutateDeployedIndex. + * @function mutateDeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexEndpointService.MutateDeployedIndexCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(IndexEndpointService.prototype.mutateDeployedIndex = function mutateDeployedIndex(request, callback) { + return this.rpcCall(mutateDeployedIndex, $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "MutateDeployedIndex" }); + + /** + * Calls MutateDeployedIndex. + * @function mutateDeployedIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexEndpointService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} request MutateDeployedIndexRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + + return IndexEndpointService; })(); - v1beta1.DeployIndexOperationMetadata = (function() { + v1beta1.CreateIndexEndpointRequest = (function() { /** - * Properties of a DeployIndexOperationMetadata. + * Properties of a CreateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeployIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployIndexOperationMetadata genericMetadata - * @property {string|null} [deployedIndexId] DeployIndexOperationMetadata deployedIndexId + * @interface ICreateIndexEndpointRequest + * @property {string|null} [parent] CreateIndexEndpointRequest parent + * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] CreateIndexEndpointRequest indexEndpoint */ /** - * Constructs a new DeployIndexOperationMetadata. + * Constructs a new CreateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeployIndexOperationMetadata. - * @implements IDeployIndexOperationMetadata + * @classdesc Represents a CreateIndexEndpointRequest. + * @implements ICreateIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set */ - function DeployIndexOperationMetadata(properties) { + function CreateIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -209723,88 +215735,88 @@ } /** - * DeployIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * CreateIndexEndpointRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @instance */ - DeployIndexOperationMetadata.prototype.genericMetadata = null; + CreateIndexEndpointRequest.prototype.parent = ""; /** - * DeployIndexOperationMetadata deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * CreateIndexEndpointRequest indexEndpoint. + * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @instance */ - DeployIndexOperationMetadata.prototype.deployedIndexId = ""; + CreateIndexEndpointRequest.prototype.indexEndpoint = null; /** - * Creates a new DeployIndexOperationMetadata instance using the specified properties. + * Creates a new CreateIndexEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest instance */ - DeployIndexOperationMetadata.create = function create(properties) { - return new DeployIndexOperationMetadata(properties); + CreateIndexEndpointRequest.create = function create(properties) { + return new CreateIndexEndpointRequest(properties); }; /** - * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified CreateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexOperationMetadata.encode = function encode(message, writer) { + CreateIndexEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified CreateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointRequest} message CreateIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexOperationMetadata.decode = function decode(reader, length) { + CreateIndexEndpointRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.deployedIndexId = reader.string(); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -209815,122 +215827,121 @@ }; /** - * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeployIndexOperationMetadata message. + * Verifies a CreateIndexEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeployIndexOperationMetadata.verify = function verify(message) { + CreateIndexEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); if (error) - return "genericMetadata." + error; + return "indexEndpoint." + error; } - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; return null; }; /** - * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} CreateIndexEndpointRequest */ - DeployIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) + CreateIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.indexEndpoint != null) { + if (typeof object.indexEndpoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest.indexEndpoint: object expected"); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); } - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a CreateIndexEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} message DeployIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest} message CreateIndexEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeployIndexOperationMetadata.toObject = function toObject(message, options) { + CreateIndexEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.genericMetadata = null; - object.deployedIndexId = ""; + object.parent = ""; + object.indexEndpoint = null; } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); return object; }; /** - * Converts this DeployIndexOperationMetadata to JSON. + * Converts this CreateIndexEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointRequest * @instance * @returns {Object.} JSON object */ - DeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + CreateIndexEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeployIndexOperationMetadata; + return CreateIndexEndpointRequest; })(); - v1beta1.UndeployIndexRequest = (function() { + v1beta1.CreateIndexEndpointOperationMetadata = (function() { /** - * Properties of an UndeployIndexRequest. + * Properties of a CreateIndexEndpointOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexRequest - * @property {string|null} [indexEndpoint] UndeployIndexRequest indexEndpoint - * @property {string|null} [deployedIndexId] UndeployIndexRequest deployedIndexId + * @interface ICreateIndexEndpointOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexEndpointOperationMetadata genericMetadata */ /** - * Constructs a new UndeployIndexRequest. + * Constructs a new CreateIndexEndpointOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexRequest. - * @implements IUndeployIndexRequest + * @classdesc Represents a CreateIndexEndpointOperationMetadata. + * @implements ICreateIndexEndpointOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set */ - function UndeployIndexRequest(properties) { + function CreateIndexEndpointOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -209938,88 +215949,75 @@ } /** - * UndeployIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest - * @instance - */ - UndeployIndexRequest.prototype.indexEndpoint = ""; - - /** - * UndeployIndexRequest deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * CreateIndexEndpointOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @instance */ - UndeployIndexRequest.prototype.deployedIndexId = ""; + CreateIndexEndpointOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new UndeployIndexRequest instance using the specified properties. + * Creates a new CreateIndexEndpointOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata instance */ - UndeployIndexRequest.create = function create(properties) { - return new UndeployIndexRequest(properties); + CreateIndexEndpointOperationMetadata.create = function create(properties) { + return new CreateIndexEndpointOperationMetadata(properties); }; /** - * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * Encodes the specified CreateIndexEndpointOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexRequest.encode = function encode(message, writer) { + CreateIndexEndpointOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. + * Encodes the specified CreateIndexEndpointOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateIndexEndpointOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer. + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexRequest.decode = function decode(reader, length) { + CreateIndexEndpointOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.indexEndpoint = reader.string(); - break; - case 2: - message.deployedIndexId = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -210030,115 +216028,112 @@ }; /** - * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateIndexEndpointOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { + CreateIndexEndpointOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexRequest message. + * Verifies a CreateIndexEndpointOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployIndexRequest.verify = function verify(message) { + CreateIndexEndpointOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } return null; }; /** - * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateIndexEndpointOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} CreateIndexEndpointOperationMetadata */ - UndeployIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) + CreateIndexEndpointOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } return message; }; /** - * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateIndexEndpointOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} message UndeployIndexRequest + * @param {google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata} message CreateIndexEndpointOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexRequest.toObject = function toObject(message, options) { + CreateIndexEndpointOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndexId = ""; - } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this UndeployIndexRequest to JSON. + * Converts this CreateIndexEndpointOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexEndpointOperationMetadata * @instance * @returns {Object.} JSON object */ - UndeployIndexRequest.prototype.toJSON = function toJSON() { + CreateIndexEndpointOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployIndexRequest; + return CreateIndexEndpointOperationMetadata; })(); - v1beta1.UndeployIndexResponse = (function() { + v1beta1.GetIndexEndpointRequest = (function() { /** - * Properties of an UndeployIndexResponse. + * Properties of a GetIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexResponse + * @interface IGetIndexEndpointRequest + * @property {string|null} [name] GetIndexEndpointRequest name */ /** - * Constructs a new UndeployIndexResponse. + * Constructs a new GetIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexResponse. - * @implements IUndeployIndexResponse + * @classdesc Represents a GetIndexEndpointRequest. + * @implements IGetIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set */ - function UndeployIndexResponse(properties) { + function GetIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210146,63 +216141,76 @@ } /** - * Creates a new UndeployIndexResponse instance using the specified properties. + * GetIndexEndpointRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest + * @instance + */ + GetIndexEndpointRequest.prototype.name = ""; + + /** + * Creates a new GetIndexEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse instance + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest instance */ - UndeployIndexResponse.create = function create(properties) { - return new UndeployIndexResponse(properties); + GetIndexEndpointRequest.create = function create(properties) { + return new GetIndexEndpointRequest(properties); }; /** - * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * Encodes the specified GetIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexResponse.encode = function encode(message, writer) { + GetIndexEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. + * Encodes the specified GetIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetIndexEndpointRequest} message GetIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer. + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexResponse.decode = function decode(reader, length) { + GetIndexEndpointRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -210212,94 +216220,111 @@ }; /** - * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. + * Decodes a GetIndexEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { + GetIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexResponse message. + * Verifies a GetIndexEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployIndexResponse.verify = function verify(message) { + GetIndexEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} GetIndexEndpointRequest */ - UndeployIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) + GetIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest) return object; - return new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest(); + if (object.name != null) + message.name = String(object.name); + return message; }; /** - * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetIndexEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} message UndeployIndexResponse + * @param {google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest} message GetIndexEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexResponse.toObject = function toObject() { - return {}; + GetIndexEndpointRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; }; /** - * Converts this UndeployIndexResponse to JSON. + * Converts this GetIndexEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest * @instance * @returns {Object.} JSON object */ - UndeployIndexResponse.prototype.toJSON = function toJSON() { + GetIndexEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployIndexResponse; + return GetIndexEndpointRequest; })(); - v1beta1.UndeployIndexOperationMetadata = (function() { + v1beta1.ListIndexEndpointsRequest = (function() { /** - * Properties of an UndeployIndexOperationMetadata. + * Properties of a ListIndexEndpointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUndeployIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployIndexOperationMetadata genericMetadata + * @interface IListIndexEndpointsRequest + * @property {string|null} [parent] ListIndexEndpointsRequest parent + * @property {string|null} [filter] ListIndexEndpointsRequest filter + * @property {number|null} [pageSize] ListIndexEndpointsRequest pageSize + * @property {string|null} [pageToken] ListIndexEndpointsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexEndpointsRequest readMask */ /** - * Constructs a new UndeployIndexOperationMetadata. + * Constructs a new ListIndexEndpointsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UndeployIndexOperationMetadata. - * @implements IUndeployIndexOperationMetadata + * @classdesc Represents a ListIndexEndpointsRequest. + * @implements IListIndexEndpointsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set */ - function UndeployIndexOperationMetadata(properties) { + function ListIndexEndpointsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210307,75 +216332,127 @@ } /** - * UndeployIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * ListIndexEndpointsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.parent = ""; + + /** + * ListIndexEndpointsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.filter = ""; + + /** + * ListIndexEndpointsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.pageSize = 0; + + /** + * ListIndexEndpointsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest + * @instance + */ + ListIndexEndpointsRequest.prototype.pageToken = ""; + + /** + * ListIndexEndpointsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @instance */ - UndeployIndexOperationMetadata.prototype.genericMetadata = null; + ListIndexEndpointsRequest.prototype.readMask = null; /** - * Creates a new UndeployIndexOperationMetadata instance using the specified properties. + * Creates a new ListIndexEndpointsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest instance */ - UndeployIndexOperationMetadata.create = function create(properties) { - return new UndeployIndexOperationMetadata(properties); + ListIndexEndpointsRequest.create = function create(properties) { + return new ListIndexEndpointsRequest(properties); }; /** - * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified ListIndexEndpointsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexOperationMetadata.encode = function encode(message, writer) { + ListIndexEndpointsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. + * Encodes the specified ListIndexEndpointsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsRequest} message ListIndexEndpointsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UndeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexEndpointsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexOperationMetadata.decode = function decode(reader, length) { + ListIndexEndpointsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + case 2: + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -210386,113 +216463,147 @@ }; /** - * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a ListIndexEndpointsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UndeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + ListIndexEndpointsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UndeployIndexOperationMetadata message. + * Verifies a ListIndexEndpointsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UndeployIndexOperationMetadata.verify = function verify(message) { + ListIndexEndpointsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "genericMetadata." + error; + return "readMask." + error; } return null; }; /** - * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexEndpointsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} ListIndexEndpointsRequest */ - UndeployIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) + ListIndexEndpointsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a ListIndexEndpointsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} message UndeployIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest} message ListIndexEndpointsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UndeployIndexOperationMetadata.toObject = function toObject(message, options) { + ListIndexEndpointsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this UndeployIndexOperationMetadata to JSON. + * Converts this ListIndexEndpointsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsRequest * @instance * @returns {Object.} JSON object */ - UndeployIndexOperationMetadata.prototype.toJSON = function toJSON() { + ListIndexEndpointsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UndeployIndexOperationMetadata; + return ListIndexEndpointsRequest; })(); - v1beta1.MutateDeployedIndexRequest = (function() { + v1beta1.ListIndexEndpointsResponse = (function() { /** - * Properties of a MutateDeployedIndexRequest. + * Properties of a ListIndexEndpointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexRequest - * @property {string|null} [indexEndpoint] MutateDeployedIndexRequest indexEndpoint - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexRequest deployedIndex + * @interface IListIndexEndpointsResponse + * @property {Array.|null} [indexEndpoints] ListIndexEndpointsResponse indexEndpoints + * @property {string|null} [nextPageToken] ListIndexEndpointsResponse nextPageToken */ /** - * Constructs a new MutateDeployedIndexRequest. + * Constructs a new ListIndexEndpointsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexRequest. - * @implements IMutateDeployedIndexRequest + * @classdesc Represents a ListIndexEndpointsResponse. + * @implements IListIndexEndpointsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set */ - function MutateDeployedIndexRequest(properties) { + function ListIndexEndpointsResponse(properties) { + this.indexEndpoints = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210500,88 +216611,91 @@ } /** - * MutateDeployedIndexRequest indexEndpoint. - * @member {string} indexEndpoint - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * ListIndexEndpointsResponse indexEndpoints. + * @member {Array.} indexEndpoints + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @instance */ - MutateDeployedIndexRequest.prototype.indexEndpoint = ""; + ListIndexEndpointsResponse.prototype.indexEndpoints = $util.emptyArray; /** - * MutateDeployedIndexRequest deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * ListIndexEndpointsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @instance */ - MutateDeployedIndexRequest.prototype.deployedIndex = null; + ListIndexEndpointsResponse.prototype.nextPageToken = ""; /** - * Creates a new MutateDeployedIndexRequest instance using the specified properties. + * Creates a new ListIndexEndpointsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse instance */ - MutateDeployedIndexRequest.create = function create(properties) { - return new MutateDeployedIndexRequest(properties); + ListIndexEndpointsResponse.create = function create(properties) { + return new ListIndexEndpointsResponse(properties); }; /** - * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * Encodes the specified ListIndexEndpointsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MutateDeployedIndexRequest.encode = function encode(message, writer) { + ListIndexEndpointsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.indexEndpoints != null && message.indexEndpoints.length) + for (var i = 0; i < message.indexEndpoints.length; ++i) + $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoints[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. + * Encodes the specified ListIndexEndpointsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexEndpointsResponse} message ListIndexEndpointsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MutateDeployedIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexEndpointsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MutateDeployedIndexRequest.decode = function decode(reader, length) { + ListIndexEndpointsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.indexEndpoint = reader.string(); + if (!(message.indexEndpoints && message.indexEndpoints.length)) + message.indexEndpoints = []; + message.indexEndpoints.push($root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32())); break; case 2: - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -210592,121 +216706,134 @@ }; /** - * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexEndpointsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MutateDeployedIndexRequest.decodeDelimited = function decodeDelimited(reader) { + ListIndexEndpointsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MutateDeployedIndexRequest message. + * Verifies a ListIndexEndpointsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MutateDeployedIndexRequest.verify = function verify(message) { + ListIndexEndpointsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - if (!$util.isString(message.indexEndpoint)) - return "indexEndpoint: string expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); - if (error) - return "deployedIndex." + error; + if (message.indexEndpoints != null && message.hasOwnProperty("indexEndpoints")) { + if (!Array.isArray(message.indexEndpoints)) + return "indexEndpoints: array expected"; + for (var i = 0; i < message.indexEndpoints.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoints[i]); + if (error) + return "indexEndpoints." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexEndpointsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} ListIndexEndpointsResponse */ - MutateDeployedIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest) + ListIndexEndpointsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(); - if (object.indexEndpoint != null) - message.indexEndpoint = String(object.indexEndpoint); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse(); + if (object.indexEndpoints) { + if (!Array.isArray(object.indexEndpoints)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: array expected"); + message.indexEndpoints = []; + for (var i = 0; i < object.indexEndpoints.length; ++i) { + if (typeof object.indexEndpoints[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse.indexEndpoints: object expected"); + message.indexEndpoints[i] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoints[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIndexEndpointsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} message MutateDeployedIndexRequest + * @param {google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse} message ListIndexEndpointsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MutateDeployedIndexRequest.toObject = function toObject(message, options) { + ListIndexEndpointsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.indexEndpoint = ""; - object.deployedIndex = null; + if (options.arrays || options.defaults) + object.indexEndpoints = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.indexEndpoints && message.indexEndpoints.length) { + object.indexEndpoints = []; + for (var j = 0; j < message.indexEndpoints.length; ++j) + object.indexEndpoints[j] = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoints[j], options); } - if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) - object.indexEndpoint = message.indexEndpoint; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this MutateDeployedIndexRequest to JSON. + * Converts this ListIndexEndpointsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexEndpointsResponse * @instance * @returns {Object.} JSON object */ - MutateDeployedIndexRequest.prototype.toJSON = function toJSON() { + ListIndexEndpointsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MutateDeployedIndexRequest; + return ListIndexEndpointsResponse; })(); - v1beta1.MutateDeployedIndexResponse = (function() { + v1beta1.UpdateIndexEndpointRequest = (function() { /** - * Properties of a MutateDeployedIndexResponse. + * Properties of an UpdateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexResponse - * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexResponse deployedIndex + * @interface IUpdateIndexEndpointRequest + * @property {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null} [indexEndpoint] UpdateIndexEndpointRequest indexEndpoint + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexEndpointRequest updateMask */ /** - * Constructs a new MutateDeployedIndexResponse. + * Constructs a new UpdateIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexResponse. - * @implements IMutateDeployedIndexResponse + * @classdesc Represents an UpdateIndexEndpointRequest. + * @implements IUpdateIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set */ - function MutateDeployedIndexResponse(properties) { + function UpdateIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210714,75 +216841,88 @@ } /** - * MutateDeployedIndexResponse deployedIndex. - * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * UpdateIndexEndpointRequest indexEndpoint. + * @member {google.cloud.aiplatform.v1beta1.IIndexEndpoint|null|undefined} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance */ - MutateDeployedIndexResponse.prototype.deployedIndex = null; + UpdateIndexEndpointRequest.prototype.indexEndpoint = null; /** - * Creates a new MutateDeployedIndexResponse instance using the specified properties. + * UpdateIndexEndpointRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest + * @instance + */ + UpdateIndexEndpointRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateIndexEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest instance */ - MutateDeployedIndexResponse.create = function create(properties) { - return new MutateDeployedIndexResponse(properties); + UpdateIndexEndpointRequest.create = function create(properties) { + return new UpdateIndexEndpointRequest(properties); }; /** - * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. + * Encodes the specified UpdateIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MutateDeployedIndexResponse.encode = function encode(message, writer) { + UpdateIndexEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) - $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.encode(message.indexEndpoint, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. + * Encodes the specified UpdateIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexEndpointRequest} message UpdateIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MutateDeployedIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MutateDeployedIndexResponse.decode = function decode(reader, length) { + UpdateIndexEndpointRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -210793,113 +216933,126 @@ }; /** - * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MutateDeployedIndexResponse.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MutateDeployedIndexResponse message. + * Verifies an UpdateIndexEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MutateDeployedIndexResponse.verify = function verify(message) { + UpdateIndexEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { - var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) { + var error = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.verify(message.indexEndpoint); if (error) - return "deployedIndex." + error; + return "indexEndpoint." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} UpdateIndexEndpointRequest */ - MutateDeployedIndexResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse) + UpdateIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); - if (object.deployedIndex != null) { - if (typeof object.deployedIndex !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.deployedIndex: object expected"); - message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest(); + if (object.indexEndpoint != null) { + if (typeof object.indexEndpoint !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.indexEndpoint: object expected"); + message.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.fromObject(object.indexEndpoint); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} message MutateDeployedIndexResponse + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest} message UpdateIndexEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MutateDeployedIndexResponse.toObject = function toObject(message, options) { + UpdateIndexEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.deployedIndex = null; - if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) - object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); + if (options.defaults) { + object.indexEndpoint = null; + object.updateMask = null; + } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = $root.google.cloud.aiplatform.v1beta1.IndexEndpoint.toObject(message.indexEndpoint, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this MutateDeployedIndexResponse to JSON. + * Converts this UpdateIndexEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexEndpointRequest * @instance * @returns {Object.} JSON object */ - MutateDeployedIndexResponse.prototype.toJSON = function toJSON() { + UpdateIndexEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MutateDeployedIndexResponse; + return UpdateIndexEndpointRequest; })(); - v1beta1.MutateDeployedIndexOperationMetadata = (function() { + v1beta1.DeleteIndexEndpointRequest = (function() { /** - * Properties of a MutateDeployedIndexOperationMetadata. + * Properties of a DeleteIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IMutateDeployedIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] MutateDeployedIndexOperationMetadata genericMetadata - * @property {string|null} [deployedIndexId] MutateDeployedIndexOperationMetadata deployedIndexId + * @interface IDeleteIndexEndpointRequest + * @property {string|null} [name] DeleteIndexEndpointRequest name */ /** - * Constructs a new MutateDeployedIndexOperationMetadata. + * Constructs a new DeleteIndexEndpointRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a MutateDeployedIndexOperationMetadata. - * @implements IMutateDeployedIndexOperationMetadata + * @classdesc Represents a DeleteIndexEndpointRequest. + * @implements IDeleteIndexEndpointRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set */ - function MutateDeployedIndexOperationMetadata(properties) { + function DeleteIndexEndpointRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -210907,88 +217060,75 @@ } /** - * MutateDeployedIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata - * @instance - */ - MutateDeployedIndexOperationMetadata.prototype.genericMetadata = null; - - /** - * MutateDeployedIndexOperationMetadata deployedIndexId. - * @member {string} deployedIndexId - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * DeleteIndexEndpointRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @instance */ - MutateDeployedIndexOperationMetadata.prototype.deployedIndexId = ""; + DeleteIndexEndpointRequest.prototype.name = ""; /** - * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. + * Creates a new DeleteIndexEndpointRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest instance */ - MutateDeployedIndexOperationMetadata.create = function create(properties) { - return new MutateDeployedIndexOperationMetadata(properties); + DeleteIndexEndpointRequest.create = function create(properties) { + return new DeleteIndexEndpointRequest(properties); }; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteIndexEndpointRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MutateDeployedIndexOperationMetadata.encode = function encode(message, writer) { + DeleteIndexEndpointRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. + * Encodes the specified DeleteIndexEndpointRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexEndpointRequest} message DeleteIndexEndpointRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - MutateDeployedIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIndexEndpointRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MutateDeployedIndexOperationMetadata.decode = function decode(reader, length) { + DeleteIndexEndpointRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - case 2: - message.deployedIndexId = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -210999,322 +217139,108 @@ }; /** - * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeleteIndexEndpointRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - MutateDeployedIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + DeleteIndexEndpointRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a MutateDeployedIndexOperationMetadata message. + * Verifies a DeleteIndexEndpointRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - MutateDeployedIndexOperationMetadata.verify = function verify(message) { + DeleteIndexEndpointRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - if (!$util.isString(message.deployedIndexId)) - return "deployedIndexId: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIndexEndpointRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} DeleteIndexEndpointRequest */ - MutateDeployedIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata) + DeleteIndexEndpointRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.deployedIndexId != null) - message.deployedIndexId = String(object.deployedIndexId); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeleteIndexEndpointRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @static - * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest} message DeleteIndexEndpointRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - MutateDeployedIndexOperationMetadata.toObject = function toObject(message, options) { + DeleteIndexEndpointRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.deployedIndexId = ""; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) - object.deployedIndexId = message.deployedIndexId; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this MutateDeployedIndexOperationMetadata to JSON. + * Converts this DeleteIndexEndpointRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexEndpointRequest * @instance * @returns {Object.} JSON object */ - MutateDeployedIndexOperationMetadata.prototype.toJSON = function toJSON() { + DeleteIndexEndpointRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return MutateDeployedIndexOperationMetadata; - })(); - - v1beta1.IndexService = (function() { - - /** - * Constructs a new IndexService service. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an IndexService - * @extends $protobuf.rpc.Service - * @constructor - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - */ - function IndexService(rpcImpl, requestDelimited, responseDelimited) { - $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); - } - - (IndexService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexService; - - /** - * Creates new IndexService service using the specified rpc implementation. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @static - * @param {$protobuf.RPCImpl} rpcImpl RPC implementation - * @param {boolean} [requestDelimited=false] Whether requests are length-delimited - * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {IndexService} RPC service. Useful where requests and/or responses are streamed. - */ - IndexService.create = function create(rpcImpl, requestDelimited, responseDelimited) { - return new this(rpcImpl, requestDelimited, responseDelimited); - }; - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#createIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef CreateIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls CreateIndex. - * @function createIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexService.prototype.createIndex = function createIndex(request, callback) { - return this.rpcCall(createIndex, $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "CreateIndex" }); - - /** - * Calls CreateIndex. - * @function createIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#getIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef GetIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.Index} [response] Index - */ - - /** - * Calls GetIndex. - * @function getIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback} callback Node-style callback called with the error, if any, and Index - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexService.prototype.getIndex = function getIndex(request, callback) { - return this.rpcCall(getIndex, $root.google.cloud.aiplatform.v1beta1.GetIndexRequest, $root.google.cloud.aiplatform.v1beta1.Index, request, callback); - }, "name", { value: "GetIndex" }); - - /** - * Calls GetIndex. - * @function getIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#listIndexes}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef ListIndexesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} [response] ListIndexesResponse - */ - - /** - * Calls ListIndexes. - * @function listIndexes - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback} callback Node-style callback called with the error, if any, and ListIndexesResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexService.prototype.listIndexes = function listIndexes(request, callback) { - return this.rpcCall(listIndexes, $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse, request, callback); - }, "name", { value: "ListIndexes" }); - - /** - * Calls ListIndexes. - * @function listIndexes - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#updateIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef UpdateIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls UpdateIndex. - * @function updateIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexService.prototype.updateIndex = function updateIndex(request, callback) { - return this.rpcCall(updateIndex, $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateIndex" }); - - /** - * Calls UpdateIndex. - * @function updateIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#deleteIndex}. - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @typedef DeleteIndexCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ - - /** - * Calls DeleteIndex. - * @function deleteIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(IndexService.prototype.deleteIndex = function deleteIndex(request, callback) { - return this.rpcCall(deleteIndex, $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteIndex" }); - - /** - * Calls DeleteIndex. - * @function deleteIndex - * @memberof google.cloud.aiplatform.v1beta1.IndexService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - return IndexService; + return DeleteIndexEndpointRequest; })(); - v1beta1.CreateIndexRequest = (function() { + v1beta1.DeployIndexRequest = (function() { /** - * Properties of a CreateIndexRequest. + * Properties of a DeployIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexRequest - * @property {string|null} [parent] CreateIndexRequest parent - * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] CreateIndexRequest index + * @interface IDeployIndexRequest + * @property {string|null} [indexEndpoint] DeployIndexRequest indexEndpoint + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexRequest deployedIndex */ /** - * Constructs a new CreateIndexRequest. + * Constructs a new DeployIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexRequest. - * @implements ICreateIndexRequest + * @classdesc Represents a DeployIndexRequest. + * @implements IDeployIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set */ - function CreateIndexRequest(properties) { + function DeployIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -211322,88 +217248,88 @@ } /** - * CreateIndexRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * DeployIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @instance */ - CreateIndexRequest.prototype.parent = ""; + DeployIndexRequest.prototype.indexEndpoint = ""; /** - * CreateIndexRequest index. - * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * DeployIndexRequest deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @instance */ - CreateIndexRequest.prototype.index = null; + DeployIndexRequest.prototype.deployedIndex = null; /** - * Creates a new CreateIndexRequest instance using the specified properties. + * Creates a new DeployIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest instance */ - CreateIndexRequest.create = function create(properties) { - return new CreateIndexRequest(properties); + DeployIndexRequest.create = function create(properties) { + return new DeployIndexRequest(properties); }; /** - * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. + * Encodes the specified DeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexRequest.encode = function encode(message, writer) { + DeployIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. + * Encodes the specified DeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexRequest} message DeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer. + * Decodes a DeployIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexRequest.decode = function decode(reader, length) { + DeployIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.indexEndpoint = reader.string(); break; case 2: - message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -211414,122 +217340,121 @@ }; /** - * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexRequest.decodeDelimited = function decodeDelimited(reader) { + DeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIndexRequest message. + * Verifies a DeployIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIndexRequest.verify = function verify(message) { + DeployIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.index != null && message.hasOwnProperty("index")) { - var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); if (error) - return "index." + error; + return "deployedIndex." + error; } return null; }; /** - * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexRequest} DeployIndexRequest */ - CreateIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest) + DeployIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.index != null) { - if (typeof object.index !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexRequest.index: object expected"); - message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexRequest.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); } return message; }; /** - * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeployIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexRequest} message CreateIndexRequest + * @param {google.cloud.aiplatform.v1beta1.DeployIndexRequest} message DeployIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexRequest.toObject = function toObject(message, options) { + DeployIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.index = null; + object.indexEndpoint = ""; + object.deployedIndex = null; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.index != null && message.hasOwnProperty("index")) - object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this CreateIndexRequest to JSON. + * Converts this DeployIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexRequest * @instance * @returns {Object.} JSON object */ - CreateIndexRequest.prototype.toJSON = function toJSON() { + DeployIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateIndexRequest; + return DeployIndexRequest; })(); - v1beta1.CreateIndexOperationMetadata = (function() { + v1beta1.DeployIndexResponse = (function() { /** - * Properties of a CreateIndexOperationMetadata. + * Properties of a DeployIndexResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata + * @interface IDeployIndexResponse + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] DeployIndexResponse deployedIndex */ /** - * Constructs a new CreateIndexOperationMetadata. + * Constructs a new DeployIndexResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateIndexOperationMetadata. - * @implements ICreateIndexOperationMetadata + * @classdesc Represents a DeployIndexResponse. + * @implements IDeployIndexResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set */ - function CreateIndexOperationMetadata(properties) { + function DeployIndexResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -211537,88 +217462,75 @@ } /** - * CreateIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata - * @instance - */ - CreateIndexOperationMetadata.prototype.genericMetadata = null; - - /** - * CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. - * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * DeployIndexResponse deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @instance */ - CreateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + DeployIndexResponse.prototype.deployedIndex = null; /** - * Creates a new CreateIndexOperationMetadata instance using the specified properties. + * Creates a new DeployIndexResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse instance */ - CreateIndexOperationMetadata.create = function create(properties) { - return new CreateIndexOperationMetadata(properties); + DeployIndexResponse.create = function create(properties) { + return new DeployIndexResponse(properties); }; /** - * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * Encodes the specified DeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexOperationMetadata.encode = function encode(message, writer) { + DeployIndexResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * Encodes the specified DeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexResponse} message DeployIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + DeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a DeployIndexResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexOperationMetadata.decode = function decode(reader, length) { + DeployIndexResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); - break; - case 2: - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -211629,126 +217541,113 @@ }; /** - * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + DeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateIndexOperationMetadata message. + * Verifies a DeployIndexResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateIndexOperationMetadata.verify = function verify(message) { + DeployIndexResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); if (error) - return "nearestNeighborSearchOperationMetadata." + error; + return "deployedIndex." + error; } return null; }; /** - * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexResponse} DeployIndexResponse */ - CreateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) + DeployIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.nearestNeighborSearchOperationMetadata != null) { - if (typeof object.nearestNeighborSearchOperationMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexResponse(); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexResponse.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); } return message; }; /** - * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a DeployIndexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} message CreateIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.DeployIndexResponse} message DeployIndexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateIndexOperationMetadata.toObject = function toObject(message, options) { + DeployIndexResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; - } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) - object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); + if (options.defaults) + object.deployedIndex = null; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this CreateIndexOperationMetadata to JSON. + * Converts this DeployIndexResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexResponse * @instance * @returns {Object.} JSON object */ - CreateIndexOperationMetadata.prototype.toJSON = function toJSON() { + DeployIndexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateIndexOperationMetadata; + return DeployIndexResponse; })(); - v1beta1.GetIndexRequest = (function() { + v1beta1.DeployIndexOperationMetadata = (function() { /** - * Properties of a GetIndexRequest. + * Properties of a DeployIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetIndexRequest - * @property {string|null} [name] GetIndexRequest name + * @interface IDeployIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] DeployIndexOperationMetadata genericMetadata + * @property {string|null} [deployedIndexId] DeployIndexOperationMetadata deployedIndexId */ /** - * Constructs a new GetIndexRequest. + * Constructs a new DeployIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetIndexRequest. - * @implements IGetIndexRequest + * @classdesc Represents a DeployIndexOperationMetadata. + * @implements IDeployIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set */ - function GetIndexRequest(properties) { + function DeployIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -211756,75 +217655,88 @@ } /** - * GetIndexRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * DeployIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @instance */ - GetIndexRequest.prototype.name = ""; + DeployIndexOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new GetIndexRequest instance using the specified properties. + * DeployIndexOperationMetadata deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata + * @instance + */ + DeployIndexOperationMetadata.prototype.deployedIndexId = ""; + + /** + * Creates a new DeployIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata instance */ - GetIndexRequest.create = function create(properties) { - return new GetIndexRequest(properties); + DeployIndexOperationMetadata.create = function create(properties) { + return new DeployIndexOperationMetadata(properties); }; /** - * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. + * Encodes the specified DeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexRequest.encode = function encode(message, writer) { + DeployIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. + * Encodes the specified DeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeployIndexOperationMetadata} message DeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetIndexRequest message from the specified reader or buffer. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexRequest.decode = function decode(reader, length) { + DeployIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + case 2: + message.deployedIndexId = reader.string(); break; default: reader.skipType(tag & 7); @@ -211835,111 +217747,122 @@ }; /** - * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a DeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetIndexRequest.decodeDelimited = function decodeDelimited(reader) { + DeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetIndexRequest message. + * Verifies a DeployIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetIndexRequest.verify = function verify(message) { + DeployIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} DeployIndexOperationMetadata */ - GetIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexRequest) + DeployIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeployIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.GetIndexRequest} message GetIndexRequest + * @param {google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata} message DeployIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetIndexRequest.toObject = function toObject(message, options) { + DeployIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.genericMetadata = null; + object.deployedIndexId = ""; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this GetIndexRequest to JSON. + * Converts this DeployIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.DeployIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - GetIndexRequest.prototype.toJSON = function toJSON() { + DeployIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetIndexRequest; + return DeployIndexOperationMetadata; })(); - v1beta1.ListIndexesRequest = (function() { + v1beta1.UndeployIndexRequest = (function() { /** - * Properties of a ListIndexesRequest. + * Properties of an UndeployIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexesRequest - * @property {string|null} [parent] ListIndexesRequest parent - * @property {string|null} [filter] ListIndexesRequest filter - * @property {number|null} [pageSize] ListIndexesRequest pageSize - * @property {string|null} [pageToken] ListIndexesRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexesRequest readMask + * @interface IUndeployIndexRequest + * @property {string|null} [indexEndpoint] UndeployIndexRequest indexEndpoint + * @property {string|null} [deployedIndexId] UndeployIndexRequest deployedIndexId */ /** - * Constructs a new ListIndexesRequest. + * Constructs a new UndeployIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexesRequest. - * @implements IListIndexesRequest + * @classdesc Represents an UndeployIndexRequest. + * @implements IUndeployIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set */ - function ListIndexesRequest(properties) { + function UndeployIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -211947,127 +217870,88 @@ } /** - * ListIndexesRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest - * @instance - */ - ListIndexesRequest.prototype.parent = ""; - - /** - * ListIndexesRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest - * @instance - */ - ListIndexesRequest.prototype.filter = ""; - - /** - * ListIndexesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest - * @instance - */ - ListIndexesRequest.prototype.pageSize = 0; - - /** - * ListIndexesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * UndeployIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @instance */ - ListIndexesRequest.prototype.pageToken = ""; + UndeployIndexRequest.prototype.indexEndpoint = ""; /** - * ListIndexesRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * UndeployIndexRequest deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @instance */ - ListIndexesRequest.prototype.readMask = null; + UndeployIndexRequest.prototype.deployedIndexId = ""; /** - * Creates a new ListIndexesRequest instance using the specified properties. + * Creates a new UndeployIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest instance */ - ListIndexesRequest.create = function create(properties) { - return new ListIndexesRequest(properties); + UndeployIndexRequest.create = function create(properties) { + return new UndeployIndexRequest(properties); }; /** - * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * Encodes the specified UndeployIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesRequest.encode = function encode(message, writer) { + UndeployIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * Encodes the specified UndeployIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexRequest} message UndeployIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesRequest.encodeDelimited = function encodeDelimited(message, writer) { + UndeployIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer. + * Decodes an UndeployIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesRequest.decode = function decode(reader, length) { + UndeployIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + message.indexEndpoint = reader.string(); break; case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.deployedIndexId = reader.string(); break; default: reader.skipType(tag & 7); @@ -212078,147 +217962,115 @@ }; /** - * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesRequest.decodeDelimited = function decodeDelimited(reader) { + UndeployIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexesRequest message. + * Verifies an UndeployIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexesRequest.verify = function verify(message) { + UndeployIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} UndeployIndexRequest */ - ListIndexesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest) + UndeployIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. + * Creates a plain object from an UndeployIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexesRequest} message ListIndexesRequest + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexRequest} message UndeployIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexesRequest.toObject = function toObject(message, options) { + UndeployIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.indexEndpoint = ""; + object.deployedIndexId = ""; } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this ListIndexesRequest to JSON. + * Converts this UndeployIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexRequest * @instance * @returns {Object.} JSON object */ - ListIndexesRequest.prototype.toJSON = function toJSON() { + UndeployIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIndexesRequest; + return UndeployIndexRequest; })(); - v1beta1.ListIndexesResponse = (function() { + v1beta1.UndeployIndexResponse = (function() { /** - * Properties of a ListIndexesResponse. + * Properties of an UndeployIndexResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListIndexesResponse - * @property {Array.|null} [indexes] ListIndexesResponse indexes - * @property {string|null} [nextPageToken] ListIndexesResponse nextPageToken + * @interface IUndeployIndexResponse */ /** - * Constructs a new ListIndexesResponse. + * Constructs a new UndeployIndexResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListIndexesResponse. - * @implements IListIndexesResponse + * @classdesc Represents an UndeployIndexResponse. + * @implements IUndeployIndexResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set */ - function ListIndexesResponse(properties) { - this.indexes = []; + function UndeployIndexResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -212226,92 +218078,63 @@ } /** - * ListIndexesResponse indexes. - * @member {Array.} indexes - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse - * @instance - */ - ListIndexesResponse.prototype.indexes = $util.emptyArray; - - /** - * ListIndexesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse - * @instance - */ - ListIndexesResponse.prototype.nextPageToken = ""; - - /** - * Creates a new ListIndexesResponse instance using the specified properties. + * Creates a new UndeployIndexResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse instance */ - ListIndexesResponse.create = function create(properties) { - return new ListIndexesResponse(properties); + UndeployIndexResponse.create = function create(properties) { + return new UndeployIndexResponse(properties); }; /** - * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * Encodes the specified UndeployIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesResponse.encode = function encode(message, writer) { + UndeployIndexResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.indexes != null && message.indexes.length) - for (var i = 0; i < message.indexes.length; ++i) - $root.google.cloud.aiplatform.v1beta1.Index.encode(message.indexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. + * Encodes the specified UndeployIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexResponse} message UndeployIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListIndexesResponse.encodeDelimited = function encodeDelimited(message, writer) { + UndeployIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer. + * Decodes an UndeployIndexResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesResponse.decode = function decode(reader, length) { + UndeployIndexResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { - case 1: - if (!(message.indexes && message.indexes.length)) - message.indexes = []; - message.indexes.push($root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; default: reader.skipType(tag & 7); break; @@ -212321,134 +218144,94 @@ }; /** - * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListIndexesResponse.decodeDelimited = function decodeDelimited(reader) { + UndeployIndexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListIndexesResponse message. + * Verifies an UndeployIndexResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListIndexesResponse.verify = function verify(message) { + UndeployIndexResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.indexes != null && message.hasOwnProperty("indexes")) { - if (!Array.isArray(message.indexes)) - return "indexes: array expected"; - for (var i = 0; i < message.indexes.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.indexes[i]); - if (error) - return "indexes." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; return null; }; /** - * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} UndeployIndexResponse */ - ListIndexesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse) + UndeployIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); - if (object.indexes) { - if (!Array.isArray(object.indexes)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: array expected"); - message.indexes = []; - for (var i = 0; i < object.indexes.length; ++i) { - if (typeof object.indexes[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: object expected"); - message.indexes[i] = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.indexes[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; + return new $root.google.cloud.aiplatform.v1beta1.UndeployIndexResponse(); }; /** - * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. + * Creates a plain object from an UndeployIndexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} message ListIndexesResponse + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexResponse} message UndeployIndexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListIndexesResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.indexes = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.indexes && message.indexes.length) { - object.indexes = []; - for (var j = 0; j < message.indexes.length; ++j) - object.indexes[j] = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.indexes[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; + UndeployIndexResponse.toObject = function toObject() { + return {}; }; /** - * Converts this ListIndexesResponse to JSON. + * Converts this UndeployIndexResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexResponse * @instance * @returns {Object.} JSON object */ - ListIndexesResponse.prototype.toJSON = function toJSON() { + UndeployIndexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListIndexesResponse; + return UndeployIndexResponse; })(); - v1beta1.UpdateIndexRequest = (function() { + v1beta1.UndeployIndexOperationMetadata = (function() { /** - * Properties of an UpdateIndexRequest. + * Properties of an UndeployIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateIndexRequest - * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] UpdateIndexRequest index - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexRequest updateMask + * @interface IUndeployIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UndeployIndexOperationMetadata genericMetadata */ /** - * Constructs a new UpdateIndexRequest. + * Constructs a new UndeployIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexRequest. - * @implements IUpdateIndexRequest + * @classdesc Represents an UndeployIndexOperationMetadata. + * @implements IUndeployIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set */ - function UpdateIndexRequest(properties) { + function UndeployIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -212456,88 +218239,75 @@ } /** - * UpdateIndexRequest index. - * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest - * @instance - */ - UpdateIndexRequest.prototype.index = null; - - /** - * UpdateIndexRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * UndeployIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @instance */ - UpdateIndexRequest.prototype.updateMask = null; + UndeployIndexOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new UpdateIndexRequest instance using the specified properties. + * Creates a new UndeployIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata instance */ - UpdateIndexRequest.create = function create(properties) { - return new UpdateIndexRequest(properties); + UndeployIndexOperationMetadata.create = function create(properties) { + return new UndeployIndexOperationMetadata(properties); }; /** - * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * Encodes the specified UndeployIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexRequest.encode = function encode(message, writer) { + UndeployIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.index != null && Object.hasOwnProperty.call(message, "index")) - $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. + * Encodes the specified UndeployIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUndeployIndexOperationMetadata} message UndeployIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + UndeployIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexRequest.decode = function decode(reader, length) { + UndeployIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); - break; - case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -212548,127 +218318,113 @@ }; /** - * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. + * Decodes an UndeployIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexRequest.decodeDelimited = function decodeDelimited(reader) { + UndeployIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexRequest message. + * Verifies an UndeployIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexRequest.verify = function verify(message) { + UndeployIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.index != null && message.hasOwnProperty("index")) { - var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); - if (error) - return "index." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "updateMask." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UndeployIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} UndeployIndexOperationMetadata */ - UpdateIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) + UndeployIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); - if (object.index != null) { - if (typeof object.index !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.index: object expected"); - message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from an UndeployIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} message UpdateIndexRequest + * @param {google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata} message UndeployIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexRequest.toObject = function toObject(message, options) { + UndeployIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.index = null; - object.updateMask = null; - } - if (message.index != null && message.hasOwnProperty("index")) - object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this UpdateIndexRequest to JSON. + * Converts this UndeployIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.UndeployIndexOperationMetadata * @instance * @returns {Object.} JSON object */ - UpdateIndexRequest.prototype.toJSON = function toJSON() { + UndeployIndexOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIndexRequest; + return UndeployIndexOperationMetadata; })(); - v1beta1.UpdateIndexOperationMetadata = (function() { + v1beta1.MutateDeployedIndexRequest = (function() { /** - * Properties of an UpdateIndexOperationMetadata. + * Properties of a MutateDeployedIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateIndexOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateIndexOperationMetadata genericMetadata - * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata + * @interface IMutateDeployedIndexRequest + * @property {string|null} [indexEndpoint] MutateDeployedIndexRequest indexEndpoint + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexRequest deployedIndex */ /** - * Constructs a new UpdateIndexOperationMetadata. + * Constructs a new MutateDeployedIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateIndexOperationMetadata. - * @implements IUpdateIndexOperationMetadata + * @classdesc Represents a MutateDeployedIndexRequest. + * @implements IMutateDeployedIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set */ - function UpdateIndexOperationMetadata(properties) { + function MutateDeployedIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -212676,88 +218432,88 @@ } /** - * UpdateIndexOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * MutateDeployedIndexRequest indexEndpoint. + * @member {string} indexEndpoint + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @instance */ - UpdateIndexOperationMetadata.prototype.genericMetadata = null; + MutateDeployedIndexRequest.prototype.indexEndpoint = ""; /** - * UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. - * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * MutateDeployedIndexRequest deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @instance */ - UpdateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + MutateDeployedIndexRequest.prototype.deployedIndex = null; /** - * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * Creates a new MutateDeployedIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest instance */ - UpdateIndexOperationMetadata.create = function create(properties) { - return new UpdateIndexOperationMetadata(properties); + MutateDeployedIndexRequest.create = function create(properties) { + return new MutateDeployedIndexRequest(properties); }; /** - * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * Encodes the specified MutateDeployedIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexOperationMetadata.encode = function encode(message, writer) { + MutateDeployedIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.indexEndpoint != null && Object.hasOwnProperty.call(message, "indexEndpoint")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.indexEndpoint); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * Encodes the specified MutateDeployedIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexRequest} message MutateDeployedIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + MutateDeployedIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexOperationMetadata.decode = function decode(reader, length) { + MutateDeployedIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.indexEndpoint = reader.string(); break; case 2: - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -212768,126 +218524,121 @@ }; /** - * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + MutateDeployedIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateIndexOperationMetadata message. + * Verifies a MutateDeployedIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateIndexOperationMetadata.verify = function verify(message) { + MutateDeployedIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); - if (error) - return "genericMetadata." + error; - } - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + if (!$util.isString(message.indexEndpoint)) + return "indexEndpoint: string expected"; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); if (error) - return "nearestNeighborSearchOperationMetadata." + error; + return "deployedIndex." + error; } return null; }; /** - * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata - */ - UpdateIndexOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); - } - if (object.nearestNeighborSearchOperationMetadata != null) { - if (typeof object.nearestNeighborSearchOperationMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); - message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} MutateDeployedIndexRequest + */ + MutateDeployedIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest(); + if (object.indexEndpoint != null) + message.indexEndpoint = String(object.indexEndpoint); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); } return message; }; /** - * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a MutateDeployedIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest} message MutateDeployedIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateIndexOperationMetadata.toObject = function toObject(message, options) { + MutateDeployedIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.genericMetadata = null; - object.nearestNeighborSearchOperationMetadata = null; + object.indexEndpoint = ""; + object.deployedIndex = null; } - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); - if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) - object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); + if (message.indexEndpoint != null && message.hasOwnProperty("indexEndpoint")) + object.indexEndpoint = message.indexEndpoint; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this UpdateIndexOperationMetadata to JSON. + * Converts this MutateDeployedIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexRequest * @instance * @returns {Object.} JSON object */ - UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { + MutateDeployedIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateIndexOperationMetadata; + return MutateDeployedIndexRequest; })(); - v1beta1.DeleteIndexRequest = (function() { + v1beta1.MutateDeployedIndexResponse = (function() { /** - * Properties of a DeleteIndexRequest. + * Properties of a MutateDeployedIndexResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteIndexRequest - * @property {string|null} [name] DeleteIndexRequest name + * @interface IMutateDeployedIndexResponse + * @property {google.cloud.aiplatform.v1beta1.IDeployedIndex|null} [deployedIndex] MutateDeployedIndexResponse deployedIndex */ /** - * Constructs a new DeleteIndexRequest. + * Constructs a new MutateDeployedIndexResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteIndexRequest. - * @implements IDeleteIndexRequest + * @classdesc Represents a MutateDeployedIndexResponse. + * @implements IMutateDeployedIndexResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set */ - function DeleteIndexRequest(properties) { + function MutateDeployedIndexResponse(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -212895,75 +218646,75 @@ } /** - * DeleteIndexRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * MutateDeployedIndexResponse deployedIndex. + * @member {google.cloud.aiplatform.v1beta1.IDeployedIndex|null|undefined} deployedIndex + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @instance */ - DeleteIndexRequest.prototype.name = ""; + MutateDeployedIndexResponse.prototype.deployedIndex = null; /** - * Creates a new DeleteIndexRequest instance using the specified properties. + * Creates a new MutateDeployedIndexResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse instance */ - DeleteIndexRequest.create = function create(properties) { - return new DeleteIndexRequest(properties); + MutateDeployedIndexResponse.create = function create(properties) { + return new MutateDeployedIndexResponse(properties); }; /** - * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * Encodes the specified MutateDeployedIndexResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexRequest.encode = function encode(message, writer) { + MutateDeployedIndexResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.deployedIndex != null && Object.hasOwnProperty.call(message, "deployedIndex")) + $root.google.cloud.aiplatform.v1beta1.DeployedIndex.encode(message.deployedIndex, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. + * Encodes the specified MutateDeployedIndexResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexResponse} message MutateDeployedIndexResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + MutateDeployedIndexResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer. + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexRequest.decode = function decode(reader, length) { + MutateDeployedIndexResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -212974,109 +218725,113 @@ }; /** - * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteIndexRequest.decodeDelimited = function decodeDelimited(reader) { + MutateDeployedIndexResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteIndexRequest message. + * Verifies a MutateDeployedIndexResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteIndexRequest.verify = function verify(message) { + MutateDeployedIndexResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) { + var error = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.verify(message.deployedIndex); + if (error) + return "deployedIndex." + error; + } return null; }; /** - * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} MutateDeployedIndexResponse */ - DeleteIndexRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) + MutateDeployedIndexResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse(); + if (object.deployedIndex != null) { + if (typeof object.deployedIndex !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse.deployedIndex: object expected"); + message.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.fromObject(object.deployedIndex); + } return message; }; /** - * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. + * Creates a plain object from a MutateDeployedIndexResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} message DeleteIndexRequest + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse} message MutateDeployedIndexResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteIndexRequest.toObject = function toObject(message, options) { + MutateDeployedIndexResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.deployedIndex = null; + if (message.deployedIndex != null && message.hasOwnProperty("deployedIndex")) + object.deployedIndex = $root.google.cloud.aiplatform.v1beta1.DeployedIndex.toObject(message.deployedIndex, options); return object; }; /** - * Converts this DeleteIndexRequest to JSON. + * Converts this MutateDeployedIndexResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse * @instance * @returns {Object.} JSON object */ - DeleteIndexRequest.prototype.toJSON = function toJSON() { + MutateDeployedIndexResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteIndexRequest; + return MutateDeployedIndexResponse; })(); - v1beta1.NearestNeighborSearchOperationMetadata = (function() { + v1beta1.MutateDeployedIndexOperationMetadata = (function() { /** - * Properties of a NearestNeighborSearchOperationMetadata. + * Properties of a MutateDeployedIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface INearestNeighborSearchOperationMetadata - * @property {Array.|null} [contentValidationStats] NearestNeighborSearchOperationMetadata contentValidationStats - * @property {number|Long|null} [dataBytesCount] NearestNeighborSearchOperationMetadata dataBytesCount + * @interface IMutateDeployedIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] MutateDeployedIndexOperationMetadata genericMetadata + * @property {string|null} [deployedIndexId] MutateDeployedIndexOperationMetadata deployedIndexId */ /** - * Constructs a new NearestNeighborSearchOperationMetadata. + * Constructs a new MutateDeployedIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a NearestNeighborSearchOperationMetadata. - * @implements INearestNeighborSearchOperationMetadata + * @classdesc Represents a MutateDeployedIndexOperationMetadata. + * @implements IMutateDeployedIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set */ - function NearestNeighborSearchOperationMetadata(properties) { - this.contentValidationStats = []; + function MutateDeployedIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -213084,91 +218839,88 @@ } /** - * NearestNeighborSearchOperationMetadata contentValidationStats. - * @member {Array.} contentValidationStats - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * MutateDeployedIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @instance */ - NearestNeighborSearchOperationMetadata.prototype.contentValidationStats = $util.emptyArray; + MutateDeployedIndexOperationMetadata.prototype.genericMetadata = null; /** - * NearestNeighborSearchOperationMetadata dataBytesCount. - * @member {number|Long} dataBytesCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * MutateDeployedIndexOperationMetadata deployedIndexId. + * @member {string} deployedIndexId + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @instance */ - NearestNeighborSearchOperationMetadata.prototype.dataBytesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + MutateDeployedIndexOperationMetadata.prototype.deployedIndexId = ""; /** - * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. + * Creates a new MutateDeployedIndexOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata instance */ - NearestNeighborSearchOperationMetadata.create = function create(properties) { - return new NearestNeighborSearchOperationMetadata(properties); + MutateDeployedIndexOperationMetadata.create = function create(properties) { + return new MutateDeployedIndexOperationMetadata(properties); }; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * Encodes the specified MutateDeployedIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NearestNeighborSearchOperationMetadata.encode = function encode(message, writer) { + MutateDeployedIndexOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.contentValidationStats != null && message.contentValidationStats.length) - for (var i = 0; i < message.contentValidationStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.encode(message.contentValidationStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.dataBytesCount != null && Object.hasOwnProperty.call(message, "dataBytesCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dataBytesCount); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.deployedIndexId != null && Object.hasOwnProperty.call(message, "deployedIndexId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedIndexId); return writer; }; /** - * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. + * Encodes the specified MutateDeployedIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IMutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - NearestNeighborSearchOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + MutateDeployedIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NearestNeighborSearchOperationMetadata.decode = function decode(reader, length) { + MutateDeployedIndexOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.contentValidationStats && message.contentValidationStats.length)) - message.contentValidationStats = []; - message.contentValidationStats.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.decode(reader, reader.uint32())); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; case 2: - message.dataBytesCount = reader.int64(); + message.deployedIndexId = reader.string(); break; default: reader.skipType(tag & 7); @@ -213179,1756 +218931,1226 @@ }; /** - * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a MutateDeployedIndexOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - NearestNeighborSearchOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + MutateDeployedIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a NearestNeighborSearchOperationMetadata message. + * Verifies a MutateDeployedIndexOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - NearestNeighborSearchOperationMetadata.verify = function verify(message) { + MutateDeployedIndexOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.contentValidationStats != null && message.hasOwnProperty("contentValidationStats")) { - if (!Array.isArray(message.contentValidationStats)) - return "contentValidationStats: array expected"; - for (var i = 0; i < message.contentValidationStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify(message.contentValidationStats[i]); - if (error) - return "contentValidationStats." + error; - } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; } - if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) - if (!$util.isInteger(message.dataBytesCount) && !(message.dataBytesCount && $util.isInteger(message.dataBytesCount.low) && $util.isInteger(message.dataBytesCount.high))) - return "dataBytesCount: integer|Long expected"; + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + if (!$util.isString(message.deployedIndexId)) + return "deployedIndexId: string expected"; return null; }; /** - * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a MutateDeployedIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} MutateDeployedIndexOperationMetadata */ - NearestNeighborSearchOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) + MutateDeployedIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); - if (object.contentValidationStats) { - if (!Array.isArray(object.contentValidationStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: array expected"); - message.contentValidationStats = []; - for (var i = 0; i < object.contentValidationStats.length; ++i) { - if (typeof object.contentValidationStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: object expected"); - message.contentValidationStats[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.fromObject(object.contentValidationStats[i]); - } + var message = new $root.google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } - if (object.dataBytesCount != null) - if ($util.Long) - (message.dataBytesCount = $util.Long.fromValue(object.dataBytesCount)).unsigned = false; - else if (typeof object.dataBytesCount === "string") - message.dataBytesCount = parseInt(object.dataBytesCount, 10); - else if (typeof object.dataBytesCount === "number") - message.dataBytesCount = object.dataBytesCount; - else if (typeof object.dataBytesCount === "object") - message.dataBytesCount = new $util.LongBits(object.dataBytesCount.low >>> 0, object.dataBytesCount.high >>> 0).toNumber(); + if (object.deployedIndexId != null) + message.deployedIndexId = String(object.deployedIndexId); return message; }; /** - * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a MutateDeployedIndexOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata} message MutateDeployedIndexOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - NearestNeighborSearchOperationMetadata.toObject = function toObject(message, options) { + MutateDeployedIndexOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.contentValidationStats = []; - if (options.defaults) - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.dataBytesCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.dataBytesCount = options.longs === String ? "0" : 0; - if (message.contentValidationStats && message.contentValidationStats.length) { - object.contentValidationStats = []; - for (var j = 0; j < message.contentValidationStats.length; ++j) - object.contentValidationStats[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.toObject(message.contentValidationStats[j], options); + if (options.defaults) { + object.genericMetadata = null; + object.deployedIndexId = ""; } - if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) - if (typeof message.dataBytesCount === "number") - object.dataBytesCount = options.longs === String ? String(message.dataBytesCount) : message.dataBytesCount; - else - object.dataBytesCount = options.longs === String ? $util.Long.prototype.toString.call(message.dataBytesCount) : options.longs === Number ? new $util.LongBits(message.dataBytesCount.low >>> 0, message.dataBytesCount.high >>> 0).toNumber() : message.dataBytesCount; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.deployedIndexId != null && message.hasOwnProperty("deployedIndexId")) + object.deployedIndexId = message.deployedIndexId; return object; }; /** - * Converts this NearestNeighborSearchOperationMetadata to JSON. + * Converts this MutateDeployedIndexOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @instance - * @returns {Object.} JSON object - */ - NearestNeighborSearchOperationMetadata.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - NearestNeighborSearchOperationMetadata.RecordError = (function() { - - /** - * Properties of a RecordError. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @interface IRecordError - * @property {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null} [errorType] RecordError errorType - * @property {string|null} [errorMessage] RecordError errorMessage - * @property {string|null} [sourceGcsUri] RecordError sourceGcsUri - * @property {string|null} [embeddingId] RecordError embeddingId - * @property {string|null} [rawRecord] RecordError rawRecord - */ - - /** - * Constructs a new RecordError. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @classdesc Represents a RecordError. - * @implements IRecordError - * @constructor - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set - */ - function RecordError(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * RecordError errorType. - * @member {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType} errorType - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.errorType = 0; - - /** - * RecordError errorMessage. - * @member {string} errorMessage - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.errorMessage = ""; - - /** - * RecordError sourceGcsUri. - * @member {string} sourceGcsUri - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.sourceGcsUri = ""; - - /** - * RecordError embeddingId. - * @member {string} embeddingId - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.embeddingId = ""; - - /** - * RecordError rawRecord. - * @member {string} rawRecord - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - */ - RecordError.prototype.rawRecord = ""; - - /** - * Creates a new RecordError instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError instance - */ - RecordError.create = function create(properties) { - return new RecordError(properties); - }; - - /** - * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordError.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.errorType != null && Object.hasOwnProperty.call(message, "errorType")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.errorType); - if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); - if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceGcsUri); - if (message.embeddingId != null && Object.hasOwnProperty.call(message, "embeddingId")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.embeddingId); - if (message.rawRecord != null && Object.hasOwnProperty.call(message, "rawRecord")) - writer.uint32(/* id 5, wireType 2 =*/42).string(message.rawRecord); - return writer; - }; - - /** - * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - RecordError.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a RecordError message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordError.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.errorType = reader.int32(); - break; - case 2: - message.errorMessage = reader.string(); - break; - case 3: - message.sourceGcsUri = reader.string(); - break; - case 4: - message.embeddingId = reader.string(); - break; - case 5: - message.rawRecord = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a RecordError message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - RecordError.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a RecordError message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - RecordError.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.errorType != null && message.hasOwnProperty("errorType")) - switch (message.errorType) { - default: - return "errorType: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - break; - } - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - if (!$util.isString(message.errorMessage)) - return "errorMessage: string expected"; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - if (!$util.isString(message.sourceGcsUri)) - return "sourceGcsUri: string expected"; - if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) - if (!$util.isString(message.embeddingId)) - return "embeddingId: string expected"; - if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) - if (!$util.isString(message.rawRecord)) - return "rawRecord: string expected"; - return null; - }; - - /** - * Creates a RecordError message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError - */ - RecordError.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError(); - switch (object.errorType) { - case "ERROR_TYPE_UNSPECIFIED": - case 0: - message.errorType = 0; - break; - case "EMPTY_LINE": - case 1: - message.errorType = 1; - break; - case "INVALID_JSON_SYNTAX": - case 2: - message.errorType = 2; - break; - case "INVALID_CSV_SYNTAX": - case 3: - message.errorType = 3; - break; - case "INVALID_AVRO_SYNTAX": - case 4: - message.errorType = 4; - break; - case "INVALID_EMBEDDING_ID": - case 5: - message.errorType = 5; - break; - case "EMBEDDING_SIZE_MISMATCH": - case 6: - message.errorType = 6; - break; - case "NAMESPACE_MISSING": - case 7: - message.errorType = 7; - break; - } - if (object.errorMessage != null) - message.errorMessage = String(object.errorMessage); - if (object.sourceGcsUri != null) - message.sourceGcsUri = String(object.sourceGcsUri); - if (object.embeddingId != null) - message.embeddingId = String(object.embeddingId); - if (object.rawRecord != null) - message.rawRecord = String(object.rawRecord); - return message; - }; - - /** - * Creates a plain object from a RecordError message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} message RecordError - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - RecordError.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.errorType = options.enums === String ? "ERROR_TYPE_UNSPECIFIED" : 0; - object.errorMessage = ""; - object.sourceGcsUri = ""; - object.embeddingId = ""; - object.rawRecord = ""; - } - if (message.errorType != null && message.hasOwnProperty("errorType")) - object.errorType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] : message.errorType; - if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) - object.errorMessage = message.errorMessage; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - object.sourceGcsUri = message.sourceGcsUri; - if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) - object.embeddingId = message.embeddingId; - if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) - object.rawRecord = message.rawRecord; - return object; - }; - - /** - * Converts this RecordError to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError - * @instance - * @returns {Object.} JSON object - */ - RecordError.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - /** - * RecordErrorType enum. - * @name google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType - * @enum {number} - * @property {number} ERROR_TYPE_UNSPECIFIED=0 ERROR_TYPE_UNSPECIFIED value - * @property {number} EMPTY_LINE=1 EMPTY_LINE value - * @property {number} INVALID_JSON_SYNTAX=2 INVALID_JSON_SYNTAX value - * @property {number} INVALID_CSV_SYNTAX=3 INVALID_CSV_SYNTAX value - * @property {number} INVALID_AVRO_SYNTAX=4 INVALID_AVRO_SYNTAX value - * @property {number} INVALID_EMBEDDING_ID=5 INVALID_EMBEDDING_ID value - * @property {number} EMBEDDING_SIZE_MISMATCH=6 EMBEDDING_SIZE_MISMATCH value - * @property {number} NAMESPACE_MISSING=7 NAMESPACE_MISSING value - */ - RecordError.RecordErrorType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "ERROR_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "EMPTY_LINE"] = 1; - values[valuesById[2] = "INVALID_JSON_SYNTAX"] = 2; - values[valuesById[3] = "INVALID_CSV_SYNTAX"] = 3; - values[valuesById[4] = "INVALID_AVRO_SYNTAX"] = 4; - values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; - values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; - values[valuesById[7] = "NAMESPACE_MISSING"] = 7; - return values; - })(); - - return RecordError; - })(); - - NearestNeighborSearchOperationMetadata.ContentValidationStats = (function() { - - /** - * Properties of a ContentValidationStats. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @interface IContentValidationStats - * @property {string|null} [sourceGcsUri] ContentValidationStats sourceGcsUri - * @property {number|Long|null} [validRecordCount] ContentValidationStats validRecordCount - * @property {number|Long|null} [invalidRecordCount] ContentValidationStats invalidRecordCount - * @property {Array.|null} [partialErrors] ContentValidationStats partialErrors - */ - - /** - * Constructs a new ContentValidationStats. - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata - * @classdesc Represents a ContentValidationStats. - * @implements IContentValidationStats - * @constructor - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set - */ - function ContentValidationStats(properties) { - this.partialErrors = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * ContentValidationStats sourceGcsUri. - * @member {string} sourceGcsUri - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.sourceGcsUri = ""; - - /** - * ContentValidationStats validRecordCount. - * @member {number|Long} validRecordCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.validRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ContentValidationStats invalidRecordCount. - * @member {number|Long} invalidRecordCount - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.invalidRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; - - /** - * ContentValidationStats partialErrors. - * @member {Array.} partialErrors - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - */ - ContentValidationStats.prototype.partialErrors = $util.emptyArray; - - /** - * Creates a new ContentValidationStats instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats instance - */ - ContentValidationStats.create = function create(properties) { - return new ContentValidationStats(properties); - }; - - /** - * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContentValidationStats.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceGcsUri); - if (message.validRecordCount != null && Object.hasOwnProperty.call(message, "validRecordCount")) - writer.uint32(/* id 2, wireType 0 =*/16).int64(message.validRecordCount); - if (message.invalidRecordCount != null && Object.hasOwnProperty.call(message, "invalidRecordCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invalidRecordCount); - if (message.partialErrors != null && message.partialErrors.length) - for (var i = 0; i < message.partialErrors.length; ++i) - $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ContentValidationStats.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a ContentValidationStats message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContentValidationStats.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.sourceGcsUri = reader.string(); - break; - case 2: - message.validRecordCount = reader.int64(); - break; - case 3: - message.invalidRecordCount = reader.int64(); - break; - case 4: - if (!(message.partialErrors && message.partialErrors.length)) - message.partialErrors = []; - message.partialErrors.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ContentValidationStats.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a ContentValidationStats message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ContentValidationStats.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - if (!$util.isString(message.sourceGcsUri)) - return "sourceGcsUri: string expected"; - if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) - if (!$util.isInteger(message.validRecordCount) && !(message.validRecordCount && $util.isInteger(message.validRecordCount.low) && $util.isInteger(message.validRecordCount.high))) - return "validRecordCount: integer|Long expected"; - if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) - if (!$util.isInteger(message.invalidRecordCount) && !(message.invalidRecordCount && $util.isInteger(message.invalidRecordCount.low) && $util.isInteger(message.invalidRecordCount.high))) - return "invalidRecordCount: integer|Long expected"; - if (message.partialErrors != null && message.hasOwnProperty("partialErrors")) { - if (!Array.isArray(message.partialErrors)) - return "partialErrors: array expected"; - for (var i = 0; i < message.partialErrors.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify(message.partialErrors[i]); - if (error) - return "partialErrors." + error; - } - } - return null; - }; - - /** - * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats - */ - ContentValidationStats.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); - if (object.sourceGcsUri != null) - message.sourceGcsUri = String(object.sourceGcsUri); - if (object.validRecordCount != null) - if ($util.Long) - (message.validRecordCount = $util.Long.fromValue(object.validRecordCount)).unsigned = false; - else if (typeof object.validRecordCount === "string") - message.validRecordCount = parseInt(object.validRecordCount, 10); - else if (typeof object.validRecordCount === "number") - message.validRecordCount = object.validRecordCount; - else if (typeof object.validRecordCount === "object") - message.validRecordCount = new $util.LongBits(object.validRecordCount.low >>> 0, object.validRecordCount.high >>> 0).toNumber(); - if (object.invalidRecordCount != null) - if ($util.Long) - (message.invalidRecordCount = $util.Long.fromValue(object.invalidRecordCount)).unsigned = false; - else if (typeof object.invalidRecordCount === "string") - message.invalidRecordCount = parseInt(object.invalidRecordCount, 10); - else if (typeof object.invalidRecordCount === "number") - message.invalidRecordCount = object.invalidRecordCount; - else if (typeof object.invalidRecordCount === "object") - message.invalidRecordCount = new $util.LongBits(object.invalidRecordCount.low >>> 0, object.invalidRecordCount.high >>> 0).toNumber(); - if (object.partialErrors) { - if (!Array.isArray(object.partialErrors)) - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: array expected"); - message.partialErrors = []; - for (var i = 0; i < object.partialErrors.length; ++i) { - if (typeof object.partialErrors[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: object expected"); - message.partialErrors[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.fromObject(object.partialErrors[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @static - * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ContentValidationStats.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.partialErrors = []; - if (options.defaults) { - object.sourceGcsUri = ""; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.validRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.validRecordCount = options.longs === String ? "0" : 0; - if ($util.Long) { - var long = new $util.Long(0, 0, false); - object.invalidRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; - } else - object.invalidRecordCount = options.longs === String ? "0" : 0; - } - if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) - object.sourceGcsUri = message.sourceGcsUri; - if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) - if (typeof message.validRecordCount === "number") - object.validRecordCount = options.longs === String ? String(message.validRecordCount) : message.validRecordCount; - else - object.validRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.validRecordCount) : options.longs === Number ? new $util.LongBits(message.validRecordCount.low >>> 0, message.validRecordCount.high >>> 0).toNumber() : message.validRecordCount; - if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) - if (typeof message.invalidRecordCount === "number") - object.invalidRecordCount = options.longs === String ? String(message.invalidRecordCount) : message.invalidRecordCount; - else - object.invalidRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRecordCount) : options.longs === Number ? new $util.LongBits(message.invalidRecordCount.low >>> 0, message.invalidRecordCount.high >>> 0).toNumber() : message.invalidRecordCount; - if (message.partialErrors && message.partialErrors.length) { - object.partialErrors = []; - for (var j = 0; j < message.partialErrors.length; ++j) - object.partialErrors[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.toObject(message.partialErrors[j], options); - } - return object; - }; - - /** - * Converts this ContentValidationStats to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats - * @instance - * @returns {Object.} JSON object - */ - ContentValidationStats.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return ContentValidationStats; - })(); + * @memberof google.cloud.aiplatform.v1beta1.MutateDeployedIndexOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + MutateDeployedIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return NearestNeighborSearchOperationMetadata; + return MutateDeployedIndexOperationMetadata; })(); - v1beta1.JobService = (function() { + v1beta1.IndexService = (function() { /** - * Constructs a new JobService service. + * Constructs a new IndexService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a JobService + * @classdesc Represents an IndexService * @extends $protobuf.rpc.Service * @constructor * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function JobService(rpcImpl, requestDelimited, responseDelimited) { + function IndexService(rpcImpl, requestDelimited, responseDelimited) { $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; + (IndexService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = IndexService; /** - * Creates new JobService service using the specified rpc implementation. + * Creates new IndexService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1beta1.JobService + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @static * @param {$protobuf.RPCImpl} rpcImpl RPC implementation * @param {boolean} [requestDelimited=false] Whether requests are length-delimited * @param {boolean} [responseDelimited=false] Whether responses are length-delimited - * @returns {JobService} RPC service. Useful where requests and/or responses are streamed. + * @returns {IndexService} RPC service. Useful where requests and/or responses are streamed. */ - JobService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + IndexService.create = function create(rpcImpl, requestDelimited, responseDelimited) { return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob - */ - - /** - * Calls CreateCustomJob. - * @function createCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.createCustomJob = function createCustomJob(request, callback) { - return this.rpcCall(createCustomJob, $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); - }, "name", { value: "CreateCustomJob" }); - - /** - * Calls CreateCustomJob. - * @function createCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetCustomJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob - */ - - /** - * Calls GetCustomJob. - * @function getCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.getCustomJob = function getCustomJob(request, callback) { - return this.rpcCall(getCustomJob, $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); - }, "name", { value: "GetCustomJob" }); - - /** - * Calls GetCustomJob. - * @function getCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listCustomJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListCustomJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} [response] ListCustomJobsResponse - */ - - /** - * Calls ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback} callback Node-style callback called with the error, if any, and ListCustomJobsResponse - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.listCustomJobs = function listCustomJobs(request, callback) { - return this.rpcCall(listCustomJobs, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, request, callback); - }, "name", { value: "ListCustomJobs" }); - - /** - * Calls ListCustomJobs. - * @function listCustomJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 - */ - - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteCustomJobCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#createIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef CreateIndexCallback * @type {function} * @param {Error|null} error Error, if any * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls DeleteCustomJob. - * @function deleteCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Calls CreateIndex. + * @function createIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback} callback Node-style callback called with the error, if any, and Operation + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.CreateIndexCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(JobService.prototype.deleteCustomJob = function deleteCustomJob(request, callback) { - return this.rpcCall(deleteCustomJob, $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteCustomJob" }); + Object.defineProperty(IndexService.prototype.createIndex = function createIndex(request, callback) { + return this.rpcCall(createIndex, $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "CreateIndex" }); /** - * Calls DeleteCustomJob. - * @function deleteCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Calls CreateIndex. + * @function createIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} request CreateIndexRequest message or plain object * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelCustomJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelCustomJobCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#getIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef GetIndexCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * @param {google.cloud.aiplatform.v1beta1.Index} [response] Index */ /** - * Calls CancelCustomJob. - * @function cancelCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Calls GetIndex. + * @function getIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback} callback Node-style callback called with the error, if any, and Empty + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.GetIndexCallback} callback Node-style callback called with the error, if any, and Index * @returns {undefined} * @variation 1 */ - Object.defineProperty(JobService.prototype.cancelCustomJob = function cancelCustomJob(request, callback) { - return this.rpcCall(cancelCustomJob, $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelCustomJob" }); + Object.defineProperty(IndexService.prototype.getIndex = function getIndex(request, callback) { + return this.rpcCall(getIndex, $root.google.cloud.aiplatform.v1beta1.GetIndexRequest, $root.google.cloud.aiplatform.v1beta1.Index, request, callback); + }, "name", { value: "GetIndex" }); /** - * Calls CancelCustomJob. - * @function cancelCustomJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Calls GetIndex. + * @function getIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} request GetIndexRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateDataLabelingJobCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#listIndexes}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef ListIndexesCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob + * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} [response] ListIndexesResponse */ /** - * Calls CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Calls ListIndexes. + * @function listIndexes + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.ListIndexesCallback} callback Node-style callback called with the error, if any, and ListIndexesResponse * @returns {undefined} * @variation 1 */ - Object.defineProperty(JobService.prototype.createDataLabelingJob = function createDataLabelingJob(request, callback) { - return this.rpcCall(createDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); - }, "name", { value: "CreateDataLabelingJob" }); + Object.defineProperty(IndexService.prototype.listIndexes = function listIndexes(request, callback) { + return this.rpcCall(listIndexes, $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest, $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse, request, callback); + }, "name", { value: "ListIndexes" }); /** - * Calls CreateDataLabelingJob. - * @function createDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Calls ListIndexes. + * @function listIndexes + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} request ListIndexesRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetDataLabelingJobCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#updateIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef UpdateIndexCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Calls UpdateIndex. + * @function updateIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.UpdateIndexCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(JobService.prototype.getDataLabelingJob = function getDataLabelingJob(request, callback) { - return this.rpcCall(getDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); - }, "name", { value: "GetDataLabelingJob" }); + Object.defineProperty(IndexService.prototype.updateIndex = function updateIndex(request, callback) { + return this.rpcCall(updateIndex, $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateIndex" }); /** - * Calls GetDataLabelingJob. - * @function getDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Calls UpdateIndex. + * @function updateIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} request UpdateIndexRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listDataLabelingJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListDataLabelingJobsCallback + * Callback as used by {@link google.cloud.aiplatform.v1beta1.IndexService#deleteIndex}. + * @memberof google.cloud.aiplatform.v1beta1.IndexService + * @typedef DeleteIndexCallback * @type {function} * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} [response] ListDataLabelingJobsResponse + * @param {google.longrunning.Operation} [response] Operation */ /** - * Calls ListDataLabelingJobs. - * @function listDataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Calls DeleteIndex. + * @function deleteIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback} callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.IndexService.DeleteIndexCallback} callback Node-style callback called with the error, if any, and Operation * @returns {undefined} * @variation 1 */ - Object.defineProperty(JobService.prototype.listDataLabelingJobs = function listDataLabelingJobs(request, callback) { - return this.rpcCall(listDataLabelingJobs, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, request, callback); - }, "name", { value: "ListDataLabelingJobs" }); + Object.defineProperty(IndexService.prototype.deleteIndex = function deleteIndex(request, callback) { + return this.rpcCall(deleteIndex, $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteIndex" }); /** - * Calls ListDataLabelingJobs. - * @function listDataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Calls DeleteIndex. + * @function deleteIndex + * @memberof google.cloud.aiplatform.v1beta1.IndexService * @instance - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object - * @returns {Promise} Promise + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} request DeleteIndexRequest message or plain object + * @returns {Promise} Promise * @variation 2 */ - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + return IndexService; + })(); - /** - * Calls DeleteDataLabelingJob. - * @function deleteDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.deleteDataLabelingJob = function deleteDataLabelingJob(request, callback) { - return this.rpcCall(deleteDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteDataLabelingJob" }); + v1beta1.CreateIndexRequest = (function() { /** - * Calls DeleteDataLabelingJob. - * @function deleteDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a CreateIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateIndexRequest + * @property {string|null} [parent] CreateIndexRequest parent + * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] CreateIndexRequest index */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelDataLabelingJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelDataLabelingJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Constructs a new CreateIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateIndexRequest. + * @implements ICreateIndexRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set */ + function CreateIndexRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CreateIndexRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.cancelDataLabelingJob = function cancelDataLabelingJob(request, callback) { - return this.rpcCall(cancelDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelDataLabelingJob" }); + CreateIndexRequest.prototype.parent = ""; /** - * Calls CancelDataLabelingJob. - * @function cancelDataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CreateIndexRequest index. + * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CreateIndexRequest.prototype.index = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob + * Creates a new CreateIndexRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest instance */ + CreateIndexRequest.create = function create(properties) { + return new CreateIndexRequest(properties); + }; /** - * Calls CreateHyperparameterTuningJob. - * @function createHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.createHyperparameterTuningJob = function createHyperparameterTuningJob(request, callback) { - return this.rpcCall(createHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); - }, "name", { value: "CreateHyperparameterTuningJob" }); + CreateIndexRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls CreateHyperparameterTuningJob. - * @function createHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CreateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexRequest} message CreateIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob + * Decodes a CreateIndexRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateIndexRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob - * @returns {undefined} - * @variation 1 + * Decodes a CreateIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.getHyperparameterTuningJob = function getHyperparameterTuningJob(request, callback) { - return this.rpcCall(getHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); - }, "name", { value: "GetHyperparameterTuningJob" }); + CreateIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetHyperparameterTuningJob. - * @function getHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CreateIndexRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CreateIndexRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.index != null && message.hasOwnProperty("index")) { + var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); + if (error) + return "index." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listHyperparameterTuningJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListHyperparameterTuningJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} [response] ListHyperparameterTuningJobsResponse + * Creates a CreateIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexRequest} CreateIndexRequest */ + CreateIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.index != null) { + if (typeof object.index !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexRequest.index: object expected"); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); + } + return message; + }; /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback} callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a CreateIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateIndexRequest} message CreateIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.listHyperparameterTuningJobs = function listHyperparameterTuningJobs(request, callback) { - return this.rpcCall(listHyperparameterTuningJobs, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, request, callback); - }, "name", { value: "ListHyperparameterTuningJobs" }); + CreateIndexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.index = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.index != null && message.hasOwnProperty("index")) + object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); + return object; + }; /** - * Calls ListHyperparameterTuningJobs. - * @function listHyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this CreateIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CreateIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + return CreateIndexRequest; + })(); - /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.deleteHyperparameterTuningJob = function deleteHyperparameterTuningJob(request, callback) { - return this.rpcCall(deleteHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteHyperparameterTuningJob" }); + v1beta1.CreateIndexOperationMetadata = (function() { /** - * Calls DeleteHyperparameterTuningJob. - * @function deleteHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a CreateIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ICreateIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] CreateIndexOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelHyperparameterTuningJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelHyperparameterTuningJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Constructs a new CreateIndexOperationMetadata. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a CreateIndexOperationMetadata. + * @implements ICreateIndexOperationMetadata + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set */ + function CreateIndexOperationMetadata(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CancelHyperparameterTuningJob. - * @function cancelHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CreateIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.cancelHyperparameterTuningJob = function cancelHyperparameterTuningJob(request, callback) { - return this.rpcCall(cancelHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelHyperparameterTuningJob" }); + CreateIndexOperationMetadata.prototype.genericMetadata = null; /** - * Calls CancelHyperparameterTuningJob. - * @function cancelHyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * CreateIndexOperationMetadata nearestNeighborSearchOperationMetadata. + * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + CreateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob + * Creates a new CreateIndexOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata instance */ + CreateIndexOperationMetadata.create = function create(properties) { + return new CreateIndexOperationMetadata(properties); + }; /** - * Calls CreateBatchPredictionJob. - * @function createBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob - * @returns {undefined} - * @variation 1 + * Encodes the specified CreateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.createBatchPredictionJob = function createBatchPredictionJob(request, callback) { - return this.rpcCall(createBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); - }, "name", { value: "CreateBatchPredictionJob" }); + CreateIndexOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; /** - * Calls CreateBatchPredictionJob. - * @function createBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified CreateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.ICreateIndexOperationMetadata} message CreateIndexOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + CreateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + CreateIndexOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + case 2: + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob - * @returns {undefined} - * @variation 1 + * Decodes a CreateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.getBatchPredictionJob = function getBatchPredictionJob(request, callback) { - return this.rpcCall(getBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); - }, "name", { value: "GetBatchPredictionJob" }); + CreateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls GetBatchPredictionJob. - * @function getBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a CreateIndexOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + CreateIndexOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (error) + return "nearestNeighborSearchOperationMetadata." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listBatchPredictionJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListBatchPredictionJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse + * Creates a CreateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} CreateIndexOperationMetadata */ + CreateIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.nearestNeighborSearchOperationMetadata != null) { + if (typeof object.nearestNeighborSearchOperationMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + } + return message; + }; /** - * Calls ListBatchPredictionJobs. - * @function listBatchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback} callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse - * @returns {undefined} - * @variation 1 + * Creates a plain object from a CreateIndexOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata} message CreateIndexOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.listBatchPredictionJobs = function listBatchPredictionJobs(request, callback) { - return this.rpcCall(listBatchPredictionJobs, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, request, callback); - }, "name", { value: "ListBatchPredictionJobs" }); + CreateIndexOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.genericMetadata = null; + object.nearestNeighborSearchOperationMetadata = null; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) + object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); + return object; + }; /** - * Calls ListBatchPredictionJobs. - * @function listBatchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this CreateIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.CreateIndexOperationMetadata * @instance - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + CreateIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation - */ + return CreateIndexOperationMetadata; + })(); - /** - * Calls DeleteBatchPredictionJob. - * @function deleteBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 - */ - Object.defineProperty(JobService.prototype.deleteBatchPredictionJob = function deleteBatchPredictionJob(request, callback) { - return this.rpcCall(deleteBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteBatchPredictionJob" }); + v1beta1.GetIndexRequest = (function() { /** - * Calls DeleteBatchPredictionJob. - * @function deleteBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a GetIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetIndexRequest + * @property {string|null} [name] GetIndexRequest name */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelBatchPredictionJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CancelBatchPredictionJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Constructs a new GetIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetIndexRequest. + * @implements IGetIndexRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set */ + function GetIndexRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * GetIndexRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.cancelBatchPredictionJob = function cancelBatchPredictionJob(request, callback) { - return this.rpcCall(cancelBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "CancelBatchPredictionJob" }); + GetIndexRequest.prototype.name = ""; /** - * Calls CancelBatchPredictionJob. - * @function cancelBatchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a new GetIndexRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest instance */ + GetIndexRequest.create = function create(properties) { + return new GetIndexRequest(properties); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef CreateModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob + * Encodes the specified GetIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + GetIndexRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; /** - * Calls CreateModelDeploymentMonitoringJob. - * @function createModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - * @returns {undefined} - * @variation 1 + * Encodes the specified GetIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetIndexRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetIndexRequest} message GetIndexRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.createModelDeploymentMonitoringJob = function createModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(createModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); - }, "name", { value: "CreateModelDeploymentMonitoringJob" }); + GetIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Calls CreateModelDeploymentMonitoringJob. - * @function createModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Decodes a GetIndexRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetIndexRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#searchModelDeploymentMonitoringStatsAnomalies}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef SearchModelDeploymentMonitoringStatsAnomaliesCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse + * Decodes a GetIndexRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + GetIndexRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @function searchModelDeploymentMonitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback} callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse - * @returns {undefined} - * @variation 1 + * Verifies a GetIndexRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - Object.defineProperty(JobService.prototype.searchModelDeploymentMonitoringStatsAnomalies = function searchModelDeploymentMonitoringStatsAnomalies(request, callback) { - return this.rpcCall(searchModelDeploymentMonitoringStatsAnomalies, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, request, callback); - }, "name", { value: "SearchModelDeploymentMonitoringStatsAnomalies" }); + GetIndexRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; /** - * Calls SearchModelDeploymentMonitoringStatsAnomalies. - * @function searchModelDeploymentMonitoringStatsAnomalies - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Creates a GetIndexRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetIndexRequest} GetIndexRequest */ + GetIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetIndexRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetIndexRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef GetModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob + * Creates a plain object from a GetIndexRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetIndexRequest} message GetIndexRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ + GetIndexRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this GetIndexRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetIndexRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob - * @returns {undefined} - * @variation 1 + * @returns {Object.} JSON object */ - Object.defineProperty(JobService.prototype.getModelDeploymentMonitoringJob = function getModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(getModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); - }, "name", { value: "GetModelDeploymentMonitoringJob" }); + GetIndexRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetIndexRequest; + })(); + + v1beta1.ListIndexesRequest = (function() { /** - * Calls GetModelDeploymentMonitoringJob. - * @function getModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Properties of a ListIndexesRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListIndexesRequest + * @property {string|null} [parent] ListIndexesRequest parent + * @property {string|null} [filter] ListIndexesRequest filter + * @property {number|null} [pageSize] ListIndexesRequest pageSize + * @property {string|null} [pageToken] ListIndexesRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListIndexesRequest readMask */ /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listModelDeploymentMonitoringJobs}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ListModelDeploymentMonitoringJobsCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} [response] ListModelDeploymentMonitoringJobsResponse + * Constructs a new ListIndexesRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListIndexesRequest. + * @implements IListIndexesRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set */ + function ListIndexesRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * Calls ListModelDeploymentMonitoringJobs. - * @function listModelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListIndexesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback} callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.listModelDeploymentMonitoringJobs = function listModelDeploymentMonitoringJobs(request, callback) { - return this.rpcCall(listModelDeploymentMonitoringJobs, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, request, callback); - }, "name", { value: "ListModelDeploymentMonitoringJobs" }); + ListIndexesRequest.prototype.parent = ""; /** - * Calls ListModelDeploymentMonitoringJobs. - * @function listModelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListIndexesRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListIndexesRequest.prototype.filter = ""; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#updateModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef UpdateModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * ListIndexesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @instance */ + ListIndexesRequest.prototype.pageSize = 0; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListIndexesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 */ - Object.defineProperty(JobService.prototype.updateModelDeploymentMonitoringJob = function updateModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(updateModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "UpdateModelDeploymentMonitoringJob" }); + ListIndexesRequest.prototype.pageToken = ""; /** - * Calls UpdateModelDeploymentMonitoringJob. - * @function updateModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * ListIndexesRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 */ + ListIndexesRequest.prototype.readMask = null; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef DeleteModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.longrunning.Operation} [response] Operation + * Creates a new ListIndexesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest instance */ + ListIndexesRequest.create = function create(properties) { + return new ListIndexesRequest(properties); + }; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @function deleteModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation - * @returns {undefined} - * @variation 1 + * Encodes the specified ListIndexesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ - Object.defineProperty(JobService.prototype.deleteModelDeploymentMonitoringJob = function deleteModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(deleteModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); - }, "name", { value: "DeleteModelDeploymentMonitoringJob" }); + ListIndexesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; /** - * Calls DeleteModelDeploymentMonitoringJob. - * @function deleteModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Encodes the specified ListIndexesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListIndexesRequest} message ListIndexesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer */ + ListIndexesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#pauseModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef PauseModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Decodes a ListIndexesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ + ListIndexesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; /** - * Calls PauseModelDeploymentMonitoringJob. - * @function pauseModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Decodes a ListIndexesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - Object.defineProperty(JobService.prototype.pauseModelDeploymentMonitoringJob = function pauseModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(pauseModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "PauseModelDeploymentMonitoringJob" }); + ListIndexesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; /** - * Calls PauseModelDeploymentMonitoringJob. - * @function pauseModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * Verifies a ListIndexesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not */ + ListIndexesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; /** - * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#resumeModelDeploymentMonitoringJob}. - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @typedef ResumeModelDeploymentMonitoringJobCallback - * @type {function} - * @param {Error|null} error Error, if any - * @param {google.protobuf.Empty} [response] Empty + * Creates a ListIndexesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesRequest} ListIndexesRequest */ + ListIndexesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService - * @instance - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @param {google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty - * @returns {undefined} - * @variation 1 + * Creates a plain object from a ListIndexesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListIndexesRequest} message ListIndexesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object */ - Object.defineProperty(JobService.prototype.resumeModelDeploymentMonitoringJob = function resumeModelDeploymentMonitoringJob(request, callback) { - return this.rpcCall(resumeModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); - }, "name", { value: "ResumeModelDeploymentMonitoringJob" }); + ListIndexesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; /** - * Calls ResumeModelDeploymentMonitoringJob. - * @function resumeModelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.JobService + * Converts this ListIndexesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesRequest * @instance - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object - * @returns {Promise} Promise - * @variation 2 + * @returns {Object.} JSON object */ + ListIndexesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return JobService; + return ListIndexesRequest; })(); - v1beta1.CreateCustomJobRequest = (function() { + v1beta1.ListIndexesResponse = (function() { /** - * Properties of a CreateCustomJobRequest. + * Properties of a ListIndexesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateCustomJobRequest - * @property {string|null} [parent] CreateCustomJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob + * @interface IListIndexesResponse + * @property {Array.|null} [indexes] ListIndexesResponse indexes + * @property {string|null} [nextPageToken] ListIndexesResponse nextPageToken */ /** - * Constructs a new CreateCustomJobRequest. + * Constructs a new ListIndexesResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateCustomJobRequest. - * @implements ICreateCustomJobRequest + * @classdesc Represents a ListIndexesResponse. + * @implements IListIndexesResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set */ - function CreateCustomJobRequest(properties) { + function ListIndexesResponse(properties) { + this.indexes = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -214936,88 +220158,91 @@ } /** - * CreateCustomJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * ListIndexesResponse indexes. + * @member {Array.} indexes + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @instance */ - CreateCustomJobRequest.prototype.parent = ""; + ListIndexesResponse.prototype.indexes = $util.emptyArray; /** - * CreateCustomJobRequest customJob. - * @member {google.cloud.aiplatform.v1beta1.ICustomJob|null|undefined} customJob - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * ListIndexesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @instance */ - CreateCustomJobRequest.prototype.customJob = null; + ListIndexesResponse.prototype.nextPageToken = ""; /** - * Creates a new CreateCustomJobRequest instance using the specified properties. + * Creates a new ListIndexesResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse instance */ - CreateCustomJobRequest.create = function create(properties) { - return new CreateCustomJobRequest(properties); + ListIndexesResponse.create = function create(properties) { + return new ListIndexesResponse(properties); }; /** - * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * Encodes the specified ListIndexesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomJobRequest.encode = function encode(message, writer) { + ListIndexesResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) - $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.indexes != null && message.indexes.length) + for (var i = 0; i < message.indexes.length; ++i) + $root.google.cloud.aiplatform.v1beta1.Index.encode(message.indexes[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. + * Encodes the specified ListIndexesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListIndexesResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListIndexesResponse} message ListIndexesResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListIndexesResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer. + * Decodes a ListIndexesResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomJobRequest.decode = function decode(reader, length) { + ListIndexesResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); + if (!(message.indexes && message.indexes.length)) + message.indexes = []; + message.indexes.push($root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32())); break; case 2: - message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -215028,121 +220253,134 @@ }; /** - * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListIndexesResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListIndexesResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateCustomJobRequest message. + * Verifies a ListIndexesResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateCustomJobRequest.verify = function verify(message) { + ListIndexesResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.customJob != null && message.hasOwnProperty("customJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJob); - if (error) - return "customJob." + error; + if (message.indexes != null && message.hasOwnProperty("indexes")) { + if (!Array.isArray(message.indexes)) + return "indexes: array expected"; + for (var i = 0; i < message.indexes.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.indexes[i]); + if (error) + return "indexes." + error; + } } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListIndexesResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListIndexesResponse} ListIndexesResponse */ - CreateCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest) + ListIndexesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.customJob != null) { - if (typeof object.customJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.customJob: object expected"); - message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJob); + var message = new $root.google.cloud.aiplatform.v1beta1.ListIndexesResponse(); + if (object.indexes) { + if (!Array.isArray(object.indexes)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: array expected"); + message.indexes = []; + for (var i = 0; i < object.indexes.length; ++i) { + if (typeof object.indexes[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListIndexesResponse.indexes: object expected"); + message.indexes[i] = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.indexes[i]); + } } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListIndexesResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @static - * @param {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} message CreateCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListIndexesResponse} message ListIndexesResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateCustomJobRequest.toObject = function toObject(message, options) { + ListIndexesResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.customJob = null; + if (options.arrays || options.defaults) + object.indexes = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.indexes && message.indexes.length) { + object.indexes = []; + for (var j = 0; j < message.indexes.length; ++j) + object.indexes[j] = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.indexes[j], options); } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.customJob != null && message.hasOwnProperty("customJob")) - object.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJob, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this CreateCustomJobRequest to JSON. + * Converts this ListIndexesResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListIndexesResponse * @instance * @returns {Object.} JSON object */ - CreateCustomJobRequest.prototype.toJSON = function toJSON() { + ListIndexesResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateCustomJobRequest; + return ListIndexesResponse; })(); - v1beta1.GetCustomJobRequest = (function() { + v1beta1.UpdateIndexRequest = (function() { /** - * Properties of a GetCustomJobRequest. + * Properties of an UpdateIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetCustomJobRequest - * @property {string|null} [name] GetCustomJobRequest name + * @interface IUpdateIndexRequest + * @property {google.cloud.aiplatform.v1beta1.IIndex|null} [index] UpdateIndexRequest index + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateIndexRequest updateMask */ /** - * Constructs a new GetCustomJobRequest. + * Constructs a new UpdateIndexRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetCustomJobRequest. - * @implements IGetCustomJobRequest + * @classdesc Represents an UpdateIndexRequest. + * @implements IUpdateIndexRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set */ - function GetCustomJobRequest(properties) { + function UpdateIndexRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -215150,75 +220388,88 @@ } /** - * GetCustomJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * UpdateIndexRequest index. + * @member {google.cloud.aiplatform.v1beta1.IIndex|null|undefined} index + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance */ - GetCustomJobRequest.prototype.name = ""; + UpdateIndexRequest.prototype.index = null; /** - * Creates a new GetCustomJobRequest instance using the specified properties. + * UpdateIndexRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest + * @instance + */ + UpdateIndexRequest.prototype.updateMask = null; + + /** + * Creates a new UpdateIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest instance */ - GetCustomJobRequest.create = function create(properties) { - return new GetCustomJobRequest(properties); + UpdateIndexRequest.create = function create(properties) { + return new UpdateIndexRequest(properties); }; /** - * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * Encodes the specified UpdateIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomJobRequest.encode = function encode(message, writer) { + UpdateIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.index != null && Object.hasOwnProperty.call(message, "index")) + $root.google.cloud.aiplatform.v1beta1.Index.encode(message.index, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. + * Encodes the specified UpdateIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexRequest} message UpdateIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + UpdateIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer. + * Decodes an UpdateIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomJobRequest.decode = function decode(reader, length) { + UpdateIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.decode(reader, reader.uint32()); + break; + case 2: + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -215229,111 +220480,127 @@ }; /** - * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. + * Decodes an UpdateIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { + UpdateIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetCustomJobRequest message. + * Verifies an UpdateIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetCustomJobRequest.verify = function verify(message) { + UpdateIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.index != null && message.hasOwnProperty("index")) { + var error = $root.google.cloud.aiplatform.v1beta1.Index.verify(message.index); + if (error) + return "index." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; + } return null; }; /** - * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} UpdateIndexRequest */ - GetCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest) + UpdateIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexRequest(); + if (object.index != null) { + if (typeof object.index !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.index: object expected"); + message.index = $root.google.cloud.aiplatform.v1beta1.Index.fromObject(object.index); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + } return message; }; /** - * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. + * Creates a plain object from an UpdateIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} message GetCustomJobRequest + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexRequest} message UpdateIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetCustomJobRequest.toObject = function toObject(message, options) { + UpdateIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.index = null; + object.updateMask = null; + } + if (message.index != null && message.hasOwnProperty("index")) + object.index = $root.google.cloud.aiplatform.v1beta1.Index.toObject(message.index, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this GetCustomJobRequest to JSON. + * Converts this UpdateIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexRequest * @instance * @returns {Object.} JSON object */ - GetCustomJobRequest.prototype.toJSON = function toJSON() { + UpdateIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetCustomJobRequest; + return UpdateIndexRequest; })(); - v1beta1.ListCustomJobsRequest = (function() { + v1beta1.UpdateIndexOperationMetadata = (function() { /** - * Properties of a ListCustomJobsRequest. + * Properties of an UpdateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListCustomJobsRequest - * @property {string|null} [parent] ListCustomJobsRequest parent - * @property {string|null} [filter] ListCustomJobsRequest filter - * @property {number|null} [pageSize] ListCustomJobsRequest pageSize - * @property {string|null} [pageToken] ListCustomJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListCustomJobsRequest readMask + * @interface IUpdateIndexOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateIndexOperationMetadata genericMetadata + * @property {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null} [nearestNeighborSearchOperationMetadata] UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata */ /** - * Constructs a new ListCustomJobsRequest. + * Constructs a new UpdateIndexOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListCustomJobsRequest. - * @implements IListCustomJobsRequest + * @classdesc Represents an UpdateIndexOperationMetadata. + * @implements IUpdateIndexOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set */ - function ListCustomJobsRequest(properties) { + function UpdateIndexOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -215341,127 +220608,294 @@ } /** - * ListCustomJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * UpdateIndexOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance */ - ListCustomJobsRequest.prototype.parent = ""; + UpdateIndexOperationMetadata.prototype.genericMetadata = null; /** - * ListCustomJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * UpdateIndexOperationMetadata nearestNeighborSearchOperationMetadata. + * @member {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata|null|undefined} nearestNeighborSearchOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @instance + */ + UpdateIndexOperationMetadata.prototype.nearestNeighborSearchOperationMetadata = null; + + /** + * Creates a new UpdateIndexOperationMetadata instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata instance + */ + UpdateIndexOperationMetadata.create = function create(properties) { + return new UpdateIndexOperationMetadata(properties); + }; + + /** + * Encodes the specified UpdateIndexOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIndexOperationMetadata.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nearestNeighborSearchOperationMetadata != null && Object.hasOwnProperty.call(message, "nearestNeighborSearchOperationMetadata")) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.encode(message.nearestNeighborSearchOperationMetadata, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified UpdateIndexOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.IUpdateIndexOperationMetadata} message UpdateIndexOperationMetadata message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + UpdateIndexOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIndexOperationMetadata.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + break; + case 2: + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes an UpdateIndexOperationMetadata message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + UpdateIndexOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies an UpdateIndexOperationMetadata message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + UpdateIndexOperationMetadata.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (error) + return "genericMetadata." + error; + } + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify(message.nearestNeighborSearchOperationMetadata); + if (error) + return "nearestNeighborSearchOperationMetadata." + error; + } + return null; + }; + + /** + * Creates an UpdateIndexOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} UpdateIndexOperationMetadata + */ + UpdateIndexOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + } + if (object.nearestNeighborSearchOperationMetadata != null) { + if (typeof object.nearestNeighborSearchOperationMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata.nearestNeighborSearchOperationMetadata: object expected"); + message.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.fromObject(object.nearestNeighborSearchOperationMetadata); + } + return message; + }; + + /** + * Creates a plain object from an UpdateIndexOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata} message UpdateIndexOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + UpdateIndexOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.genericMetadata = null; + object.nearestNeighborSearchOperationMetadata = null; + } + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (message.nearestNeighborSearchOperationMetadata != null && message.hasOwnProperty("nearestNeighborSearchOperationMetadata")) + object.nearestNeighborSearchOperationMetadata = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.toObject(message.nearestNeighborSearchOperationMetadata, options); + return object; + }; + + /** + * Converts this UpdateIndexOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.UpdateIndexOperationMetadata * @instance + * @returns {Object.} JSON object */ - ListCustomJobsRequest.prototype.filter = ""; + UpdateIndexOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return UpdateIndexOperationMetadata; + })(); + + v1beta1.DeleteIndexRequest = (function() { /** - * ListCustomJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @instance + * Properties of a DeleteIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IDeleteIndexRequest + * @property {string|null} [name] DeleteIndexRequest name */ - ListCustomJobsRequest.prototype.pageSize = 0; /** - * ListCustomJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest - * @instance + * Constructs a new DeleteIndexRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a DeleteIndexRequest. + * @implements IDeleteIndexRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set */ - ListCustomJobsRequest.prototype.pageToken = ""; + function DeleteIndexRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } /** - * ListCustomJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * DeleteIndexRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @instance */ - ListCustomJobsRequest.prototype.readMask = null; + DeleteIndexRequest.prototype.name = ""; /** - * Creates a new ListCustomJobsRequest instance using the specified properties. + * Creates a new DeleteIndexRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest instance */ - ListCustomJobsRequest.create = function create(properties) { - return new ListCustomJobsRequest(properties); + DeleteIndexRequest.create = function create(properties) { + return new DeleteIndexRequest(properties); }; /** - * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * Encodes the specified DeleteIndexRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsRequest.encode = function encode(message, writer) { + DeleteIndexRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. + * Encodes the specified DeleteIndexRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteIndexRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteIndexRequest} message DeleteIndexRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteIndexRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer. + * Decodes a DeleteIndexRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsRequest.decode = function decode(reader, length) { + DeleteIndexRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -215472,147 +220906,109 @@ }; /** - * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteIndexRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteIndexRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomJobsRequest message. + * Verifies a DeleteIndexRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomJobsRequest.verify = function verify(message) { + DeleteIndexRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteIndexRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} DeleteIndexRequest */ - ListCustomJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest) + DeleteIndexRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteIndexRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteIndexRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} message ListCustomJobsRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteIndexRequest} message DeleteIndexRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListCustomJobsRequest.toObject = function toObject(message, options) { + DeleteIndexRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListCustomJobsRequest to JSON. + * Converts this DeleteIndexRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteIndexRequest * @instance * @returns {Object.} JSON object */ - ListCustomJobsRequest.prototype.toJSON = function toJSON() { + DeleteIndexRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListCustomJobsRequest; + return DeleteIndexRequest; })(); - v1beta1.ListCustomJobsResponse = (function() { + v1beta1.NearestNeighborSearchOperationMetadata = (function() { /** - * Properties of a ListCustomJobsResponse. + * Properties of a NearestNeighborSearchOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListCustomJobsResponse - * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs - * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken + * @interface INearestNeighborSearchOperationMetadata + * @property {Array.|null} [contentValidationStats] NearestNeighborSearchOperationMetadata contentValidationStats + * @property {number|Long|null} [dataBytesCount] NearestNeighborSearchOperationMetadata dataBytesCount */ /** - * Constructs a new ListCustomJobsResponse. + * Constructs a new NearestNeighborSearchOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListCustomJobsResponse. - * @implements IListCustomJobsResponse + * @classdesc Represents a NearestNeighborSearchOperationMetadata. + * @implements INearestNeighborSearchOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set */ - function ListCustomJobsResponse(properties) { - this.customJobs = []; + function NearestNeighborSearchOperationMetadata(properties) { + this.contentValidationStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -215620,91 +221016,91 @@ } /** - * ListCustomJobsResponse customJobs. - * @member {Array.} customJobs - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * NearestNeighborSearchOperationMetadata contentValidationStats. + * @member {Array.} contentValidationStats + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @instance */ - ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; + NearestNeighborSearchOperationMetadata.prototype.contentValidationStats = $util.emptyArray; /** - * ListCustomJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * NearestNeighborSearchOperationMetadata dataBytesCount. + * @member {number|Long} dataBytesCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @instance */ - ListCustomJobsResponse.prototype.nextPageToken = ""; + NearestNeighborSearchOperationMetadata.prototype.dataBytesCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; /** - * Creates a new ListCustomJobsResponse instance using the specified properties. + * Creates a new NearestNeighborSearchOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata instance */ - ListCustomJobsResponse.create = function create(properties) { - return new ListCustomJobsResponse(properties); + NearestNeighborSearchOperationMetadata.create = function create(properties) { + return new NearestNeighborSearchOperationMetadata(properties); }; /** - * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * Encodes the specified NearestNeighborSearchOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsResponse.encode = function encode(message, writer) { + NearestNeighborSearchOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.customJobs != null && message.customJobs.length) - for (var i = 0; i < message.customJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.contentValidationStats != null && message.contentValidationStats.length) + for (var i = 0; i < message.contentValidationStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.encode(message.contentValidationStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.dataBytesCount != null && Object.hasOwnProperty.call(message, "dataBytesCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.dataBytesCount); return writer; }; /** - * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. + * Encodes the specified NearestNeighborSearchOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.INearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + NearestNeighborSearchOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsResponse.decode = function decode(reader, length) { + NearestNeighborSearchOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.customJobs && message.customJobs.length)) - message.customJobs = []; - message.customJobs.push($root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32())); + if (!(message.contentValidationStats && message.contentValidationStats.length)) + message.contentValidationStats = []; + message.contentValidationStats.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.decode(reader, reader.uint32())); break; case 2: - message.nextPageToken = reader.string(); + message.dataBytesCount = reader.int64(); break; default: reader.skipType(tag & 7); @@ -215715,1443 +221111,1756 @@ }; /** - * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a NearestNeighborSearchOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListCustomJobsResponse.decodeDelimited = function decodeDelimited(reader) { + NearestNeighborSearchOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListCustomJobsResponse message. + * Verifies a NearestNeighborSearchOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListCustomJobsResponse.verify = function verify(message) { + NearestNeighborSearchOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.customJobs != null && message.hasOwnProperty("customJobs")) { - if (!Array.isArray(message.customJobs)) - return "customJobs: array expected"; - for (var i = 0; i < message.customJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJobs[i]); + if (message.contentValidationStats != null && message.hasOwnProperty("contentValidationStats")) { + if (!Array.isArray(message.contentValidationStats)) + return "contentValidationStats: array expected"; + for (var i = 0; i < message.contentValidationStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify(message.contentValidationStats[i]); if (error) - return "customJobs." + error; + return "contentValidationStats." + error; + } + } + if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) + if (!$util.isInteger(message.dataBytesCount) && !(message.dataBytesCount && $util.isInteger(message.dataBytesCount.low) && $util.isInteger(message.dataBytesCount.high))) + return "dataBytesCount: integer|Long expected"; + return null; + }; + + /** + * Creates a NearestNeighborSearchOperationMetadata message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} NearestNeighborSearchOperationMetadata + */ + NearestNeighborSearchOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata(); + if (object.contentValidationStats) { + if (!Array.isArray(object.contentValidationStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: array expected"); + message.contentValidationStats = []; + for (var i = 0; i < object.contentValidationStats.length; ++i) { + if (typeof object.contentValidationStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.contentValidationStats: object expected"); + message.contentValidationStats[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.fromObject(object.contentValidationStats[i]); + } + } + if (object.dataBytesCount != null) + if ($util.Long) + (message.dataBytesCount = $util.Long.fromValue(object.dataBytesCount)).unsigned = false; + else if (typeof object.dataBytesCount === "string") + message.dataBytesCount = parseInt(object.dataBytesCount, 10); + else if (typeof object.dataBytesCount === "number") + message.dataBytesCount = object.dataBytesCount; + else if (typeof object.dataBytesCount === "object") + message.dataBytesCount = new $util.LongBits(object.dataBytesCount.low >>> 0, object.dataBytesCount.high >>> 0).toNumber(); + return message; + }; + + /** + * Creates a plain object from a NearestNeighborSearchOperationMetadata message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata} message NearestNeighborSearchOperationMetadata + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + NearestNeighborSearchOperationMetadata.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.contentValidationStats = []; + if (options.defaults) + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.dataBytesCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.dataBytesCount = options.longs === String ? "0" : 0; + if (message.contentValidationStats && message.contentValidationStats.length) { + object.contentValidationStats = []; + for (var j = 0; j < message.contentValidationStats.length; ++j) + object.contentValidationStats[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.toObject(message.contentValidationStats[j], options); + } + if (message.dataBytesCount != null && message.hasOwnProperty("dataBytesCount")) + if (typeof message.dataBytesCount === "number") + object.dataBytesCount = options.longs === String ? String(message.dataBytesCount) : message.dataBytesCount; + else + object.dataBytesCount = options.longs === String ? $util.Long.prototype.toString.call(message.dataBytesCount) : options.longs === Number ? new $util.LongBits(message.dataBytesCount.low >>> 0, message.dataBytesCount.high >>> 0).toNumber() : message.dataBytesCount; + return object; + }; + + /** + * Converts this NearestNeighborSearchOperationMetadata to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @instance + * @returns {Object.} JSON object + */ + NearestNeighborSearchOperationMetadata.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + NearestNeighborSearchOperationMetadata.RecordError = (function() { + + /** + * Properties of a RecordError. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @interface IRecordError + * @property {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType|null} [errorType] RecordError errorType + * @property {string|null} [errorMessage] RecordError errorMessage + * @property {string|null} [sourceGcsUri] RecordError sourceGcsUri + * @property {string|null} [embeddingId] RecordError embeddingId + * @property {string|null} [rawRecord] RecordError rawRecord + */ + + /** + * Constructs a new RecordError. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @classdesc Represents a RecordError. + * @implements IRecordError + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set + */ + function RecordError(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * RecordError errorType. + * @member {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType} errorType + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.errorType = 0; + + /** + * RecordError errorMessage. + * @member {string} errorMessage + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.errorMessage = ""; + + /** + * RecordError sourceGcsUri. + * @member {string} sourceGcsUri + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.sourceGcsUri = ""; + + /** + * RecordError embeddingId. + * @member {string} embeddingId + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.embeddingId = ""; + + /** + * RecordError rawRecord. + * @member {string} rawRecord + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + */ + RecordError.prototype.rawRecord = ""; + + /** + * Creates a new RecordError instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError instance + */ + RecordError.create = function create(properties) { + return new RecordError(properties); + }; + + /** + * Encodes the specified RecordError message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordError.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.errorType != null && Object.hasOwnProperty.call(message, "errorType")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.errorType); + if (message.errorMessage != null && Object.hasOwnProperty.call(message, "errorMessage")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.errorMessage); + if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.sourceGcsUri); + if (message.embeddingId != null && Object.hasOwnProperty.call(message, "embeddingId")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.embeddingId); + if (message.rawRecord != null && Object.hasOwnProperty.call(message, "rawRecord")) + writer.uint32(/* id 5, wireType 2 =*/42).string(message.rawRecord); + return writer; + }; + + /** + * Encodes the specified RecordError message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IRecordError} message RecordError message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + RecordError.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a RecordError message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordError.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.errorType = reader.int32(); + break; + case 2: + message.errorMessage = reader.string(); + break; + case 3: + message.sourceGcsUri = reader.string(); + break; + case 4: + message.embeddingId = reader.string(); + break; + case 5: + message.rawRecord = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a RecordError message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + RecordError.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a RecordError message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + RecordError.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.errorType != null && message.hasOwnProperty("errorType")) + switch (message.errorType) { + default: + return "errorType: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + break; + } + if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + if (!$util.isString(message.errorMessage)) + return "errorMessage: string expected"; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + if (!$util.isString(message.sourceGcsUri)) + return "sourceGcsUri: string expected"; + if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) + if (!$util.isString(message.embeddingId)) + return "embeddingId: string expected"; + if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) + if (!$util.isString(message.rawRecord)) + return "rawRecord: string expected"; + return null; + }; + + /** + * Creates a RecordError message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} RecordError + */ + RecordError.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError(); + switch (object.errorType) { + case "ERROR_TYPE_UNSPECIFIED": + case 0: + message.errorType = 0; + break; + case "EMPTY_LINE": + case 1: + message.errorType = 1; + break; + case "INVALID_JSON_SYNTAX": + case 2: + message.errorType = 2; + break; + case "INVALID_CSV_SYNTAX": + case 3: + message.errorType = 3; + break; + case "INVALID_AVRO_SYNTAX": + case 4: + message.errorType = 4; + break; + case "INVALID_EMBEDDING_ID": + case 5: + message.errorType = 5; + break; + case "EMBEDDING_SIZE_MISMATCH": + case 6: + message.errorType = 6; + break; + case "NAMESPACE_MISSING": + case 7: + message.errorType = 7; + break; + } + if (object.errorMessage != null) + message.errorMessage = String(object.errorMessage); + if (object.sourceGcsUri != null) + message.sourceGcsUri = String(object.sourceGcsUri); + if (object.embeddingId != null) + message.embeddingId = String(object.embeddingId); + if (object.rawRecord != null) + message.rawRecord = String(object.rawRecord); + return message; + }; + + /** + * Creates a plain object from a RecordError message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError} message RecordError + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + RecordError.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.errorType = options.enums === String ? "ERROR_TYPE_UNSPECIFIED" : 0; + object.errorMessage = ""; + object.sourceGcsUri = ""; + object.embeddingId = ""; + object.rawRecord = ""; + } + if (message.errorType != null && message.hasOwnProperty("errorType")) + object.errorType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType[message.errorType] : message.errorType; + if (message.errorMessage != null && message.hasOwnProperty("errorMessage")) + object.errorMessage = message.errorMessage; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + object.sourceGcsUri = message.sourceGcsUri; + if (message.embeddingId != null && message.hasOwnProperty("embeddingId")) + object.embeddingId = message.embeddingId; + if (message.rawRecord != null && message.hasOwnProperty("rawRecord")) + object.rawRecord = message.rawRecord; + return object; + }; + + /** + * Converts this RecordError to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError + * @instance + * @returns {Object.} JSON object + */ + RecordError.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + /** + * RecordErrorType enum. + * @name google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.RecordErrorType + * @enum {number} + * @property {number} ERROR_TYPE_UNSPECIFIED=0 ERROR_TYPE_UNSPECIFIED value + * @property {number} EMPTY_LINE=1 EMPTY_LINE value + * @property {number} INVALID_JSON_SYNTAX=2 INVALID_JSON_SYNTAX value + * @property {number} INVALID_CSV_SYNTAX=3 INVALID_CSV_SYNTAX value + * @property {number} INVALID_AVRO_SYNTAX=4 INVALID_AVRO_SYNTAX value + * @property {number} INVALID_EMBEDDING_ID=5 INVALID_EMBEDDING_ID value + * @property {number} EMBEDDING_SIZE_MISMATCH=6 EMBEDDING_SIZE_MISMATCH value + * @property {number} NAMESPACE_MISSING=7 NAMESPACE_MISSING value + */ + RecordError.RecordErrorType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "ERROR_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "EMPTY_LINE"] = 1; + values[valuesById[2] = "INVALID_JSON_SYNTAX"] = 2; + values[valuesById[3] = "INVALID_CSV_SYNTAX"] = 3; + values[valuesById[4] = "INVALID_AVRO_SYNTAX"] = 4; + values[valuesById[5] = "INVALID_EMBEDDING_ID"] = 5; + values[valuesById[6] = "EMBEDDING_SIZE_MISMATCH"] = 6; + values[valuesById[7] = "NAMESPACE_MISSING"] = 7; + return values; + })(); + + return RecordError; + })(); + + NearestNeighborSearchOperationMetadata.ContentValidationStats = (function() { + + /** + * Properties of a ContentValidationStats. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @interface IContentValidationStats + * @property {string|null} [sourceGcsUri] ContentValidationStats sourceGcsUri + * @property {number|Long|null} [validRecordCount] ContentValidationStats validRecordCount + * @property {number|Long|null} [invalidRecordCount] ContentValidationStats invalidRecordCount + * @property {Array.|null} [partialErrors] ContentValidationStats partialErrors + */ + + /** + * Constructs a new ContentValidationStats. + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata + * @classdesc Represents a ContentValidationStats. + * @implements IContentValidationStats + * @constructor + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set + */ + function ContentValidationStats(properties) { + this.partialErrors = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ContentValidationStats sourceGcsUri. + * @member {string} sourceGcsUri + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.sourceGcsUri = ""; + + /** + * ContentValidationStats validRecordCount. + * @member {number|Long} validRecordCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.validRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ContentValidationStats invalidRecordCount. + * @member {number|Long} invalidRecordCount + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.invalidRecordCount = $util.Long ? $util.Long.fromBits(0,0,false) : 0; + + /** + * ContentValidationStats partialErrors. + * @member {Array.} partialErrors + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + */ + ContentValidationStats.prototype.partialErrors = $util.emptyArray; + + /** + * Creates a new ContentValidationStats instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats instance + */ + ContentValidationStats.create = function create(properties) { + return new ContentValidationStats(properties); + }; + + /** + * Encodes the specified ContentValidationStats message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContentValidationStats.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.sourceGcsUri != null && Object.hasOwnProperty.call(message, "sourceGcsUri")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.sourceGcsUri); + if (message.validRecordCount != null && Object.hasOwnProperty.call(message, "validRecordCount")) + writer.uint32(/* id 2, wireType 0 =*/16).int64(message.validRecordCount); + if (message.invalidRecordCount != null && Object.hasOwnProperty.call(message, "invalidRecordCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int64(message.invalidRecordCount); + if (message.partialErrors != null && message.partialErrors.length) + for (var i = 0; i < message.partialErrors.length; ++i) + $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.encode(message.partialErrors[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ContentValidationStats message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.IContentValidationStats} message ContentValidationStats message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ContentValidationStats.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContentValidationStats.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.sourceGcsUri = reader.string(); + break; + case 2: + message.validRecordCount = reader.int64(); + break; + case 3: + message.invalidRecordCount = reader.int64(); + break; + case 4: + if (!(message.partialErrors && message.partialErrors.length)) + message.partialErrors = []; + message.partialErrors.push($root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ContentValidationStats message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ContentValidationStats.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ContentValidationStats message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ContentValidationStats.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + if (!$util.isString(message.sourceGcsUri)) + return "sourceGcsUri: string expected"; + if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) + if (!$util.isInteger(message.validRecordCount) && !(message.validRecordCount && $util.isInteger(message.validRecordCount.low) && $util.isInteger(message.validRecordCount.high))) + return "validRecordCount: integer|Long expected"; + if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) + if (!$util.isInteger(message.invalidRecordCount) && !(message.invalidRecordCount && $util.isInteger(message.invalidRecordCount.low) && $util.isInteger(message.invalidRecordCount.high))) + return "invalidRecordCount: integer|Long expected"; + if (message.partialErrors != null && message.hasOwnProperty("partialErrors")) { + if (!Array.isArray(message.partialErrors)) + return "partialErrors: array expected"; + for (var i = 0; i < message.partialErrors.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.verify(message.partialErrors[i]); + if (error) + return "partialErrors." + error; + } + } + return null; + }; + + /** + * Creates a ContentValidationStats message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} ContentValidationStats + */ + ContentValidationStats.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats(); + if (object.sourceGcsUri != null) + message.sourceGcsUri = String(object.sourceGcsUri); + if (object.validRecordCount != null) + if ($util.Long) + (message.validRecordCount = $util.Long.fromValue(object.validRecordCount)).unsigned = false; + else if (typeof object.validRecordCount === "string") + message.validRecordCount = parseInt(object.validRecordCount, 10); + else if (typeof object.validRecordCount === "number") + message.validRecordCount = object.validRecordCount; + else if (typeof object.validRecordCount === "object") + message.validRecordCount = new $util.LongBits(object.validRecordCount.low >>> 0, object.validRecordCount.high >>> 0).toNumber(); + if (object.invalidRecordCount != null) + if ($util.Long) + (message.invalidRecordCount = $util.Long.fromValue(object.invalidRecordCount)).unsigned = false; + else if (typeof object.invalidRecordCount === "string") + message.invalidRecordCount = parseInt(object.invalidRecordCount, 10); + else if (typeof object.invalidRecordCount === "number") + message.invalidRecordCount = object.invalidRecordCount; + else if (typeof object.invalidRecordCount === "object") + message.invalidRecordCount = new $util.LongBits(object.invalidRecordCount.low >>> 0, object.invalidRecordCount.high >>> 0).toNumber(); + if (object.partialErrors) { + if (!Array.isArray(object.partialErrors)) + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: array expected"); + message.partialErrors = []; + for (var i = 0; i < object.partialErrors.length; ++i) { + if (typeof object.partialErrors[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats.partialErrors: object expected"); + message.partialErrors[i] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.fromObject(object.partialErrors[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a ContentValidationStats message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @static + * @param {google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats} message ContentValidationStats + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ContentValidationStats.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.partialErrors = []; + if (options.defaults) { + object.sourceGcsUri = ""; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.validRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.validRecordCount = options.longs === String ? "0" : 0; + if ($util.Long) { + var long = new $util.Long(0, 0, false); + object.invalidRecordCount = options.longs === String ? long.toString() : options.longs === Number ? long.toNumber() : long; + } else + object.invalidRecordCount = options.longs === String ? "0" : 0; } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; - - /** - * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse - */ - ListCustomJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); - if (object.customJobs) { - if (!Array.isArray(object.customJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: array expected"); - message.customJobs = []; - for (var i = 0; i < object.customJobs.length; ++i) { - if (typeof object.customJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: object expected"); - message.customJobs[i] = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJobs[i]); + if (message.sourceGcsUri != null && message.hasOwnProperty("sourceGcsUri")) + object.sourceGcsUri = message.sourceGcsUri; + if (message.validRecordCount != null && message.hasOwnProperty("validRecordCount")) + if (typeof message.validRecordCount === "number") + object.validRecordCount = options.longs === String ? String(message.validRecordCount) : message.validRecordCount; + else + object.validRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.validRecordCount) : options.longs === Number ? new $util.LongBits(message.validRecordCount.low >>> 0, message.validRecordCount.high >>> 0).toNumber() : message.validRecordCount; + if (message.invalidRecordCount != null && message.hasOwnProperty("invalidRecordCount")) + if (typeof message.invalidRecordCount === "number") + object.invalidRecordCount = options.longs === String ? String(message.invalidRecordCount) : message.invalidRecordCount; + else + object.invalidRecordCount = options.longs === String ? $util.Long.prototype.toString.call(message.invalidRecordCount) : options.longs === Number ? new $util.LongBits(message.invalidRecordCount.low >>> 0, message.invalidRecordCount.high >>> 0).toNumber() : message.invalidRecordCount; + if (message.partialErrors && message.partialErrors.length) { + object.partialErrors = []; + for (var j = 0; j < message.partialErrors.length; ++j) + object.partialErrors[j] = $root.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.RecordError.toObject(message.partialErrors[j], options); } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; + return object; + }; - /** - * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} message ListCustomJobsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ListCustomJobsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.customJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.customJobs && message.customJobs.length) { - object.customJobs = []; - for (var j = 0; j < message.customJobs.length; ++j) - object.customJobs[j] = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + /** + * Converts this ContentValidationStats to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata.ContentValidationStats + * @instance + * @returns {Object.} JSON object + */ + ContentValidationStats.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - /** - * Converts this ListCustomJobsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse - * @instance - * @returns {Object.} JSON object - */ - ListCustomJobsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + return ContentValidationStats; + })(); - return ListCustomJobsResponse; + return NearestNeighborSearchOperationMetadata; })(); - v1beta1.DeleteCustomJobRequest = (function() { - - /** - * Properties of a DeleteCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteCustomJobRequest - * @property {string|null} [name] DeleteCustomJobRequest name - */ + v1beta1.JobService = (function() { /** - * Constructs a new DeleteCustomJobRequest. + * Constructs a new JobService service. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteCustomJobRequest. - * @implements IDeleteCustomJobRequest + * @classdesc Represents a JobService + * @extends $protobuf.rpc.Service * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited */ - function DeleteCustomJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; + function JobService(rpcImpl, requestDelimited, responseDelimited) { + $protobuf.rpc.Service.call(this, rpcImpl, requestDelimited, responseDelimited); } - /** - * DeleteCustomJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @instance - */ - DeleteCustomJobRequest.prototype.name = ""; + (JobService.prototype = Object.create($protobuf.rpc.Service.prototype)).constructor = JobService; /** - * Creates a new DeleteCustomJobRequest instance using the specified properties. + * Creates new JobService service using the specified rpc implementation. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * @memberof google.cloud.aiplatform.v1beta1.JobService * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest instance + * @param {$protobuf.RPCImpl} rpcImpl RPC implementation + * @param {boolean} [requestDelimited=false] Whether requests are length-delimited + * @param {boolean} [responseDelimited=false] Whether responses are length-delimited + * @returns {JobService} RPC service. Useful where requests and/or responses are streamed. */ - DeleteCustomJobRequest.create = function create(properties) { - return new DeleteCustomJobRequest(properties); + JobService.create = function create(rpcImpl, requestDelimited, responseDelimited) { + return new this(rpcImpl, requestDelimited, responseDelimited); }; /** - * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob */ - DeleteCustomJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; /** - * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateCustomJob. + * @function createCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob + * @returns {undefined} + * @variation 1 */ - DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + Object.defineProperty(JobService.prototype.createCustomJob = function createCustomJob(request, callback) { + return this.rpcCall(createCustomJob, $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); + }, "name", { value: "CreateCustomJob" }); /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateCustomJob. + * @function createCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} request CreateCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteCustomJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.CustomJob} [response] CustomJob */ - DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; /** - * Verifies a DeleteCustomJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls GetCustomJob. + * @function getCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetCustomJobCallback} callback Node-style callback called with the error, if any, and CustomJob + * @returns {undefined} + * @variation 1 */ - DeleteCustomJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; + Object.defineProperty(JobService.prototype.getCustomJob = function getCustomJob(request, callback) { + return this.rpcCall(getCustomJob, $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest, $root.google.cloud.aiplatform.v1beta1.CustomJob, request, callback); + }, "name", { value: "GetCustomJob" }); /** - * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest + * Calls GetCustomJob. + * @function getCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} request GetCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - DeleteCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} message DeleteCustomJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listCustomJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListCustomJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} [response] ListCustomJobsResponse */ - DeleteCustomJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; /** - * Converts this DeleteCustomJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest + * Calls ListCustomJobs. + * @function listCustomJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListCustomJobsCallback} callback Node-style callback called with the error, if any, and ListCustomJobsResponse + * @returns {undefined} + * @variation 1 */ - DeleteCustomJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return DeleteCustomJobRequest; - })(); + Object.defineProperty(JobService.prototype.listCustomJobs = function listCustomJobs(request, callback) { + return this.rpcCall(listCustomJobs, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse, request, callback); + }, "name", { value: "ListCustomJobs" }); - v1beta1.CancelCustomJobRequest = (function() { + /** + * Calls ListCustomJobs. + * @function listCustomJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} request ListCustomJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ /** - * Properties of a CancelCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelCustomJobRequest - * @property {string|null} [name] CancelCustomJobRequest name + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ /** - * Constructs a new CancelCustomJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelCustomJobRequest. - * @implements ICancelCustomJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set + * Calls DeleteCustomJob. + * @function deleteCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteCustomJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - function CancelCustomJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(JobService.prototype.deleteCustomJob = function deleteCustomJob(request, callback) { + return this.rpcCall(deleteCustomJob, $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteCustomJob" }); /** - * CancelCustomJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * Calls DeleteCustomJob. + * @function deleteCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} request DeleteCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelCustomJobRequest.prototype.name = ""; /** - * Creates a new CancelCustomJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelCustomJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelCustomJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - CancelCustomJobRequest.create = function create(properties) { - return new CancelCustomJobRequest(properties); - }; /** - * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelCustomJob. + * @function cancelCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelCustomJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - CancelCustomJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + Object.defineProperty(JobService.prototype.cancelCustomJob = function cancelCustomJob(request, callback) { + return this.rpcCall(cancelCustomJob, $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelCustomJob" }); /** - * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelCustomJob. + * @function cancelCustomJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} request CancelCustomJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob */ - CancelCustomJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateDataLabelingJob. + * @function createDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob + * @returns {undefined} + * @variation 1 */ - CancelCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.createDataLabelingJob = function createDataLabelingJob(request, callback) { + return this.rpcCall(createDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); + }, "name", { value: "CreateDataLabelingJob" }); /** - * Verifies a CancelCustomJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateDataLabelingJob. + * @function createDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} request CreateDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelCustomJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; /** - * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.DataLabelingJob} [response] DataLabelingJob */ - CancelCustomJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} message CancelCustomJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetDataLabelingJobCallback} callback Node-style callback called with the error, if any, and DataLabelingJob + * @returns {undefined} + * @variation 1 */ - CancelCustomJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + Object.defineProperty(JobService.prototype.getDataLabelingJob = function getDataLabelingJob(request, callback) { + return this.rpcCall(getDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest, $root.google.cloud.aiplatform.v1beta1.DataLabelingJob, request, callback); + }, "name", { value: "GetDataLabelingJob" }); /** - * Converts this CancelCustomJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest + * Calls GetDataLabelingJob. + * @function getDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} request GetDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CancelCustomJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return CancelCustomJobRequest; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listDataLabelingJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListDataLabelingJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} [response] ListDataLabelingJobsResponse + */ - v1beta1.CreateDataLabelingJobRequest = (function() { + /** + * Calls ListDataLabelingJobs. + * @function listDataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListDataLabelingJobsCallback} callback Node-style callback called with the error, if any, and ListDataLabelingJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listDataLabelingJobs = function listDataLabelingJobs(request, callback) { + return this.rpcCall(listDataLabelingJobs, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse, request, callback); + }, "name", { value: "ListDataLabelingJobs" }); /** - * Properties of a CreateDataLabelingJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateDataLabelingJobRequest - * @property {string|null} [parent] CreateDataLabelingJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob + * Calls ListDataLabelingJobs. + * @function listDataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} request ListDataLabelingJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new CreateDataLabelingJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateDataLabelingJobRequest. - * @implements ICreateDataLabelingJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function CreateDataLabelingJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * CreateDataLabelingJobRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * Calls DeleteDataLabelingJob. + * @function deleteDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - CreateDataLabelingJobRequest.prototype.parent = ""; + Object.defineProperty(JobService.prototype.deleteDataLabelingJob = function deleteDataLabelingJob(request, callback) { + return this.rpcCall(deleteDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteDataLabelingJob" }); /** - * CreateDataLabelingJobRequest dataLabelingJob. - * @member {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null|undefined} dataLabelingJob - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * Calls DeleteDataLabelingJob. + * @function deleteDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} request DeleteDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; /** - * Creates a new CreateDataLabelingJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelDataLabelingJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelDataLabelingJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - CreateDataLabelingJobRequest.create = function create(properties) { - return new CreateDataLabelingJobRequest(properties); - }; /** - * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelDataLabelingJob. + * @function cancelDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelDataLabelingJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - CreateDataLabelingJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.dataLabelingJob != null && Object.hasOwnProperty.call(message, "dataLabelingJob")) - $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - return writer; - }; + Object.defineProperty(JobService.prototype.cancelDataLabelingJob = function cancelDataLabelingJob(request, callback) { + return this.rpcCall(cancelDataLabelingJob, $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelDataLabelingJob" }); /** - * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CancelDataLabelingJob. + * @function cancelDataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} request CancelDataLabelingJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob */ - CreateDataLabelingJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * @returns {undefined} + * @variation 1 */ - CreateDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.createHyperparameterTuningJob = function createHyperparameterTuningJob(request, callback) { + return this.rpcCall(createHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); + }, "name", { value: "CreateHyperparameterTuningJob" }); /** - * Verifies a CreateDataLabelingJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CreateHyperparameterTuningJob. + * @function createHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} request CreateHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateDataLabelingJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJob); - if (error) - return "dataLabelingJob." + error; - } - return null; - }; /** - * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.HyperparameterTuningJob} [response] HyperparameterTuningJob */ - CreateDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.dataLabelingJob != null) { - if (typeof object.dataLabelingJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.dataLabelingJob: object expected"); - message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJob); - } - return message; - }; /** - * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetHyperparameterTuningJob. + * @function getHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and HyperparameterTuningJob + * @returns {undefined} + * @variation 1 */ - CreateDataLabelingJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.dataLabelingJob = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) - object.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJob, options); - return object; - }; + Object.defineProperty(JobService.prototype.getHyperparameterTuningJob = function getHyperparameterTuningJob(request, callback) { + return this.rpcCall(getHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest, $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob, request, callback); + }, "name", { value: "GetHyperparameterTuningJob" }); /** - * Converts this CreateDataLabelingJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * Calls GetHyperparameterTuningJob. + * @function getHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} request GetHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return CreateDataLabelingJobRequest; - })(); - - v1beta1.GetDataLabelingJobRequest = (function() { /** - * Properties of a GetDataLabelingJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetDataLabelingJobRequest - * @property {string|null} [name] GetDataLabelingJobRequest name + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listHyperparameterTuningJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListHyperparameterTuningJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} [response] ListHyperparameterTuningJobsResponse */ /** - * Constructs a new GetDataLabelingJobRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetDataLabelingJobRequest. - * @implements IGetDataLabelingJobRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set + * Calls ListHyperparameterTuningJobs. + * @function listHyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListHyperparameterTuningJobsCallback} callback Node-style callback called with the error, if any, and ListHyperparameterTuningJobsResponse + * @returns {undefined} + * @variation 1 */ - function GetDataLabelingJobRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + Object.defineProperty(JobService.prototype.listHyperparameterTuningJobs = function listHyperparameterTuningJobs(request, callback) { + return this.rpcCall(listHyperparameterTuningJobs, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse, request, callback); + }, "name", { value: "ListHyperparameterTuningJobs" }); /** - * GetDataLabelingJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * Calls ListHyperparameterTuningJobs. + * @function listHyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} request ListHyperparameterTuningJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new GetDataLabelingJobRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - GetDataLabelingJobRequest.create = function create(properties) { - return new GetDataLabelingJobRequest(properties); - }; /** - * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - GetDataLabelingJobRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - return writer; - }; + Object.defineProperty(JobService.prototype.deleteHyperparameterTuningJob = function deleteHyperparameterTuningJob(request, callback) { + return this.rpcCall(deleteHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteHyperparameterTuningJob" }); /** - * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteHyperparameterTuningJob. + * @function deleteHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} request DeleteHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelHyperparameterTuningJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelHyperparameterTuningJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - GetDataLabelingJobRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.name = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelHyperparameterTuningJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.cancelHyperparameterTuningJob = function cancelHyperparameterTuningJob(request, callback) { + return this.rpcCall(cancelHyperparameterTuningJob, $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelHyperparameterTuningJob" }); /** - * Verifies a GetDataLabelingJobRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls CancelHyperparameterTuningJob. + * @function cancelHyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} request CancelHyperparameterTuningJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetDataLabelingJobRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - return null; - }; /** - * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob */ - GetDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); - if (object.name != null) - message.name = String(object.name); - return message; - }; /** - * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob + * @returns {undefined} + * @variation 1 */ - GetDataLabelingJobRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - return object; - }; + Object.defineProperty(JobService.prototype.createBatchPredictionJob = function createBatchPredictionJob(request, callback) { + return this.rpcCall(createBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); + }, "name", { value: "CreateBatchPredictionJob" }); /** - * Converts this GetDataLabelingJobRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest + * Calls CreateBatchPredictionJob. + * @function createBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} request CreateBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return GetDataLabelingJobRequest; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchPredictionJob} [response] BatchPredictionJob + */ - v1beta1.ListDataLabelingJobsRequest = (function() { + /** + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and BatchPredictionJob + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.getBatchPredictionJob = function getBatchPredictionJob(request, callback) { + return this.rpcCall(getBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest, $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob, request, callback); + }, "name", { value: "GetBatchPredictionJob" }); /** - * Properties of a ListDataLabelingJobsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataLabelingJobsRequest - * @property {string|null} [parent] ListDataLabelingJobsRequest parent - * @property {string|null} [filter] ListDataLabelingJobsRequest filter - * @property {number|null} [pageSize] ListDataLabelingJobsRequest pageSize - * @property {string|null} [pageToken] ListDataLabelingJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListDataLabelingJobsRequest readMask - * @property {string|null} [orderBy] ListDataLabelingJobsRequest orderBy + * Calls GetBatchPredictionJob. + * @function getBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} request GetBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new ListDataLabelingJobsRequest. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataLabelingJobsRequest. - * @implements IListDataLabelingJobsRequest - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listBatchPredictionJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListBatchPredictionJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} [response] ListBatchPredictionJobsResponse */ - function ListDataLabelingJobsRequest(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * ListDataLabelingJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListBatchPredictionJobsCallback} callback Node-style callback called with the error, if any, and ListBatchPredictionJobsResponse + * @returns {undefined} + * @variation 1 */ - ListDataLabelingJobsRequest.prototype.parent = ""; + Object.defineProperty(JobService.prototype.listBatchPredictionJobs = function listBatchPredictionJobs(request, callback) { + return this.rpcCall(listBatchPredictionJobs, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse, request, callback); + }, "name", { value: "ListBatchPredictionJobs" }); /** - * ListDataLabelingJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * Calls ListBatchPredictionJobs. + * @function listBatchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} request ListBatchPredictionJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListDataLabelingJobsRequest.prototype.filter = ""; /** - * ListDataLabelingJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation + */ + + /** + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListDataLabelingJobsRequest.prototype.pageSize = 0; + Object.defineProperty(JobService.prototype.deleteBatchPredictionJob = function deleteBatchPredictionJob(request, callback) { + return this.rpcCall(deleteBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteBatchPredictionJob" }); /** - * ListDataLabelingJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * Calls DeleteBatchPredictionJob. + * @function deleteBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} request DeleteBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListDataLabelingJobsRequest.prototype.pageToken = ""; /** - * ListDataLabelingJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#cancelBatchPredictionJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CancelBatchPredictionJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty + */ + + /** + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CancelBatchPredictionJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListDataLabelingJobsRequest.prototype.readMask = null; + Object.defineProperty(JobService.prototype.cancelBatchPredictionJob = function cancelBatchPredictionJob(request, callback) { + return this.rpcCall(cancelBatchPredictionJob, $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "CancelBatchPredictionJob" }); /** - * ListDataLabelingJobsRequest orderBy. - * @member {string} orderBy - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * Calls CancelBatchPredictionJob. + * @function cancelBatchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} request CancelBatchPredictionJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListDataLabelingJobsRequest.prototype.orderBy = ""; /** - * Creates a new ListDataLabelingJobsRequest instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#createModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef CreateModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ - ListDataLabelingJobsRequest.create = function create(properties) { - return new ListDataLabelingJobsRequest(properties); - }; /** - * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.CreateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * @returns {undefined} + * @variation 1 */ - ListDataLabelingJobsRequest.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); - return writer; - }; + Object.defineProperty(JobService.prototype.createModelDeploymentMonitoringJob = function createModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(createModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); + }, "name", { value: "CreateModelDeploymentMonitoringJob" }); /** - * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls CreateModelDeploymentMonitoringJob. + * @function createModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} request CreateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#searchModelDeploymentMonitoringStatsAnomalies}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef SearchModelDeploymentMonitoringStatsAnomaliesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} [response] SearchModelDeploymentMonitoringStatsAnomaliesResponse */ - ListDataLabelingJobsRequest.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); - break; - case 6: - message.orderBy = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @function searchModelDeploymentMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.SearchModelDeploymentMonitoringStatsAnomaliesCallback} callback Node-style callback called with the error, if any, and SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {undefined} + * @variation 1 */ - ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.searchModelDeploymentMonitoringStatsAnomalies = function searchModelDeploymentMonitoringStatsAnomalies(request, callback) { + return this.rpcCall(searchModelDeploymentMonitoringStatsAnomalies, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest, $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse, request, callback); + }, "name", { value: "SearchModelDeploymentMonitoringStatsAnomalies" }); /** - * Verifies a ListDataLabelingJobsRequest message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls SearchModelDeploymentMonitoringStatsAnomalies. + * @function searchModelDeploymentMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} request SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListDataLabelingJobsRequest.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - if (!$util.isString(message.orderBy)) - return "orderBy: string expected"; - return null; - }; /** - * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#getModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef GetModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} [response] ModelDeploymentMonitoringJob */ - ListDataLabelingJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } - if (object.orderBy != null) - message.orderBy = String(object.orderBy); - return message; - }; /** - * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest - * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls GetModelDeploymentMonitoringJob. + * @function getModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.GetModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and ModelDeploymentMonitoringJob + * @returns {undefined} + * @variation 1 */ - ListDataLabelingJobsRequest.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - object.orderBy = ""; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); - if (message.orderBy != null && message.hasOwnProperty("orderBy")) - object.orderBy = message.orderBy; - return object; - }; + Object.defineProperty(JobService.prototype.getModelDeploymentMonitoringJob = function getModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(getModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest, $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, request, callback); + }, "name", { value: "GetModelDeploymentMonitoringJob" }); /** - * Converts this ListDataLabelingJobsRequest to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * Calls GetModelDeploymentMonitoringJob. + * @function getModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} request GetModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return ListDataLabelingJobsRequest; - })(); + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#listModelDeploymentMonitoringJobs}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ListModelDeploymentMonitoringJobsCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} [response] ListModelDeploymentMonitoringJobsResponse + */ - v1beta1.ListDataLabelingJobsResponse = (function() { + /** + * Calls ListModelDeploymentMonitoringJobs. + * @function listModelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ListModelDeploymentMonitoringJobsCallback} callback Node-style callback called with the error, if any, and ListModelDeploymentMonitoringJobsResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(JobService.prototype.listModelDeploymentMonitoringJobs = function listModelDeploymentMonitoringJobs(request, callback) { + return this.rpcCall(listModelDeploymentMonitoringJobs, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest, $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse, request, callback); + }, "name", { value: "ListModelDeploymentMonitoringJobs" }); /** - * Properties of a ListDataLabelingJobsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListDataLabelingJobsResponse - * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs - * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken + * Calls ListModelDeploymentMonitoringJobs. + * @function listModelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} request ListModelDeploymentMonitoringJobsRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ /** - * Constructs a new ListDataLabelingJobsResponse. - * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListDataLabelingJobsResponse. - * @implements IListDataLabelingJobsResponse - * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#updateModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef UpdateModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - function ListDataLabelingJobsResponse(properties) { - this.dataLabelingJobs = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } /** - * ListDataLabelingJobsResponse dataLabelingJobs. - * @member {Array.} dataLabelingJobs - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * Calls UpdateModelDeploymentMonitoringJob. + * @function updateModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.UpdateModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; + Object.defineProperty(JobService.prototype.updateModelDeploymentMonitoringJob = function updateModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(updateModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "UpdateModelDeploymentMonitoringJob" }); /** - * ListDataLabelingJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * Calls UpdateModelDeploymentMonitoringJob. + * @function updateModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} request UpdateModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListDataLabelingJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ListDataLabelingJobsResponse instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#deleteModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef DeleteModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.longrunning.Operation} [response] Operation */ - ListDataLabelingJobsResponse.create = function create(properties) { - return new ListDataLabelingJobsResponse(properties); - }; /** - * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.DeleteModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Operation + * @returns {undefined} + * @variation 1 */ - ListDataLabelingJobsResponse.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataLabelingJobs != null && message.dataLabelingJobs.length) - for (var i = 0; i < message.dataLabelingJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); - return writer; - }; + Object.defineProperty(JobService.prototype.deleteModelDeploymentMonitoringJob = function deleteModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(deleteModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest, $root.google.longrunning.Operation, request, callback); + }, "name", { value: "DeleteModelDeploymentMonitoringJob" }); /** - * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer + * Calls DeleteModelDeploymentMonitoringJob. + * @function deleteModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} request DeleteModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#pauseModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef PauseModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ListDataLabelingJobsResponse.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) - message.dataLabelingJobs = []; - message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; /** - * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing + * Calls PauseModelDeploymentMonitoringJob. + * @function pauseModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.PauseModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + Object.defineProperty(JobService.prototype.pauseModelDeploymentMonitoringJob = function pauseModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(pauseModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "PauseModelDeploymentMonitoringJob" }); /** - * Verifies a ListDataLabelingJobsResponse message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not + * Calls PauseModelDeploymentMonitoringJob. + * @function pauseModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} request PauseModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListDataLabelingJobsResponse.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.dataLabelingJobs != null && message.hasOwnProperty("dataLabelingJobs")) { - if (!Array.isArray(message.dataLabelingJobs)) - return "dataLabelingJobs: array expected"; - for (var i = 0; i < message.dataLabelingJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJobs[i]); - if (error) - return "dataLabelingJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; - return null; - }; /** - * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse + * Callback as used by {@link google.cloud.aiplatform.v1beta1.JobService#resumeModelDeploymentMonitoringJob}. + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @typedef ResumeModelDeploymentMonitoringJobCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.protobuf.Empty} [response] Empty */ - ListDataLabelingJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); - if (object.dataLabelingJobs) { - if (!Array.isArray(object.dataLabelingJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: array expected"); - message.dataLabelingJobs = []; - for (var i = 0; i < object.dataLabelingJobs.length; ++i) { - if (typeof object.dataLabelingJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: object expected"); - message.dataLabelingJobs[i] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); - return message; - }; /** - * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse - * @static - * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.JobService.ResumeModelDeploymentMonitoringJobCallback} callback Node-style callback called with the error, if any, and Empty + * @returns {undefined} + * @variation 1 */ - ListDataLabelingJobsResponse.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.dataLabelingJobs = []; - if (options.defaults) - object.nextPageToken = ""; - if (message.dataLabelingJobs && message.dataLabelingJobs.length) { - object.dataLabelingJobs = []; - for (var j = 0; j < message.dataLabelingJobs.length; ++j) - object.dataLabelingJobs[j] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; - return object; - }; + Object.defineProperty(JobService.prototype.resumeModelDeploymentMonitoringJob = function resumeModelDeploymentMonitoringJob(request, callback) { + return this.rpcCall(resumeModelDeploymentMonitoringJob, $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest, $root.google.protobuf.Empty, request, callback); + }, "name", { value: "ResumeModelDeploymentMonitoringJob" }); /** - * Converts this ListDataLabelingJobsResponse to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * Calls ResumeModelDeploymentMonitoringJob. + * @function resumeModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.JobService * @instance - * @returns {Object.} JSON object + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} request ResumeModelDeploymentMonitoringJobRequest message or plain object + * @returns {Promise} Promise + * @variation 2 */ - ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - return ListDataLabelingJobsResponse; + return JobService; })(); - v1beta1.DeleteDataLabelingJobRequest = (function() { + v1beta1.CreateCustomJobRequest = (function() { /** - * Properties of a DeleteDataLabelingJobRequest. + * Properties of a CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteDataLabelingJobRequest - * @property {string|null} [name] DeleteDataLabelingJobRequest name + * @interface ICreateCustomJobRequest + * @property {string|null} [parent] CreateCustomJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.ICustomJob|null} [customJob] CreateCustomJobRequest customJob */ /** - * Constructs a new DeleteDataLabelingJobRequest. + * Constructs a new CreateCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteDataLabelingJobRequest. - * @implements IDeleteDataLabelingJobRequest + * @classdesc Represents a CreateCustomJobRequest. + * @implements ICreateCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set */ - function DeleteDataLabelingJobRequest(properties) { + function CreateCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -217159,75 +222868,88 @@ } /** - * DeleteDataLabelingJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * CreateCustomJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance */ - DeleteDataLabelingJobRequest.prototype.name = ""; + CreateCustomJobRequest.prototype.parent = ""; /** - * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. + * CreateCustomJobRequest customJob. + * @member {google.cloud.aiplatform.v1beta1.ICustomJob|null|undefined} customJob + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest + * @instance + */ + CreateCustomJobRequest.prototype.customJob = null; + + /** + * Creates a new CreateCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest instance */ - DeleteDataLabelingJobRequest.create = function create(properties) { - return new DeleteDataLabelingJobRequest(properties); + CreateCustomJobRequest.create = function create(properties) { + return new CreateCustomJobRequest(properties); }; /** - * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified CreateCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataLabelingJobRequest.encode = function encode(message, writer) { + CreateCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.customJob != null && Object.hasOwnProperty.call(message, "customJob")) + $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified CreateCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateCustomJobRequest} message CreateCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataLabelingJobRequest.decode = function decode(reader, length) { + CreateCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -217238,107 +222960,121 @@ }; /** - * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteDataLabelingJobRequest message. + * Verifies a CreateCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteDataLabelingJobRequest.verify = function verify(message) { + CreateCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.customJob != null && message.hasOwnProperty("customJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJob); + if (error) + return "customJob." + error; + } return null; }; /** - * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} CreateCustomJobRequest */ - DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest) + CreateCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.customJob != null) { + if (typeof object.customJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateCustomJobRequest.customJob: object expected"); + message.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJob); + } return message; }; /** - * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateCustomJobRequest} message CreateCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteDataLabelingJobRequest.toObject = function toObject(message, options) { + CreateCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.customJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.customJob != null && message.hasOwnProperty("customJob")) + object.customJob = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJob, options); return object; }; /** - * Converts this DeleteDataLabelingJobRequest to JSON. + * Converts this CreateCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateCustomJobRequest * @instance * @returns {Object.} JSON object */ - DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { + CreateCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteDataLabelingJobRequest; + return CreateCustomJobRequest; })(); - v1beta1.CancelDataLabelingJobRequest = (function() { + v1beta1.GetCustomJobRequest = (function() { /** - * Properties of a CancelDataLabelingJobRequest. + * Properties of a GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelDataLabelingJobRequest - * @property {string|null} [name] CancelDataLabelingJobRequest name + * @interface IGetCustomJobRequest + * @property {string|null} [name] GetCustomJobRequest name */ /** - * Constructs a new CancelDataLabelingJobRequest. + * Constructs a new GetCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelDataLabelingJobRequest. - * @implements ICancelDataLabelingJobRequest + * @classdesc Represents a GetCustomJobRequest. + * @implements IGetCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set */ - function CancelDataLabelingJobRequest(properties) { + function GetCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -217346,35 +223082,35 @@ } /** - * CancelDataLabelingJobRequest name. + * GetCustomJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @instance */ - CancelDataLabelingJobRequest.prototype.name = ""; + GetCustomJobRequest.prototype.name = ""; /** - * Creates a new CancelDataLabelingJobRequest instance using the specified properties. + * Creates a new GetCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest instance */ - CancelDataLabelingJobRequest.create = function create(properties) { - return new CancelDataLabelingJobRequest(properties); + GetCustomJobRequest.create = function create(properties) { + return new GetCustomJobRequest(properties); }; /** - * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDataLabelingJobRequest.encode = function encode(message, writer) { + GetCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -217383,33 +223119,33 @@ }; /** - * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. + * Encodes the specified GetCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetCustomJobRequest} message GetCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. + * Decodes a GetCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDataLabelingJobRequest.decode = function decode(reader, length) { + GetCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -217425,30 +223161,30 @@ }; /** - * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelDataLabelingJobRequest message. + * Verifies a GetCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelDataLabelingJobRequest.verify = function verify(message) { + GetCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -217458,32 +223194,32 @@ }; /** - * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} GetCustomJobRequest */ - CancelDataLabelingJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest) + GetCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetCustomJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetCustomJobRequest} message GetCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelDataLabelingJobRequest.toObject = function toObject(message, options) { + GetCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -217495,38 +223231,41 @@ }; /** - * Converts this CancelDataLabelingJobRequest to JSON. + * Converts this GetCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetCustomJobRequest * @instance * @returns {Object.} JSON object */ - CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { + GetCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelDataLabelingJobRequest; + return GetCustomJobRequest; })(); - v1beta1.CreateHyperparameterTuningJobRequest = (function() { + v1beta1.ListCustomJobsRequest = (function() { /** - * Properties of a CreateHyperparameterTuningJobRequest. + * Properties of a ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateHyperparameterTuningJobRequest - * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob + * @interface IListCustomJobsRequest + * @property {string|null} [parent] ListCustomJobsRequest parent + * @property {string|null} [filter] ListCustomJobsRequest filter + * @property {number|null} [pageSize] ListCustomJobsRequest pageSize + * @property {string|null} [pageToken] ListCustomJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListCustomJobsRequest readMask */ /** - * Constructs a new CreateHyperparameterTuningJobRequest. + * Constructs a new ListCustomJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateHyperparameterTuningJobRequest. - * @implements ICreateHyperparameterTuningJobRequest + * @classdesc Represents a ListCustomJobsRequest. + * @implements IListCustomJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set */ - function CreateHyperparameterTuningJobRequest(properties) { + function ListCustomJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -217534,80 +223273,110 @@ } /** - * CreateHyperparameterTuningJobRequest parent. + * ListCustomJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - CreateHyperparameterTuningJobRequest.prototype.parent = ""; + ListCustomJobsRequest.prototype.parent = ""; /** - * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. - * @member {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * ListCustomJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance */ - CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; + ListCustomJobsRequest.prototype.filter = ""; /** - * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. + * ListCustomJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @instance + */ + ListCustomJobsRequest.prototype.pageSize = 0; + + /** + * ListCustomJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @instance + */ + ListCustomJobsRequest.prototype.pageToken = ""; + + /** + * ListCustomJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest + * @instance + */ + ListCustomJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListCustomJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest instance */ - CreateHyperparameterTuningJobRequest.create = function create(properties) { - return new CreateHyperparameterTuningJobRequest(properties); + ListCustomJobsRequest.create = function create(properties) { + return new ListCustomJobsRequest(properties); }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHyperparameterTuningJobRequest.encode = function encode(message, writer) { + ListCustomJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.hyperparameterTuningJob != null && Object.hasOwnProperty.call(message, "hyperparameterTuningJob")) - $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsRequest} message ListCustomJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHyperparameterTuningJobRequest.decode = function decode(reader, length) { + ListCustomJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -217615,7 +223384,16 @@ message.parent = reader.string(); break; case 2: - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -217626,121 +223404,147 @@ }; /** - * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateHyperparameterTuningJobRequest message. + * Verifies a ListCustomJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateHyperparameterTuningJobRequest.verify = function verify(message) { + ListCustomJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJob); + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "hyperparameterTuningJob." + error; + return "readMask." + error; } return null; }; /** - * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} ListCustomJobsRequest */ - CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest) + ListCustomJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.hyperparameterTuningJob != null) { - if (typeof object.hyperparameterTuningJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.hyperparameterTuningJob: object expected"); - message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJob); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsRequest} message ListCustomJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + ListCustomJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.hyperparameterTuningJob = null; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) - object.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJob, options); + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this CreateHyperparameterTuningJobRequest to JSON. + * Converts this ListCustomJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsRequest * @instance * @returns {Object.} JSON object */ - CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + ListCustomJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateHyperparameterTuningJobRequest; + return ListCustomJobsRequest; })(); - v1beta1.GetHyperparameterTuningJobRequest = (function() { + v1beta1.ListCustomJobsResponse = (function() { /** - * Properties of a GetHyperparameterTuningJobRequest. + * Properties of a ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetHyperparameterTuningJobRequest - * @property {string|null} [name] GetHyperparameterTuningJobRequest name + * @interface IListCustomJobsResponse + * @property {Array.|null} [customJobs] ListCustomJobsResponse customJobs + * @property {string|null} [nextPageToken] ListCustomJobsResponse nextPageToken */ /** - * Constructs a new GetHyperparameterTuningJobRequest. + * Constructs a new ListCustomJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetHyperparameterTuningJobRequest. - * @implements IGetHyperparameterTuningJobRequest + * @classdesc Represents a ListCustomJobsResponse. + * @implements IListCustomJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set */ - function GetHyperparameterTuningJobRequest(properties) { + function ListCustomJobsResponse(properties) { + this.customJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -217748,75 +223552,91 @@ } /** - * GetHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * ListCustomJobsResponse customJobs. + * @member {Array.} customJobs + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance */ - GetHyperparameterTuningJobRequest.prototype.name = ""; + ListCustomJobsResponse.prototype.customJobs = $util.emptyArray; /** - * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. + * ListCustomJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse + * @instance + */ + ListCustomJobsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListCustomJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse instance */ - GetHyperparameterTuningJobRequest.create = function create(properties) { - return new GetHyperparameterTuningJobRequest(properties); + ListCustomJobsResponse.create = function create(properties) { + return new ListCustomJobsResponse(properties); }; /** - * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHyperparameterTuningJobRequest.encode = function encode(message, writer) { + ListCustomJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.customJobs != null && message.customJobs.length) + for (var i = 0; i < message.customJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.CustomJob.encode(message.customJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified ListCustomJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListCustomJobsResponse} message ListCustomJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListCustomJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHyperparameterTuningJobRequest.decode = function decode(reader, length) { + ListCustomJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.customJobs && message.customJobs.length)) + message.customJobs = []; + message.customJobs.push($root.google.cloud.aiplatform.v1beta1.CustomJob.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -217827,111 +223647,133 @@ }; /** - * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListCustomJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListCustomJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetHyperparameterTuningJobRequest message. + * Verifies a ListCustomJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetHyperparameterTuningJobRequest.verify = function verify(message) { + ListCustomJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.customJobs != null && message.hasOwnProperty("customJobs")) { + if (!Array.isArray(message.customJobs)) + return "customJobs: array expected"; + for (var i = 0; i < message.customJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.CustomJob.verify(message.customJobs[i]); + if (error) + return "customJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListCustomJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} ListCustomJobsResponse */ - GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest) + ListCustomJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ListCustomJobsResponse(); + if (object.customJobs) { + if (!Array.isArray(object.customJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: array expected"); + message.customJobs = []; + for (var i = 0; i < object.customJobs.length; ++i) { + if (typeof object.customJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListCustomJobsResponse.customJobs: object expected"); + message.customJobs[i] = $root.google.cloud.aiplatform.v1beta1.CustomJob.fromObject(object.customJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListCustomJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListCustomJobsResponse} message ListCustomJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + ListCustomJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.customJobs = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.customJobs && message.customJobs.length) { + object.customJobs = []; + for (var j = 0; j < message.customJobs.length; ++j) + object.customJobs[j] = $root.google.cloud.aiplatform.v1beta1.CustomJob.toObject(message.customJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetHyperparameterTuningJobRequest to JSON. + * Converts this ListCustomJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListCustomJobsResponse * @instance * @returns {Object.} JSON object */ - GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + ListCustomJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetHyperparameterTuningJobRequest; + return ListCustomJobsResponse; })(); - v1beta1.ListHyperparameterTuningJobsRequest = (function() { + v1beta1.DeleteCustomJobRequest = (function() { /** - * Properties of a ListHyperparameterTuningJobsRequest. + * Properties of a DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListHyperparameterTuningJobsRequest - * @property {string|null} [parent] ListHyperparameterTuningJobsRequest parent - * @property {string|null} [filter] ListHyperparameterTuningJobsRequest filter - * @property {number|null} [pageSize] ListHyperparameterTuningJobsRequest pageSize - * @property {string|null} [pageToken] ListHyperparameterTuningJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListHyperparameterTuningJobsRequest readMask + * @interface IDeleteCustomJobRequest + * @property {string|null} [name] DeleteCustomJobRequest name */ /** - * Constructs a new ListHyperparameterTuningJobsRequest. + * Constructs a new DeleteCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListHyperparameterTuningJobsRequest. - * @implements IListHyperparameterTuningJobsRequest + * @classdesc Represents a DeleteCustomJobRequest. + * @implements IDeleteCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set */ - function ListHyperparameterTuningJobsRequest(properties) { + function DeleteCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -217939,127 +223781,75 @@ } /** - * ListHyperparameterTuningJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.parent = ""; - - /** - * ListHyperparameterTuningJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.filter = ""; - - /** - * ListHyperparameterTuningJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; - - /** - * ListHyperparameterTuningJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest - * @instance - */ - ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; - - /** - * ListHyperparameterTuningJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * DeleteCustomJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @instance */ - ListHyperparameterTuningJobsRequest.prototype.readMask = null; + DeleteCustomJobRequest.prototype.name = ""; /** - * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. + * Creates a new DeleteCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest instance */ - ListHyperparameterTuningJobsRequest.create = function create(properties) { - return new ListHyperparameterTuningJobsRequest(properties); + DeleteCustomJobRequest.create = function create(properties) { + return new DeleteCustomJobRequest(properties); }; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * Encodes the specified DeleteCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsRequest.encode = function encode(message, writer) { + DeleteCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. + * Encodes the specified DeleteCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteCustomJobRequest} message DeleteCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsRequest.decode = function decode(reader, length) { + DeleteCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -218070,147 +223860,107 @@ }; /** - * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHyperparameterTuningJobsRequest message. + * Verifies a DeleteCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHyperparameterTuningJobsRequest.verify = function verify(message) { + DeleteCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} DeleteCustomJobRequest */ - ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest) + DeleteCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest} message DeleteCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { + DeleteCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListHyperparameterTuningJobsRequest to JSON. + * Converts this DeleteCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteCustomJobRequest * @instance * @returns {Object.} JSON object */ - ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { + DeleteCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListHyperparameterTuningJobsRequest; + return DeleteCustomJobRequest; })(); - v1beta1.ListHyperparameterTuningJobsResponse = (function() { + v1beta1.CancelCustomJobRequest = (function() { /** - * Properties of a ListHyperparameterTuningJobsResponse. + * Properties of a CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListHyperparameterTuningJobsResponse - * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs - * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken + * @interface ICancelCustomJobRequest + * @property {string|null} [name] CancelCustomJobRequest name */ /** - * Constructs a new ListHyperparameterTuningJobsResponse. + * Constructs a new CancelCustomJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListHyperparameterTuningJobsResponse. - * @implements IListHyperparameterTuningJobsResponse + * @classdesc Represents a CancelCustomJobRequest. + * @implements ICancelCustomJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set */ - function ListHyperparameterTuningJobsResponse(properties) { - this.hyperparameterTuningJobs = []; + function CancelCustomJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -218218,91 +223968,75 @@ } /** - * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. - * @member {Array.} hyperparameterTuningJobs - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse - * @instance - */ - ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; - - /** - * ListHyperparameterTuningJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * CancelCustomJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @instance */ - ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; + CancelCustomJobRequest.prototype.name = ""; /** - * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. + * Creates a new CancelCustomJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest instance */ - ListHyperparameterTuningJobsResponse.create = function create(properties) { - return new ListHyperparameterTuningJobsResponse(properties); + CancelCustomJobRequest.create = function create(properties) { + return new CancelCustomJobRequest(properties); }; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * Encodes the specified CancelCustomJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsResponse.encode = function encode(message, writer) { + CancelCustomJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.hyperparameterTuningJobs != null && message.hyperparameterTuningJobs.length) - for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. + * Encodes the specified CancelCustomJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelCustomJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelCustomJobRequest} message CancelCustomJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CancelCustomJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsResponse.decode = function decode(reader, length) { + CancelCustomJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length)) - message.hyperparameterTuningJobs = []; - message.hyperparameterTuningJobs.push($root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -218313,133 +224047,108 @@ }; /** - * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CancelCustomJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListHyperparameterTuningJobsResponse.decodeDelimited = function decodeDelimited(reader) { + CancelCustomJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListHyperparameterTuningJobsResponse message. + * Verifies a CancelCustomJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListHyperparameterTuningJobsResponse.verify = function verify(message) { + CancelCustomJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.hyperparameterTuningJobs != null && message.hasOwnProperty("hyperparameterTuningJobs")) { - if (!Array.isArray(message.hyperparameterTuningJobs)) - return "hyperparameterTuningJobs: array expected"; - for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJobs[i]); - if (error) - return "hyperparameterTuningJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CancelCustomJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} CancelCustomJobRequest */ - ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) + CancelCustomJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); - if (object.hyperparameterTuningJobs) { - if (!Array.isArray(object.hyperparameterTuningJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: array expected"); - message.hyperparameterTuningJobs = []; - for (var i = 0; i < object.hyperparameterTuningJobs.length; ++i) { - if (typeof object.hyperparameterTuningJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: object expected"); - message.hyperparameterTuningJobs[i] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CancelCustomJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse + * @param {google.cloud.aiplatform.v1beta1.CancelCustomJobRequest} message CancelCustomJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { + CancelCustomJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.hyperparameterTuningJobs = []; if (options.defaults) - object.nextPageToken = ""; - if (message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length) { - object.hyperparameterTuningJobs = []; - for (var j = 0; j < message.hyperparameterTuningJobs.length; ++j) - object.hyperparameterTuningJobs[j] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListHyperparameterTuningJobsResponse to JSON. + * Converts this CancelCustomJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelCustomJobRequest * @instance * @returns {Object.} JSON object */ - ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { + CancelCustomJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListHyperparameterTuningJobsResponse; + return CancelCustomJobRequest; })(); - v1beta1.DeleteHyperparameterTuningJobRequest = (function() { + v1beta1.CreateDataLabelingJobRequest = (function() { /** - * Properties of a DeleteHyperparameterTuningJobRequest. + * Properties of a CreateDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteHyperparameterTuningJobRequest - * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name + * @interface ICreateDataLabelingJobRequest + * @property {string|null} [parent] CreateDataLabelingJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null} [dataLabelingJob] CreateDataLabelingJobRequest dataLabelingJob */ /** - * Constructs a new DeleteHyperparameterTuningJobRequest. + * Constructs a new CreateDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteHyperparameterTuningJobRequest. - * @implements IDeleteHyperparameterTuningJobRequest + * @classdesc Represents a CreateDataLabelingJobRequest. + * @implements ICreateDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set */ - function DeleteHyperparameterTuningJobRequest(properties) { + function CreateDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -218447,75 +224156,88 @@ } /** - * DeleteHyperparameterTuningJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * CreateDataLabelingJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @instance */ - DeleteHyperparameterTuningJobRequest.prototype.name = ""; + CreateDataLabelingJobRequest.prototype.parent = ""; /** - * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. + * CreateDataLabelingJobRequest dataLabelingJob. + * @member {google.cloud.aiplatform.v1beta1.IDataLabelingJob|null|undefined} dataLabelingJob + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest + * @instance + */ + CreateDataLabelingJobRequest.prototype.dataLabelingJob = null; + + /** + * Creates a new CreateDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest instance */ - DeleteHyperparameterTuningJobRequest.create = function create(properties) { - return new DeleteHyperparameterTuningJobRequest(properties); + CreateDataLabelingJobRequest.create = function create(properties) { + return new CreateDataLabelingJobRequest(properties); }; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CreateDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteHyperparameterTuningJobRequest.encode = function encode(message, writer) { + CreateDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.dataLabelingJob != null && Object.hasOwnProperty.call(message, "dataLabelingJob")) + $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified CreateDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateDataLabelingJobRequest} message CreateDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteHyperparameterTuningJobRequest.decode = function decode(reader, length) { + CreateDataLabelingJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -218526,107 +224248,121 @@ }; /** - * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteHyperparameterTuningJobRequest message. + * Verifies a CreateDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteHyperparameterTuningJobRequest.verify = function verify(message) { + CreateDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJob); + if (error) + return "dataLabelingJob." + error; + } return null; }; /** - * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} CreateDataLabelingJobRequest */ - DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest) + CreateDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.dataLabelingJob != null) { + if (typeof object.dataLabelingJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest.dataLabelingJob: object expected"); + message.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJob); + } return message; }; /** - * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest} message CreateDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + CreateDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.dataLabelingJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.dataLabelingJob != null && message.hasOwnProperty("dataLabelingJob")) + object.dataLabelingJob = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJob, options); return object; }; /** - * Converts this DeleteHyperparameterTuningJobRequest to JSON. + * Converts this CreateDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + CreateDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteHyperparameterTuningJobRequest; + return CreateDataLabelingJobRequest; })(); - v1beta1.CancelHyperparameterTuningJobRequest = (function() { + v1beta1.GetDataLabelingJobRequest = (function() { /** - * Properties of a CancelHyperparameterTuningJobRequest. + * Properties of a GetDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelHyperparameterTuningJobRequest - * @property {string|null} [name] CancelHyperparameterTuningJobRequest name + * @interface IGetDataLabelingJobRequest + * @property {string|null} [name] GetDataLabelingJobRequest name */ /** - * Constructs a new CancelHyperparameterTuningJobRequest. + * Constructs a new GetDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelHyperparameterTuningJobRequest. - * @implements ICancelHyperparameterTuningJobRequest + * @classdesc Represents a GetDataLabelingJobRequest. + * @implements IGetDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set */ - function CancelHyperparameterTuningJobRequest(properties) { + function GetDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -218634,35 +224370,35 @@ } /** - * CancelHyperparameterTuningJobRequest name. + * GetDataLabelingJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @instance */ - CancelHyperparameterTuningJobRequest.prototype.name = ""; + GetDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. + * Creates a new GetDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest instance */ - CancelHyperparameterTuningJobRequest.create = function create(properties) { - return new CancelHyperparameterTuningJobRequest(properties); + GetDataLabelingJobRequest.create = function create(properties) { + return new GetDataLabelingJobRequest(properties); }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified GetDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelHyperparameterTuningJobRequest.encode = function encode(message, writer) { + GetDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -218671,33 +224407,33 @@ }; /** - * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. + * Encodes the specified GetDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetDataLabelingJobRequest} message GetDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelHyperparameterTuningJobRequest.decode = function decode(reader, length) { + GetDataLabelingJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -218713,30 +224449,30 @@ }; /** - * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelHyperparameterTuningJobRequest message. + * Verifies a GetDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelHyperparameterTuningJobRequest.verify = function verify(message) { + GetDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -218746,32 +224482,32 @@ }; /** - * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} GetDataLabelingJobRequest */ - CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest) + GetDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest} message GetDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelHyperparameterTuningJobRequest.toObject = function toObject(message, options) { + GetDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -218783,38 +224519,42 @@ }; /** - * Converts this CancelHyperparameterTuningJobRequest to JSON. + * Converts this GetDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { + GetDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelHyperparameterTuningJobRequest; + return GetDataLabelingJobRequest; })(); - v1beta1.CreateBatchPredictionJobRequest = (function() { + v1beta1.ListDataLabelingJobsRequest = (function() { /** - * Properties of a CreateBatchPredictionJobRequest. + * Properties of a ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateBatchPredictionJobRequest - * @property {string|null} [parent] CreateBatchPredictionJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob + * @interface IListDataLabelingJobsRequest + * @property {string|null} [parent] ListDataLabelingJobsRequest parent + * @property {string|null} [filter] ListDataLabelingJobsRequest filter + * @property {number|null} [pageSize] ListDataLabelingJobsRequest pageSize + * @property {string|null} [pageToken] ListDataLabelingJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListDataLabelingJobsRequest readMask + * @property {string|null} [orderBy] ListDataLabelingJobsRequest orderBy */ /** - * Constructs a new CreateBatchPredictionJobRequest. + * Constructs a new ListDataLabelingJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateBatchPredictionJobRequest. - * @implements ICreateBatchPredictionJobRequest + * @classdesc Represents a ListDataLabelingJobsRequest. + * @implements IListDataLabelingJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set */ - function CreateBatchPredictionJobRequest(properties) { + function ListDataLabelingJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -218822,80 +224562,120 @@ } /** - * CreateBatchPredictionJobRequest parent. + * ListDataLabelingJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance */ - CreateBatchPredictionJobRequest.prototype.parent = ""; + ListDataLabelingJobsRequest.prototype.parent = ""; /** - * CreateBatchPredictionJobRequest batchPredictionJob. - * @member {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null|undefined} batchPredictionJob - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * ListDataLabelingJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance */ - CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; + ListDataLabelingJobsRequest.prototype.filter = ""; /** - * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. + * ListDataLabelingJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.pageSize = 0; + + /** + * ListDataLabelingJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.pageToken = ""; + + /** + * ListDataLabelingJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.readMask = null; + + /** + * ListDataLabelingJobsRequest orderBy. + * @member {string} orderBy + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest + * @instance + */ + ListDataLabelingJobsRequest.prototype.orderBy = ""; + + /** + * Creates a new ListDataLabelingJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest instance */ - CreateBatchPredictionJobRequest.create = function create(properties) { - return new CreateBatchPredictionJobRequest(properties); + ListDataLabelingJobsRequest.create = function create(properties) { + return new ListDataLabelingJobsRequest(properties); }; /** - * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encode = function encode(message, writer) { + ListDataLabelingJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) - $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.orderBy != null && Object.hasOwnProperty.call(message, "orderBy")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.orderBy); return writer; }; /** - * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsRequest} message ListDataLabelingJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDataLabelingJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decode = function decode(reader, length) { + ListDataLabelingJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -218903,7 +224683,19 @@ message.parent = reader.string(); break; case 2: - message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + case 6: + message.orderBy = reader.string(); break; default: reader.skipType(tag & 7); @@ -218914,121 +224706,155 @@ }; /** - * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListDataLabelingJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateBatchPredictionJobRequest message. + * Verifies a ListDataLabelingJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateBatchPredictionJobRequest.verify = function verify(message) { + ListDataLabelingJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJob); + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "batchPredictionJob." + error; + return "readMask." + error; } + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + if (!$util.isString(message.orderBy)) + return "orderBy: string expected"; return null; }; /** - * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} ListDataLabelingJobsRequest */ - CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest) + ListDataLabelingJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.batchPredictionJob != null) { - if (typeof object.batchPredictionJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); - message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJob); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } + if (object.orderBy != null) + message.orderBy = String(object.orderBy); return message; }; /** - * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDataLabelingJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest} message ListDataLabelingJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { + ListDataLabelingJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.batchPredictionJob = null; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + object.orderBy = ""; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) - object.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJob, options); + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.orderBy != null && message.hasOwnProperty("orderBy")) + object.orderBy = message.orderBy; return object; }; /** - * Converts this CreateBatchPredictionJobRequest to JSON. + * Converts this ListDataLabelingJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsRequest * @instance * @returns {Object.} JSON object */ - CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + ListDataLabelingJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateBatchPredictionJobRequest; + return ListDataLabelingJobsRequest; })(); - v1beta1.GetBatchPredictionJobRequest = (function() { + v1beta1.ListDataLabelingJobsResponse = (function() { /** - * Properties of a GetBatchPredictionJobRequest. + * Properties of a ListDataLabelingJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetBatchPredictionJobRequest - * @property {string|null} [name] GetBatchPredictionJobRequest name + * @interface IListDataLabelingJobsResponse + * @property {Array.|null} [dataLabelingJobs] ListDataLabelingJobsResponse dataLabelingJobs + * @property {string|null} [nextPageToken] ListDataLabelingJobsResponse nextPageToken */ /** - * Constructs a new GetBatchPredictionJobRequest. + * Constructs a new ListDataLabelingJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetBatchPredictionJobRequest. - * @implements IGetBatchPredictionJobRequest + * @classdesc Represents a ListDataLabelingJobsResponse. + * @implements IListDataLabelingJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set */ - function GetBatchPredictionJobRequest(properties) { + function ListDataLabelingJobsResponse(properties) { + this.dataLabelingJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219036,75 +224862,91 @@ } /** - * GetBatchPredictionJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * ListDataLabelingJobsResponse dataLabelingJobs. + * @member {Array.} dataLabelingJobs + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance */ - GetBatchPredictionJobRequest.prototype.name = ""; + ListDataLabelingJobsResponse.prototype.dataLabelingJobs = $util.emptyArray; /** - * Creates a new GetBatchPredictionJobRequest instance using the specified properties. + * ListDataLabelingJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse + * @instance + */ + ListDataLabelingJobsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListDataLabelingJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse instance */ - GetBatchPredictionJobRequest.create = function create(properties) { - return new GetBatchPredictionJobRequest(properties); + ListDataLabelingJobsResponse.create = function create(properties) { + return new ListDataLabelingJobsResponse(properties); }; /** - * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encode = function encode(message, writer) { + ListDataLabelingJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.dataLabelingJobs != null && message.dataLabelingJobs.length) + for (var i = 0; i < message.dataLabelingJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.encode(message.dataLabelingJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified ListDataLabelingJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListDataLabelingJobsResponse} message ListDataLabelingJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListDataLabelingJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decode = function decode(reader, length) { + ListDataLabelingJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.dataLabelingJobs && message.dataLabelingJobs.length)) + message.dataLabelingJobs = []; + message.dataLabelingJobs.push($root.google.cloud.aiplatform.v1beta1.DataLabelingJob.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -219115,111 +224957,133 @@ }; /** - * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListDataLabelingJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListDataLabelingJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetBatchPredictionJobRequest message. + * Verifies a ListDataLabelingJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetBatchPredictionJobRequest.verify = function verify(message) { + ListDataLabelingJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.dataLabelingJobs != null && message.hasOwnProperty("dataLabelingJobs")) { + if (!Array.isArray(message.dataLabelingJobs)) + return "dataLabelingJobs: array expected"; + for (var i = 0; i < message.dataLabelingJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.verify(message.dataLabelingJobs[i]); + if (error) + return "dataLabelingJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListDataLabelingJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} ListDataLabelingJobsResponse */ - GetBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest) + ListDataLabelingJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse(); + if (object.dataLabelingJobs) { + if (!Array.isArray(object.dataLabelingJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: array expected"); + message.dataLabelingJobs = []; + for (var i = 0; i < object.dataLabelingJobs.length; ++i) { + if (typeof object.dataLabelingJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse.dataLabelingJobs: object expected"); + message.dataLabelingJobs[i] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.fromObject(object.dataLabelingJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListDataLabelingJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse} message ListDataLabelingJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetBatchPredictionJobRequest.toObject = function toObject(message, options) { + ListDataLabelingJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.dataLabelingJobs = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.dataLabelingJobs && message.dataLabelingJobs.length) { + object.dataLabelingJobs = []; + for (var j = 0; j < message.dataLabelingJobs.length; ++j) + object.dataLabelingJobs[j] = $root.google.cloud.aiplatform.v1beta1.DataLabelingJob.toObject(message.dataLabelingJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this GetBatchPredictionJobRequest to JSON. + * Converts this ListDataLabelingJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListDataLabelingJobsResponse * @instance * @returns {Object.} JSON object */ - GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + ListDataLabelingJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetBatchPredictionJobRequest; + return ListDataLabelingJobsResponse; })(); - v1beta1.ListBatchPredictionJobsRequest = (function() { + v1beta1.DeleteDataLabelingJobRequest = (function() { /** - * Properties of a ListBatchPredictionJobsRequest. + * Properties of a DeleteDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListBatchPredictionJobsRequest - * @property {string|null} [parent] ListBatchPredictionJobsRequest parent - * @property {string|null} [filter] ListBatchPredictionJobsRequest filter - * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize - * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask + * @interface IDeleteDataLabelingJobRequest + * @property {string|null} [name] DeleteDataLabelingJobRequest name */ /** - * Constructs a new ListBatchPredictionJobsRequest. + * Constructs a new DeleteDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListBatchPredictionJobsRequest. - * @implements IListBatchPredictionJobsRequest + * @classdesc Represents a DeleteDataLabelingJobRequest. + * @implements IDeleteDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set */ - function ListBatchPredictionJobsRequest(properties) { + function DeleteDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219227,127 +225091,75 @@ } /** - * ListBatchPredictionJobsRequest parent. - * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest - * @instance - */ - ListBatchPredictionJobsRequest.prototype.parent = ""; - - /** - * ListBatchPredictionJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest - * @instance - */ - ListBatchPredictionJobsRequest.prototype.filter = ""; - - /** - * ListBatchPredictionJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest - * @instance - */ - ListBatchPredictionJobsRequest.prototype.pageSize = 0; - - /** - * ListBatchPredictionJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest - * @instance - */ - ListBatchPredictionJobsRequest.prototype.pageToken = ""; - - /** - * ListBatchPredictionJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * DeleteDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @instance */ - ListBatchPredictionJobsRequest.prototype.readMask = null; + DeleteDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. + * Creates a new DeleteDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest instance */ - ListBatchPredictionJobsRequest.create = function create(properties) { - return new ListBatchPredictionJobsRequest(properties); + DeleteDataLabelingJobRequest.create = function create(properties) { + return new DeleteDataLabelingJobRequest(properties); }; /** - * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified DeleteDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encode = function encode(message, writer) { + DeleteDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. + * Encodes the specified DeleteDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decode = function decode(reader, length) { + DeleteDataLabelingJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.parent = reader.string(); - break; - case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -219358,147 +225170,107 @@ }; /** - * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsRequest message. + * Verifies a DeleteDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsRequest.verify = function verify(message) { + DeleteDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.parent != null && message.hasOwnProperty("parent")) - if (!$util.isString(message.parent)) - return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); - if (error) - return "readMask." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} DeleteDataLabelingJobRequest */ - ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest) + DeleteDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); - if (object.parent != null) - message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest} message DeleteDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { + DeleteDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; - } - if (message.parent != null && message.hasOwnProperty("parent")) - object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListBatchPredictionJobsRequest to JSON. + * Converts this DeleteDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { + DeleteDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListBatchPredictionJobsRequest; + return DeleteDataLabelingJobRequest; })(); - v1beta1.ListBatchPredictionJobsResponse = (function() { + v1beta1.CancelDataLabelingJobRequest = (function() { /** - * Properties of a ListBatchPredictionJobsResponse. + * Properties of a CancelDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListBatchPredictionJobsResponse - * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs - * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken + * @interface ICancelDataLabelingJobRequest + * @property {string|null} [name] CancelDataLabelingJobRequest name */ /** - * Constructs a new ListBatchPredictionJobsResponse. + * Constructs a new CancelDataLabelingJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListBatchPredictionJobsResponse. - * @implements IListBatchPredictionJobsResponse + * @classdesc Represents a CancelDataLabelingJobRequest. + * @implements ICancelDataLabelingJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set */ - function ListBatchPredictionJobsResponse(properties) { - this.batchPredictionJobs = []; + function CancelDataLabelingJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219506,91 +225278,75 @@ } /** - * ListBatchPredictionJobsResponse batchPredictionJobs. - * @member {Array.} batchPredictionJobs - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse - * @instance - */ - ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; - - /** - * ListBatchPredictionJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * CancelDataLabelingJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @instance */ - ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + CancelDataLabelingJobRequest.prototype.name = ""; /** - * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. + * Creates a new CancelDataLabelingJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest instance */ - ListBatchPredictionJobsResponse.create = function create(properties) { - return new ListBatchPredictionJobsResponse(properties); + CancelDataLabelingJobRequest.create = function create(properties) { + return new CancelDataLabelingJobRequest(properties); }; /** - * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified CancelDataLabelingJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encode = function encode(message, writer) { + CancelDataLabelingJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) - for (var i = 0; i < message.batchPredictionJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. + * Encodes the specified CancelDataLabelingJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelDataLabelingJobRequest} message CancelDataLabelingJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + CancelDataLabelingJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decode = function decode(reader, length) { + CancelDataLabelingJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) - message.batchPredictionJobs = []; - message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -219601,133 +225357,108 @@ }; /** - * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a CancelDataLabelingJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { + CancelDataLabelingJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListBatchPredictionJobsResponse message. + * Verifies a CancelDataLabelingJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListBatchPredictionJobsResponse.verify = function verify(message) { + CancelDataLabelingJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { - if (!Array.isArray(message.batchPredictionJobs)) - return "batchPredictionJobs: array expected"; - for (var i = 0; i < message.batchPredictionJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); - if (error) - return "batchPredictionJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a CancelDataLabelingJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} CancelDataLabelingJobRequest */ - ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) + CancelDataLabelingJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); - if (object.batchPredictionJobs) { - if (!Array.isArray(object.batchPredictionJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); - message.batchPredictionJobs = []; - for (var i = 0; i < object.batchPredictionJobs.length; ++i) { - if (typeof object.batchPredictionJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); - message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a CancelDataLabelingJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse + * @param {google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest} message CancelDataLabelingJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { + CancelDataLabelingJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.batchPredictionJobs = []; if (options.defaults) - object.nextPageToken = ""; - if (message.batchPredictionJobs && message.batchPredictionJobs.length) { - object.batchPredictionJobs = []; - for (var j = 0; j < message.batchPredictionJobs.length; ++j) - object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListBatchPredictionJobsResponse to JSON. + * Converts this CancelDataLabelingJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest * @instance * @returns {Object.} JSON object */ - ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { + CancelDataLabelingJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListBatchPredictionJobsResponse; + return CancelDataLabelingJobRequest; })(); - v1beta1.DeleteBatchPredictionJobRequest = (function() { + v1beta1.CreateHyperparameterTuningJobRequest = (function() { /** - * Properties of a DeleteBatchPredictionJobRequest. + * Properties of a CreateHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteBatchPredictionJobRequest - * @property {string|null} [name] DeleteBatchPredictionJobRequest name + * @interface ICreateHyperparameterTuningJobRequest + * @property {string|null} [parent] CreateHyperparameterTuningJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null} [hyperparameterTuningJob] CreateHyperparameterTuningJobRequest hyperparameterTuningJob */ /** - * Constructs a new DeleteBatchPredictionJobRequest. + * Constructs a new CreateHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteBatchPredictionJobRequest. - * @implements IDeleteBatchPredictionJobRequest + * @classdesc Represents a CreateHyperparameterTuningJobRequest. + * @implements ICreateHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set */ - function DeleteBatchPredictionJobRequest(properties) { + function CreateHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219735,75 +225466,88 @@ } /** - * DeleteBatchPredictionJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * CreateHyperparameterTuningJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance */ - DeleteBatchPredictionJobRequest.prototype.name = ""; + CreateHyperparameterTuningJobRequest.prototype.parent = ""; /** - * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. + * CreateHyperparameterTuningJobRequest hyperparameterTuningJob. + * @member {google.cloud.aiplatform.v1beta1.IHyperparameterTuningJob|null|undefined} hyperparameterTuningJob + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest + * @instance + */ + CreateHyperparameterTuningJobRequest.prototype.hyperparameterTuningJob = null; + + /** + * Creates a new CreateHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest instance */ - DeleteBatchPredictionJobRequest.create = function create(properties) { - return new DeleteBatchPredictionJobRequest(properties); + CreateHyperparameterTuningJobRequest.create = function create(properties) { + return new CreateHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CreateHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { + CreateHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.hyperparameterTuningJob != null && Object.hasOwnProperty.call(message, "hyperparameterTuningJob")) + $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified CreateHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { + CreateHyperparameterTuningJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.parent = reader.string(); + break; + case 2: + message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -219814,107 +225558,121 @@ }; /** - * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + CreateHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteBatchPredictionJobRequest message. + * Verifies a CreateHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteBatchPredictionJobRequest.verify = function verify(message) { + CreateHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJob); + if (error) + return "hyperparameterTuningJob." + error; + } return null; }; /** - * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} CreateHyperparameterTuningJobRequest */ - DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest) + CreateHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.hyperparameterTuningJob != null) { + if (typeof object.hyperparameterTuningJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest.hyperparameterTuningJob: object expected"); + message.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJob); + } return message; }; /** - * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest} message CreateHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { + CreateHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + if (options.defaults) { + object.parent = ""; + object.hyperparameterTuningJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.hyperparameterTuningJob != null && message.hasOwnProperty("hyperparameterTuningJob")) + object.hyperparameterTuningJob = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJob, options); return object; }; /** - * Converts this DeleteBatchPredictionJobRequest to JSON. + * Converts this CreateHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + CreateHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteBatchPredictionJobRequest; + return CreateHyperparameterTuningJobRequest; })(); - v1beta1.CancelBatchPredictionJobRequest = (function() { + v1beta1.GetHyperparameterTuningJobRequest = (function() { /** - * Properties of a CancelBatchPredictionJobRequest. + * Properties of a GetHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICancelBatchPredictionJobRequest - * @property {string|null} [name] CancelBatchPredictionJobRequest name + * @interface IGetHyperparameterTuningJobRequest + * @property {string|null} [name] GetHyperparameterTuningJobRequest name */ /** - * Constructs a new CancelBatchPredictionJobRequest. + * Constructs a new GetHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CancelBatchPredictionJobRequest. - * @implements ICancelBatchPredictionJobRequest + * @classdesc Represents a GetHyperparameterTuningJobRequest. + * @implements IGetHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set */ - function CancelBatchPredictionJobRequest(properties) { + function GetHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -219922,35 +225680,35 @@ } /** - * CancelBatchPredictionJobRequest name. + * GetHyperparameterTuningJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @instance */ - CancelBatchPredictionJobRequest.prototype.name = ""; + GetHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. + * Creates a new GetHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest instance */ - CancelBatchPredictionJobRequest.create = function create(properties) { - return new CancelBatchPredictionJobRequest(properties); + GetHyperparameterTuningJobRequest.create = function create(properties) { + return new GetHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encode = function encode(message, writer) { + GetHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -219959,33 +225717,33 @@ }; /** - * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. + * Encodes the specified GetHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + GetHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decode = function decode(reader, length) { + GetHyperparameterTuningJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -220001,30 +225759,30 @@ }; /** - * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. + * Decodes a GetHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { + GetHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CancelBatchPredictionJobRequest message. + * Verifies a GetHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CancelBatchPredictionJobRequest.verify = function verify(message) { + GetHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -220034,32 +225792,32 @@ }; /** - * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a GetHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest + * @returns {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} GetHyperparameterTuningJobRequest */ - CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) + GetHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a GetHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest + * @param {google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest} message GetHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { + GetHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -220071,38 +225829,41 @@ }; /** - * Converts this CancelBatchPredictionJobRequest to JSON. + * Converts this GetHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest + * @memberof google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { + GetHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CancelBatchPredictionJobRequest; + return GetHyperparameterTuningJobRequest; })(); - v1beta1.CreateModelDeploymentMonitoringJobRequest = (function() { + v1beta1.ListHyperparameterTuningJobsRequest = (function() { /** - * Properties of a CreateModelDeploymentMonitoringJobRequest. + * Properties of a ListHyperparameterTuningJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ICreateModelDeploymentMonitoringJobRequest - * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @interface IListHyperparameterTuningJobsRequest + * @property {string|null} [parent] ListHyperparameterTuningJobsRequest parent + * @property {string|null} [filter] ListHyperparameterTuningJobsRequest filter + * @property {number|null} [pageSize] ListHyperparameterTuningJobsRequest pageSize + * @property {string|null} [pageToken] ListHyperparameterTuningJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListHyperparameterTuningJobsRequest readMask */ /** - * Constructs a new CreateModelDeploymentMonitoringJobRequest. + * Constructs a new ListHyperparameterTuningJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. - * @implements ICreateModelDeploymentMonitoringJobRequest + * @classdesc Represents a ListHyperparameterTuningJobsRequest. + * @implements IListHyperparameterTuningJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set */ - function CreateModelDeploymentMonitoringJobRequest(properties) { + function ListHyperparameterTuningJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -220110,80 +225871,110 @@ } /** - * CreateModelDeploymentMonitoringJobRequest parent. + * ListHyperparameterTuningJobsRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance */ - CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; + ListHyperparameterTuningJobsRequest.prototype.parent = ""; /** - * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * ListHyperparameterTuningJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance */ - CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + ListHyperparameterTuningJobsRequest.prototype.filter = ""; /** - * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. + * ListHyperparameterTuningJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @instance + */ + ListHyperparameterTuningJobsRequest.prototype.pageSize = 0; + + /** + * ListHyperparameterTuningJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @instance + */ + ListHyperparameterTuningJobsRequest.prototype.pageToken = ""; + + /** + * ListHyperparameterTuningJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest + * @instance + */ + ListHyperparameterTuningJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListHyperparameterTuningJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest instance */ - CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new CreateModelDeploymentMonitoringJobRequest(properties); + ListHyperparameterTuningJobsRequest.create = function create(properties) { + return new ListHyperparameterTuningJobsRequest(properties); }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListHyperparameterTuningJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + ListHyperparameterTuningJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListHyperparameterTuningJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListHyperparameterTuningJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + ListHyperparameterTuningJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -220191,7 +225982,16 @@ message.parent = reader.string(); break; case 2: - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -220202,129 +226002,147 @@ }; /** - * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListHyperparameterTuningJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a CreateModelDeploymentMonitoringJobRequest message. + * Verifies a ListHyperparameterTuningJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + ListHyperparameterTuningJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "modelDeploymentMonitoringJob." + error; + return "readMask." + error; } return null; }; /** - * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} ListHyperparameterTuningJobsRequest */ - CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) + ListHyperparameterTuningJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListHyperparameterTuningJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest} message ListHyperparameterTuningJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + ListHyperparameterTuningJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.modelDeploymentMonitoringJob = null; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. + * Converts this ListHyperparameterTuningJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsRequest * @instance * @returns {Object.} JSON object */ - CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + ListHyperparameterTuningJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return CreateModelDeploymentMonitoringJobRequest; + return ListHyperparameterTuningJobsRequest; })(); - v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { + v1beta1.ListHyperparameterTuningJobsResponse = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Properties of a ListHyperparameterTuningJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest - * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob - * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId - * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName - * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives - * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize - * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken - * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime - * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime + * @interface IListHyperparameterTuningJobsResponse + * @property {Array.|null} [hyperparameterTuningJobs] ListHyperparameterTuningJobsResponse hyperparameterTuningJobs + * @property {string|null} [nextPageToken] ListHyperparameterTuningJobsResponse nextPageToken */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * Constructs a new ListHyperparameterTuningJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a ListHyperparameterTuningJobsResponse. + * @implements IListHyperparameterTuningJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { - this.objectives = []; + function ListHyperparameterTuningJobsResponse(properties) { + this.hyperparameterTuningJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -220332,169 +226150,91 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. - * @member {string} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. - * @member {Array.} objectives - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. - * @member {google.protobuf.ITimestamp|null|undefined} startTime - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ListHyperparameterTuningJobsResponse hyperparameterTuningJobs. + * @member {Array.} hyperparameterTuningJobs + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; + ListHyperparameterTuningJobsResponse.prototype.hyperparameterTuningJobs = $util.emptyArray; /** - * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. - * @member {google.protobuf.ITimestamp|null|undefined} endTime - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * ListHyperparameterTuningJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; + ListHyperparameterTuningJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. + * Creates a new ListHyperparameterTuningJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse instance */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); + ListHyperparameterTuningJobsResponse.create = function create(properties) { + return new ListHyperparameterTuningJobsResponse(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ListHyperparameterTuningJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { + ListHyperparameterTuningJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); - if (message.objectives != null && message.objectives.length) - for (var i = 0; i < message.objectives.length; ++i) - $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); - if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) - $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) - $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.hyperparameterTuningJobs != null && message.hyperparameterTuningJobs.length) + for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.encode(message.hyperparameterTuningJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. + * Encodes the specified ListHyperparameterTuningJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListHyperparameterTuningJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { + ListHyperparameterTuningJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.modelDeploymentMonitoringJob = reader.string(); + if (!(message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length)) + message.hyperparameterTuningJobs = []; + message.hyperparameterTuningJobs.push($root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.decode(reader, reader.uint32())); break; case 2: - message.deployedModelId = reader.string(); - break; - case 3: - message.featureDisplayName = reader.string(); - break; - case 4: - if (!(message.objectives && message.objectives.length)) - message.objectives = []; - message.objectives.push($root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); - break; - case 5: - message.pageSize = reader.int32(); - break; - case 6: - message.pageToken = reader.string(); - break; - case 7: - message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 8: - message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -220505,432 +226245,133 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. + * Decodes a ListHyperparameterTuningJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { + ListHyperparameterTuningJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. + * Verifies a ListHyperparameterTuningJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { + ListHyperparameterTuningJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - if (!$util.isString(message.modelDeploymentMonitoringJob)) - return "modelDeploymentMonitoringJob: string expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.objectives != null && message.hasOwnProperty("objectives")) { - if (!Array.isArray(message.objectives)) - return "objectives: array expected"; - for (var i = 0; i < message.objectives.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); + if (message.hyperparameterTuningJobs != null && message.hasOwnProperty("hyperparameterTuningJobs")) { + if (!Array.isArray(message.hyperparameterTuningJobs)) + return "hyperparameterTuningJobs: array expected"; + for (var i = 0; i < message.hyperparameterTuningJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.verify(message.hyperparameterTuningJobs[i]); if (error) - return "objectives." + error; + return "hyperparameterTuningJobs." + error; } } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.startTime != null && message.hasOwnProperty("startTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.startTime); - if (error) - return "startTime." + error; - } - if (message.endTime != null && message.hasOwnProperty("endTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.endTime); - if (error) - return "endTime." + error; - } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListHyperparameterTuningJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @returns {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} ListHyperparameterTuningJobsResponse */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + ListHyperparameterTuningJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); - if (object.modelDeploymentMonitoringJob != null) - message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.objectives) { - if (!Array.isArray(object.objectives)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); - message.objectives = []; - for (var i = 0; i < object.objectives.length; ++i) { - if (typeof object.objectives[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); - message.objectives[i] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); + var message = new $root.google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse(); + if (object.hyperparameterTuningJobs) { + if (!Array.isArray(object.hyperparameterTuningJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: array expected"); + message.hyperparameterTuningJobs = []; + for (var i = 0; i < object.hyperparameterTuningJobs.length; ++i) { + if (typeof object.hyperparameterTuningJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse.hyperparameterTuningJobs: object expected"); + message.hyperparameterTuningJobs[i] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.fromObject(object.hyperparameterTuningJobs[i]); } } - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.startTime != null) { - if (typeof object.startTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); - message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); - } - if (object.endTime != null) { - if (typeof object.endTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); - message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); - } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListHyperparameterTuningJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @param {google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse} message ListHyperparameterTuningJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { + ListHyperparameterTuningJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.arrays || options.defaults) - object.objectives = []; - if (options.defaults) { - object.modelDeploymentMonitoringJob = ""; - object.deployedModelId = ""; - object.featureDisplayName = ""; - object.pageSize = 0; - object.pageToken = ""; - object.startTime = null; - object.endTime = null; - } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.objectives && message.objectives.length) { - object.objectives = []; - for (var j = 0; j < message.objectives.length; ++j) - object.objectives[j] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); + object.hyperparameterTuningJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.hyperparameterTuningJobs && message.hyperparameterTuningJobs.length) { + object.hyperparameterTuningJobs = []; + for (var j = 0; j < message.hyperparameterTuningJobs.length; ++j) + object.hyperparameterTuningJobs[j] = $root.google.cloud.aiplatform.v1beta1.HyperparameterTuningJob.toObject(message.hyperparameterTuningJobs[j], options); } - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.startTime != null && message.hasOwnProperty("startTime")) - object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); - if (message.endTime != null && message.hasOwnProperty("endTime")) - object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. + * Converts this ListHyperparameterTuningJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @memberof google.cloud.aiplatform.v1beta1.ListHyperparameterTuningJobsResponse * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { + ListHyperparameterTuningJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { - - /** - * Properties of a StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @interface IStatsAnomaliesObjective - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type - * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount - */ - - /** - * Constructs a new StatsAnomaliesObjective. - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest - * @classdesc Represents a StatsAnomaliesObjective. - * @implements IStatsAnomaliesObjective - * @constructor - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - */ - function StatsAnomaliesObjective(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * StatsAnomaliesObjective type. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} type - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.type = 0; - - /** - * StatsAnomaliesObjective topFeatureCount. - * @member {number} topFeatureCount - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - */ - StatsAnomaliesObjective.prototype.topFeatureCount = 0; - - /** - * Creates a new StatsAnomaliesObjective instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance - */ - StatsAnomaliesObjective.create = function create(properties) { - return new StatsAnomaliesObjective(properties); - }; - - /** - * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.type != null && Object.hasOwnProperty.call(message, "type")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); - if (message.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); - return writer; - }; - - /** - * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.type = reader.int32(); - break; - case 4: - message.topFeatureCount = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a StatsAnomaliesObjective message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - StatsAnomaliesObjective.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.type != null && message.hasOwnProperty("type")) - switch (message.type) { - default: - return "type: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - if (!$util.isInteger(message.topFeatureCount)) - return "topFeatureCount: integer expected"; - return null; - }; - - /** - * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective - */ - StatsAnomaliesObjective.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); - switch (object.type) { - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.type = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.type = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.type = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.type = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.type = 4; - break; - } - if (object.topFeatureCount != null) - message.topFeatureCount = object.topFeatureCount | 0; - return message; - }; - - /** - * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - StatsAnomaliesObjective.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.topFeatureCount = 0; - } - if (message.type != null && message.hasOwnProperty("type")) - object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; - if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) - object.topFeatureCount = message.topFeatureCount; - return object; - }; - - /** - * Converts this StatsAnomaliesObjective to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective - * @instance - * @returns {Object.} JSON object - */ - StatsAnomaliesObjective.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return StatsAnomaliesObjective; - })(); - - return SearchModelDeploymentMonitoringStatsAnomaliesRequest; + return ListHyperparameterTuningJobsResponse; })(); - v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { + v1beta1.DeleteHyperparameterTuningJobRequest = (function() { /** - * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Properties of a DeleteHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse - * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats - * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken + * @interface IDeleteHyperparameterTuningJobRequest + * @property {string|null} [name] DeleteHyperparameterTuningJobRequest name */ /** - * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * Constructs a new DeleteHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. - * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @classdesc Represents a DeleteHyperparameterTuningJobRequest. + * @implements IDeleteHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set */ - function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { - this.monitoringStats = []; + function DeleteHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -220938,91 +226379,75 @@ } /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. - * @member {Array.} monitoringStats - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse - * @instance - */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; - - /** - * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * DeleteHyperparameterTuningJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + DeleteHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * Creates a new DeleteHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest instance */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { - return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); + DeleteHyperparameterTuningJobRequest.create = function create(properties) { + return new DeleteHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified DeleteHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { + DeleteHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitoringStats != null && message.monitoringStats.length) - for (var i = 0; i < message.monitoringStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * Encodes the specified DeleteHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { + DeleteHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { + DeleteHyperparameterTuningJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.monitoringStats && message.monitoringStats.length)) - message.monitoringStats = []; - message.monitoringStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -221033,133 +226458,107 @@ }; /** - * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * Decodes a DeleteHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { + DeleteHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * Verifies a DeleteHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { + DeleteHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { - if (!Array.isArray(message.monitoringStats)) - return "monitoringStats: array expected"; - for (var i = 0; i < message.monitoringStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); - if (error) - return "monitoringStats." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @returns {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} DeleteHyperparameterTuningJobRequest */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + DeleteHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); - if (object.monitoringStats) { - if (!Array.isArray(object.monitoringStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); - message.monitoringStats = []; - for (var i = 0; i < object.monitoringStats.length; ++i) { - if (typeof object.monitoringStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); - message.monitoringStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * Creates a plain object from a DeleteHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @param {google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest} message DeleteHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { + DeleteHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.monitoringStats = []; if (options.defaults) - object.nextPageToken = ""; - if (message.monitoringStats && message.monitoringStats.length) { - object.monitoringStats = []; - for (var j = 0; j < message.monitoringStats.length; ++j) - object.monitoringStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * Converts this DeleteHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @memberof google.cloud.aiplatform.v1beta1.DeleteHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { + DeleteHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return SearchModelDeploymentMonitoringStatsAnomaliesResponse; + return DeleteHyperparameterTuningJobRequest; })(); - v1beta1.GetModelDeploymentMonitoringJobRequest = (function() { + v1beta1.CancelHyperparameterTuningJobRequest = (function() { /** - * Properties of a GetModelDeploymentMonitoringJobRequest. + * Properties of a CancelHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IGetModelDeploymentMonitoringJobRequest - * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name + * @interface ICancelHyperparameterTuningJobRequest + * @property {string|null} [name] CancelHyperparameterTuningJobRequest name */ /** - * Constructs a new GetModelDeploymentMonitoringJobRequest. + * Constructs a new CancelHyperparameterTuningJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. - * @implements IGetModelDeploymentMonitoringJobRequest + * @classdesc Represents a CancelHyperparameterTuningJobRequest. + * @implements ICancelHyperparameterTuningJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set */ - function GetModelDeploymentMonitoringJobRequest(properties) { + function CancelHyperparameterTuningJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -221167,35 +226566,35 @@ } /** - * GetModelDeploymentMonitoringJobRequest name. + * CancelHyperparameterTuningJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @instance */ - GetModelDeploymentMonitoringJobRequest.prototype.name = ""; + CancelHyperparameterTuningJobRequest.prototype.name = ""; /** - * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CancelHyperparameterTuningJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest instance */ - GetModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new GetModelDeploymentMonitoringJobRequest(properties); + CancelHyperparameterTuningJobRequest.create = function create(properties) { + return new CancelHyperparameterTuningJobRequest(properties); }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CancelHyperparameterTuningJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + CancelHyperparameterTuningJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -221204,33 +226603,33 @@ }; /** - * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CancelHyperparameterTuningJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelHyperparameterTuningJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + CancelHyperparameterTuningJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -221246,30 +226645,30 @@ }; /** - * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelHyperparameterTuningJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelHyperparameterTuningJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a GetModelDeploymentMonitoringJobRequest message. + * Verifies a CancelHyperparameterTuningJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { + CancelHyperparameterTuningJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -221279,32 +226678,32 @@ }; /** - * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelHyperparameterTuningJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} CancelHyperparameterTuningJobRequest */ - GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) + CancelHyperparameterTuningJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelHyperparameterTuningJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest} message CancelHyperparameterTuningJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + CancelHyperparameterTuningJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -221316,41 +226715,38 @@ }; /** - * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * Converts this CancelHyperparameterTuningJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest * @instance * @returns {Object.} JSON object */ - GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + CancelHyperparameterTuningJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return GetModelDeploymentMonitoringJobRequest; + return CancelHyperparameterTuningJobRequest; })(); - v1beta1.ListModelDeploymentMonitoringJobsRequest = (function() { + v1beta1.CreateBatchPredictionJobRequest = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsRequest. + * Properties of a CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelDeploymentMonitoringJobsRequest - * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent - * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter - * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize - * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken - * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask + * @interface ICreateBatchPredictionJobRequest + * @property {string|null} [parent] CreateBatchPredictionJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null} [batchPredictionJob] CreateBatchPredictionJobRequest batchPredictionJob */ /** - * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * Constructs a new CreateBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. - * @implements IListModelDeploymentMonitoringJobsRequest + * @classdesc Represents a CreateBatchPredictionJobRequest. + * @implements ICreateBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsRequest(properties) { + function CreateBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -221358,110 +226754,80 @@ } /** - * ListModelDeploymentMonitoringJobsRequest parent. + * CreateBatchPredictionJobRequest parent. * @member {string} parent - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; - - /** - * ListModelDeploymentMonitoringJobsRequest filter. - * @member {string} filter - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; - - /** - * ListModelDeploymentMonitoringJobsRequest pageSize. - * @member {number} pageSize - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest - * @instance - */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; - - /** - * ListModelDeploymentMonitoringJobsRequest pageToken. - * @member {string} pageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; + CreateBatchPredictionJobRequest.prototype.parent = ""; /** - * ListModelDeploymentMonitoringJobsRequest readMask. - * @member {google.protobuf.IFieldMask|null|undefined} readMask - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * CreateBatchPredictionJobRequest batchPredictionJob. + * @member {google.cloud.aiplatform.v1beta1.IBatchPredictionJob|null|undefined} batchPredictionJob + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance */ - ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + CreateBatchPredictionJobRequest.prototype.batchPredictionJob = null; /** - * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * Creates a new CreateBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest instance */ - ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsRequest(properties); + CreateBatchPredictionJobRequest.create = function create(properties) { + return new CreateBatchPredictionJobRequest(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { + CreateBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); - if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); - if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); - if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) - writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); - if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) - $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.batchPredictionJob != null && Object.hasOwnProperty.call(message, "batchPredictionJob")) + $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * Encodes the specified CreateBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + CreateBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { + CreateBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -221469,16 +226835,7 @@ message.parent = reader.string(); break; case 2: - message.filter = reader.string(); - break; - case 3: - message.pageSize = reader.int32(); - break; - case 4: - message.pageToken = reader.string(); - break; - case 5: - message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -221489,147 +226846,121 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * Decodes a CreateBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { + CreateBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * Verifies a CreateBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { + CreateBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.parent != null && message.hasOwnProperty("parent")) if (!$util.isString(message.parent)) return "parent: string expected"; - if (message.filter != null && message.hasOwnProperty("filter")) - if (!$util.isString(message.filter)) - return "filter: string expected"; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - if (!$util.isInteger(message.pageSize)) - return "pageSize: integer expected"; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - if (!$util.isString(message.pageToken)) - return "pageToken: string expected"; - if (message.readMask != null && message.hasOwnProperty("readMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJob); if (error) - return "readMask." + error; + return "batchPredictionJob." + error; } return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CreateBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @returns {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} CreateBatchPredictionJobRequest */ - ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + CreateBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest(); if (object.parent != null) message.parent = String(object.parent); - if (object.filter != null) - message.filter = String(object.filter); - if (object.pageSize != null) - message.pageSize = object.pageSize | 0; - if (object.pageToken != null) - message.pageToken = String(object.pageToken); - if (object.readMask != null) { - if (typeof object.readMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); - message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + if (object.batchPredictionJob != null) { + if (typeof object.batchPredictionJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest.batchPredictionJob: object expected"); + message.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJob); } return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * Creates a plain object from a CreateBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest + * @param {google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest} message CreateBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { + CreateBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { object.parent = ""; - object.filter = ""; - object.pageSize = 0; - object.pageToken = ""; - object.readMask = null; + object.batchPredictionJob = null; } if (message.parent != null && message.hasOwnProperty("parent")) object.parent = message.parent; - if (message.filter != null && message.hasOwnProperty("filter")) - object.filter = message.filter; - if (message.pageSize != null && message.hasOwnProperty("pageSize")) - object.pageSize = message.pageSize; - if (message.pageToken != null && message.hasOwnProperty("pageToken")) - object.pageToken = message.pageToken; - if (message.readMask != null && message.hasOwnProperty("readMask")) - object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + if (message.batchPredictionJob != null && message.hasOwnProperty("batchPredictionJob")) + object.batchPredictionJob = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJob, options); return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * Converts this CreateBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @memberof google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { + CreateBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListModelDeploymentMonitoringJobsRequest; + return CreateBatchPredictionJobRequest; })(); - v1beta1.ListModelDeploymentMonitoringJobsResponse = (function() { + v1beta1.GetBatchPredictionJobRequest = (function() { /** - * Properties of a ListModelDeploymentMonitoringJobsResponse. + * Properties of a GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IListModelDeploymentMonitoringJobsResponse - * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs - * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken + * @interface IGetBatchPredictionJobRequest + * @property {string|null} [name] GetBatchPredictionJobRequest name */ /** - * Constructs a new ListModelDeploymentMonitoringJobsResponse. + * Constructs a new GetBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. - * @implements IListModelDeploymentMonitoringJobsResponse + * @classdesc Represents a GetBatchPredictionJobRequest. + * @implements IGetBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set */ - function ListModelDeploymentMonitoringJobsResponse(properties) { - this.modelDeploymentMonitoringJobs = []; + function GetBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -221637,91 +226968,75 @@ } /** - * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. - * @member {Array.} modelDeploymentMonitoringJobs - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse - * @instance - */ - ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; - - /** - * ListModelDeploymentMonitoringJobsResponse nextPageToken. - * @member {string} nextPageToken - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * GetBatchPredictionJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @instance */ - ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; + GetBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. + * Creates a new GetBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest instance */ - ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { - return new ListModelDeploymentMonitoringJobsResponse(properties); + GetBatchPredictionJobRequest.create = function create(properties) { + return new GetBatchPredictionJobRequest(properties); }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { + GetBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. + * Encodes the specified GetBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IGetBatchPredictionJobRequest} message GetBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { + GetBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { + GetBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) - message.modelDeploymentMonitoringJobs = []; - message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); - break; - case 2: - message.nextPageToken = reader.string(); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -221732,134 +227047,111 @@ }; /** - * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. + * Decodes a GetBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { + GetBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ListModelDeploymentMonitoringJobsResponse message. + * Verifies a GetBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { + GetBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { - if (!Array.isArray(message.modelDeploymentMonitoringJobs)) - return "modelDeploymentMonitoringJobs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); - if (error) - return "modelDeploymentMonitoringJobs." + error; - } - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - if (!$util.isString(message.nextPageToken)) - return "nextPageToken: string expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. + * Creates a GetBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse + * @returns {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} GetBatchPredictionJobRequest */ - ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) + GetBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); - if (object.modelDeploymentMonitoringJobs) { - if (!Array.isArray(object.modelDeploymentMonitoringJobs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); - message.modelDeploymentMonitoringJobs = []; - for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { - if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); - message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); - } - } - if (object.nextPageToken != null) - message.nextPageToken = String(object.nextPageToken); + var message = new $root.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. + * Creates a plain object from a GetBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse + * @param {google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest} message GetBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { + GetBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.modelDeploymentMonitoringJobs = []; if (options.defaults) - object.nextPageToken = ""; - if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { - object.modelDeploymentMonitoringJobs = []; - for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) - object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); - } - if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) - object.nextPageToken = message.nextPageToken; + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. + * Converts this GetBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse + * @memberof google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { + GetBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ListModelDeploymentMonitoringJobsResponse; + return GetBatchPredictionJobRequest; })(); - v1beta1.UpdateModelDeploymentMonitoringJobRequest = (function() { + v1beta1.ListBatchPredictionJobsRequest = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobRequest. + * Properties of a ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelDeploymentMonitoringJobRequest - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob - * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask + * @interface IListBatchPredictionJobsRequest + * @property {string|null} [parent] ListBatchPredictionJobsRequest parent + * @property {string|null} [filter] ListBatchPredictionJobsRequest filter + * @property {number|null} [pageSize] ListBatchPredictionJobsRequest pageSize + * @property {string|null} [pageToken] ListBatchPredictionJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListBatchPredictionJobsRequest readMask */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobRequest. + * Constructs a new ListBatchPredictionJobsRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. - * @implements IUpdateModelDeploymentMonitoringJobRequest + * @classdesc Represents a ListBatchPredictionJobsRequest. + * @implements IListBatchPredictionJobsRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobRequest(properties) { + function ListBatchPredictionJobsRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -221867,88 +227159,127 @@ } /** - * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * ListBatchPredictionJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + ListBatchPredictionJobsRequest.prototype.parent = ""; /** - * UpdateModelDeploymentMonitoringJobRequest updateMask. - * @member {google.protobuf.IFieldMask|null|undefined} updateMask - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * ListBatchPredictionJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance */ - UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; + ListBatchPredictionJobsRequest.prototype.filter = ""; /** - * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. + * ListBatchPredictionJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @instance + */ + ListBatchPredictionJobsRequest.prototype.pageSize = 0; + + /** + * ListBatchPredictionJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @instance + */ + ListBatchPredictionJobsRequest.prototype.pageToken = ""; + + /** + * ListBatchPredictionJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest + * @instance + */ + ListBatchPredictionJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListBatchPredictionJobsRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest instance */ - UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobRequest(properties); + ListBatchPredictionJobsRequest.create = function create(properties) { + return new ListBatchPredictionJobsRequest(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + ListBatchPredictionJobsRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) - $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + ListBatchPredictionJobsRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); + message.parent = reader.string(); break; case 2: - message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -221959,126 +227290,147 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobRequest message. + * Verifies a ListBatchPredictionJobsRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { + ListBatchPredictionJobsRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); - if (error) - return "modelDeploymentMonitoringJob." + error; - } - if (message.updateMask != null && message.hasOwnProperty("updateMask")) { - var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); if (error) - return "updateMask." + error; + return "readMask." + error; } return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} ListBatchPredictionJobsRequest */ - UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) + ListBatchPredictionJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); - if (object.modelDeploymentMonitoringJob != null) { - if (typeof object.modelDeploymentMonitoringJob !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); - message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); - } - if (object.updateMask != null) { - if (typeof object.updateMask !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); - message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); + var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); } return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest} message ListBatchPredictionJobsRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + ListBatchPredictionJobsRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.modelDeploymentMonitoringJob = null; - object.updateMask = null; + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; } - if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) - object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); - if (message.updateMask != null && message.hasOwnProperty("updateMask")) - object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. + * Converts this ListBatchPredictionJobsRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsRequest * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateModelDeploymentMonitoringJobRequest; + return ListBatchPredictionJobsRequest; })(); - v1beta1.DeleteModelDeploymentMonitoringJobRequest = (function() { + v1beta1.ListBatchPredictionJobsResponse = (function() { /** - * Properties of a DeleteModelDeploymentMonitoringJobRequest. + * Properties of a ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IDeleteModelDeploymentMonitoringJobRequest - * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name + * @interface IListBatchPredictionJobsResponse + * @property {Array.|null} [batchPredictionJobs] ListBatchPredictionJobsResponse batchPredictionJobs + * @property {string|null} [nextPageToken] ListBatchPredictionJobsResponse nextPageToken */ /** - * Constructs a new DeleteModelDeploymentMonitoringJobRequest. + * Constructs a new ListBatchPredictionJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. - * @implements IDeleteModelDeploymentMonitoringJobRequest + * @classdesc Represents a ListBatchPredictionJobsResponse. + * @implements IListBatchPredictionJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set */ - function DeleteModelDeploymentMonitoringJobRequest(properties) { + function ListBatchPredictionJobsResponse(properties) { + this.batchPredictionJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222086,75 +227438,91 @@ } /** - * DeleteModelDeploymentMonitoringJobRequest name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * ListBatchPredictionJobsResponse batchPredictionJobs. + * @member {Array.} batchPredictionJobs + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance */ - DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; + ListBatchPredictionJobsResponse.prototype.batchPredictionJobs = $util.emptyArray; /** - * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. + * ListBatchPredictionJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse + * @instance + */ + ListBatchPredictionJobsResponse.prototype.nextPageToken = ""; + + /** + * Creates a new ListBatchPredictionJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse instance */ - DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new DeleteModelDeploymentMonitoringJobRequest(properties); + ListBatchPredictionJobsResponse.create = function create(properties) { + return new ListBatchPredictionJobsResponse(properties); }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + ListBatchPredictionJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.batchPredictionJobs != null && message.batchPredictionJobs.length) + for (var i = 0; i < message.batchPredictionJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.encode(message.batchPredictionJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified ListBatchPredictionJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + ListBatchPredictionJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + ListBatchPredictionJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + if (!(message.batchPredictionJobs && message.batchPredictionJobs.length)) + message.batchPredictionJobs = []; + message.batchPredictionJobs.push($root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -222165,107 +227533,133 @@ }; /** - * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a ListBatchPredictionJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + ListBatchPredictionJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a DeleteModelDeploymentMonitoringJobRequest message. + * Verifies a ListBatchPredictionJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { + ListBatchPredictionJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; + if (message.batchPredictionJobs != null && message.hasOwnProperty("batchPredictionJobs")) { + if (!Array.isArray(message.batchPredictionJobs)) + return "batchPredictionJobs: array expected"; + for (var i = 0; i < message.batchPredictionJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.verify(message.batchPredictionJobs[i]); + if (error) + return "batchPredictionJobs." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a ListBatchPredictionJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} ListBatchPredictionJobsResponse */ - DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) + ListBatchPredictionJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); - if (object.name != null) - message.name = String(object.name); + var message = new $root.google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse(); + if (object.batchPredictionJobs) { + if (!Array.isArray(object.batchPredictionJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: array expected"); + message.batchPredictionJobs = []; + for (var i = 0; i < object.batchPredictionJobs.length; ++i) { + if (typeof object.batchPredictionJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse.batchPredictionJobs: object expected"); + message.batchPredictionJobs[i] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.fromObject(object.batchPredictionJobs[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a ListBatchPredictionJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse} message ListBatchPredictionJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + ListBatchPredictionJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; + if (options.arrays || options.defaults) + object.batchPredictionJobs = []; if (options.defaults) - object.name = ""; - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; + object.nextPageToken = ""; + if (message.batchPredictionJobs && message.batchPredictionJobs.length) { + object.batchPredictionJobs = []; + for (var j = 0; j < message.batchPredictionJobs.length; ++j) + object.batchPredictionJobs[j] = $root.google.cloud.aiplatform.v1beta1.BatchPredictionJob.toObject(message.batchPredictionJobs[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. + * Converts this ListBatchPredictionJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.ListBatchPredictionJobsResponse * @instance * @returns {Object.} JSON object */ - DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + ListBatchPredictionJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return DeleteModelDeploymentMonitoringJobRequest; + return ListBatchPredictionJobsResponse; })(); - v1beta1.PauseModelDeploymentMonitoringJobRequest = (function() { + v1beta1.DeleteBatchPredictionJobRequest = (function() { /** - * Properties of a PauseModelDeploymentMonitoringJobRequest. + * Properties of a DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IPauseModelDeploymentMonitoringJobRequest - * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name + * @interface IDeleteBatchPredictionJobRequest + * @property {string|null} [name] DeleteBatchPredictionJobRequest name */ /** - * Constructs a new PauseModelDeploymentMonitoringJobRequest. + * Constructs a new DeleteBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. - * @implements IPauseModelDeploymentMonitoringJobRequest + * @classdesc Represents a DeleteBatchPredictionJobRequest. + * @implements IDeleteBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set */ - function PauseModelDeploymentMonitoringJobRequest(properties) { + function DeleteBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222273,35 +227667,35 @@ } /** - * PauseModelDeploymentMonitoringJobRequest name. + * DeleteBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @instance */ - PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; + DeleteBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new DeleteBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest instance */ - PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new PauseModelDeploymentMonitoringJobRequest(properties); + DeleteBatchPredictionJobRequest.create = function create(properties) { + return new DeleteBatchPredictionJobRequest(properties); }; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + DeleteBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -222310,33 +227704,33 @@ }; /** - * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified DeleteBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + DeleteBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + DeleteBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -222352,30 +227746,30 @@ }; /** - * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a DeleteBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + DeleteBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * Verifies a DeleteBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { + DeleteBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -222385,32 +227779,32 @@ }; /** - * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} DeleteBatchPredictionJobRequest */ - PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + DeleteBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a DeleteBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest} message DeleteBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + DeleteBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -222422,37 +227816,37 @@ }; /** - * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * Converts this DeleteBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.DeleteBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + DeleteBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return PauseModelDeploymentMonitoringJobRequest; + return DeleteBatchPredictionJobRequest; })(); - v1beta1.ResumeModelDeploymentMonitoringJobRequest = (function() { + v1beta1.CancelBatchPredictionJobRequest = (function() { /** - * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * Properties of a CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IResumeModelDeploymentMonitoringJobRequest - * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name + * @interface ICancelBatchPredictionJobRequest + * @property {string|null} [name] CancelBatchPredictionJobRequest name */ /** - * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * Constructs a new CancelBatchPredictionJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. - * @implements IResumeModelDeploymentMonitoringJobRequest + * @classdesc Represents a CancelBatchPredictionJobRequest. + * @implements ICancelBatchPredictionJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set */ - function ResumeModelDeploymentMonitoringJobRequest(properties) { + function CancelBatchPredictionJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222460,35 +227854,35 @@ } /** - * ResumeModelDeploymentMonitoringJobRequest name. + * CancelBatchPredictionJobRequest name. * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @instance */ - ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; + CancelBatchPredictionJobRequest.prototype.name = ""; /** - * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. + * Creates a new CancelBatchPredictionJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest instance */ - ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { - return new ResumeModelDeploymentMonitoringJobRequest(properties); + CancelBatchPredictionJobRequest.create = function create(properties) { + return new CancelBatchPredictionJobRequest(properties); }; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + CancelBatchPredictionJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); if (message.name != null && Object.hasOwnProperty.call(message, "name")) @@ -222497,33 +227891,33 @@ }; /** - * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. + * Encodes the specified CancelBatchPredictionJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + CancelBatchPredictionJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + CancelBatchPredictionJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { @@ -222539,30 +227933,30 @@ }; /** - * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * Decodes a CancelBatchPredictionJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + CancelBatchPredictionJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ResumeModelDeploymentMonitoringJobRequest message. + * Verifies a CancelBatchPredictionJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { + CancelBatchPredictionJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; if (message.name != null && message.hasOwnProperty("name")) @@ -222572,32 +227966,32 @@ }; /** - * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * Creates a CancelBatchPredictionJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest + * @returns {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} CancelBatchPredictionJobRequest */ - ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + CancelBatchPredictionJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); + var message = new $root.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest(); if (object.name != null) message.name = String(object.name); return message; }; /** - * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * Creates a plain object from a CancelBatchPredictionJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest + * @param {google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest} message CancelBatchPredictionJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + CancelBatchPredictionJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; @@ -222609,37 +228003,38 @@ }; /** - * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. + * Converts this CancelBatchPredictionJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest + * @memberof google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest * @instance * @returns {Object.} JSON object */ - ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + CancelBatchPredictionJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ResumeModelDeploymentMonitoringJobRequest; + return CancelBatchPredictionJobRequest; })(); - v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { + v1beta1.CreateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. + * Properties of a CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata - * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata + * @interface ICreateModelDeploymentMonitoringJobRequest + * @property {string|null} [parent] CreateModelDeploymentMonitoringJobRequest parent + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob */ /** - * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. + * Constructs a new CreateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. - * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata + * @classdesc Represents a CreateModelDeploymentMonitoringJobRequest. + * @implements ICreateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { + function CreateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222647,75 +228042,88 @@ } /** - * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. - * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * CreateModelDeploymentMonitoringJobRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; + CreateModelDeploymentMonitoringJobRequest.prototype.parent = ""; /** - * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. + * CreateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest + * @instance + */ + CreateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; + + /** + * Creates a new CreateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest instance */ - UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { - return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); + CreateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new CreateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) - $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. + * Encodes the specified CreateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ICreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { + CreateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { + CreateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); + message.parent = reader.string(); + break; + case 2: + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -222726,157 +228134,129 @@ }; /** - * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. + * Decodes a CreateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { + CreateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. + * Verifies a CreateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { + CreateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); if (error) - return "genericMetadata." + error; + return "modelDeploymentMonitoringJob." + error; } return null; }; /** - * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a CreateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata + * @returns {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} CreateModelDeploymentMonitoringJobRequest */ - UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) + CreateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); - if (object.genericMetadata != null) { - if (typeof object.genericMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); - message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); + var message = new $root.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); } return message; }; /** - * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. + * Creates a plain object from a CreateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata + * @param {google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest} message CreateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { + CreateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.genericMetadata = null; - if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) - object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); + if (options.defaults) { + object.parent = ""; + object.modelDeploymentMonitoringJob = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); return object; }; /** - * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. + * Converts this CreateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata + * @memberof google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { + CreateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return UpdateModelDeploymentMonitoringJobOperationMetadata; - })(); - - /** - * ModelDeploymentMonitoringObjectiveType enum. - * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType - * @enum {number} - * @property {number} MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED=0 MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED value - * @property {number} RAW_FEATURE_SKEW=1 RAW_FEATURE_SKEW value - * @property {number} RAW_FEATURE_DRIFT=2 RAW_FEATURE_DRIFT value - * @property {number} FEATURE_ATTRIBUTION_SKEW=3 FEATURE_ATTRIBUTION_SKEW value - * @property {number} FEATURE_ATTRIBUTION_DRIFT=4 FEATURE_ATTRIBUTION_DRIFT value - */ - v1beta1.ModelDeploymentMonitoringObjectiveType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "RAW_FEATURE_SKEW"] = 1; - values[valuesById[2] = "RAW_FEATURE_DRIFT"] = 2; - values[valuesById[3] = "FEATURE_ATTRIBUTION_SKEW"] = 3; - values[valuesById[4] = "FEATURE_ATTRIBUTION_DRIFT"] = 4; - return values; + return CreateModelDeploymentMonitoringJobRequest; })(); - v1beta1.ModelDeploymentMonitoringJob = (function() { + v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringJob. + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelDeploymentMonitoringJob - * @property {string|null} [name] ModelDeploymentMonitoringJob name - * @property {string|null} [displayName] ModelDeploymentMonitoringJob displayName - * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint - * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] ModelDeploymentMonitoringJob state - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata - * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs - * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig - * @property {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy - * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null} [modelMonitoringAlertConfig] ModelDeploymentMonitoringJob modelMonitoringAlertConfig - * @property {string|null} [predictInstanceSchemaUri] ModelDeploymentMonitoringJob predictInstanceSchemaUri - * @property {google.protobuf.IValue|null} [samplePredictInstance] ModelDeploymentMonitoringJob samplePredictInstance - * @property {string|null} [analysisInstanceSchemaUri] ModelDeploymentMonitoringJob analysisInstanceSchemaUri - * @property {Array.|null} [bigqueryTables] ModelDeploymentMonitoringJob bigqueryTables - * @property {google.protobuf.IDuration|null} [logTtl] ModelDeploymentMonitoringJob logTtl - * @property {Object.|null} [labels] ModelDeploymentMonitoringJob labels - * @property {google.protobuf.ITimestamp|null} [createTime] ModelDeploymentMonitoringJob createTime - * @property {google.protobuf.ITimestamp|null} [updateTime] ModelDeploymentMonitoringJob updateTime - * @property {google.protobuf.ITimestamp|null} [nextScheduleTime] ModelDeploymentMonitoringJob nextScheduleTime - * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory - * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec - * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs - * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesRequest + * @property {string|null} [modelDeploymentMonitoringJob] SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob + * @property {string|null} [deployedModelId] SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId + * @property {string|null} [featureDisplayName] SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName + * @property {Array.|null} [objectives] SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives + * @property {number|null} [pageSize] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize + * @property {string|null} [pageToken] SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken + * @property {google.protobuf.ITimestamp|null} [startTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime + * @property {google.protobuf.ITimestamp|null} [endTime] SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime */ /** - * Constructs a new ModelDeploymentMonitoringJob. + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringJob. - * @implements IModelDeploymentMonitoringJob + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesRequest. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringJob(properties) { - this.modelDeploymentMonitoringObjectiveConfigs = []; - this.bigqueryTables = []; - this.labels = {}; + function SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties) { + this.objectives = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -222884,387 +228264,169 @@ } /** - * ModelDeploymentMonitoringJob name. - * @member {string} name - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.name = ""; - - /** - * ModelDeploymentMonitoringJob displayName. - * @member {string} displayName - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.displayName = ""; - - /** - * ModelDeploymentMonitoringJob endpoint. - * @member {string} endpoint - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.endpoint = ""; - - /** - * ModelDeploymentMonitoringJob state. - * @member {google.cloud.aiplatform.v1beta1.JobState} state - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.state = 0; - - /** - * ModelDeploymentMonitoringJob scheduleState. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.scheduleState = 0; - - /** - * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; - - /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. - * @member {Array.} modelDeploymentMonitoringObjectiveConfigs - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; - - /** - * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. - * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; - - /** - * ModelDeploymentMonitoringJob loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; - - /** - * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. - * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; - - /** - * ModelDeploymentMonitoringJob predictInstanceSchemaUri. - * @member {string} predictInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; - - /** - * ModelDeploymentMonitoringJob samplePredictInstance. - * @member {google.protobuf.IValue|null|undefined} samplePredictInstance - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.samplePredictInstance = null; - - /** - * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. - * @member {string} analysisInstanceSchemaUri - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; - - /** - * ModelDeploymentMonitoringJob bigqueryTables. - * @member {Array.} bigqueryTables - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; - - /** - * ModelDeploymentMonitoringJob logTtl. - * @member {google.protobuf.IDuration|null|undefined} logTtl - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @instance - */ - ModelDeploymentMonitoringJob.prototype.logTtl = null; - - /** - * ModelDeploymentMonitoringJob labels. - * @member {Object.} labels - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * SearchModelDeploymentMonitoringStatsAnomaliesRequest modelDeploymentMonitoringJob. + * @member {string} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.modelDeploymentMonitoringJob = ""; /** - * ModelDeploymentMonitoringJob createTime. - * @member {google.protobuf.ITimestamp|null|undefined} createTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * SearchModelDeploymentMonitoringStatsAnomaliesRequest deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.createTime = null; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.deployedModelId = ""; /** - * ModelDeploymentMonitoringJob updateTime. - * @member {google.protobuf.ITimestamp|null|undefined} updateTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * SearchModelDeploymentMonitoringStatsAnomaliesRequest featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.updateTime = null; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.featureDisplayName = ""; /** - * ModelDeploymentMonitoringJob nextScheduleTime. - * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * SearchModelDeploymentMonitoringStatsAnomaliesRequest objectives. + * @member {Array.} objectives + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.objectives = $util.emptyArray; /** - * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageSize = 0; /** - * ModelDeploymentMonitoringJob encryptionSpec. - * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * SearchModelDeploymentMonitoringStatsAnomaliesRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.pageToken = ""; /** - * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. - * @member {boolean} enableMonitoringPipelineLogs - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * SearchModelDeploymentMonitoringStatsAnomaliesRequest startTime. + * @member {google.protobuf.ITimestamp|null|undefined} startTime + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.startTime = null; /** - * ModelDeploymentMonitoringJob error. - * @member {google.rpc.IStatus|null|undefined} error - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * SearchModelDeploymentMonitoringStatsAnomaliesRequest endTime. + * @member {google.protobuf.ITimestamp|null|undefined} endTime + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance */ - ModelDeploymentMonitoringJob.prototype.error = null; + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.endTime = null; /** - * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest instance */ - ModelDeploymentMonitoringJob.create = function create(properties) { - return new ModelDeploymentMonitoringJob(properties); + SearchModelDeploymentMonitoringStatsAnomaliesRequest.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.encode = function encode(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.name != null && Object.hasOwnProperty.call(message, "name")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); - if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); - if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.endpoint); - if (message.state != null && Object.hasOwnProperty.call(message, "state")) - writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); - if (message.scheduleState != null && Object.hasOwnProperty.call(message, "scheduleState")) - writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scheduleState); - if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.modelDeploymentMonitoringObjectiveConfigs.length) - for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.encode(message.modelDeploymentMonitoringObjectiveConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); - if (message.modelDeploymentMonitoringScheduleConfig != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringScheduleConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.encode(message.modelDeploymentMonitoringScheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) - $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); - if (message.predictInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "predictInstanceSchemaUri")) - writer.uint32(/* id 9, wireType 2 =*/74).string(message.predictInstanceSchemaUri); - if (message.bigqueryTables != null && message.bigqueryTables.length) - for (var i = 0; i < message.bigqueryTables.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.encode(message.bigqueryTables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); - if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) - for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) - writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); - if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) - $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); - if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) - $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); - if (message.nextScheduleTime != null && Object.hasOwnProperty.call(message, "nextScheduleTime")) - $root.google.protobuf.Timestamp.encode(message.nextScheduleTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); - if (message.modelMonitoringAlertConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringAlertConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.encode(message.modelMonitoringAlertConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); - if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) - writer.uint32(/* id 16, wireType 2 =*/130).string(message.analysisInstanceSchemaUri); - if (message.logTtl != null && Object.hasOwnProperty.call(message, "logTtl")) - $root.google.protobuf.Duration.encode(message.logTtl, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); - if (message.samplePredictInstance != null && Object.hasOwnProperty.call(message, "samplePredictInstance")) - $root.google.protobuf.Value.encode(message.samplePredictInstance, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); - if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) - $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); - if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) - $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); - if (message.enableMonitoringPipelineLogs != null && Object.hasOwnProperty.call(message, "enableMonitoringPipelineLogs")) - writer.uint32(/* id 22, wireType 0 =*/176).bool(message.enableMonitoringPipelineLogs); - if (message.error != null && Object.hasOwnProperty.call(message, "error")) - $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); - if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) - $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.modelDeploymentMonitoringJob); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.featureDisplayName); + if (message.objectives != null && message.objectives.length) + for (var i = 0; i < message.objectives.length; ++i) + $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.encode(message.objectives[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 6, wireType 2 =*/50).string(message.pageToken); + if (message.startTime != null && Object.hasOwnProperty.call(message, "startTime")) + $root.google.protobuf.Timestamp.encode(message.startTime, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.endTime != null && Object.hasOwnProperty.call(message, "endTime")) + $root.google.protobuf.Timestamp.encode(message.endTime, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.decode = function decode(reader, length) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(), key, value; + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.name = reader.string(); + message.modelDeploymentMonitoringJob = reader.string(); break; case 2: - message.displayName = reader.string(); + message.deployedModelId = reader.string(); break; case 3: - message.endpoint = reader.string(); + message.featureDisplayName = reader.string(); break; case 4: - message.state = reader.int32(); + if (!(message.objectives && message.objectives.length)) + message.objectives = []; + message.objectives.push($root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.decode(reader, reader.uint32())); break; case 5: - message.scheduleState = reader.int32(); - break; - case 25: - message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); + message.pageSize = reader.int32(); break; case 6: - if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) - message.modelDeploymentMonitoringObjectiveConfigs = []; - message.modelDeploymentMonitoringObjectiveConfigs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.decode(reader, reader.uint32())); + message.pageToken = reader.string(); break; case 7: - message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.decode(reader, reader.uint32()); + message.startTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 8: - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.decode(reader, reader.uint32()); - break; - case 15: - message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); - break; - case 9: - message.predictInstanceSchemaUri = reader.string(); - break; - case 19: - message.samplePredictInstance = $root.google.protobuf.Value.decode(reader, reader.uint32()); - break; - case 16: - message.analysisInstanceSchemaUri = reader.string(); - break; - case 10: - if (!(message.bigqueryTables && message.bigqueryTables.length)) - message.bigqueryTables = []; - message.bigqueryTables.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.decode(reader, reader.uint32())); - break; - case 17: - message.logTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); - break; - case 11: - if (message.labels === $util.emptyObject) - message.labels = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = ""; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = reader.string(); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.labels[key] = value; - break; - case 12: - message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 13: - message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 14: - message.nextScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); - break; - case 20: - message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); - break; - case 21: - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); - break; - case 22: - message.enableMonitoringPipelineLogs = reader.bool(); - break; - case 23: - message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + message.endTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -223275,474 +228437,190 @@ }; /** - * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringJob message. + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringJob.verify = function verify(message) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.name != null && message.hasOwnProperty("name")) - if (!$util.isString(message.name)) - return "name: string expected"; - if (message.displayName != null && message.hasOwnProperty("displayName")) - if (!$util.isString(message.displayName)) - return "displayName: string expected"; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - if (!$util.isString(message.endpoint)) - return "endpoint: string expected"; - if (message.state != null && message.hasOwnProperty("state")) - switch (message.state) { - default: - return "state: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - case 7: - case 8: - case 9: - case 10: - break; - } - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - switch (message.scheduleState) { - default: - return "scheduleState: enum value expected"; - case 0: - case 1: - case 2: - case 3: - break; - } - if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify(message.latestMonitoringPipelineMetadata); - if (error) - return "latestMonitoringPipelineMetadata." + error; - } - if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.hasOwnProperty("modelDeploymentMonitoringObjectiveConfigs")) { - if (!Array.isArray(message.modelDeploymentMonitoringObjectiveConfigs)) - return "modelDeploymentMonitoringObjectiveConfigs: array expected"; - for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify(message.modelDeploymentMonitoringObjectiveConfigs[i]); - if (error) - return "modelDeploymentMonitoringObjectiveConfigs." + error; - } - } - if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify(message.modelDeploymentMonitoringScheduleConfig); - if (error) - return "modelDeploymentMonitoringScheduleConfig." + error; - } - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { - var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.verify(message.loggingSamplingStrategy); - if (error) - return "loggingSamplingStrategy." + error; - } - if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify(message.modelMonitoringAlertConfig); - if (error) - return "modelMonitoringAlertConfig." + error; - } - if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) - if (!$util.isString(message.predictInstanceSchemaUri)) - return "predictInstanceSchemaUri: string expected"; - if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) { - var error = $root.google.protobuf.Value.verify(message.samplePredictInstance); - if (error) - return "samplePredictInstance." + error; - } - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - if (!$util.isString(message.analysisInstanceSchemaUri)) - return "analysisInstanceSchemaUri: string expected"; - if (message.bigqueryTables != null && message.hasOwnProperty("bigqueryTables")) { - if (!Array.isArray(message.bigqueryTables)) - return "bigqueryTables: array expected"; - for (var i = 0; i < message.bigqueryTables.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify(message.bigqueryTables[i]); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + if (!$util.isString(message.modelDeploymentMonitoringJob)) + return "modelDeploymentMonitoringJob: string expected"; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.objectives != null && message.hasOwnProperty("objectives")) { + if (!Array.isArray(message.objectives)) + return "objectives: array expected"; + for (var i = 0; i < message.objectives.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify(message.objectives[i]); if (error) - return "bigqueryTables." + error; - } - } - if (message.logTtl != null && message.hasOwnProperty("logTtl")) { - var error = $root.google.protobuf.Duration.verify(message.logTtl); - if (error) - return "logTtl." + error; - } - if (message.labels != null && message.hasOwnProperty("labels")) { - if (!$util.isObject(message.labels)) - return "labels: object expected"; - var key = Object.keys(message.labels); - for (var i = 0; i < key.length; ++i) - if (!$util.isString(message.labels[key[i]])) - return "labels: string{k:string} expected"; - } - if (message.createTime != null && message.hasOwnProperty("createTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.createTime); - if (error) - return "createTime." + error; - } - if (message.updateTime != null && message.hasOwnProperty("updateTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.updateTime); - if (error) - return "updateTime." + error; - } - if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.nextScheduleTime); - if (error) - return "nextScheduleTime." + error; - } - if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { - var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); - if (error) - return "statsAnomaliesBaseDirectory." + error; - } - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { - var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); - if (error) - return "encryptionSpec." + error; - } - if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) - if (typeof message.enableMonitoringPipelineLogs !== "boolean") - return "enableMonitoringPipelineLogs: boolean expected"; - if (message.error != null && message.hasOwnProperty("error")) { - var error = $root.google.rpc.Status.verify(message.error); - if (error) - return "error." + error; - } - return null; - }; - - /** - * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob - */ - ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(); - if (object.name != null) - message.name = String(object.name); - if (object.displayName != null) - message.displayName = String(object.displayName); - if (object.endpoint != null) - message.endpoint = String(object.endpoint); - switch (object.state) { - case "JOB_STATE_UNSPECIFIED": - case 0: - message.state = 0; - break; - case "JOB_STATE_QUEUED": - case 1: - message.state = 1; - break; - case "JOB_STATE_PENDING": - case 2: - message.state = 2; - break; - case "JOB_STATE_RUNNING": - case 3: - message.state = 3; - break; - case "JOB_STATE_SUCCEEDED": - case 4: - message.state = 4; - break; - case "JOB_STATE_FAILED": - case 5: - message.state = 5; - break; - case "JOB_STATE_CANCELLING": - case 6: - message.state = 6; - break; - case "JOB_STATE_CANCELLED": - case 7: - message.state = 7; - break; - case "JOB_STATE_PAUSED": - case 8: - message.state = 8; - break; - case "JOB_STATE_EXPIRED": - case 9: - message.state = 9; - break; - case "JOB_STATE_UPDATING": - case 10: - message.state = 10; - break; - } - switch (object.scheduleState) { - case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": - case 0: - message.scheduleState = 0; - break; - case "PENDING": - case 1: - message.scheduleState = 1; - break; - case "OFFLINE": - case 2: - message.scheduleState = 2; - break; - case "RUNNING": - case 3: - message.scheduleState = 3; - break; - } - if (object.latestMonitoringPipelineMetadata != null) { - if (typeof object.latestMonitoringPipelineMetadata !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); - message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); - } - if (object.modelDeploymentMonitoringObjectiveConfigs) { - if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); - message.modelDeploymentMonitoringObjectiveConfigs = []; - for (var i = 0; i < object.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { - if (typeof object.modelDeploymentMonitoringObjectiveConfigs[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: object expected"); - message.modelDeploymentMonitoringObjectiveConfigs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.fromObject(object.modelDeploymentMonitoringObjectiveConfigs[i]); - } - } - if (object.modelDeploymentMonitoringScheduleConfig != null) { - if (typeof object.modelDeploymentMonitoringScheduleConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringScheduleConfig: object expected"); - message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.fromObject(object.modelDeploymentMonitoringScheduleConfig); - } - if (object.loggingSamplingStrategy != null) { - if (typeof object.loggingSamplingStrategy !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.loggingSamplingStrategy: object expected"); - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); - } - if (object.modelMonitoringAlertConfig != null) { - if (typeof object.modelMonitoringAlertConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelMonitoringAlertConfig: object expected"); - message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.fromObject(object.modelMonitoringAlertConfig); - } - if (object.predictInstanceSchemaUri != null) - message.predictInstanceSchemaUri = String(object.predictInstanceSchemaUri); - if (object.samplePredictInstance != null) { - if (typeof object.samplePredictInstance !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.samplePredictInstance: object expected"); - message.samplePredictInstance = $root.google.protobuf.Value.fromObject(object.samplePredictInstance); - } - if (object.analysisInstanceSchemaUri != null) - message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); - if (object.bigqueryTables) { - if (!Array.isArray(object.bigqueryTables)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.bigqueryTables: array expected"); - message.bigqueryTables = []; - for (var i = 0; i < object.bigqueryTables.length; ++i) { - if (typeof object.bigqueryTables[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.bigqueryTables: object expected"); - message.bigqueryTables[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.fromObject(object.bigqueryTables[i]); + return "objectives." + error; } } - if (object.logTtl != null) { - if (typeof object.logTtl !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.logTtl: object expected"); - message.logTtl = $root.google.protobuf.Duration.fromObject(object.logTtl); - } - if (object.labels) { - if (typeof object.labels !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.labels: object expected"); - message.labels = {}; - for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) - message.labels[keys[i]] = String(object.labels[keys[i]]); - } - if (object.createTime != null) { - if (typeof object.createTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.createTime: object expected"); - message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); - } - if (object.updateTime != null) { - if (typeof object.updateTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.updateTime: object expected"); - message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.startTime != null && message.hasOwnProperty("startTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.startTime); + if (error) + return "startTime." + error; } - if (object.nextScheduleTime != null) { - if (typeof object.nextScheduleTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.nextScheduleTime: object expected"); - message.nextScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.nextScheduleTime); + if (message.endTime != null && message.hasOwnProperty("endTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.endTime); + if (error) + return "endTime." + error; } - if (object.statsAnomaliesBaseDirectory != null) { - if (typeof object.statsAnomaliesBaseDirectory !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.statsAnomaliesBaseDirectory: object expected"); - message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); + return null; + }; + + /** + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} SearchModelDeploymentMonitoringStatsAnomaliesRequest + */ + SearchModelDeploymentMonitoringStatsAnomaliesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest(); + if (object.modelDeploymentMonitoringJob != null) + message.modelDeploymentMonitoringJob = String(object.modelDeploymentMonitoringJob); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.objectives) { + if (!Array.isArray(object.objectives)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: array expected"); + message.objectives = []; + for (var i = 0; i < object.objectives.length; ++i) { + if (typeof object.objectives[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.objectives: object expected"); + message.objectives[i] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.fromObject(object.objectives[i]); + } } - if (object.encryptionSpec != null) { - if (typeof object.encryptionSpec !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encryptionSpec: object expected"); - message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.startTime != null) { + if (typeof object.startTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.startTime: object expected"); + message.startTime = $root.google.protobuf.Timestamp.fromObject(object.startTime); } - if (object.enableMonitoringPipelineLogs != null) - message.enableMonitoringPipelineLogs = Boolean(object.enableMonitoringPipelineLogs); - if (object.error != null) { - if (typeof object.error !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.error: object expected"); - message.error = $root.google.rpc.Status.fromObject(object.error); + if (object.endTime != null) { + if (typeof object.endTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.endTime: object expected"); + message.endTime = $root.google.protobuf.Timestamp.fromObject(object.endTime); } return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest} message SearchModelDeploymentMonitoringStatsAnomaliesRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) { - object.modelDeploymentMonitoringObjectiveConfigs = []; - object.bigqueryTables = []; - } - if (options.objects || options.defaults) - object.labels = {}; + if (options.arrays || options.defaults) + object.objectives = []; if (options.defaults) { - object.name = ""; - object.displayName = ""; - object.endpoint = ""; - object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; - object.scheduleState = options.enums === String ? "MONITORING_SCHEDULE_STATE_UNSPECIFIED" : 0; - object.modelDeploymentMonitoringScheduleConfig = null; - object.loggingSamplingStrategy = null; - object.predictInstanceSchemaUri = ""; - object.createTime = null; - object.updateTime = null; - object.nextScheduleTime = null; - object.modelMonitoringAlertConfig = null; - object.analysisInstanceSchemaUri = ""; - object.logTtl = null; - object.samplePredictInstance = null; - object.statsAnomaliesBaseDirectory = null; - object.encryptionSpec = null; - object.enableMonitoringPipelineLogs = false; - object.error = null; - object.latestMonitoringPipelineMetadata = null; - } - if (message.name != null && message.hasOwnProperty("name")) - object.name = message.name; - if (message.displayName != null && message.hasOwnProperty("displayName")) - object.displayName = message.displayName; - if (message.endpoint != null && message.hasOwnProperty("endpoint")) - object.endpoint = message.endpoint; - if (message.state != null && message.hasOwnProperty("state")) - object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; - if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) - object.scheduleState = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] : message.scheduleState; - if (message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length) { - object.modelDeploymentMonitoringObjectiveConfigs = []; - for (var j = 0; j < message.modelDeploymentMonitoringObjectiveConfigs.length; ++j) - object.modelDeploymentMonitoringObjectiveConfigs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.toObject(message.modelDeploymentMonitoringObjectiveConfigs[j], options); - } - if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) - object.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.toObject(message.modelDeploymentMonitoringScheduleConfig, options); - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) - object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); - if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) - object.predictInstanceSchemaUri = message.predictInstanceSchemaUri; - if (message.bigqueryTables && message.bigqueryTables.length) { - object.bigqueryTables = []; - for (var j = 0; j < message.bigqueryTables.length; ++j) - object.bigqueryTables[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.toObject(message.bigqueryTables[j], options); + object.modelDeploymentMonitoringJob = ""; + object.deployedModelId = ""; + object.featureDisplayName = ""; + object.pageSize = 0; + object.pageToken = ""; + object.startTime = null; + object.endTime = null; } - var keys2; - if (message.labels && (keys2 = Object.keys(message.labels)).length) { - object.labels = {}; - for (var j = 0; j < keys2.length; ++j) - object.labels[keys2[j]] = message.labels[keys2[j]]; + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = message.modelDeploymentMonitoringJob; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.objectives && message.objectives.length) { + object.objectives = []; + for (var j = 0; j < message.objectives.length; ++j) + object.objectives[j] = $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.toObject(message.objectives[j], options); } - if (message.createTime != null && message.hasOwnProperty("createTime")) - object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); - if (message.updateTime != null && message.hasOwnProperty("updateTime")) - object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); - if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) - object.nextScheduleTime = $root.google.protobuf.Timestamp.toObject(message.nextScheduleTime, options); - if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) - object.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.toObject(message.modelMonitoringAlertConfig, options); - if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) - object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; - if (message.logTtl != null && message.hasOwnProperty("logTtl")) - object.logTtl = $root.google.protobuf.Duration.toObject(message.logTtl, options); - if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) - object.samplePredictInstance = $root.google.protobuf.Value.toObject(message.samplePredictInstance, options); - if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) - object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); - if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) - object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); - if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) - object.enableMonitoringPipelineLogs = message.enableMonitoringPipelineLogs; - if (message.error != null && message.hasOwnProperty("error")) - object.error = $root.google.rpc.Status.toObject(message.error, options); - if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) - object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.startTime != null && message.hasOwnProperty("startTime")) + object.startTime = $root.google.protobuf.Timestamp.toObject(message.startTime, options); + if (message.endTime != null && message.hasOwnProperty("endTime")) + object.endTime = $root.google.protobuf.Timestamp.toObject(message.endTime, options); return object; }; /** - * Converts this ModelDeploymentMonitoringJob to JSON. + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { + SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective = (function() { /** - * Properties of a LatestMonitoringPipelineMetadata. - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @interface ILatestMonitoringPipelineMetadata - * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime - * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status + * Properties of a StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @interface IStatsAnomaliesObjective + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [type] StatsAnomaliesObjective type + * @property {number|null} [topFeatureCount] StatsAnomaliesObjective topFeatureCount */ /** - * Constructs a new LatestMonitoringPipelineMetadata. - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob - * @classdesc Represents a LatestMonitoringPipelineMetadata. - * @implements ILatestMonitoringPipelineMetadata + * Constructs a new StatsAnomaliesObjective. + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest + * @classdesc Represents a StatsAnomaliesObjective. + * @implements IStatsAnomaliesObjective * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set */ - function LatestMonitoringPipelineMetadata(properties) { + function StatsAnomaliesObjective(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -223750,88 +228628,88 @@ } /** - * LatestMonitoringPipelineMetadata runTime. - * @member {google.protobuf.ITimestamp|null|undefined} runTime - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * StatsAnomaliesObjective type. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} type + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @instance */ - LatestMonitoringPipelineMetadata.prototype.runTime = null; + StatsAnomaliesObjective.prototype.type = 0; /** - * LatestMonitoringPipelineMetadata status. - * @member {google.rpc.IStatus|null|undefined} status - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * StatsAnomaliesObjective topFeatureCount. + * @member {number} topFeatureCount + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @instance */ - LatestMonitoringPipelineMetadata.prototype.status = null; + StatsAnomaliesObjective.prototype.topFeatureCount = 0; /** - * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. + * Creates a new StatsAnomaliesObjective instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective instance */ - LatestMonitoringPipelineMetadata.create = function create(properties) { - return new LatestMonitoringPipelineMetadata(properties); + StatsAnomaliesObjective.create = function create(properties) { + return new StatsAnomaliesObjective(properties); }; /** - * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * Encodes the specified StatsAnomaliesObjective message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LatestMonitoringPipelineMetadata.encode = function encode(message, writer) { + StatsAnomaliesObjective.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) - $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.status != null && Object.hasOwnProperty.call(message, "status")) - $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.type != null && Object.hasOwnProperty.call(message, "type")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.type); + if (message.topFeatureCount != null && Object.hasOwnProperty.call(message, "topFeatureCount")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.topFeatureCount); return writer; }; /** - * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. + * Encodes the specified StatsAnomaliesObjective message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.IStatsAnomaliesObjective} message StatsAnomaliesObjective message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { + StatsAnomaliesObjective.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LatestMonitoringPipelineMetadata.decode = function decode(reader, length) { + StatsAnomaliesObjective.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + message.type = reader.int32(); break; - case 2: - message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); + case 4: + message.topFeatureCount = reader.int32(); break; default: reader.skipType(tag & 7); @@ -223842,149 +228720,848 @@ }; /** - * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. + * Decodes a StatsAnomaliesObjective message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { + StatsAnomaliesObjective.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a LatestMonitoringPipelineMetadata message. + * Verifies a StatsAnomaliesObjective message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - LatestMonitoringPipelineMetadata.verify = function verify(message) { + StatsAnomaliesObjective.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.runTime != null && message.hasOwnProperty("runTime")) { - var error = $root.google.protobuf.Timestamp.verify(message.runTime); - if (error) - return "runTime." + error; - } - if (message.status != null && message.hasOwnProperty("status")) { - var error = $root.google.rpc.Status.verify(message.status); - if (error) - return "status." + error; - } + if (message.type != null && message.hasOwnProperty("type")) + switch (message.type) { + default: + return "type: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + if (!$util.isInteger(message.topFeatureCount)) + return "topFeatureCount: integer expected"; return null; }; /** - * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. + * Creates a StatsAnomaliesObjective message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} StatsAnomaliesObjective */ - LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) + StatsAnomaliesObjective.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); - if (object.runTime != null) { - if (typeof object.runTime !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.runTime: object expected"); - message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); - } - if (object.status != null) { - if (typeof object.status !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); - message.status = $root.google.rpc.Status.fromObject(object.status); + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective(); + switch (object.type) { + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.type = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.type = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.type = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.type = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.type = 4; + break; } + if (object.topFeatureCount != null) + message.topFeatureCount = object.topFeatureCount | 0; return message; }; /** - * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. + * Creates a plain object from a StatsAnomaliesObjective message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective} message StatsAnomaliesObjective * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { + StatsAnomaliesObjective.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.runTime = null; - object.status = null; + object.type = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.topFeatureCount = 0; } - if (message.runTime != null && message.hasOwnProperty("runTime")) - object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); - if (message.status != null && message.hasOwnProperty("status")) - object.status = $root.google.rpc.Status.toObject(message.status, options); + if (message.type != null && message.hasOwnProperty("type")) + object.type = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.type] : message.type; + if (message.topFeatureCount != null && message.hasOwnProperty("topFeatureCount")) + object.topFeatureCount = message.topFeatureCount; return object; }; /** - * Converts this LatestMonitoringPipelineMetadata to JSON. + * Converts this StatsAnomaliesObjective to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesRequest.StatsAnomaliesObjective * @instance * @returns {Object.} JSON object */ - LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { + StatsAnomaliesObjective.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return LatestMonitoringPipelineMetadata; - })(); + return StatsAnomaliesObjective; + })(); + + return SearchModelDeploymentMonitoringStatsAnomaliesRequest; + })(); + + v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse = (function() { + + /** + * Properties of a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @property {Array.|null} [monitoringStats] SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats + * @property {string|null} [nextPageToken] SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken + */ + + /** + * Constructs a new SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a SearchModelDeploymentMonitoringStatsAnomaliesResponse. + * @implements ISearchModelDeploymentMonitoringStatsAnomaliesResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + */ + function SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties) { + this.monitoringStats = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesResponse monitoringStats. + * @member {Array.} monitoringStats + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.monitoringStats = $util.emptyArray; + + /** + * SearchModelDeploymentMonitoringStatsAnomaliesResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.nextPageToken = ""; + + /** + * Creates a new SearchModelDeploymentMonitoringStatsAnomaliesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse instance + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.create = function create(properties) { + return new SearchModelDeploymentMonitoringStatsAnomaliesResponse(properties); + }; + + /** + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.monitoringStats != null && message.monitoringStats.length) + for (var i = 0; i < message.monitoringStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.encode(message.monitoringStats[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); + return writer; + }; + + /** + * Encodes the specified SearchModelDeploymentMonitoringStatsAnomaliesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.ISearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.monitoringStats && message.monitoringStats.length)) + message.monitoringStats = []; + message.monitoringStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.decode(reader, reader.uint32())); + break; + case 2: + message.nextPageToken = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.monitoringStats != null && message.hasOwnProperty("monitoringStats")) { + if (!Array.isArray(message.monitoringStats)) + return "monitoringStats: array expected"; + for (var i = 0; i < message.monitoringStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify(message.monitoringStats[i]); + if (error) + return "monitoringStats." + error; + } + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; + return null; + }; + + /** + * Creates a SearchModelDeploymentMonitoringStatsAnomaliesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} SearchModelDeploymentMonitoringStatsAnomaliesResponse + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse(); + if (object.monitoringStats) { + if (!Array.isArray(object.monitoringStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: array expected"); + message.monitoringStats = []; + for (var i = 0; i < object.monitoringStats.length; ++i) { + if (typeof object.monitoringStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse.monitoringStats: object expected"); + message.monitoringStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.fromObject(object.monitoringStats[i]); + } + } + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); + return message; + }; + + /** + * Creates a plain object from a SearchModelDeploymentMonitoringStatsAnomaliesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse} message SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.monitoringStats = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.monitoringStats && message.monitoringStats.length) { + object.monitoringStats = []; + for (var j = 0; j < message.monitoringStats.length; ++j) + object.monitoringStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.toObject(message.monitoringStats[j], options); + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; + return object; + }; + + /** + * Converts this SearchModelDeploymentMonitoringStatsAnomaliesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.SearchModelDeploymentMonitoringStatsAnomaliesResponse + * @instance + * @returns {Object.} JSON object + */ + SearchModelDeploymentMonitoringStatsAnomaliesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return SearchModelDeploymentMonitoringStatsAnomaliesResponse; + })(); + + v1beta1.GetModelDeploymentMonitoringJobRequest = (function() { + + /** + * Properties of a GetModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IGetModelDeploymentMonitoringJobRequest + * @property {string|null} [name] GetModelDeploymentMonitoringJobRequest name + */ + + /** + * Constructs a new GetModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a GetModelDeploymentMonitoringJobRequest. + * @implements IGetModelDeploymentMonitoringJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + */ + function GetModelDeploymentMonitoringJobRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * GetModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @instance + */ + GetModelDeploymentMonitoringJobRequest.prototype.name = ""; + + /** + * Creates a new GetModelDeploymentMonitoringJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest instance + */ + GetModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new GetModelDeploymentMonitoringJobRequest(properties); + }; + + /** + * Encodes the specified GetModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified GetModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IGetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + GetModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a GetModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + GetModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a GetModelDeploymentMonitoringJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + GetModelDeploymentMonitoringJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a GetModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} GetModelDeploymentMonitoringJobRequest + */ + GetModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a GetModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest} message GetModelDeploymentMonitoringJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + GetModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this GetModelDeploymentMonitoringJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest + * @instance + * @returns {Object.} JSON object + */ + GetModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return GetModelDeploymentMonitoringJobRequest; + })(); + + v1beta1.ListModelDeploymentMonitoringJobsRequest = (function() { + + /** + * Properties of a ListModelDeploymentMonitoringJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IListModelDeploymentMonitoringJobsRequest + * @property {string|null} [parent] ListModelDeploymentMonitoringJobsRequest parent + * @property {string|null} [filter] ListModelDeploymentMonitoringJobsRequest filter + * @property {number|null} [pageSize] ListModelDeploymentMonitoringJobsRequest pageSize + * @property {string|null} [pageToken] ListModelDeploymentMonitoringJobsRequest pageToken + * @property {google.protobuf.IFieldMask|null} [readMask] ListModelDeploymentMonitoringJobsRequest readMask + */ + + /** + * Constructs a new ListModelDeploymentMonitoringJobsRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ListModelDeploymentMonitoringJobsRequest. + * @implements IListModelDeploymentMonitoringJobsRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + */ + function ListModelDeploymentMonitoringJobsRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ListModelDeploymentMonitoringJobsRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.parent = ""; + + /** + * ListModelDeploymentMonitoringJobsRequest filter. + * @member {string} filter + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.filter = ""; + + /** + * ListModelDeploymentMonitoringJobsRequest pageSize. + * @member {number} pageSize + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.pageSize = 0; + + /** + * ListModelDeploymentMonitoringJobsRequest pageToken. + * @member {string} pageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.pageToken = ""; + + /** + * ListModelDeploymentMonitoringJobsRequest readMask. + * @member {google.protobuf.IFieldMask|null|undefined} readMask + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @instance + */ + ListModelDeploymentMonitoringJobsRequest.prototype.readMask = null; + + /** + * Creates a new ListModelDeploymentMonitoringJobsRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest instance + */ + ListModelDeploymentMonitoringJobsRequest.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsRequest(properties); + }; + + /** + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelDeploymentMonitoringJobsRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.filter != null && Object.hasOwnProperty.call(message, "filter")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.filter); + if (message.pageSize != null && Object.hasOwnProperty.call(message, "pageSize")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.pageSize); + if (message.pageToken != null && Object.hasOwnProperty.call(message, "pageToken")) + writer.uint32(/* id 4, wireType 2 =*/34).string(message.pageToken); + if (message.readMask != null && Object.hasOwnProperty.call(message, "readMask")) + $root.google.protobuf.FieldMask.encode(message.readMask, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified ListModelDeploymentMonitoringJobsRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ListModelDeploymentMonitoringJobsRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelDeploymentMonitoringJobsRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + message.filter = reader.string(); + break; + case 3: + message.pageSize = reader.int32(); + break; + case 4: + message.pageToken = reader.string(); + break; + case 5: + message.readMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a ListModelDeploymentMonitoringJobsRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ListModelDeploymentMonitoringJobsRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a ListModelDeploymentMonitoringJobsRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ListModelDeploymentMonitoringJobsRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.filter != null && message.hasOwnProperty("filter")) + if (!$util.isString(message.filter)) + return "filter: string expected"; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + if (!$util.isInteger(message.pageSize)) + return "pageSize: integer expected"; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + if (!$util.isString(message.pageToken)) + return "pageToken: string expected"; + if (message.readMask != null && message.hasOwnProperty("readMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.readMask); + if (error) + return "readMask." + error; + } + return null; + }; + + /** + * Creates a ListModelDeploymentMonitoringJobsRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} ListModelDeploymentMonitoringJobsRequest + */ + ListModelDeploymentMonitoringJobsRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.filter != null) + message.filter = String(object.filter); + if (object.pageSize != null) + message.pageSize = object.pageSize | 0; + if (object.pageToken != null) + message.pageToken = String(object.pageToken); + if (object.readMask != null) { + if (typeof object.readMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest.readMask: object expected"); + message.readMask = $root.google.protobuf.FieldMask.fromObject(object.readMask); + } + return message; + }; + + /** + * Creates a plain object from a ListModelDeploymentMonitoringJobsRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest} message ListModelDeploymentMonitoringJobsRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ListModelDeploymentMonitoringJobsRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.parent = ""; + object.filter = ""; + object.pageSize = 0; + object.pageToken = ""; + object.readMask = null; + } + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.filter != null && message.hasOwnProperty("filter")) + object.filter = message.filter; + if (message.pageSize != null && message.hasOwnProperty("pageSize")) + object.pageSize = message.pageSize; + if (message.pageToken != null && message.hasOwnProperty("pageToken")) + object.pageToken = message.pageToken; + if (message.readMask != null && message.hasOwnProperty("readMask")) + object.readMask = $root.google.protobuf.FieldMask.toObject(message.readMask, options); + return object; + }; /** - * MonitoringScheduleState enum. - * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState - * @enum {number} - * @property {number} MONITORING_SCHEDULE_STATE_UNSPECIFIED=0 MONITORING_SCHEDULE_STATE_UNSPECIFIED value - * @property {number} PENDING=1 PENDING value - * @property {number} OFFLINE=2 OFFLINE value - * @property {number} RUNNING=3 RUNNING value + * Converts this ListModelDeploymentMonitoringJobsRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsRequest + * @instance + * @returns {Object.} JSON object */ - ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "MONITORING_SCHEDULE_STATE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PENDING"] = 1; - values[valuesById[2] = "OFFLINE"] = 2; - values[valuesById[3] = "RUNNING"] = 3; - return values; - })(); + ListModelDeploymentMonitoringJobsRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ModelDeploymentMonitoringJob; + return ListModelDeploymentMonitoringJobsRequest; })(); - v1beta1.ModelDeploymentMonitoringBigQueryTable = (function() { + v1beta1.ListModelDeploymentMonitoringJobsResponse = (function() { /** - * Properties of a ModelDeploymentMonitoringBigQueryTable. + * Properties of a ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelDeploymentMonitoringBigQueryTable - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType - * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath + * @interface IListModelDeploymentMonitoringJobsResponse + * @property {Array.|null} [modelDeploymentMonitoringJobs] ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs + * @property {string|null} [nextPageToken] ListModelDeploymentMonitoringJobsResponse nextPageToken */ /** - * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * Constructs a new ListModelDeploymentMonitoringJobsResponse. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. - * @implements IModelDeploymentMonitoringBigQueryTable + * @classdesc Represents a ListModelDeploymentMonitoringJobsResponse. + * @implements IListModelDeploymentMonitoringJobsResponse * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set */ - function ModelDeploymentMonitoringBigQueryTable(properties) { + function ListModelDeploymentMonitoringJobsResponse(properties) { + this.modelDeploymentMonitoringJobs = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -223992,101 +229569,91 @@ } /** - * ModelDeploymentMonitoringBigQueryTable logSource. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable - * @instance - */ - ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; - - /** - * ModelDeploymentMonitoringBigQueryTable logType. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType} logType - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * ListModelDeploymentMonitoringJobsResponse modelDeploymentMonitoringJobs. + * @member {Array.} modelDeploymentMonitoringJobs + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; + ListModelDeploymentMonitoringJobsResponse.prototype.modelDeploymentMonitoringJobs = $util.emptyArray; /** - * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. - * @member {string} bigqueryTablePath - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * ListModelDeploymentMonitoringJobsResponse nextPageToken. + * @member {string} nextPageToken + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance */ - ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; + ListModelDeploymentMonitoringJobsResponse.prototype.nextPageToken = ""; /** - * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * Creates a new ListModelDeploymentMonitoringJobsResponse instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse instance */ - ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { - return new ModelDeploymentMonitoringBigQueryTable(properties); + ListModelDeploymentMonitoringJobsResponse.create = function create(properties) { + return new ListModelDeploymentMonitoringJobsResponse(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.logSource != null && Object.hasOwnProperty.call(message, "logSource")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logSource); - if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) - writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logType); - if (message.bigqueryTablePath != null && Object.hasOwnProperty.call(message, "bigqueryTablePath")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryTablePath); + if (message.modelDeploymentMonitoringJobs != null && message.modelDeploymentMonitoringJobs.length) + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJobs[i], writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.nextPageToken != null && Object.hasOwnProperty.call(message, "nextPageToken")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.nextPageToken); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * Encodes the specified ListModelDeploymentMonitoringJobsResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { + ListModelDeploymentMonitoringJobsResponse.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringBigQueryTable.decode = function decode(reader, length) { + ListModelDeploymentMonitoringJobsResponse.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.logSource = reader.int32(); + if (!(message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length)) + message.modelDeploymentMonitoringJobs = []; + message.modelDeploymentMonitoringJobs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32())); break; case 2: - message.logType = reader.int32(); - break; - case 3: - message.bigqueryTablePath = reader.string(); + message.nextPageToken = reader.string(); break; default: reader.skipType(tag & 7); @@ -224097,193 +229664,134 @@ }; /** - * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * Decodes a ListModelDeploymentMonitoringJobsResponse message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { + ListModelDeploymentMonitoringJobsResponse.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * Verifies a ListModelDeploymentMonitoringJobsResponse message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { + ListModelDeploymentMonitoringJobsResponse.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.logSource != null && message.hasOwnProperty("logSource")) - switch (message.logSource) { - default: - return "logSource: enum value expected"; - case 0: - case 1: - case 2: - break; - } - if (message.logType != null && message.hasOwnProperty("logType")) - switch (message.logType) { - default: - return "logType: enum value expected"; - case 0: - case 1: - case 2: - break; + if (message.modelDeploymentMonitoringJobs != null && message.hasOwnProperty("modelDeploymentMonitoringJobs")) { + if (!Array.isArray(message.modelDeploymentMonitoringJobs)) + return "modelDeploymentMonitoringJobs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringJobs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJobs[i]); + if (error) + return "modelDeploymentMonitoringJobs." + error; } - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - if (!$util.isString(message.bigqueryTablePath)) - return "bigqueryTablePath: string expected"; + } + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + if (!$util.isString(message.nextPageToken)) + return "nextPageToken: string expected"; return null; }; /** - * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * Creates a ListModelDeploymentMonitoringJobsResponse message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @returns {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} ListModelDeploymentMonitoringJobsResponse */ - ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) + ListModelDeploymentMonitoringJobsResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(); - switch (object.logSource) { - case "LOG_SOURCE_UNSPECIFIED": - case 0: - message.logSource = 0; - break; - case "TRAINING": - case 1: - message.logSource = 1; - break; - case "SERVING": - case 2: - message.logSource = 2; - break; - } - switch (object.logType) { - case "LOG_TYPE_UNSPECIFIED": - case 0: - message.logType = 0; - break; - case "PREDICT": - case 1: - message.logType = 1; - break; - case "EXPLAIN": - case 2: - message.logType = 2; - break; + var message = new $root.google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse(); + if (object.modelDeploymentMonitoringJobs) { + if (!Array.isArray(object.modelDeploymentMonitoringJobs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: array expected"); + message.modelDeploymentMonitoringJobs = []; + for (var i = 0; i < object.modelDeploymentMonitoringJobs.length; ++i) { + if (typeof object.modelDeploymentMonitoringJobs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse.modelDeploymentMonitoringJobs: object expected"); + message.modelDeploymentMonitoringJobs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJobs[i]); + } } - if (object.bigqueryTablePath != null) - message.bigqueryTablePath = String(object.bigqueryTablePath); + if (object.nextPageToken != null) + message.nextPageToken = String(object.nextPageToken); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * Creates a plain object from a ListModelDeploymentMonitoringJobsResponse message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable + * @param {google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse} message ListModelDeploymentMonitoringJobsResponse * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringBigQueryTable.toObject = function toObject(message, options) { + ListModelDeploymentMonitoringJobsResponse.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; - object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; - object.bigqueryTablePath = ""; + if (options.arrays || options.defaults) + object.modelDeploymentMonitoringJobs = []; + if (options.defaults) + object.nextPageToken = ""; + if (message.modelDeploymentMonitoringJobs && message.modelDeploymentMonitoringJobs.length) { + object.modelDeploymentMonitoringJobs = []; + for (var j = 0; j < message.modelDeploymentMonitoringJobs.length; ++j) + object.modelDeploymentMonitoringJobs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJobs[j], options); } - if (message.logSource != null && message.hasOwnProperty("logSource")) - object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; - if (message.logType != null && message.hasOwnProperty("logType")) - object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; - if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) - object.bigqueryTablePath = message.bigqueryTablePath; + if (message.nextPageToken != null && message.hasOwnProperty("nextPageToken")) + object.nextPageToken = message.nextPageToken; return object; }; /** - * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * Converts this ListModelDeploymentMonitoringJobsResponse to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @memberof google.cloud.aiplatform.v1beta1.ListModelDeploymentMonitoringJobsResponse * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { + ListModelDeploymentMonitoringJobsResponse.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - /** - * LogSource enum. - * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource - * @enum {number} - * @property {number} LOG_SOURCE_UNSPECIFIED=0 LOG_SOURCE_UNSPECIFIED value - * @property {number} TRAINING=1 TRAINING value - * @property {number} SERVING=2 SERVING value - */ - ModelDeploymentMonitoringBigQueryTable.LogSource = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_SOURCE_UNSPECIFIED"] = 0; - values[valuesById[1] = "TRAINING"] = 1; - values[valuesById[2] = "SERVING"] = 2; - return values; - })(); - - /** - * LogType enum. - * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType - * @enum {number} - * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value - * @property {number} PREDICT=1 PREDICT value - * @property {number} EXPLAIN=2 EXPLAIN value - */ - ModelDeploymentMonitoringBigQueryTable.LogType = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; - values[valuesById[1] = "PREDICT"] = 1; - values[valuesById[2] = "EXPLAIN"] = 2; - return values; - })(); - - return ModelDeploymentMonitoringBigQueryTable; + return ListModelDeploymentMonitoringJobsResponse; })(); - v1beta1.ModelDeploymentMonitoringObjectiveConfig = (function() { + v1beta1.UpdateModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringObjectiveConfig. + * Properties of an UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelDeploymentMonitoringObjectiveConfig - * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId - * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig + * @interface IUpdateModelDeploymentMonitoringJobRequest + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null} [modelDeploymentMonitoringJob] UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob + * @property {google.protobuf.IFieldMask|null} [updateMask] UpdateModelDeploymentMonitoringJobRequest updateMask */ /** - * Constructs a new ModelDeploymentMonitoringObjectiveConfig. + * Constructs a new UpdateModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. - * @implements IModelDeploymentMonitoringObjectiveConfig + * @classdesc Represents an UpdateModelDeploymentMonitoringJobRequest. + * @implements IUpdateModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringObjectiveConfig(properties) { + function UpdateModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -224291,88 +229799,88 @@ } /** - * ModelDeploymentMonitoringObjectiveConfig deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * UpdateModelDeploymentMonitoringJobRequest modelDeploymentMonitoringJob. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob|null|undefined} modelDeploymentMonitoringJob + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; + UpdateModelDeploymentMonitoringJobRequest.prototype.modelDeploymentMonitoringJob = null; /** - * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. - * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * UpdateModelDeploymentMonitoringJobRequest updateMask. + * @member {google.protobuf.IFieldMask|null|undefined} updateMask + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; + UpdateModelDeploymentMonitoringJobRequest.prototype.updateMask = null; /** - * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { - return new ModelDeploymentMonitoringObjectiveConfig(properties); + UpdateModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringObjectiveConfig.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.deployedModelId); - if (message.objectiveConfig != null && Object.hasOwnProperty.call(message, "objectiveConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.modelDeploymentMonitoringJob != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringJob")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encode(message.modelDeploymentMonitoringJob, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.updateMask != null && Object.hasOwnProperty.call(message, "updateMask")) + $root.google.protobuf.FieldMask.encode(message.updateMask, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringObjectiveConfig.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.deployedModelId = reader.string(); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.decode(reader, reader.uint32()); break; case 2: - message.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); + message.updateMask = $root.google.protobuf.FieldMask.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -224383,121 +229891,126 @@ }; /** - * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringObjectiveConfig message. + * Verifies an UpdateModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringObjectiveConfig.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfig); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify(message.modelDeploymentMonitoringJob); if (error) - return "objectiveConfig." + error; + return "modelDeploymentMonitoringJob." + error; + } + if (message.updateMask != null && message.hasOwnProperty("updateMask")) { + var error = $root.google.protobuf.FieldMask.verify(message.updateMask); + if (error) + return "updateMask." + error; } return null; }; /** - * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} UpdateModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) + UpdateModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(); - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.objectiveConfig != null) { - if (typeof object.objectiveConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.objectiveConfig: object expected"); - message.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest(); + if (object.modelDeploymentMonitoringJob != null) { + if (typeof object.modelDeploymentMonitoringJob !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.modelDeploymentMonitoringJob: object expected"); + message.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.fromObject(object.modelDeploymentMonitoringJob); + } + if (object.updateMask != null) { + if (typeof object.updateMask !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest.updateMask: object expected"); + message.updateMask = $root.google.protobuf.FieldMask.fromObject(object.updateMask); } return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest} message UpdateModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.deployedModelId = ""; - object.objectiveConfig = null; + object.modelDeploymentMonitoringJob = null; + object.updateMask = null; } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) - object.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfig, options); + if (message.modelDeploymentMonitoringJob != null && message.hasOwnProperty("modelDeploymentMonitoringJob")) + object.modelDeploymentMonitoringJob = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.toObject(message.modelDeploymentMonitoringJob, options); + if (message.updateMask != null && message.hasOwnProperty("updateMask")) + object.updateMask = $root.google.protobuf.FieldMask.toObject(message.updateMask, options); return object; }; /** - * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. + * Converts this UpdateModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ModelDeploymentMonitoringObjectiveConfig; + return UpdateModelDeploymentMonitoringJobRequest; })(); - v1beta1.ModelDeploymentMonitoringScheduleConfig = (function() { + v1beta1.DeleteModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelDeploymentMonitoringScheduleConfig. + * Properties of a DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelDeploymentMonitoringScheduleConfig - * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval + * @interface IDeleteModelDeploymentMonitoringJobRequest + * @property {string|null} [name] DeleteModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelDeploymentMonitoringScheduleConfig. + * Constructs a new DeleteModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. - * @implements IModelDeploymentMonitoringScheduleConfig + * @classdesc Represents a DeleteModelDeploymentMonitoringJobRequest. + * @implements IDeleteModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelDeploymentMonitoringScheduleConfig(properties) { + function DeleteModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -224505,75 +230018,75 @@ } /** - * ModelDeploymentMonitoringScheduleConfig monitorInterval. - * @member {google.protobuf.IDuration|null|undefined} monitorInterval - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * DeleteModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @instance */ - ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; + DeleteModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. + * Creates a new DeleteModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest instance */ - ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { - return new ModelDeploymentMonitoringScheduleConfig(properties); + DeleteModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new DeleteModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) - $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. + * Encodes the specified DeleteModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IDeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { + DeleteModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringScheduleConfig.decode = function decode(reader, length) { + DeleteModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -224584,116 +230097,107 @@ }; /** - * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. + * Decodes a DeleteModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { + DeleteModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelDeploymentMonitoringScheduleConfig message. + * Verifies a DeleteModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { + DeleteModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { - var error = $root.google.protobuf.Duration.verify(message.monitorInterval); - if (error) - return "monitorInterval." + error; - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a DeleteModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig + * @returns {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} DeleteModelDeploymentMonitoringJobRequest */ - ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) + DeleteModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(); - if (object.monitorInterval != null) { - if (typeof object.monitorInterval !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); - message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); - } + var message = new $root.google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. + * Creates a plain object from a DeleteModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig + * @param {google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest} message DeleteModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelDeploymentMonitoringScheduleConfig.toObject = function toObject(message, options) { + DeleteModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) - object.monitorInterval = null; - if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) - object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. + * Converts this DeleteModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.DeleteModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { + DeleteModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ModelDeploymentMonitoringScheduleConfig; + return DeleteModelDeploymentMonitoringJobRequest; })(); - v1beta1.ModelMonitoringStatsAnomalies = (function() { + v1beta1.PauseModelDeploymentMonitoringJobRequest = (function() { /** - * Properties of a ModelMonitoringStatsAnomalies. + * Properties of a PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelMonitoringStatsAnomalies - * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [objective] ModelMonitoringStatsAnomalies objective - * @property {string|null} [deployedModelId] ModelMonitoringStatsAnomalies deployedModelId - * @property {number|null} [anomalyCount] ModelMonitoringStatsAnomalies anomalyCount - * @property {Array.|null} [featureStats] ModelMonitoringStatsAnomalies featureStats + * @interface IPauseModelDeploymentMonitoringJobRequest + * @property {string|null} [name] PauseModelDeploymentMonitoringJobRequest name */ /** - * Constructs a new ModelMonitoringStatsAnomalies. + * Constructs a new PauseModelDeploymentMonitoringJobRequest. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelMonitoringStatsAnomalies. - * @implements IModelMonitoringStatsAnomalies + * @classdesc Represents a PauseModelDeploymentMonitoringJobRequest. + * @implements IPauseModelDeploymentMonitoringJobRequest * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set */ - function ModelMonitoringStatsAnomalies(properties) { - this.featureStats = []; + function PauseModelDeploymentMonitoringJobRequest(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -224701,117 +230205,262 @@ } /** - * ModelMonitoringStatsAnomalies objective. - * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} objective - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * PauseModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @instance */ - ModelMonitoringStatsAnomalies.prototype.objective = 0; + PauseModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * ModelMonitoringStatsAnomalies deployedModelId. - * @member {string} deployedModelId - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @instance + * Creates a new PauseModelDeploymentMonitoringJobRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest instance */ - ModelMonitoringStatsAnomalies.prototype.deployedModelId = ""; + PauseModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new PauseModelDeploymentMonitoringJobRequest(properties); + }; /** - * ModelMonitoringStatsAnomalies anomalyCount. - * @member {number} anomalyCount - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PauseModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + return writer; + }; + + /** + * Encodes the specified PauseModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IPauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + PauseModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PauseModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a PauseModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + PauseModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a PauseModelDeploymentMonitoringJobRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + PauseModelDeploymentMonitoringJobRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + return null; + }; + + /** + * Creates a PauseModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} PauseModelDeploymentMonitoringJobRequest + */ + PauseModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); + return message; + }; + + /** + * Creates a plain object from a PauseModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest} message PauseModelDeploymentMonitoringJobRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + PauseModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + return object; + }; + + /** + * Converts this PauseModelDeploymentMonitoringJobRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest * @instance + * @returns {Object.} JSON object */ - ModelMonitoringStatsAnomalies.prototype.anomalyCount = 0; + PauseModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return PauseModelDeploymentMonitoringJobRequest; + })(); + + v1beta1.ResumeModelDeploymentMonitoringJobRequest = (function() { /** - * ModelMonitoringStatsAnomalies featureStats. - * @member {Array.} featureStats - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * Properties of a ResumeModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IResumeModelDeploymentMonitoringJobRequest + * @property {string|null} [name] ResumeModelDeploymentMonitoringJobRequest name + */ + + /** + * Constructs a new ResumeModelDeploymentMonitoringJobRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ResumeModelDeploymentMonitoringJobRequest. + * @implements IResumeModelDeploymentMonitoringJobRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + */ + function ResumeModelDeploymentMonitoringJobRequest(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * ResumeModelDeploymentMonitoringJobRequest name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @instance */ - ModelMonitoringStatsAnomalies.prototype.featureStats = $util.emptyArray; + ResumeModelDeploymentMonitoringJobRequest.prototype.name = ""; /** - * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. + * Creates a new ResumeModelDeploymentMonitoringJobRequest instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest instance */ - ModelMonitoringStatsAnomalies.create = function create(properties) { - return new ModelMonitoringStatsAnomalies(properties); + ResumeModelDeploymentMonitoringJobRequest.create = function create(properties) { + return new ResumeModelDeploymentMonitoringJobRequest(properties); }; /** - * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringStatsAnomalies.encode = function encode(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); - if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); - if (message.anomalyCount != null && Object.hasOwnProperty.call(message, "anomalyCount")) - writer.uint32(/* id 3, wireType 0 =*/24).int32(message.anomalyCount); - if (message.featureStats != null && message.featureStats.length) - for (var i = 0; i < message.featureStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.encode(message.featureStats[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); return writer; }; /** - * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. + * Encodes the specified ResumeModelDeploymentMonitoringJobRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { + ResumeModelDeploymentMonitoringJobRequest.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringStatsAnomalies.decode = function decode(reader, length) { + ResumeModelDeploymentMonitoringJobRequest.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.objective = reader.int32(); - break; - case 2: - message.deployedModelId = reader.string(); - break; - case 3: - message.anomalyCount = reader.int32(); - break; - case 4: - if (!(message.featureStats && message.featureStats.length)) - message.featureStats = []; - message.featureStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.decode(reader, reader.uint32())); + message.name = reader.string(); break; default: reader.skipType(tag & 7); @@ -224822,467 +230471,107 @@ }; /** - * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. + * Decodes a ResumeModelDeploymentMonitoringJobRequest message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { + ResumeModelDeploymentMonitoringJobRequest.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringStatsAnomalies message. + * Verifies a ResumeModelDeploymentMonitoringJobRequest message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringStatsAnomalies.verify = function verify(message) { + ResumeModelDeploymentMonitoringJobRequest.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.objective != null && message.hasOwnProperty("objective")) - switch (message.objective) { - default: - return "objective: enum value expected"; - case 0: - case 1: - case 2: - case 3: - case 4: - break; - } - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - if (!$util.isString(message.deployedModelId)) - return "deployedModelId: string expected"; - if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) - if (!$util.isInteger(message.anomalyCount)) - return "anomalyCount: integer expected"; - if (message.featureStats != null && message.hasOwnProperty("featureStats")) { - if (!Array.isArray(message.featureStats)) - return "featureStats: array expected"; - for (var i = 0; i < message.featureStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify(message.featureStats[i]); - if (error) - return "featureStats." + error; - } - } + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; return null; }; /** - * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. + * Creates a ResumeModelDeploymentMonitoringJobRequest message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies + * @returns {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} ResumeModelDeploymentMonitoringJobRequest */ - ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(); - switch (object.objective) { - case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": - case 0: - message.objective = 0; - break; - case "RAW_FEATURE_SKEW": - case 1: - message.objective = 1; - break; - case "RAW_FEATURE_DRIFT": - case 2: - message.objective = 2; - break; - case "FEATURE_ATTRIBUTION_SKEW": - case 3: - message.objective = 3; - break; - case "FEATURE_ATTRIBUTION_DRIFT": - case 4: - message.objective = 4; - break; - } - if (object.deployedModelId != null) - message.deployedModelId = String(object.deployedModelId); - if (object.anomalyCount != null) - message.anomalyCount = object.anomalyCount | 0; - if (object.featureStats) { - if (!Array.isArray(object.featureStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.featureStats: array expected"); - message.featureStats = []; - for (var i = 0; i < object.featureStats.length; ++i) { - if (typeof object.featureStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.featureStats: object expected"); - message.featureStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.fromObject(object.featureStats[i]); - } - } + ResumeModelDeploymentMonitoringJobRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest(); + if (object.name != null) + message.name = String(object.name); return message; }; /** - * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. + * Creates a plain object from a ResumeModelDeploymentMonitoringJobRequest message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies + * @param {google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest} message ResumeModelDeploymentMonitoringJobRequest * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { + ResumeModelDeploymentMonitoringJobRequest.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.arrays || options.defaults) - object.featureStats = []; - if (options.defaults) { - object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; - object.deployedModelId = ""; - object.anomalyCount = 0; - } - if (message.objective != null && message.hasOwnProperty("objective")) - object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.objective] : message.objective; - if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) - object.deployedModelId = message.deployedModelId; - if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) - object.anomalyCount = message.anomalyCount; - if (message.featureStats && message.featureStats.length) { - object.featureStats = []; - for (var j = 0; j < message.featureStats.length; ++j) - object.featureStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.toObject(message.featureStats[j], options); - } + if (options.defaults) + object.name = ""; + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; return object; }; /** - * Converts this ModelMonitoringStatsAnomalies to JSON. + * Converts this ResumeModelDeploymentMonitoringJobRequest to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @memberof google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest * @instance * @returns {Object.} JSON object */ - ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { + ResumeModelDeploymentMonitoringJobRequest.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { - - /** - * Properties of a FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @interface IFeatureHistoricStatsAnomalies - * @property {string|null} [featureDisplayName] FeatureHistoricStatsAnomalies featureDisplayName - * @property {google.cloud.aiplatform.v1beta1.IThresholdConfig|null} [threshold] FeatureHistoricStatsAnomalies threshold - * @property {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null} [trainingStats] FeatureHistoricStatsAnomalies trainingStats - * @property {Array.|null} [predictionStats] FeatureHistoricStatsAnomalies predictionStats - */ - - /** - * Constructs a new FeatureHistoricStatsAnomalies. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies - * @classdesc Represents a FeatureHistoricStatsAnomalies. - * @implements IFeatureHistoricStatsAnomalies - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - */ - function FeatureHistoricStatsAnomalies(properties) { - this.predictionStats = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * FeatureHistoricStatsAnomalies featureDisplayName. - * @member {string} featureDisplayName - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.featureDisplayName = ""; - - /** - * FeatureHistoricStatsAnomalies threshold. - * @member {google.cloud.aiplatform.v1beta1.IThresholdConfig|null|undefined} threshold - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.threshold = null; - - /** - * FeatureHistoricStatsAnomalies trainingStats. - * @member {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null|undefined} trainingStats - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.trainingStats = null; - - /** - * FeatureHistoricStatsAnomalies predictionStats. - * @member {Array.} predictionStats - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - */ - FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; - - /** - * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance - */ - FeatureHistoricStatsAnomalies.create = function create(properties) { - return new FeatureHistoricStatsAnomalies(properties); - }; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureDisplayName); - if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) - $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.threshold, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) - $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.trainingStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.predictionStats != null && message.predictionStats.length) - for (var i = 0; i < message.predictionStats.length; ++i) - $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.predictionStats[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureHistoricStatsAnomalies.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - message.featureDisplayName = reader.string(); - break; - case 3: - message.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); - break; - case 4: - message.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32()); - break; - case 5: - if (!(message.predictionStats && message.predictionStats.length)) - message.predictionStats = []; - message.predictionStats.push($root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32())); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - FeatureHistoricStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies a FeatureHistoricStatsAnomalies message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - FeatureHistoricStatsAnomalies.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - if (!$util.isString(message.featureDisplayName)) - return "featureDisplayName: string expected"; - if (message.threshold != null && message.hasOwnProperty("threshold")) { - var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.threshold); - if (error) - return "threshold." + error; - } - if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.trainingStats); - if (error) - return "trainingStats." + error; - } - if (message.predictionStats != null && message.hasOwnProperty("predictionStats")) { - if (!Array.isArray(message.predictionStats)) - return "predictionStats: array expected"; - for (var i = 0; i < message.predictionStats.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.predictionStats[i]); - if (error) - return "predictionStats." + error; - } - } - return null; - }; - - /** - * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies - */ - FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); - if (object.featureDisplayName != null) - message.featureDisplayName = String(object.featureDisplayName); - if (object.threshold != null) { - if (typeof object.threshold !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.threshold: object expected"); - message.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.threshold); - } - if (object.trainingStats != null) { - if (typeof object.trainingStats !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.trainingStats: object expected"); - message.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.trainingStats); - } - if (object.predictionStats) { - if (!Array.isArray(object.predictionStats)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: array expected"); - message.predictionStats = []; - for (var i = 0; i < object.predictionStats.length; ++i) { - if (typeof object.predictionStats[i] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: object expected"); - message.predictionStats[i] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.predictionStats[i]); - } - } - return message; - }; - - /** - * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.predictionStats = []; - if (options.defaults) { - object.featureDisplayName = ""; - object.threshold = null; - object.trainingStats = null; - } - if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) - object.featureDisplayName = message.featureDisplayName; - if (message.threshold != null && message.hasOwnProperty("threshold")) - object.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.threshold, options); - if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) - object.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.trainingStats, options); - if (message.predictionStats && message.predictionStats.length) { - object.predictionStats = []; - for (var j = 0; j < message.predictionStats.length; ++j) - object.predictionStats[j] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.predictionStats[j], options); - } - return object; - }; - - /** - * Converts this FeatureHistoricStatsAnomalies to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies - * @instance - * @returns {Object.} JSON object - */ - FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return FeatureHistoricStatsAnomalies; - })(); - - return ModelMonitoringStatsAnomalies; + return ResumeModelDeploymentMonitoringJobRequest; })(); - v1beta1.ModelMonitoringObjectiveConfig = (function() { + v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata = (function() { /** - * Properties of a ModelMonitoringObjectiveConfig. + * Properties of an UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelMonitoringObjectiveConfig - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null} [trainingDataset] ModelMonitoringObjectiveConfig trainingDataset - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null} [trainingPredictionSkewDetectionConfig] ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null} [predictionDriftDetectionConfig] ModelMonitoringObjectiveConfig predictionDriftDetectionConfig - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null} [explanationConfig] ModelMonitoringObjectiveConfig explanationConfig + * @interface IUpdateModelDeploymentMonitoringJobOperationMetadata + * @property {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null} [genericMetadata] UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata */ /** - * Constructs a new ModelMonitoringObjectiveConfig. + * Constructs a new UpdateModelDeploymentMonitoringJobOperationMetadata. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelMonitoringObjectiveConfig. - * @implements IModelMonitoringObjectiveConfig + * @classdesc Represents an UpdateModelDeploymentMonitoringJobOperationMetadata. + * @implements IUpdateModelDeploymentMonitoringJobOperationMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set */ - function ModelMonitoringObjectiveConfig(properties) { + function UpdateModelDeploymentMonitoringJobOperationMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -225290,114 +230579,75 @@ } /** - * ModelMonitoringObjectiveConfig trainingDataset. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset|null|undefined} trainingDataset - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @instance - */ - ModelMonitoringObjectiveConfig.prototype.trainingDataset = null; - - /** - * ModelMonitoringObjectiveConfig trainingPredictionSkewDetectionConfig. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig|null|undefined} trainingPredictionSkewDetectionConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @instance - */ - ModelMonitoringObjectiveConfig.prototype.trainingPredictionSkewDetectionConfig = null; - - /** - * ModelMonitoringObjectiveConfig predictionDriftDetectionConfig. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig|null|undefined} predictionDriftDetectionConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @instance - */ - ModelMonitoringObjectiveConfig.prototype.predictionDriftDetectionConfig = null; - - /** - * ModelMonitoringObjectiveConfig explanationConfig. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig|null|undefined} explanationConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * UpdateModelDeploymentMonitoringJobOperationMetadata genericMetadata. + * @member {google.cloud.aiplatform.v1beta1.IGenericOperationMetadata|null|undefined} genericMetadata + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance */ - ModelMonitoringObjectiveConfig.prototype.explanationConfig = null; + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.genericMetadata = null; /** - * Creates a new ModelMonitoringObjectiveConfig instance using the specified properties. + * Creates a new UpdateModelDeploymentMonitoringJobOperationMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig instance + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata instance */ - ModelMonitoringObjectiveConfig.create = function create(properties) { - return new ModelMonitoringObjectiveConfig(properties); + UpdateModelDeploymentMonitoringJobOperationMetadata.create = function create(properties) { + return new UpdateModelDeploymentMonitoringJobOperationMetadata(properties); }; /** - * Encodes the specified ModelMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringObjectiveConfig.encode = function encode(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.trainingDataset != null && Object.hasOwnProperty.call(message, "trainingDataset")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.encode(message.trainingDataset, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.trainingPredictionSkewDetectionConfig != null && Object.hasOwnProperty.call(message, "trainingPredictionSkewDetectionConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.encode(message.trainingPredictionSkewDetectionConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.predictionDriftDetectionConfig != null && Object.hasOwnProperty.call(message, "predictionDriftDetectionConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.encode(message.predictionDriftDetectionConfig, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - if (message.explanationConfig != null && Object.hasOwnProperty.call(message, "explanationConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.encode(message.explanationConfig, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.genericMetadata != null && Object.hasOwnProperty.call(message, "genericMetadata")) + $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.encode(message.genericMetadata, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify|verify} messages. + * Encodes the specified UpdateModelDeploymentMonitoringJobOperationMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IUpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { + UpdateModelDeploymentMonitoringJobOperationMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringObjectiveConfig.decode = function decode(reader, length) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.decode(reader, reader.uint32()); - break; - case 2: - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.decode(reader, reader.uint32()); - break; - case 3: - message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.decode(reader, reader.uint32()); - break; - case 5: - message.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.decode(reader, reader.uint32()); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -225408,1082 +230658,1023 @@ }; /** - * Decodes a ModelMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. + * Decodes an UpdateModelDeploymentMonitoringJobOperationMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { + UpdateModelDeploymentMonitoringJobOperationMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringObjectiveConfig message. + * Verifies an UpdateModelDeploymentMonitoringJobOperationMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringObjectiveConfig.verify = function verify(message) { + UpdateModelDeploymentMonitoringJobOperationMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify(message.trainingDataset); - if (error) - return "trainingDataset." + error; - } - if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify(message.trainingPredictionSkewDetectionConfig); - if (error) - return "trainingPredictionSkewDetectionConfig." + error; - } - if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify(message.predictionDriftDetectionConfig); - if (error) - return "predictionDriftDetectionConfig." + error; - } - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify(message.explanationConfig); + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.verify(message.genericMetadata); if (error) - return "explanationConfig." + error; + return "genericMetadata." + error; } return null; }; /** - * Creates a ModelMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. + * Creates an UpdateModelDeploymentMonitoringJobOperationMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} ModelMonitoringObjectiveConfig + * @returns {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} UpdateModelDeploymentMonitoringJobOperationMetadata */ - ModelMonitoringObjectiveConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig) + UpdateModelDeploymentMonitoringJobOperationMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig(); - if (object.trainingDataset != null) { - if (typeof object.trainingDataset !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.trainingDataset: object expected"); - message.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.fromObject(object.trainingDataset); - } - if (object.trainingPredictionSkewDetectionConfig != null) { - if (typeof object.trainingPredictionSkewDetectionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.trainingPredictionSkewDetectionConfig: object expected"); - message.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.fromObject(object.trainingPredictionSkewDetectionConfig); - } - if (object.predictionDriftDetectionConfig != null) { - if (typeof object.predictionDriftDetectionConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.predictionDriftDetectionConfig: object expected"); - message.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.fromObject(object.predictionDriftDetectionConfig); - } - if (object.explanationConfig != null) { - if (typeof object.explanationConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.explanationConfig: object expected"); - message.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.fromObject(object.explanationConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata(); + if (object.genericMetadata != null) { + if (typeof object.genericMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata.genericMetadata: object expected"); + message.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.fromObject(object.genericMetadata); } return message; }; /** - * Creates a plain object from a ModelMonitoringObjectiveConfig message. Also converts values to other types if specified. + * Creates a plain object from an UpdateModelDeploymentMonitoringJobOperationMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig} message ModelMonitoringObjectiveConfig + * @param {google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata} message UpdateModelDeploymentMonitoringJobOperationMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringObjectiveConfig.toObject = function toObject(message, options) { + UpdateModelDeploymentMonitoringJobOperationMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) { - object.trainingDataset = null; - object.trainingPredictionSkewDetectionConfig = null; - object.predictionDriftDetectionConfig = null; - object.explanationConfig = null; - } - if (message.trainingDataset != null && message.hasOwnProperty("trainingDataset")) - object.trainingDataset = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.toObject(message.trainingDataset, options); - if (message.trainingPredictionSkewDetectionConfig != null && message.hasOwnProperty("trainingPredictionSkewDetectionConfig")) - object.trainingPredictionSkewDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.toObject(message.trainingPredictionSkewDetectionConfig, options); - if (message.predictionDriftDetectionConfig != null && message.hasOwnProperty("predictionDriftDetectionConfig")) - object.predictionDriftDetectionConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.toObject(message.predictionDriftDetectionConfig, options); - if (message.explanationConfig != null && message.hasOwnProperty("explanationConfig")) - object.explanationConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.toObject(message.explanationConfig, options); + if (options.defaults) + object.genericMetadata = null; + if (message.genericMetadata != null && message.hasOwnProperty("genericMetadata")) + object.genericMetadata = $root.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.toObject(message.genericMetadata, options); return object; }; /** - * Converts this ModelMonitoringObjectiveConfig to JSON. + * Converts this UpdateModelDeploymentMonitoringJobOperationMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.UpdateModelDeploymentMonitoringJobOperationMetadata * @instance * @returns {Object.} JSON object */ - ModelMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { + UpdateModelDeploymentMonitoringJobOperationMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ModelMonitoringObjectiveConfig.TrainingDataset = (function() { - - /** - * Properties of a TrainingDataset. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @interface ITrainingDataset - * @property {string|null} [dataset] TrainingDataset dataset - * @property {google.cloud.aiplatform.v1beta1.IGcsSource|null} [gcsSource] TrainingDataset gcsSource - * @property {google.cloud.aiplatform.v1beta1.IBigQuerySource|null} [bigquerySource] TrainingDataset bigquerySource - * @property {string|null} [dataFormat] TrainingDataset dataFormat - * @property {string|null} [targetField] TrainingDataset targetField - * @property {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null} [loggingSamplingStrategy] TrainingDataset loggingSamplingStrategy - */ - - /** - * Constructs a new TrainingDataset. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @classdesc Represents a TrainingDataset. - * @implements ITrainingDataset - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set - */ - function TrainingDataset(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * TrainingDataset dataset. - * @member {string|null|undefined} dataset - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataset = null; - - /** - * TrainingDataset gcsSource. - * @member {google.cloud.aiplatform.v1beta1.IGcsSource|null|undefined} gcsSource - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.gcsSource = null; - - /** - * TrainingDataset bigquerySource. - * @member {google.cloud.aiplatform.v1beta1.IBigQuerySource|null|undefined} bigquerySource - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.bigquerySource = null; - - /** - * TrainingDataset dataFormat. - * @member {string} dataFormat - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.dataFormat = ""; - - /** - * TrainingDataset targetField. - * @member {string} targetField - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.targetField = ""; - - /** - * TrainingDataset loggingSamplingStrategy. - * @member {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null|undefined} loggingSamplingStrategy - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - TrainingDataset.prototype.loggingSamplingStrategy = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; - - /** - * TrainingDataset dataSource. - * @member {"dataset"|"gcsSource"|"bigquerySource"|undefined} dataSource - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - */ - Object.defineProperty(TrainingDataset.prototype, "dataSource", { - get: $util.oneOfGetter($oneOfFields = ["dataset", "gcsSource", "bigquerySource"]), - set: $util.oneOfSetter($oneOfFields) - }); - - /** - * Creates a new TrainingDataset instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset instance - */ - TrainingDataset.create = function create(properties) { - return new TrainingDataset(properties); - }; - - /** - * Encodes the specified TrainingDataset message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingDataset.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.dataFormat != null && Object.hasOwnProperty.call(message, "dataFormat")) - writer.uint32(/* id 2, wireType 2 =*/18).string(message.dataFormat); - if (message.dataset != null && Object.hasOwnProperty.call(message, "dataset")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.dataset); - if (message.gcsSource != null && Object.hasOwnProperty.call(message, "gcsSource")) - $root.google.cloud.aiplatform.v1beta1.GcsSource.encode(message.gcsSource, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); - if (message.bigquerySource != null && Object.hasOwnProperty.call(message, "bigquerySource")) - $root.google.cloud.aiplatform.v1beta1.BigQuerySource.encode(message.bigquerySource, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); - if (message.targetField != null && Object.hasOwnProperty.call(message, "targetField")) - writer.uint32(/* id 6, wireType 2 =*/50).string(message.targetField); - if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) - $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); - return writer; - }; - - /** - * Encodes the specified TrainingDataset message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingDataset} message TrainingDataset message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingDataset.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + return UpdateModelDeploymentMonitoringJobOperationMetadata; + })(); - /** - * Decodes a TrainingDataset message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingDataset.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 3: - message.dataset = reader.string(); - break; - case 4: - message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.decode(reader, reader.uint32()); - break; - case 5: - message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.decode(reader, reader.uint32()); - break; - case 2: - message.dataFormat = reader.string(); - break; - case 6: - message.targetField = reader.string(); - break; - case 7: - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ModelDeploymentMonitoringObjectiveType enum. + * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType + * @enum {number} + * @property {number} MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED=0 MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED value + * @property {number} RAW_FEATURE_SKEW=1 RAW_FEATURE_SKEW value + * @property {number} RAW_FEATURE_DRIFT=2 RAW_FEATURE_DRIFT value + * @property {number} FEATURE_ATTRIBUTION_SKEW=3 FEATURE_ATTRIBUTION_SKEW value + * @property {number} FEATURE_ATTRIBUTION_DRIFT=4 FEATURE_ATTRIBUTION_DRIFT value + */ + v1beta1.ModelDeploymentMonitoringObjectiveType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "RAW_FEATURE_SKEW"] = 1; + values[valuesById[2] = "RAW_FEATURE_DRIFT"] = 2; + values[valuesById[3] = "FEATURE_ATTRIBUTION_SKEW"] = 3; + values[valuesById[4] = "FEATURE_ATTRIBUTION_DRIFT"] = 4; + return values; + })(); - /** - * Decodes a TrainingDataset message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingDataset.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + v1beta1.ModelDeploymentMonitoringJob = (function() { - /** - * Verifies a TrainingDataset message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingDataset.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - properties.dataSource = 1; - if (!$util.isString(message.dataset)) - return "dataset: string expected"; - } - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.GcsSource.verify(message.gcsSource); - if (error) - return "gcsSource." + error; - } - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - if (properties.dataSource === 1) - return "dataSource: multiple values"; - properties.dataSource = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.verify(message.bigquerySource); - if (error) - return "bigquerySource." + error; - } - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - if (!$util.isString(message.dataFormat)) - return "dataFormat: string expected"; - if (message.targetField != null && message.hasOwnProperty("targetField")) - if (!$util.isString(message.targetField)) - return "targetField: string expected"; - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { - var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.verify(message.loggingSamplingStrategy); - if (error) - return "loggingSamplingStrategy." + error; - } - return null; - }; + /** + * Properties of a ModelDeploymentMonitoringJob. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelDeploymentMonitoringJob + * @property {string|null} [name] ModelDeploymentMonitoringJob name + * @property {string|null} [displayName] ModelDeploymentMonitoringJob displayName + * @property {string|null} [endpoint] ModelDeploymentMonitoringJob endpoint + * @property {google.cloud.aiplatform.v1beta1.JobState|null} [state] ModelDeploymentMonitoringJob state + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState|null} [scheduleState] ModelDeploymentMonitoringJob scheduleState + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null} [latestMonitoringPipelineMetadata] ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata + * @property {Array.|null} [modelDeploymentMonitoringObjectiveConfigs] ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs + * @property {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null} [modelDeploymentMonitoringScheduleConfig] ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig + * @property {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null} [loggingSamplingStrategy] ModelDeploymentMonitoringJob loggingSamplingStrategy + * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null} [modelMonitoringAlertConfig] ModelDeploymentMonitoringJob modelMonitoringAlertConfig + * @property {string|null} [predictInstanceSchemaUri] ModelDeploymentMonitoringJob predictInstanceSchemaUri + * @property {google.protobuf.IValue|null} [samplePredictInstance] ModelDeploymentMonitoringJob samplePredictInstance + * @property {string|null} [analysisInstanceSchemaUri] ModelDeploymentMonitoringJob analysisInstanceSchemaUri + * @property {Array.|null} [bigqueryTables] ModelDeploymentMonitoringJob bigqueryTables + * @property {google.protobuf.IDuration|null} [logTtl] ModelDeploymentMonitoringJob logTtl + * @property {Object.|null} [labels] ModelDeploymentMonitoringJob labels + * @property {google.protobuf.ITimestamp|null} [createTime] ModelDeploymentMonitoringJob createTime + * @property {google.protobuf.ITimestamp|null} [updateTime] ModelDeploymentMonitoringJob updateTime + * @property {google.protobuf.ITimestamp|null} [nextScheduleTime] ModelDeploymentMonitoringJob nextScheduleTime + * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [statsAnomaliesBaseDirectory] ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory + * @property {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null} [encryptionSpec] ModelDeploymentMonitoringJob encryptionSpec + * @property {boolean|null} [enableMonitoringPipelineLogs] ModelDeploymentMonitoringJob enableMonitoringPipelineLogs + * @property {google.rpc.IStatus|null} [error] ModelDeploymentMonitoringJob error + */ - /** - * Creates a TrainingDataset message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} TrainingDataset - */ - TrainingDataset.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset(); - if (object.dataset != null) - message.dataset = String(object.dataset); - if (object.gcsSource != null) { - if (typeof object.gcsSource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.gcsSource: object expected"); - message.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.fromObject(object.gcsSource); - } - if (object.bigquerySource != null) { - if (typeof object.bigquerySource !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.bigquerySource: object expected"); - message.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.fromObject(object.bigquerySource); - } - if (object.dataFormat != null) - message.dataFormat = String(object.dataFormat); - if (object.targetField != null) - message.targetField = String(object.targetField); - if (object.loggingSamplingStrategy != null) { - if (typeof object.loggingSamplingStrategy !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset.loggingSamplingStrategy: object expected"); - message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); - } - return message; - }; + /** + * Constructs a new ModelDeploymentMonitoringJob. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelDeploymentMonitoringJob. + * @implements IModelDeploymentMonitoringJob + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob=} [properties] Properties to set + */ + function ModelDeploymentMonitoringJob(properties) { + this.modelDeploymentMonitoringObjectiveConfigs = []; + this.bigqueryTables = []; + this.labels = {}; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - /** - * Creates a plain object from a TrainingDataset message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset} message TrainingDataset - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingDataset.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) { - object.dataFormat = ""; - object.targetField = ""; - object.loggingSamplingStrategy = null; - } - if (message.dataFormat != null && message.hasOwnProperty("dataFormat")) - object.dataFormat = message.dataFormat; - if (message.dataset != null && message.hasOwnProperty("dataset")) { - object.dataset = message.dataset; - if (options.oneofs) - object.dataSource = "dataset"; - } - if (message.gcsSource != null && message.hasOwnProperty("gcsSource")) { - object.gcsSource = $root.google.cloud.aiplatform.v1beta1.GcsSource.toObject(message.gcsSource, options); - if (options.oneofs) - object.dataSource = "gcsSource"; - } - if (message.bigquerySource != null && message.hasOwnProperty("bigquerySource")) { - object.bigquerySource = $root.google.cloud.aiplatform.v1beta1.BigQuerySource.toObject(message.bigquerySource, options); - if (options.oneofs) - object.dataSource = "bigquerySource"; - } - if (message.targetField != null && message.hasOwnProperty("targetField")) - object.targetField = message.targetField; - if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) - object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); - return object; - }; + /** + * ModelDeploymentMonitoringJob name. + * @member {string} name + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.name = ""; - /** - * Converts this TrainingDataset to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingDataset - * @instance - * @returns {Object.} JSON object - */ - TrainingDataset.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ModelDeploymentMonitoringJob displayName. + * @member {string} displayName + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.displayName = ""; - return TrainingDataset; - })(); + /** + * ModelDeploymentMonitoringJob endpoint. + * @member {string} endpoint + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.endpoint = ""; - ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig = (function() { + /** + * ModelDeploymentMonitoringJob state. + * @member {google.cloud.aiplatform.v1beta1.JobState} state + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.state = 0; - /** - * Properties of a TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @interface ITrainingPredictionSkewDetectionConfig - * @property {Object.|null} [skewThresholds] TrainingPredictionSkewDetectionConfig skewThresholds - * @property {Object.|null} [attributionScoreSkewThresholds] TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds - */ + /** + * ModelDeploymentMonitoringJob scheduleState. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState} scheduleState + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.scheduleState = 0; - /** - * Constructs a new TrainingPredictionSkewDetectionConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @classdesc Represents a TrainingPredictionSkewDetectionConfig. - * @implements ITrainingPredictionSkewDetectionConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set - */ - function TrainingPredictionSkewDetectionConfig(properties) { - this.skewThresholds = {}; - this.attributionScoreSkewThresholds = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ModelDeploymentMonitoringJob latestMonitoringPipelineMetadata. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata|null|undefined} latestMonitoringPipelineMetadata + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.latestMonitoringPipelineMetadata = null; - /** - * TrainingPredictionSkewDetectionConfig skewThresholds. - * @member {Object.} skewThresholds - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.skewThresholds = $util.emptyObject; + /** + * ModelDeploymentMonitoringJob modelDeploymentMonitoringObjectiveConfigs. + * @member {Array.} modelDeploymentMonitoringObjectiveConfigs + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringObjectiveConfigs = $util.emptyArray; - /** - * TrainingPredictionSkewDetectionConfig attributionScoreSkewThresholds. - * @member {Object.} attributionScoreSkewThresholds - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - */ - TrainingPredictionSkewDetectionConfig.prototype.attributionScoreSkewThresholds = $util.emptyObject; + /** + * ModelDeploymentMonitoringJob modelDeploymentMonitoringScheduleConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig|null|undefined} modelDeploymentMonitoringScheduleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.modelDeploymentMonitoringScheduleConfig = null; - /** - * Creates a new TrainingPredictionSkewDetectionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig instance - */ - TrainingPredictionSkewDetectionConfig.create = function create(properties) { - return new TrainingPredictionSkewDetectionConfig(properties); - }; + /** + * ModelDeploymentMonitoringJob loggingSamplingStrategy. + * @member {google.cloud.aiplatform.v1beta1.ISamplingStrategy|null|undefined} loggingSamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.loggingSamplingStrategy = null; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPredictionSkewDetectionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.skewThresholds != null && Object.hasOwnProperty.call(message, "skewThresholds")) - for (var keys = Object.keys(message.skewThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.skewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.attributionScoreSkewThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreSkewThresholds")) - for (var keys = Object.keys(message.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.attributionScoreSkewThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; + /** + * ModelDeploymentMonitoringJob modelMonitoringAlertConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig|null|undefined} modelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.modelMonitoringAlertConfig = null; - /** - * Encodes the specified TrainingPredictionSkewDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ITrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - TrainingPredictionSkewDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * ModelDeploymentMonitoringJob predictInstanceSchemaUri. + * @member {string} predictInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.predictInstanceSchemaUri = ""; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPredictionSkewDetectionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (message.skewThresholds === $util.emptyObject) - message.skewThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.skewThresholds[key] = value; - break; - case 2: - if (message.attributionScoreSkewThresholds === $util.emptyObject) - message.attributionScoreSkewThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.attributionScoreSkewThresholds[key] = value; - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * ModelDeploymentMonitoringJob samplePredictInstance. + * @member {google.protobuf.IValue|null|undefined} samplePredictInstance + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.samplePredictInstance = null; - /** - * Decodes a TrainingPredictionSkewDetectionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - TrainingPredictionSkewDetectionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * ModelDeploymentMonitoringJob analysisInstanceSchemaUri. + * @member {string} analysisInstanceSchemaUri + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.analysisInstanceSchemaUri = ""; - /** - * Verifies a TrainingPredictionSkewDetectionConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - TrainingPredictionSkewDetectionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.skewThresholds != null && message.hasOwnProperty("skewThresholds")) { - if (!$util.isObject(message.skewThresholds)) - return "skewThresholds: object expected"; - var key = Object.keys(message.skewThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.skewThresholds[key[i]]); - if (error) - return "skewThresholds." + error; - } - } - if (message.attributionScoreSkewThresholds != null && message.hasOwnProperty("attributionScoreSkewThresholds")) { - if (!$util.isObject(message.attributionScoreSkewThresholds)) - return "attributionScoreSkewThresholds: object expected"; - var key = Object.keys(message.attributionScoreSkewThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.attributionScoreSkewThresholds[key[i]]); - if (error) - return "attributionScoreSkewThresholds." + error; - } - } - return null; - }; + /** + * ModelDeploymentMonitoringJob bigqueryTables. + * @member {Array.} bigqueryTables + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.bigqueryTables = $util.emptyArray; - /** - * Creates a TrainingPredictionSkewDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} TrainingPredictionSkewDetectionConfig - */ - TrainingPredictionSkewDetectionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig(); - if (object.skewThresholds) { - if (typeof object.skewThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); - message.skewThresholds = {}; - for (var keys = Object.keys(object.skewThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.skewThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.skewThresholds: object expected"); - message.skewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.skewThresholds[keys[i]]); - } - } - if (object.attributionScoreSkewThresholds) { - if (typeof object.attributionScoreSkewThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); - message.attributionScoreSkewThresholds = {}; - for (var keys = Object.keys(object.attributionScoreSkewThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.attributionScoreSkewThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig.attributionScoreSkewThresholds: object expected"); - message.attributionScoreSkewThresholds[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.attributionScoreSkewThresholds[keys[i]]); - } - } - return message; - }; + /** + * ModelDeploymentMonitoringJob logTtl. + * @member {google.protobuf.IDuration|null|undefined} logTtl + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.logTtl = null; - /** - * Creates a plain object from a TrainingPredictionSkewDetectionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig} message TrainingPredictionSkewDetectionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - TrainingPredictionSkewDetectionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.skewThresholds = {}; - object.attributionScoreSkewThresholds = {}; - } - var keys2; - if (message.skewThresholds && (keys2 = Object.keys(message.skewThresholds)).length) { - object.skewThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.skewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.skewThresholds[keys2[j]], options); - } - if (message.attributionScoreSkewThresholds && (keys2 = Object.keys(message.attributionScoreSkewThresholds)).length) { - object.attributionScoreSkewThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.attributionScoreSkewThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.attributionScoreSkewThresholds[keys2[j]], options); - } - return object; - }; + /** + * ModelDeploymentMonitoringJob labels. + * @member {Object.} labels + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.labels = $util.emptyObject; - /** - * Converts this TrainingPredictionSkewDetectionConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.TrainingPredictionSkewDetectionConfig - * @instance - * @returns {Object.} JSON object - */ - TrainingPredictionSkewDetectionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * ModelDeploymentMonitoringJob createTime. + * @member {google.protobuf.ITimestamp|null|undefined} createTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.createTime = null; - return TrainingPredictionSkewDetectionConfig; - })(); + /** + * ModelDeploymentMonitoringJob updateTime. + * @member {google.protobuf.ITimestamp|null|undefined} updateTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.updateTime = null; - ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig = (function() { + /** + * ModelDeploymentMonitoringJob nextScheduleTime. + * @member {google.protobuf.ITimestamp|null|undefined} nextScheduleTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.nextScheduleTime = null; - /** - * Properties of a PredictionDriftDetectionConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @interface IPredictionDriftDetectionConfig - * @property {Object.|null} [driftThresholds] PredictionDriftDetectionConfig driftThresholds - * @property {Object.|null} [attributionScoreDriftThresholds] PredictionDriftDetectionConfig attributionScoreDriftThresholds - */ + /** + * ModelDeploymentMonitoringJob statsAnomaliesBaseDirectory. + * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} statsAnomaliesBaseDirectory + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.statsAnomaliesBaseDirectory = null; - /** - * Constructs a new PredictionDriftDetectionConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @classdesc Represents a PredictionDriftDetectionConfig. - * @implements IPredictionDriftDetectionConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set - */ - function PredictionDriftDetectionConfig(properties) { - this.driftThresholds = {}; - this.attributionScoreDriftThresholds = {}; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + /** + * ModelDeploymentMonitoringJob encryptionSpec. + * @member {google.cloud.aiplatform.v1beta1.IEncryptionSpec|null|undefined} encryptionSpec + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.encryptionSpec = null; - /** - * PredictionDriftDetectionConfig driftThresholds. - * @member {Object.} driftThresholds - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.driftThresholds = $util.emptyObject; + /** + * ModelDeploymentMonitoringJob enableMonitoringPipelineLogs. + * @member {boolean} enableMonitoringPipelineLogs + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.enableMonitoringPipelineLogs = false; - /** - * PredictionDriftDetectionConfig attributionScoreDriftThresholds. - * @member {Object.} attributionScoreDriftThresholds - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - */ - PredictionDriftDetectionConfig.prototype.attributionScoreDriftThresholds = $util.emptyObject; + /** + * ModelDeploymentMonitoringJob error. + * @member {google.rpc.IStatus|null|undefined} error + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + */ + ModelDeploymentMonitoringJob.prototype.error = null; - /** - * Creates a new PredictionDriftDetectionConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig instance - */ - PredictionDriftDetectionConfig.create = function create(properties) { - return new PredictionDriftDetectionConfig(properties); - }; + /** + * Creates a new ModelDeploymentMonitoringJob instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob instance + */ + ModelDeploymentMonitoringJob.create = function create(properties) { + return new ModelDeploymentMonitoringJob(properties); + }; - /** - * Encodes the specified PredictionDriftDetectionConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictionDriftDetectionConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.driftThresholds != null && Object.hasOwnProperty.call(message, "driftThresholds")) - for (var keys = Object.keys(message.driftThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 1, wireType 2 =*/10).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.driftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - if (message.attributionScoreDriftThresholds != null && Object.hasOwnProperty.call(message, "attributionScoreDriftThresholds")) - for (var keys = Object.keys(message.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { - writer.uint32(/* id 2, wireType 2 =*/18).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]); - $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.attributionScoreDriftThresholds[keys[i]], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim().ldelim(); - } - return writer; - }; + /** + * Encodes the specified ModelDeploymentMonitoringJob message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringJob.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.name != null && Object.hasOwnProperty.call(message, "name")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.name); + if (message.displayName != null && Object.hasOwnProperty.call(message, "displayName")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); + if (message.endpoint != null && Object.hasOwnProperty.call(message, "endpoint")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.endpoint); + if (message.state != null && Object.hasOwnProperty.call(message, "state")) + writer.uint32(/* id 4, wireType 0 =*/32).int32(message.state); + if (message.scheduleState != null && Object.hasOwnProperty.call(message, "scheduleState")) + writer.uint32(/* id 5, wireType 0 =*/40).int32(message.scheduleState); + if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.modelDeploymentMonitoringObjectiveConfigs.length) + for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.encode(message.modelDeploymentMonitoringObjectiveConfigs[i], writer.uint32(/* id 6, wireType 2 =*/50).fork()).ldelim(); + if (message.modelDeploymentMonitoringScheduleConfig != null && Object.hasOwnProperty.call(message, "modelDeploymentMonitoringScheduleConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.encode(message.modelDeploymentMonitoringScheduleConfig, writer.uint32(/* id 7, wireType 2 =*/58).fork()).ldelim(); + if (message.loggingSamplingStrategy != null && Object.hasOwnProperty.call(message, "loggingSamplingStrategy")) + $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.encode(message.loggingSamplingStrategy, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); + if (message.predictInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "predictInstanceSchemaUri")) + writer.uint32(/* id 9, wireType 2 =*/74).string(message.predictInstanceSchemaUri); + if (message.bigqueryTables != null && message.bigqueryTables.length) + for (var i = 0; i < message.bigqueryTables.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.encode(message.bigqueryTables[i], writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.labels != null && Object.hasOwnProperty.call(message, "labels")) + for (var keys = Object.keys(message.labels), i = 0; i < keys.length; ++i) + writer.uint32(/* id 11, wireType 2 =*/90).fork().uint32(/* id 1, wireType 2 =*/10).string(keys[i]).uint32(/* id 2, wireType 2 =*/18).string(message.labels[keys[i]]).ldelim(); + if (message.createTime != null && Object.hasOwnProperty.call(message, "createTime")) + $root.google.protobuf.Timestamp.encode(message.createTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim(); + if (message.updateTime != null && Object.hasOwnProperty.call(message, "updateTime")) + $root.google.protobuf.Timestamp.encode(message.updateTime, writer.uint32(/* id 13, wireType 2 =*/106).fork()).ldelim(); + if (message.nextScheduleTime != null && Object.hasOwnProperty.call(message, "nextScheduleTime")) + $root.google.protobuf.Timestamp.encode(message.nextScheduleTime, writer.uint32(/* id 14, wireType 2 =*/114).fork()).ldelim(); + if (message.modelMonitoringAlertConfig != null && Object.hasOwnProperty.call(message, "modelMonitoringAlertConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.encode(message.modelMonitoringAlertConfig, writer.uint32(/* id 15, wireType 2 =*/122).fork()).ldelim(); + if (message.analysisInstanceSchemaUri != null && Object.hasOwnProperty.call(message, "analysisInstanceSchemaUri")) + writer.uint32(/* id 16, wireType 2 =*/130).string(message.analysisInstanceSchemaUri); + if (message.logTtl != null && Object.hasOwnProperty.call(message, "logTtl")) + $root.google.protobuf.Duration.encode(message.logTtl, writer.uint32(/* id 17, wireType 2 =*/138).fork()).ldelim(); + if (message.samplePredictInstance != null && Object.hasOwnProperty.call(message, "samplePredictInstance")) + $root.google.protobuf.Value.encode(message.samplePredictInstance, writer.uint32(/* id 19, wireType 2 =*/154).fork()).ldelim(); + if (message.statsAnomaliesBaseDirectory != null && Object.hasOwnProperty.call(message, "statsAnomaliesBaseDirectory")) + $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.statsAnomaliesBaseDirectory, writer.uint32(/* id 20, wireType 2 =*/162).fork()).ldelim(); + if (message.encryptionSpec != null && Object.hasOwnProperty.call(message, "encryptionSpec")) + $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.encode(message.encryptionSpec, writer.uint32(/* id 21, wireType 2 =*/170).fork()).ldelim(); + if (message.enableMonitoringPipelineLogs != null && Object.hasOwnProperty.call(message, "enableMonitoringPipelineLogs")) + writer.uint32(/* id 22, wireType 0 =*/176).bool(message.enableMonitoringPipelineLogs); + if (message.error != null && Object.hasOwnProperty.call(message, "error")) + $root.google.rpc.Status.encode(message.error, writer.uint32(/* id 23, wireType 2 =*/186).fork()).ldelim(); + if (message.latestMonitoringPipelineMetadata != null && Object.hasOwnProperty.call(message, "latestMonitoringPipelineMetadata")) + $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.encode(message.latestMonitoringPipelineMetadata, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); + return writer; + }; - /** - * Encodes the specified PredictionDriftDetectionConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IPredictionDriftDetectionConfig} message PredictionDriftDetectionConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - PredictionDriftDetectionConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ModelDeploymentMonitoringJob message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringJob.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictionDriftDetectionConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(), key, value; - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (message.driftThresholds === $util.emptyObject) - message.driftThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } - } - message.driftThresholds[key] = value; - break; - case 2: - if (message.attributionScoreDriftThresholds === $util.emptyObject) - message.attributionScoreDriftThresholds = {}; - var end2 = reader.uint32() + reader.pos; - key = ""; - value = null; - while (reader.pos < end2) { - var tag2 = reader.uint32(); - switch (tag2 >>> 3) { - case 1: - key = reader.string(); - break; - case 2: - value = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); - break; - default: - reader.skipType(tag2 & 7); - break; - } + /** + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringJob.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(), key, value; + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.name = reader.string(); + break; + case 2: + message.displayName = reader.string(); + break; + case 3: + message.endpoint = reader.string(); + break; + case 4: + message.state = reader.int32(); + break; + case 5: + message.scheduleState = reader.int32(); + break; + case 25: + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.decode(reader, reader.uint32()); + break; + case 6: + if (!(message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length)) + message.modelDeploymentMonitoringObjectiveConfigs = []; + message.modelDeploymentMonitoringObjectiveConfigs.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.decode(reader, reader.uint32())); + break; + case 7: + message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.decode(reader, reader.uint32()); + break; + case 8: + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.decode(reader, reader.uint32()); + break; + case 15: + message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.decode(reader, reader.uint32()); + break; + case 9: + message.predictInstanceSchemaUri = reader.string(); + break; + case 19: + message.samplePredictInstance = $root.google.protobuf.Value.decode(reader, reader.uint32()); + break; + case 16: + message.analysisInstanceSchemaUri = reader.string(); + break; + case 10: + if (!(message.bigqueryTables && message.bigqueryTables.length)) + message.bigqueryTables = []; + message.bigqueryTables.push($root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.decode(reader, reader.uint32())); + break; + case 17: + message.logTtl = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 11: + if (message.labels === $util.emptyObject) + message.labels = {}; + var end2 = reader.uint32() + reader.pos; + key = ""; + value = ""; + while (reader.pos < end2) { + var tag2 = reader.uint32(); + switch (tag2 >>> 3) { + case 1: + key = reader.string(); + break; + case 2: + value = reader.string(); + break; + default: + reader.skipType(tag2 & 7); + break; } - message.attributionScoreDriftThresholds[key] = value; - break; - default: - reader.skipType(tag & 7); - break; } + message.labels[key] = value; + break; + case 12: + message.createTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 13: + message.updateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 14: + message.nextScheduleTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); + break; + case 20: + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); + break; + case 21: + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.decode(reader, reader.uint32()); + break; + case 22: + message.enableMonitoringPipelineLogs = reader.bool(); + break; + case 23: + message.error = $root.google.rpc.Status.decode(reader, reader.uint32()); + break; + default: + reader.skipType(tag & 7); + break; } - return message; - }; + } + return message; + }; - /** - * Decodes a PredictionDriftDetectionConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - PredictionDriftDetectionConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ModelDeploymentMonitoringJob message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringJob.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Verifies a PredictionDriftDetectionConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - PredictionDriftDetectionConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.driftThresholds != null && message.hasOwnProperty("driftThresholds")) { - if (!$util.isObject(message.driftThresholds)) - return "driftThresholds: object expected"; - var key = Object.keys(message.driftThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.driftThresholds[key[i]]); - if (error) - return "driftThresholds." + error; - } + /** + * Verifies a ModelDeploymentMonitoringJob message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringJob.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.name != null && message.hasOwnProperty("name")) + if (!$util.isString(message.name)) + return "name: string expected"; + if (message.displayName != null && message.hasOwnProperty("displayName")) + if (!$util.isString(message.displayName)) + return "displayName: string expected"; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + if (!$util.isString(message.endpoint)) + return "endpoint: string expected"; + if (message.state != null && message.hasOwnProperty("state")) + switch (message.state) { + default: + return "state: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + case 5: + case 6: + case 7: + case 8: + case 9: + case 10: + break; } - if (message.attributionScoreDriftThresholds != null && message.hasOwnProperty("attributionScoreDriftThresholds")) { - if (!$util.isObject(message.attributionScoreDriftThresholds)) - return "attributionScoreDriftThresholds: object expected"; - var key = Object.keys(message.attributionScoreDriftThresholds); - for (var i = 0; i < key.length; ++i) { - var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.attributionScoreDriftThresholds[key[i]]); - if (error) - return "attributionScoreDriftThresholds." + error; - } + if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) + switch (message.scheduleState) { + default: + return "scheduleState: enum value expected"; + case 0: + case 1: + case 2: + case 3: + break; } - return null; - }; - - /** - * Creates a PredictionDriftDetectionConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} PredictionDriftDetectionConfig - */ - PredictionDriftDetectionConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig(); - if (object.driftThresholds) { - if (typeof object.driftThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); - message.driftThresholds = {}; - for (var keys = Object.keys(object.driftThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.driftThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.driftThresholds: object expected"); - message.driftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.driftThresholds[keys[i]]); - } + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify(message.latestMonitoringPipelineMetadata); + if (error) + return "latestMonitoringPipelineMetadata." + error; + } + if (message.modelDeploymentMonitoringObjectiveConfigs != null && message.hasOwnProperty("modelDeploymentMonitoringObjectiveConfigs")) { + if (!Array.isArray(message.modelDeploymentMonitoringObjectiveConfigs)) + return "modelDeploymentMonitoringObjectiveConfigs: array expected"; + for (var i = 0; i < message.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify(message.modelDeploymentMonitoringObjectiveConfigs[i]); + if (error) + return "modelDeploymentMonitoringObjectiveConfigs." + error; } - if (object.attributionScoreDriftThresholds) { - if (typeof object.attributionScoreDriftThresholds !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); - message.attributionScoreDriftThresholds = {}; - for (var keys = Object.keys(object.attributionScoreDriftThresholds), i = 0; i < keys.length; ++i) { - if (typeof object.attributionScoreDriftThresholds[keys[i]] !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig.attributionScoreDriftThresholds: object expected"); - message.attributionScoreDriftThresholds[keys[i]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.attributionScoreDriftThresholds[keys[i]]); - } + } + if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify(message.modelDeploymentMonitoringScheduleConfig); + if (error) + return "modelDeploymentMonitoringScheduleConfig." + error; + } + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) { + var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.verify(message.loggingSamplingStrategy); + if (error) + return "loggingSamplingStrategy." + error; + } + if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify(message.modelMonitoringAlertConfig); + if (error) + return "modelMonitoringAlertConfig." + error; + } + if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) + if (!$util.isString(message.predictInstanceSchemaUri)) + return "predictInstanceSchemaUri: string expected"; + if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) { + var error = $root.google.protobuf.Value.verify(message.samplePredictInstance); + if (error) + return "samplePredictInstance." + error; + } + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + if (!$util.isString(message.analysisInstanceSchemaUri)) + return "analysisInstanceSchemaUri: string expected"; + if (message.bigqueryTables != null && message.hasOwnProperty("bigqueryTables")) { + if (!Array.isArray(message.bigqueryTables)) + return "bigqueryTables: array expected"; + for (var i = 0; i < message.bigqueryTables.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify(message.bigqueryTables[i]); + if (error) + return "bigqueryTables." + error; } - return message; - }; + } + if (message.logTtl != null && message.hasOwnProperty("logTtl")) { + var error = $root.google.protobuf.Duration.verify(message.logTtl); + if (error) + return "logTtl." + error; + } + if (message.labels != null && message.hasOwnProperty("labels")) { + if (!$util.isObject(message.labels)) + return "labels: object expected"; + var key = Object.keys(message.labels); + for (var i = 0; i < key.length; ++i) + if (!$util.isString(message.labels[key[i]])) + return "labels: string{k:string} expected"; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.createTime); + if (error) + return "createTime." + error; + } + if (message.updateTime != null && message.hasOwnProperty("updateTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.updateTime); + if (error) + return "updateTime." + error; + } + if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.nextScheduleTime); + if (error) + return "nextScheduleTime." + error; + } + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) { + var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.statsAnomaliesBaseDirectory); + if (error) + return "statsAnomaliesBaseDirectory." + error; + } + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) { + var error = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.verify(message.encryptionSpec); + if (error) + return "encryptionSpec." + error; + } + if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) + if (typeof message.enableMonitoringPipelineLogs !== "boolean") + return "enableMonitoringPipelineLogs: boolean expected"; + if (message.error != null && message.hasOwnProperty("error")) { + var error = $root.google.rpc.Status.verify(message.error); + if (error) + return "error." + error; + } + return null; + }; - /** - * Creates a plain object from a PredictionDriftDetectionConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig} message PredictionDriftDetectionConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - PredictionDriftDetectionConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.objects || options.defaults) { - object.driftThresholds = {}; - object.attributionScoreDriftThresholds = {}; - } - var keys2; - if (message.driftThresholds && (keys2 = Object.keys(message.driftThresholds)).length) { - object.driftThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.driftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.driftThresholds[keys2[j]], options); + /** + * Creates a ModelDeploymentMonitoringJob message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} ModelDeploymentMonitoringJob + */ + ModelDeploymentMonitoringJob.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob(); + if (object.name != null) + message.name = String(object.name); + if (object.displayName != null) + message.displayName = String(object.displayName); + if (object.endpoint != null) + message.endpoint = String(object.endpoint); + switch (object.state) { + case "JOB_STATE_UNSPECIFIED": + case 0: + message.state = 0; + break; + case "JOB_STATE_QUEUED": + case 1: + message.state = 1; + break; + case "JOB_STATE_PENDING": + case 2: + message.state = 2; + break; + case "JOB_STATE_RUNNING": + case 3: + message.state = 3; + break; + case "JOB_STATE_SUCCEEDED": + case 4: + message.state = 4; + break; + case "JOB_STATE_FAILED": + case 5: + message.state = 5; + break; + case "JOB_STATE_CANCELLING": + case 6: + message.state = 6; + break; + case "JOB_STATE_CANCELLED": + case 7: + message.state = 7; + break; + case "JOB_STATE_PAUSED": + case 8: + message.state = 8; + break; + case "JOB_STATE_EXPIRED": + case 9: + message.state = 9; + break; + case "JOB_STATE_UPDATING": + case 10: + message.state = 10; + break; + } + switch (object.scheduleState) { + case "MONITORING_SCHEDULE_STATE_UNSPECIFIED": + case 0: + message.scheduleState = 0; + break; + case "PENDING": + case 1: + message.scheduleState = 1; + break; + case "OFFLINE": + case 2: + message.scheduleState = 2; + break; + case "RUNNING": + case 3: + message.scheduleState = 3; + break; + } + if (object.latestMonitoringPipelineMetadata != null) { + if (typeof object.latestMonitoringPipelineMetadata !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.latestMonitoringPipelineMetadata: object expected"); + message.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.fromObject(object.latestMonitoringPipelineMetadata); + } + if (object.modelDeploymentMonitoringObjectiveConfigs) { + if (!Array.isArray(object.modelDeploymentMonitoringObjectiveConfigs)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: array expected"); + message.modelDeploymentMonitoringObjectiveConfigs = []; + for (var i = 0; i < object.modelDeploymentMonitoringObjectiveConfigs.length; ++i) { + if (typeof object.modelDeploymentMonitoringObjectiveConfigs[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringObjectiveConfigs: object expected"); + message.modelDeploymentMonitoringObjectiveConfigs[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.fromObject(object.modelDeploymentMonitoringObjectiveConfigs[i]); } - if (message.attributionScoreDriftThresholds && (keys2 = Object.keys(message.attributionScoreDriftThresholds)).length) { - object.attributionScoreDriftThresholds = {}; - for (var j = 0; j < keys2.length; ++j) - object.attributionScoreDriftThresholds[keys2[j]] = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.attributionScoreDriftThresholds[keys2[j]], options); + } + if (object.modelDeploymentMonitoringScheduleConfig != null) { + if (typeof object.modelDeploymentMonitoringScheduleConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelDeploymentMonitoringScheduleConfig: object expected"); + message.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.fromObject(object.modelDeploymentMonitoringScheduleConfig); + } + if (object.loggingSamplingStrategy != null) { + if (typeof object.loggingSamplingStrategy !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.loggingSamplingStrategy: object expected"); + message.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.fromObject(object.loggingSamplingStrategy); + } + if (object.modelMonitoringAlertConfig != null) { + if (typeof object.modelMonitoringAlertConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.modelMonitoringAlertConfig: object expected"); + message.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.fromObject(object.modelMonitoringAlertConfig); + } + if (object.predictInstanceSchemaUri != null) + message.predictInstanceSchemaUri = String(object.predictInstanceSchemaUri); + if (object.samplePredictInstance != null) { + if (typeof object.samplePredictInstance !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.samplePredictInstance: object expected"); + message.samplePredictInstance = $root.google.protobuf.Value.fromObject(object.samplePredictInstance); + } + if (object.analysisInstanceSchemaUri != null) + message.analysisInstanceSchemaUri = String(object.analysisInstanceSchemaUri); + if (object.bigqueryTables) { + if (!Array.isArray(object.bigqueryTables)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.bigqueryTables: array expected"); + message.bigqueryTables = []; + for (var i = 0; i < object.bigqueryTables.length; ++i) { + if (typeof object.bigqueryTables[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.bigqueryTables: object expected"); + message.bigqueryTables[i] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.fromObject(object.bigqueryTables[i]); } - return object; - }; + } + if (object.logTtl != null) { + if (typeof object.logTtl !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.logTtl: object expected"); + message.logTtl = $root.google.protobuf.Duration.fromObject(object.logTtl); + } + if (object.labels) { + if (typeof object.labels !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.labels: object expected"); + message.labels = {}; + for (var keys = Object.keys(object.labels), i = 0; i < keys.length; ++i) + message.labels[keys[i]] = String(object.labels[keys[i]]); + } + if (object.createTime != null) { + if (typeof object.createTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.createTime: object expected"); + message.createTime = $root.google.protobuf.Timestamp.fromObject(object.createTime); + } + if (object.updateTime != null) { + if (typeof object.updateTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.updateTime: object expected"); + message.updateTime = $root.google.protobuf.Timestamp.fromObject(object.updateTime); + } + if (object.nextScheduleTime != null) { + if (typeof object.nextScheduleTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.nextScheduleTime: object expected"); + message.nextScheduleTime = $root.google.protobuf.Timestamp.fromObject(object.nextScheduleTime); + } + if (object.statsAnomaliesBaseDirectory != null) { + if (typeof object.statsAnomaliesBaseDirectory !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.statsAnomaliesBaseDirectory: object expected"); + message.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.statsAnomaliesBaseDirectory); + } + if (object.encryptionSpec != null) { + if (typeof object.encryptionSpec !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.encryptionSpec: object expected"); + message.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.fromObject(object.encryptionSpec); + } + if (object.enableMonitoringPipelineLogs != null) + message.enableMonitoringPipelineLogs = Boolean(object.enableMonitoringPipelineLogs); + if (object.error != null) { + if (typeof object.error !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.error: object expected"); + message.error = $root.google.rpc.Status.fromObject(object.error); + } + return message; + }; - /** - * Converts this PredictionDriftDetectionConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.PredictionDriftDetectionConfig - * @instance - * @returns {Object.} JSON object - */ - PredictionDriftDetectionConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ModelDeploymentMonitoringJob message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob} message ModelDeploymentMonitoringJob + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringJob.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) { + object.modelDeploymentMonitoringObjectiveConfigs = []; + object.bigqueryTables = []; + } + if (options.objects || options.defaults) + object.labels = {}; + if (options.defaults) { + object.name = ""; + object.displayName = ""; + object.endpoint = ""; + object.state = options.enums === String ? "JOB_STATE_UNSPECIFIED" : 0; + object.scheduleState = options.enums === String ? "MONITORING_SCHEDULE_STATE_UNSPECIFIED" : 0; + object.modelDeploymentMonitoringScheduleConfig = null; + object.loggingSamplingStrategy = null; + object.predictInstanceSchemaUri = ""; + object.createTime = null; + object.updateTime = null; + object.nextScheduleTime = null; + object.modelMonitoringAlertConfig = null; + object.analysisInstanceSchemaUri = ""; + object.logTtl = null; + object.samplePredictInstance = null; + object.statsAnomaliesBaseDirectory = null; + object.encryptionSpec = null; + object.enableMonitoringPipelineLogs = false; + object.error = null; + object.latestMonitoringPipelineMetadata = null; + } + if (message.name != null && message.hasOwnProperty("name")) + object.name = message.name; + if (message.displayName != null && message.hasOwnProperty("displayName")) + object.displayName = message.displayName; + if (message.endpoint != null && message.hasOwnProperty("endpoint")) + object.endpoint = message.endpoint; + if (message.state != null && message.hasOwnProperty("state")) + object.state = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.JobState[message.state] : message.state; + if (message.scheduleState != null && message.hasOwnProperty("scheduleState")) + object.scheduleState = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState[message.scheduleState] : message.scheduleState; + if (message.modelDeploymentMonitoringObjectiveConfigs && message.modelDeploymentMonitoringObjectiveConfigs.length) { + object.modelDeploymentMonitoringObjectiveConfigs = []; + for (var j = 0; j < message.modelDeploymentMonitoringObjectiveConfigs.length; ++j) + object.modelDeploymentMonitoringObjectiveConfigs[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.toObject(message.modelDeploymentMonitoringObjectiveConfigs[j], options); + } + if (message.modelDeploymentMonitoringScheduleConfig != null && message.hasOwnProperty("modelDeploymentMonitoringScheduleConfig")) + object.modelDeploymentMonitoringScheduleConfig = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.toObject(message.modelDeploymentMonitoringScheduleConfig, options); + if (message.loggingSamplingStrategy != null && message.hasOwnProperty("loggingSamplingStrategy")) + object.loggingSamplingStrategy = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.toObject(message.loggingSamplingStrategy, options); + if (message.predictInstanceSchemaUri != null && message.hasOwnProperty("predictInstanceSchemaUri")) + object.predictInstanceSchemaUri = message.predictInstanceSchemaUri; + if (message.bigqueryTables && message.bigqueryTables.length) { + object.bigqueryTables = []; + for (var j = 0; j < message.bigqueryTables.length; ++j) + object.bigqueryTables[j] = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.toObject(message.bigqueryTables[j], options); + } + var keys2; + if (message.labels && (keys2 = Object.keys(message.labels)).length) { + object.labels = {}; + for (var j = 0; j < keys2.length; ++j) + object.labels[keys2[j]] = message.labels[keys2[j]]; + } + if (message.createTime != null && message.hasOwnProperty("createTime")) + object.createTime = $root.google.protobuf.Timestamp.toObject(message.createTime, options); + if (message.updateTime != null && message.hasOwnProperty("updateTime")) + object.updateTime = $root.google.protobuf.Timestamp.toObject(message.updateTime, options); + if (message.nextScheduleTime != null && message.hasOwnProperty("nextScheduleTime")) + object.nextScheduleTime = $root.google.protobuf.Timestamp.toObject(message.nextScheduleTime, options); + if (message.modelMonitoringAlertConfig != null && message.hasOwnProperty("modelMonitoringAlertConfig")) + object.modelMonitoringAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.toObject(message.modelMonitoringAlertConfig, options); + if (message.analysisInstanceSchemaUri != null && message.hasOwnProperty("analysisInstanceSchemaUri")) + object.analysisInstanceSchemaUri = message.analysisInstanceSchemaUri; + if (message.logTtl != null && message.hasOwnProperty("logTtl")) + object.logTtl = $root.google.protobuf.Duration.toObject(message.logTtl, options); + if (message.samplePredictInstance != null && message.hasOwnProperty("samplePredictInstance")) + object.samplePredictInstance = $root.google.protobuf.Value.toObject(message.samplePredictInstance, options); + if (message.statsAnomaliesBaseDirectory != null && message.hasOwnProperty("statsAnomaliesBaseDirectory")) + object.statsAnomaliesBaseDirectory = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.statsAnomaliesBaseDirectory, options); + if (message.encryptionSpec != null && message.hasOwnProperty("encryptionSpec")) + object.encryptionSpec = $root.google.cloud.aiplatform.v1beta1.EncryptionSpec.toObject(message.encryptionSpec, options); + if (message.enableMonitoringPipelineLogs != null && message.hasOwnProperty("enableMonitoringPipelineLogs")) + object.enableMonitoringPipelineLogs = message.enableMonitoringPipelineLogs; + if (message.error != null && message.hasOwnProperty("error")) + object.error = $root.google.rpc.Status.toObject(message.error, options); + if (message.latestMonitoringPipelineMetadata != null && message.hasOwnProperty("latestMonitoringPipelineMetadata")) + object.latestMonitoringPipelineMetadata = $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.toObject(message.latestMonitoringPipelineMetadata, options); + return object; + }; - return PredictionDriftDetectionConfig; - })(); + /** + * Converts this ModelDeploymentMonitoringJob to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringJob.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - ModelMonitoringObjectiveConfig.ExplanationConfig = (function() { + ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata = (function() { /** - * Properties of an ExplanationConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @interface IExplanationConfig - * @property {boolean|null} [enableFeatureAttributes] ExplanationConfig enableFeatureAttributes - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null} [explanationBaseline] ExplanationConfig explanationBaseline + * Properties of a LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @interface ILatestMonitoringPipelineMetadata + * @property {google.protobuf.ITimestamp|null} [runTime] LatestMonitoringPipelineMetadata runTime + * @property {google.rpc.IStatus|null} [status] LatestMonitoringPipelineMetadata status */ /** - * Constructs a new ExplanationConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig - * @classdesc Represents an ExplanationConfig. - * @implements IExplanationConfig + * Constructs a new LatestMonitoringPipelineMetadata. + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob + * @classdesc Represents a LatestMonitoringPipelineMetadata. + * @implements ILatestMonitoringPipelineMetadata * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set */ - function ExplanationConfig(properties) { + function LatestMonitoringPipelineMetadata(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -226491,88 +231682,88 @@ } /** - * ExplanationConfig enableFeatureAttributes. - * @member {boolean} enableFeatureAttributes - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * LatestMonitoringPipelineMetadata runTime. + * @member {google.protobuf.ITimestamp|null|undefined} runTime + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance */ - ExplanationConfig.prototype.enableFeatureAttributes = false; + LatestMonitoringPipelineMetadata.prototype.runTime = null; /** - * ExplanationConfig explanationBaseline. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline|null|undefined} explanationBaseline - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * LatestMonitoringPipelineMetadata status. + * @member {google.rpc.IStatus|null|undefined} status + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance */ - ExplanationConfig.prototype.explanationBaseline = null; + LatestMonitoringPipelineMetadata.prototype.status = null; /** - * Creates a new ExplanationConfig instance using the specified properties. + * Creates a new LatestMonitoringPipelineMetadata instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig instance + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata instance */ - ExplanationConfig.create = function create(properties) { - return new ExplanationConfig(properties); + LatestMonitoringPipelineMetadata.create = function create(properties) { + return new LatestMonitoringPipelineMetadata(properties); }; /** - * Encodes the specified ExplanationConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * Encodes the specified LatestMonitoringPipelineMetadata message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplanationConfig.encode = function encode(message, writer) { + LatestMonitoringPipelineMetadata.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.enableFeatureAttributes != null && Object.hasOwnProperty.call(message, "enableFeatureAttributes")) - writer.uint32(/* id 1, wireType 0 =*/8).bool(message.enableFeatureAttributes); - if (message.explanationBaseline != null && Object.hasOwnProperty.call(message, "explanationBaseline")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.encode(message.explanationBaseline, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.runTime != null && Object.hasOwnProperty.call(message, "runTime")) + $root.google.protobuf.Timestamp.encode(message.runTime, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.status != null && Object.hasOwnProperty.call(message, "status")) + $root.google.rpc.Status.encode(message.status, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ExplanationConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.verify|verify} messages. + * Encodes the specified LatestMonitoringPipelineMetadata message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.IExplanationConfig} message ExplanationConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.ILatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ExplanationConfig.encodeDelimited = function encodeDelimited(message, writer) { + LatestMonitoringPipelineMetadata.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes an ExplanationConfig message from the specified reader or buffer. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplanationConfig.decode = function decode(reader, length) { + LatestMonitoringPipelineMetadata.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.enableFeatureAttributes = reader.bool(); + message.runTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32()); break; case 2: - message.explanationBaseline = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.decode(reader, reader.uint32()); + message.status = $root.google.rpc.Status.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -226583,427 +231774,448 @@ }; /** - * Decodes an ExplanationConfig message from the specified reader or buffer, length delimited. + * Decodes a LatestMonitoringPipelineMetadata message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ExplanationConfig.decodeDelimited = function decodeDelimited(reader) { + LatestMonitoringPipelineMetadata.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies an ExplanationConfig message. + * Verifies a LatestMonitoringPipelineMetadata message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ExplanationConfig.verify = function verify(message) { + LatestMonitoringPipelineMetadata.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) - if (typeof message.enableFeatureAttributes !== "boolean") - return "enableFeatureAttributes: boolean expected"; - if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify(message.explanationBaseline); + if (message.runTime != null && message.hasOwnProperty("runTime")) { + var error = $root.google.protobuf.Timestamp.verify(message.runTime); if (error) - return "explanationBaseline." + error; + return "runTime." + error; + } + if (message.status != null && message.hasOwnProperty("status")) { + var error = $root.google.rpc.Status.verify(message.status); + if (error) + return "status." + error; } return null; }; /** - * Creates an ExplanationConfig message from a plain object. Also converts values to their respective internal types. + * Creates a LatestMonitoringPipelineMetadata message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} ExplanationConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} LatestMonitoringPipelineMetadata */ - ExplanationConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig) + LatestMonitoringPipelineMetadata.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig(); - if (object.enableFeatureAttributes != null) - message.enableFeatureAttributes = Boolean(object.enableFeatureAttributes); - if (object.explanationBaseline != null) { - if (typeof object.explanationBaseline !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.explanationBaseline: object expected"); - message.explanationBaseline = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.fromObject(object.explanationBaseline); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata(); + if (object.runTime != null) { + if (typeof object.runTime !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.runTime: object expected"); + message.runTime = $root.google.protobuf.Timestamp.fromObject(object.runTime); + } + if (object.status != null) { + if (typeof object.status !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata.status: object expected"); + message.status = $root.google.rpc.Status.fromObject(object.status); } return message; }; /** - * Creates a plain object from an ExplanationConfig message. Also converts values to other types if specified. + * Creates a plain object from a LatestMonitoringPipelineMetadata message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig} message ExplanationConfig + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata} message LatestMonitoringPipelineMetadata * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ExplanationConfig.toObject = function toObject(message, options) { + LatestMonitoringPipelineMetadata.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; if (options.defaults) { - object.enableFeatureAttributes = false; - object.explanationBaseline = null; + object.runTime = null; + object.status = null; } - if (message.enableFeatureAttributes != null && message.hasOwnProperty("enableFeatureAttributes")) - object.enableFeatureAttributes = message.enableFeatureAttributes; - if (message.explanationBaseline != null && message.hasOwnProperty("explanationBaseline")) - object.explanationBaseline = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.toObject(message.explanationBaseline, options); + if (message.runTime != null && message.hasOwnProperty("runTime")) + object.runTime = $root.google.protobuf.Timestamp.toObject(message.runTime, options); + if (message.status != null && message.hasOwnProperty("status")) + object.status = $root.google.rpc.Status.toObject(message.status, options); return object; }; /** - * Converts this ExplanationConfig to JSON. + * Converts this LatestMonitoringPipelineMetadata to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.LatestMonitoringPipelineMetadata * @instance * @returns {Object.} JSON object */ - ExplanationConfig.prototype.toJSON = function toJSON() { + LatestMonitoringPipelineMetadata.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ExplanationConfig.ExplanationBaseline = (function() { + return LatestMonitoringPipelineMetadata; + })(); - /** - * Properties of an ExplanationBaseline. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig - * @interface IExplanationBaseline - * @property {google.cloud.aiplatform.v1beta1.IGcsDestination|null} [gcs] ExplanationBaseline gcs - * @property {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null} [bigquery] ExplanationBaseline bigquery - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat|null} [predictionFormat] ExplanationBaseline predictionFormat - */ + /** + * MonitoringScheduleState enum. + * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob.MonitoringScheduleState + * @enum {number} + * @property {number} MONITORING_SCHEDULE_STATE_UNSPECIFIED=0 MONITORING_SCHEDULE_STATE_UNSPECIFIED value + * @property {number} PENDING=1 PENDING value + * @property {number} OFFLINE=2 OFFLINE value + * @property {number} RUNNING=3 RUNNING value + */ + ModelDeploymentMonitoringJob.MonitoringScheduleState = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "MONITORING_SCHEDULE_STATE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PENDING"] = 1; + values[valuesById[2] = "OFFLINE"] = 2; + values[valuesById[3] = "RUNNING"] = 3; + return values; + })(); - /** - * Constructs a new ExplanationBaseline. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig - * @classdesc Represents an ExplanationBaseline. - * @implements IExplanationBaseline - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set - */ - function ExplanationBaseline(properties) { - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } + return ModelDeploymentMonitoringJob; + })(); - /** - * ExplanationBaseline gcs. - * @member {google.cloud.aiplatform.v1beta1.IGcsDestination|null|undefined} gcs - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.gcs = null; + v1beta1.ModelDeploymentMonitoringBigQueryTable = (function() { - /** - * ExplanationBaseline bigquery. - * @member {google.cloud.aiplatform.v1beta1.IBigQueryDestination|null|undefined} bigquery - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.bigquery = null; + /** + * Properties of a ModelDeploymentMonitoringBigQueryTable. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IModelDeploymentMonitoringBigQueryTable + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource|null} [logSource] ModelDeploymentMonitoringBigQueryTable logSource + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType|null} [logType] ModelDeploymentMonitoringBigQueryTable logType + * @property {string|null} [bigqueryTablePath] ModelDeploymentMonitoringBigQueryTable bigqueryTablePath + */ - /** - * ExplanationBaseline predictionFormat. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat} predictionFormat - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - ExplanationBaseline.prototype.predictionFormat = 0; + /** + * Constructs a new ModelDeploymentMonitoringBigQueryTable. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a ModelDeploymentMonitoringBigQueryTable. + * @implements IModelDeploymentMonitoringBigQueryTable + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + */ + function ModelDeploymentMonitoringBigQueryTable(properties) { + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + /** + * ModelDeploymentMonitoringBigQueryTable logSource. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource} logSource + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.logSource = 0; - /** - * ExplanationBaseline destination. - * @member {"gcs"|"bigquery"|undefined} destination - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - */ - Object.defineProperty(ExplanationBaseline.prototype, "destination", { - get: $util.oneOfGetter($oneOfFields = ["gcs", "bigquery"]), - set: $util.oneOfSetter($oneOfFields) - }); + /** + * ModelDeploymentMonitoringBigQueryTable logType. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType} logType + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.logType = 0; - /** - * Creates a new ExplanationBaseline instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline instance - */ - ExplanationBaseline.create = function create(properties) { - return new ExplanationBaseline(properties); - }; + /** + * ModelDeploymentMonitoringBigQueryTable bigqueryTablePath. + * @member {string} bigqueryTablePath + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @instance + */ + ModelDeploymentMonitoringBigQueryTable.prototype.bigqueryTablePath = ""; - /** - * Encodes the specified ExplanationBaseline message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExplanationBaseline.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.predictionFormat != null && Object.hasOwnProperty.call(message, "predictionFormat")) - writer.uint32(/* id 1, wireType 0 =*/8).int32(message.predictionFormat); - if (message.gcs != null && Object.hasOwnProperty.call(message, "gcs")) - $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.gcs, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); - if (message.bigquery != null && Object.hasOwnProperty.call(message, "bigquery")) - $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.encode(message.bigquery, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); - return writer; - }; + /** + * Creates a new ModelDeploymentMonitoringBigQueryTable instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable instance + */ + ModelDeploymentMonitoringBigQueryTable.create = function create(properties) { + return new ModelDeploymentMonitoringBigQueryTable(properties); + }; - /** - * Encodes the specified ExplanationBaseline message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.IExplanationBaseline} message ExplanationBaseline message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - ExplanationBaseline.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringBigQueryTable.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.logSource != null && Object.hasOwnProperty.call(message, "logSource")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.logSource); + if (message.logType != null && Object.hasOwnProperty.call(message, "logType")) + writer.uint32(/* id 2, wireType 0 =*/16).int32(message.logType); + if (message.bigqueryTablePath != null && Object.hasOwnProperty.call(message, "bigqueryTablePath")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.bigqueryTablePath); + return writer; + }; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExplanationBaseline.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 2: - message.gcs = $root.google.cloud.aiplatform.v1beta1.GcsDestination.decode(reader, reader.uint32()); - break; - case 3: - message.bigquery = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.decode(reader, reader.uint32()); - break; - case 1: - message.predictionFormat = reader.int32(); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; + /** + * Encodes the specified ModelDeploymentMonitoringBigQueryTable message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + ModelDeploymentMonitoringBigQueryTable.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; - /** - * Decodes an ExplanationBaseline message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - ExplanationBaseline.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringBigQueryTable.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.logSource = reader.int32(); + break; + case 2: + message.logType = reader.int32(); + break; + case 3: + message.bigqueryTablePath = reader.string(); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; - /** - * Verifies an ExplanationBaseline message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - ExplanationBaseline.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - var properties = {}; - if (message.gcs != null && message.hasOwnProperty("gcs")) { - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.GcsDestination.verify(message.gcs); - if (error) - return "gcs." + error; - } - } - if (message.bigquery != null && message.hasOwnProperty("bigquery")) { - if (properties.destination === 1) - return "destination: multiple values"; - properties.destination = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.verify(message.bigquery); - if (error) - return "bigquery." + error; - } - } - if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) - switch (message.predictionFormat) { - default: - return "predictionFormat: enum value expected"; - case 0: - case 2: - case 3: - break; - } - return null; - }; + /** + * Decodes a ModelDeploymentMonitoringBigQueryTable message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + ModelDeploymentMonitoringBigQueryTable.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; - /** - * Creates an ExplanationBaseline message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} ExplanationBaseline - */ - ExplanationBaseline.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline(); - if (object.gcs != null) { - if (typeof object.gcs !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.gcs: object expected"); - message.gcs = $root.google.cloud.aiplatform.v1beta1.GcsDestination.fromObject(object.gcs); - } - if (object.bigquery != null) { - if (typeof object.bigquery !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.bigquery: object expected"); - message.bigquery = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.fromObject(object.bigquery); - } - switch (object.predictionFormat) { - case "PREDICTION_FORMAT_UNSPECIFIED": - case 0: - message.predictionFormat = 0; - break; - case "JSONL": - case 2: - message.predictionFormat = 2; - break; - case "BIGQUERY": - case 3: - message.predictionFormat = 3; - break; - } - return message; - }; + /** + * Verifies a ModelDeploymentMonitoringBigQueryTable message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + ModelDeploymentMonitoringBigQueryTable.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.logSource != null && message.hasOwnProperty("logSource")) + switch (message.logSource) { + default: + return "logSource: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.logType != null && message.hasOwnProperty("logType")) + switch (message.logType) { + default: + return "logType: enum value expected"; + case 0: + case 1: + case 2: + break; + } + if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) + if (!$util.isString(message.bigqueryTablePath)) + return "bigqueryTablePath: string expected"; + return null; + }; - /** - * Creates a plain object from an ExplanationBaseline message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline} message ExplanationBaseline - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - ExplanationBaseline.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.defaults) - object.predictionFormat = options.enums === String ? "PREDICTION_FORMAT_UNSPECIFIED" : 0; - if (message.predictionFormat != null && message.hasOwnProperty("predictionFormat")) - object.predictionFormat = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat[message.predictionFormat] : message.predictionFormat; - if (message.gcs != null && message.hasOwnProperty("gcs")) { - object.gcs = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.gcs, options); - if (options.oneofs) - object.destination = "gcs"; - } - if (message.bigquery != null && message.hasOwnProperty("bigquery")) { - object.bigquery = $root.google.cloud.aiplatform.v1beta1.BigQueryDestination.toObject(message.bigquery, options); - if (options.oneofs) - object.destination = "bigquery"; - } - return object; - }; + /** + * Creates a ModelDeploymentMonitoringBigQueryTable message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} ModelDeploymentMonitoringBigQueryTable + */ + ModelDeploymentMonitoringBigQueryTable.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable(); + switch (object.logSource) { + case "LOG_SOURCE_UNSPECIFIED": + case 0: + message.logSource = 0; + break; + case "TRAINING": + case 1: + message.logSource = 1; + break; + case "SERVING": + case 2: + message.logSource = 2; + break; + } + switch (object.logType) { + case "LOG_TYPE_UNSPECIFIED": + case 0: + message.logType = 0; + break; + case "PREDICT": + case 1: + message.logType = 1; + break; + case "EXPLAIN": + case 2: + message.logType = 2; + break; + } + if (object.bigqueryTablePath != null) + message.bigqueryTablePath = String(object.bigqueryTablePath); + return message; + }; - /** - * Converts this ExplanationBaseline to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline - * @instance - * @returns {Object.} JSON object - */ - ExplanationBaseline.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; + /** + * Creates a plain object from a ModelDeploymentMonitoringBigQueryTable message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @static + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable} message ModelDeploymentMonitoringBigQueryTable + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + ModelDeploymentMonitoringBigQueryTable.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.defaults) { + object.logSource = options.enums === String ? "LOG_SOURCE_UNSPECIFIED" : 0; + object.logType = options.enums === String ? "LOG_TYPE_UNSPECIFIED" : 0; + object.bigqueryTablePath = ""; + } + if (message.logSource != null && message.hasOwnProperty("logSource")) + object.logSource = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource[message.logSource] : message.logSource; + if (message.logType != null && message.hasOwnProperty("logType")) + object.logType = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType[message.logType] : message.logType; + if (message.bigqueryTablePath != null && message.hasOwnProperty("bigqueryTablePath")) + object.bigqueryTablePath = message.bigqueryTablePath; + return object; + }; - /** - * PredictionFormat enum. - * @name google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.ExplanationConfig.ExplanationBaseline.PredictionFormat - * @enum {number} - * @property {number} PREDICTION_FORMAT_UNSPECIFIED=0 PREDICTION_FORMAT_UNSPECIFIED value - * @property {number} JSONL=2 JSONL value - * @property {number} BIGQUERY=3 BIGQUERY value - */ - ExplanationBaseline.PredictionFormat = (function() { - var valuesById = {}, values = Object.create(valuesById); - values[valuesById[0] = "PREDICTION_FORMAT_UNSPECIFIED"] = 0; - values[valuesById[2] = "JSONL"] = 2; - values[valuesById[3] = "BIGQUERY"] = 3; - return values; - })(); + /** + * Converts this ModelDeploymentMonitoringBigQueryTable to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable + * @instance + * @returns {Object.} JSON object + */ + ModelDeploymentMonitoringBigQueryTable.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; - return ExplanationBaseline; - })(); + /** + * LogSource enum. + * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogSource + * @enum {number} + * @property {number} LOG_SOURCE_UNSPECIFIED=0 LOG_SOURCE_UNSPECIFIED value + * @property {number} TRAINING=1 TRAINING value + * @property {number} SERVING=2 SERVING value + */ + ModelDeploymentMonitoringBigQueryTable.LogSource = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_SOURCE_UNSPECIFIED"] = 0; + values[valuesById[1] = "TRAINING"] = 1; + values[valuesById[2] = "SERVING"] = 2; + return values; + })(); - return ExplanationConfig; + /** + * LogType enum. + * @name google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringBigQueryTable.LogType + * @enum {number} + * @property {number} LOG_TYPE_UNSPECIFIED=0 LOG_TYPE_UNSPECIFIED value + * @property {number} PREDICT=1 PREDICT value + * @property {number} EXPLAIN=2 EXPLAIN value + */ + ModelDeploymentMonitoringBigQueryTable.LogType = (function() { + var valuesById = {}, values = Object.create(valuesById); + values[valuesById[0] = "LOG_TYPE_UNSPECIFIED"] = 0; + values[valuesById[1] = "PREDICT"] = 1; + values[valuesById[2] = "EXPLAIN"] = 2; + return values; })(); - return ModelMonitoringObjectiveConfig; + return ModelDeploymentMonitoringBigQueryTable; })(); - v1beta1.ModelMonitoringAlertConfig = (function() { + v1beta1.ModelDeploymentMonitoringObjectiveConfig = (function() { /** - * Properties of a ModelMonitoringAlertConfig. + * Properties of a ModelDeploymentMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IModelMonitoringAlertConfig - * @property {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null} [emailAlertConfig] ModelMonitoringAlertConfig emailAlertConfig - * @property {boolean|null} [enableLogging] ModelMonitoringAlertConfig enableLogging + * @interface IModelDeploymentMonitoringObjectiveConfig + * @property {string|null} [deployedModelId] ModelDeploymentMonitoringObjectiveConfig deployedModelId + * @property {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null} [objectiveConfig] ModelDeploymentMonitoringObjectiveConfig objectiveConfig */ /** - * Constructs a new ModelMonitoringAlertConfig. + * Constructs a new ModelDeploymentMonitoringObjectiveConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ModelMonitoringAlertConfig. - * @implements IModelMonitoringAlertConfig + * @classdesc Represents a ModelDeploymentMonitoringObjectiveConfig. + * @implements IModelDeploymentMonitoringObjectiveConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set */ - function ModelMonitoringAlertConfig(properties) { + function ModelDeploymentMonitoringObjectiveConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -227011,102 +232223,88 @@ } /** - * ModelMonitoringAlertConfig emailAlertConfig. - * @member {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig|null|undefined} emailAlertConfig - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig - * @instance - */ - ModelMonitoringAlertConfig.prototype.emailAlertConfig = null; - - /** - * ModelMonitoringAlertConfig enableLogging. - * @member {boolean} enableLogging - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * ModelDeploymentMonitoringObjectiveConfig deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @instance */ - ModelMonitoringAlertConfig.prototype.enableLogging = false; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ModelDeploymentMonitoringObjectiveConfig.prototype.deployedModelId = ""; /** - * ModelMonitoringAlertConfig alert. - * @member {"emailAlertConfig"|undefined} alert - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * ModelDeploymentMonitoringObjectiveConfig objectiveConfig. + * @member {google.cloud.aiplatform.v1beta1.IModelMonitoringObjectiveConfig|null|undefined} objectiveConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @instance */ - Object.defineProperty(ModelMonitoringAlertConfig.prototype, "alert", { - get: $util.oneOfGetter($oneOfFields = ["emailAlertConfig"]), - set: $util.oneOfSetter($oneOfFields) - }); + ModelDeploymentMonitoringObjectiveConfig.prototype.objectiveConfig = null; /** - * Creates a new ModelMonitoringAlertConfig instance using the specified properties. + * Creates a new ModelDeploymentMonitoringObjectiveConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig instance + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig instance */ - ModelMonitoringAlertConfig.create = function create(properties) { - return new ModelMonitoringAlertConfig(properties); + ModelDeploymentMonitoringObjectiveConfig.create = function create(properties) { + return new ModelDeploymentMonitoringObjectiveConfig(properties); }; /** - * Encodes the specified ModelMonitoringAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringAlertConfig.encode = function encode(message, writer) { + ModelDeploymentMonitoringObjectiveConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.emailAlertConfig != null && Object.hasOwnProperty.call(message, "emailAlertConfig")) - $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.encode(message.emailAlertConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); - if (message.enableLogging != null && Object.hasOwnProperty.call(message, "enableLogging")) - writer.uint32(/* id 2, wireType 0 =*/16).bool(message.enableLogging); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.deployedModelId); + if (message.objectiveConfig != null && Object.hasOwnProperty.call(message, "objectiveConfig")) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.encode(message.objectiveConfig, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ModelMonitoringAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringObjectiveConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringAlertConfig} message ModelMonitoringAlertConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ModelMonitoringAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringObjectiveConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringAlertConfig.decode = function decode(reader, length) { + ModelDeploymentMonitoringObjectiveConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.emailAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.decode(reader, reader.uint32()); + message.deployedModelId = reader.string(); break; case 2: - message.enableLogging = reader.bool(); + message.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -227117,329 +232315,122 @@ }; /** - * Decodes a ModelMonitoringAlertConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringObjectiveConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ModelMonitoringAlertConfig.decodeDelimited = function decodeDelimited(reader) { + ModelDeploymentMonitoringObjectiveConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ModelMonitoringAlertConfig message. + * Verifies a ModelDeploymentMonitoringObjectiveConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ModelMonitoringAlertConfig.verify = function verify(message) { + ModelDeploymentMonitoringObjectiveConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { - properties.alert = 1; - { - var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify(message.emailAlertConfig); - if (error) - return "emailAlertConfig." + error; - } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.verify(message.objectiveConfig); + if (error) + return "objectiveConfig." + error; } - if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) - if (typeof message.enableLogging !== "boolean") - return "enableLogging: boolean expected"; return null; }; /** - * Creates a ModelMonitoringAlertConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringObjectiveConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} ModelMonitoringAlertConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} ModelDeploymentMonitoringObjectiveConfig */ - ModelMonitoringAlertConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig) + ModelDeploymentMonitoringObjectiveConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig(); - if (object.emailAlertConfig != null) { - if (typeof object.emailAlertConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.emailAlertConfig: object expected"); - message.emailAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.fromObject(object.emailAlertConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig(); + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.objectiveConfig != null) { + if (typeof object.objectiveConfig !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig.objectiveConfig: object expected"); + message.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.fromObject(object.objectiveConfig); } - if (object.enableLogging != null) - message.enableLogging = Boolean(object.enableLogging); return message; }; /** - * Creates a plain object from a ModelMonitoringAlertConfig message. Also converts values to other types if specified. + * Creates a plain object from a ModelDeploymentMonitoringObjectiveConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig} message ModelMonitoringAlertConfig + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig} message ModelDeploymentMonitoringObjectiveConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ModelMonitoringAlertConfig.toObject = function toObject(message, options) { + ModelDeploymentMonitoringObjectiveConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.enableLogging = false; - if (message.emailAlertConfig != null && message.hasOwnProperty("emailAlertConfig")) { - object.emailAlertConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.toObject(message.emailAlertConfig, options); - if (options.oneofs) - object.alert = "emailAlertConfig"; + if (options.defaults) { + object.deployedModelId = ""; + object.objectiveConfig = null; } - if (message.enableLogging != null && message.hasOwnProperty("enableLogging")) - object.enableLogging = message.enableLogging; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.objectiveConfig != null && message.hasOwnProperty("objectiveConfig")) + object.objectiveConfig = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringObjectiveConfig.toObject(message.objectiveConfig, options); return object; }; /** - * Converts this ModelMonitoringAlertConfig to JSON. + * Converts this ModelDeploymentMonitoringObjectiveConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveConfig * @instance * @returns {Object.} JSON object */ - ModelMonitoringAlertConfig.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringObjectiveConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - ModelMonitoringAlertConfig.EmailAlertConfig = (function() { - - /** - * Properties of an EmailAlertConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig - * @interface IEmailAlertConfig - * @property {Array.|null} [userEmails] EmailAlertConfig userEmails - */ - - /** - * Constructs a new EmailAlertConfig. - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig - * @classdesc Represents an EmailAlertConfig. - * @implements IEmailAlertConfig - * @constructor - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set - */ - function EmailAlertConfig(properties) { - this.userEmails = []; - if (properties) - for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) - if (properties[keys[i]] != null) - this[keys[i]] = properties[keys[i]]; - } - - /** - * EmailAlertConfig userEmails. - * @member {Array.} userEmails - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig - * @instance - */ - EmailAlertConfig.prototype.userEmails = $util.emptyArray; - - /** - * Creates a new EmailAlertConfig instance using the specified properties. - * @function create - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig instance - */ - EmailAlertConfig.create = function create(properties) { - return new EmailAlertConfig(properties); - }; - - /** - * Encodes the specified EmailAlertConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailAlertConfig.encode = function encode(message, writer) { - if (!writer) - writer = $Writer.create(); - if (message.userEmails != null && message.userEmails.length) - for (var i = 0; i < message.userEmails.length; ++i) - writer.uint32(/* id 1, wireType 2 =*/10).string(message.userEmails[i]); - return writer; - }; - - /** - * Encodes the specified EmailAlertConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.verify|verify} messages. - * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.IEmailAlertConfig} message EmailAlertConfig message or plain object to encode - * @param {$protobuf.Writer} [writer] Writer to encode to - * @returns {$protobuf.Writer} Writer - */ - EmailAlertConfig.encodeDelimited = function encodeDelimited(message, writer) { - return this.encode(message, writer).ldelim(); - }; - - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer. - * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailAlertConfig.decode = function decode(reader, length) { - if (!(reader instanceof $Reader)) - reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig(); - while (reader.pos < end) { - var tag = reader.uint32(); - switch (tag >>> 3) { - case 1: - if (!(message.userEmails && message.userEmails.length)) - message.userEmails = []; - message.userEmails.push(reader.string()); - break; - default: - reader.skipType(tag & 7); - break; - } - } - return message; - }; - - /** - * Decodes an EmailAlertConfig message from the specified reader or buffer, length delimited. - * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig - * @throws {Error} If the payload is not a reader or valid buffer - * @throws {$protobuf.util.ProtocolError} If required fields are missing - */ - EmailAlertConfig.decodeDelimited = function decodeDelimited(reader) { - if (!(reader instanceof $Reader)) - reader = new $Reader(reader); - return this.decode(reader, reader.uint32()); - }; - - /** - * Verifies an EmailAlertConfig message. - * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {Object.} message Plain object to verify - * @returns {string|null} `null` if valid, otherwise the reason why it is not - */ - EmailAlertConfig.verify = function verify(message) { - if (typeof message !== "object" || message === null) - return "object expected"; - if (message.userEmails != null && message.hasOwnProperty("userEmails")) { - if (!Array.isArray(message.userEmails)) - return "userEmails: array expected"; - for (var i = 0; i < message.userEmails.length; ++i) - if (!$util.isString(message.userEmails[i])) - return "userEmails: string[] expected"; - } - return null; - }; - - /** - * Creates an EmailAlertConfig message from a plain object. Also converts values to their respective internal types. - * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} EmailAlertConfig - */ - EmailAlertConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig) - return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig(); - if (object.userEmails) { - if (!Array.isArray(object.userEmails)) - throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig.userEmails: array expected"); - message.userEmails = []; - for (var i = 0; i < object.userEmails.length; ++i) - message.userEmails[i] = String(object.userEmails[i]); - } - return message; - }; - - /** - * Creates a plain object from an EmailAlertConfig message. Also converts values to other types if specified. - * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig - * @static - * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig} message EmailAlertConfig - * @param {$protobuf.IConversionOptions} [options] Conversion options - * @returns {Object.} Plain object - */ - EmailAlertConfig.toObject = function toObject(message, options) { - if (!options) - options = {}; - var object = {}; - if (options.arrays || options.defaults) - object.userEmails = []; - if (message.userEmails && message.userEmails.length) { - object.userEmails = []; - for (var j = 0; j < message.userEmails.length; ++j) - object.userEmails[j] = message.userEmails[j]; - } - return object; - }; - - /** - * Converts this EmailAlertConfig to JSON. - * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringAlertConfig.EmailAlertConfig - * @instance - * @returns {Object.} JSON object - */ - EmailAlertConfig.prototype.toJSON = function toJSON() { - return this.constructor.toObject(this, $protobuf.util.toJSONOptions); - }; - - return EmailAlertConfig; - })(); - - return ModelMonitoringAlertConfig; + return ModelDeploymentMonitoringObjectiveConfig; })(); - v1beta1.ThresholdConfig = (function() { + v1beta1.ModelDeploymentMonitoringScheduleConfig = (function() { /** - * Properties of a ThresholdConfig. + * Properties of a ModelDeploymentMonitoringScheduleConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @interface IThresholdConfig - * @property {number|null} [value] ThresholdConfig value + * @interface IModelDeploymentMonitoringScheduleConfig + * @property {google.protobuf.IDuration|null} [monitorInterval] ModelDeploymentMonitoringScheduleConfig monitorInterval + * @property {google.protobuf.IDuration|null} [monitorWindow] ModelDeploymentMonitoringScheduleConfig monitorWindow */ /** - * Constructs a new ThresholdConfig. + * Constructs a new ModelDeploymentMonitoringScheduleConfig. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a ThresholdConfig. - * @implements IThresholdConfig + * @classdesc Represents a ModelDeploymentMonitoringScheduleConfig. + * @implements IModelDeploymentMonitoringScheduleConfig * @constructor - * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set */ - function ThresholdConfig(properties) { + function ModelDeploymentMonitoringScheduleConfig(properties) { if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -227447,89 +232438,88 @@ } /** - * ThresholdConfig value. - * @member {number|null|undefined} value - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * ModelDeploymentMonitoringScheduleConfig monitorInterval. + * @member {google.protobuf.IDuration|null|undefined} monitorInterval + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @instance */ - ThresholdConfig.prototype.value = null; - - // OneOf field names bound to virtual getters and setters - var $oneOfFields; + ModelDeploymentMonitoringScheduleConfig.prototype.monitorInterval = null; /** - * ThresholdConfig threshold. - * @member {"value"|undefined} threshold - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * ModelDeploymentMonitoringScheduleConfig monitorWindow. + * @member {google.protobuf.IDuration|null|undefined} monitorWindow + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @instance */ - Object.defineProperty(ThresholdConfig.prototype, "threshold", { - get: $util.oneOfGetter($oneOfFields = ["value"]), - set: $util.oneOfSetter($oneOfFields) - }); + ModelDeploymentMonitoringScheduleConfig.prototype.monitorWindow = null; /** - * Creates a new ThresholdConfig instance using the specified properties. + * Creates a new ModelDeploymentMonitoringScheduleConfig instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig instance + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig instance */ - ThresholdConfig.create = function create(properties) { - return new ThresholdConfig(properties); + ModelDeploymentMonitoringScheduleConfig.create = function create(properties) { + return new ModelDeploymentMonitoringScheduleConfig(properties); }; /** - * Encodes the specified ThresholdConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig} message ThresholdConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ThresholdConfig.encode = function encode(message, writer) { + ModelDeploymentMonitoringScheduleConfig.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.value != null && Object.hasOwnProperty.call(message, "value")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.value); + if (message.monitorInterval != null && Object.hasOwnProperty.call(message, "monitorInterval")) + $root.google.protobuf.Duration.encode(message.monitorInterval, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.monitorWindow != null && Object.hasOwnProperty.call(message, "monitorWindow")) + $root.google.protobuf.Duration.encode(message.monitorWindow, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); return writer; }; /** - * Encodes the specified ThresholdConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ThresholdConfig.verify|verify} messages. + * Encodes the specified ModelDeploymentMonitoringScheduleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.IThresholdConfig} message ThresholdConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - ThresholdConfig.encodeDelimited = function encodeDelimited(message, writer) { + ModelDeploymentMonitoringScheduleConfig.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a ThresholdConfig message from the specified reader or buffer. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ThresholdConfig.decode = function decode(reader, length) { + ModelDeploymentMonitoringScheduleConfig.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ThresholdConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.value = reader.double(); + message.monitorInterval = $root.google.protobuf.Duration.decode(reader, reader.uint32()); + break; + case 2: + message.monitorWindow = $root.google.protobuf.Duration.decode(reader, reader.uint32()); break; default: reader.skipType(tag & 7); @@ -227540,111 +232530,130 @@ }; /** - * Decodes a ThresholdConfig message from the specified reader or buffer, length delimited. + * Decodes a ModelDeploymentMonitoringScheduleConfig message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - ThresholdConfig.decodeDelimited = function decodeDelimited(reader) { + ModelDeploymentMonitoringScheduleConfig.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a ThresholdConfig message. + * Verifies a ModelDeploymentMonitoringScheduleConfig message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - ThresholdConfig.verify = function verify(message) { + ModelDeploymentMonitoringScheduleConfig.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - var properties = {}; - if (message.value != null && message.hasOwnProperty("value")) { - properties.threshold = 1; - if (typeof message.value !== "number") - return "value: number expected"; + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) { + var error = $root.google.protobuf.Duration.verify(message.monitorInterval); + if (error) + return "monitorInterval." + error; + } + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) { + var error = $root.google.protobuf.Duration.verify(message.monitorWindow); + if (error) + return "monitorWindow." + error; } return null; }; /** - * Creates a ThresholdConfig message from a plain object. Also converts values to their respective internal types. + * Creates a ModelDeploymentMonitoringScheduleConfig message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.ThresholdConfig} ThresholdConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} ModelDeploymentMonitoringScheduleConfig */ - ThresholdConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.ThresholdConfig) + ModelDeploymentMonitoringScheduleConfig.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.ThresholdConfig(); - if (object.value != null) - message.value = Number(object.value); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig(); + if (object.monitorInterval != null) { + if (typeof object.monitorInterval !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitorInterval: object expected"); + message.monitorInterval = $root.google.protobuf.Duration.fromObject(object.monitorInterval); + } + if (object.monitorWindow != null) { + if (typeof object.monitorWindow !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig.monitorWindow: object expected"); + message.monitorWindow = $root.google.protobuf.Duration.fromObject(object.monitorWindow); + } return message; }; /** - * Creates a plain object from a ThresholdConfig message. Also converts values to other types if specified. + * Creates a plain object from a ModelDeploymentMonitoringScheduleConfig message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @static - * @param {google.cloud.aiplatform.v1beta1.ThresholdConfig} message ThresholdConfig + * @param {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig} message ModelDeploymentMonitoringScheduleConfig * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - ThresholdConfig.toObject = function toObject(message, options) { + ModelDeploymentMonitoringScheduleConfig.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (message.value != null && message.hasOwnProperty("value")) { - object.value = options.json && !isFinite(message.value) ? String(message.value) : message.value; - if (options.oneofs) - object.threshold = "value"; + if (options.defaults) { + object.monitorInterval = null; + object.monitorWindow = null; } + if (message.monitorInterval != null && message.hasOwnProperty("monitorInterval")) + object.monitorInterval = $root.google.protobuf.Duration.toObject(message.monitorInterval, options); + if (message.monitorWindow != null && message.hasOwnProperty("monitorWindow")) + object.monitorWindow = $root.google.protobuf.Duration.toObject(message.monitorWindow, options); return object; }; /** - * Converts this ThresholdConfig to JSON. + * Converts this ModelDeploymentMonitoringScheduleConfig to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.ThresholdConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringScheduleConfig * @instance * @returns {Object.} JSON object */ - ThresholdConfig.prototype.toJSON = function toJSON() { + ModelDeploymentMonitoringScheduleConfig.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return ThresholdConfig; + return ModelDeploymentMonitoringScheduleConfig; })(); - v1beta1.SamplingStrategy = (function() { + v1beta1.ModelMonitoringStatsAnomalies = (function() { /** - * Properties of a SamplingStrategy. + * Properties of a ModelMonitoringStatsAnomalies. * @memberof google.cloud.aiplatform.v1beta1 - * @interface ISamplingStrategy - * @property {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null} [randomSampleConfig] SamplingStrategy randomSampleConfig + * @interface IModelMonitoringStatsAnomalies + * @property {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType|null} [objective] ModelMonitoringStatsAnomalies objective + * @property {string|null} [deployedModelId] ModelMonitoringStatsAnomalies deployedModelId + * @property {number|null} [anomalyCount] ModelMonitoringStatsAnomalies anomalyCount + * @property {Array.|null} [featureStats] ModelMonitoringStatsAnomalies featureStats */ /** - * Constructs a new SamplingStrategy. + * Constructs a new ModelMonitoringStatsAnomalies. * @memberof google.cloud.aiplatform.v1beta1 - * @classdesc Represents a SamplingStrategy. - * @implements ISamplingStrategy + * @classdesc Represents a ModelMonitoringStatsAnomalies. + * @implements IModelMonitoringStatsAnomalies * @constructor - * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set */ - function SamplingStrategy(properties) { + function ModelMonitoringStatsAnomalies(properties) { + this.featureStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -227652,75 +232661,117 @@ } /** - * SamplingStrategy randomSampleConfig. - * @member {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig|null|undefined} randomSampleConfig - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * ModelMonitoringStatsAnomalies objective. + * @member {google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType} objective + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @instance */ - SamplingStrategy.prototype.randomSampleConfig = null; + ModelMonitoringStatsAnomalies.prototype.objective = 0; /** - * Creates a new SamplingStrategy instance using the specified properties. + * ModelMonitoringStatsAnomalies deployedModelId. + * @member {string} deployedModelId + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.deployedModelId = ""; + + /** + * ModelMonitoringStatsAnomalies anomalyCount. + * @member {number} anomalyCount + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.anomalyCount = 0; + + /** + * ModelMonitoringStatsAnomalies featureStats. + * @member {Array.} featureStats + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @instance + */ + ModelMonitoringStatsAnomalies.prototype.featureStats = $util.emptyArray; + + /** + * Creates a new ModelMonitoringStatsAnomalies instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy instance + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies instance */ - SamplingStrategy.create = function create(properties) { - return new SamplingStrategy(properties); + ModelMonitoringStatsAnomalies.create = function create(properties) { + return new ModelMonitoringStatsAnomalies(properties); }; /** - * Encodes the specified SamplingStrategy message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. + * Encodes the specified ModelMonitoringStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy} message SamplingStrategy message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SamplingStrategy.encode = function encode(message, writer) { + ModelMonitoringStatsAnomalies.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.randomSampleConfig != null && Object.hasOwnProperty.call(message, "randomSampleConfig")) - $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.encode(message.randomSampleConfig, writer.uint32(/* id 1, wireType 2 =*/10).fork()).ldelim(); + if (message.objective != null && Object.hasOwnProperty.call(message, "objective")) + writer.uint32(/* id 1, wireType 0 =*/8).int32(message.objective); + if (message.deployedModelId != null && Object.hasOwnProperty.call(message, "deployedModelId")) + writer.uint32(/* id 2, wireType 2 =*/18).string(message.deployedModelId); + if (message.anomalyCount != null && Object.hasOwnProperty.call(message, "anomalyCount")) + writer.uint32(/* id 3, wireType 0 =*/24).int32(message.anomalyCount); + if (message.featureStats != null && message.featureStats.length) + for (var i = 0; i < message.featureStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.encode(message.featureStats[i], writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); return writer; }; /** - * Encodes the specified SamplingStrategy message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.verify|verify} messages. + * Encodes the specified ModelMonitoringStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.ISamplingStrategy} message SamplingStrategy message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.IModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - SamplingStrategy.encodeDelimited = function encodeDelimited(message, writer) { + ModelMonitoringStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a SamplingStrategy message from the specified reader or buffer. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SamplingStrategy.decode = function decode(reader, length) { + ModelMonitoringStatsAnomalies.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SamplingStrategy(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.randomSampleConfig = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.decode(reader, reader.uint32()); + message.objective = reader.int32(); + break; + case 2: + message.deployedModelId = reader.string(); + break; + case 3: + message.anomalyCount = reader.int32(); + break; + case 4: + if (!(message.featureStats && message.featureStats.length)) + message.featureStats = []; + message.featureStats.push($root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -227731,109 +232782,179 @@ }; /** - * Decodes a SamplingStrategy message from the specified reader or buffer, length delimited. + * Decodes a ModelMonitoringStatsAnomalies message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - SamplingStrategy.decodeDelimited = function decodeDelimited(reader) { + ModelMonitoringStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a SamplingStrategy message. + * Verifies a ModelMonitoringStatsAnomalies message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - SamplingStrategy.verify = function verify(message) { + ModelMonitoringStatsAnomalies.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) { - var error = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify(message.randomSampleConfig); - if (error) - return "randomSampleConfig." + error; + if (message.objective != null && message.hasOwnProperty("objective")) + switch (message.objective) { + default: + return "objective: enum value expected"; + case 0: + case 1: + case 2: + case 3: + case 4: + break; + } + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + if (!$util.isString(message.deployedModelId)) + return "deployedModelId: string expected"; + if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) + if (!$util.isInteger(message.anomalyCount)) + return "anomalyCount: integer expected"; + if (message.featureStats != null && message.hasOwnProperty("featureStats")) { + if (!Array.isArray(message.featureStats)) + return "featureStats: array expected"; + for (var i = 0; i < message.featureStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify(message.featureStats[i]); + if (error) + return "featureStats." + error; + } } return null; }; /** - * Creates a SamplingStrategy message from a plain object. Also converts values to their respective internal types. + * Creates a ModelMonitoringStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy} SamplingStrategy + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} ModelMonitoringStatsAnomalies */ - SamplingStrategy.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SamplingStrategy) + ModelMonitoringStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SamplingStrategy(); - if (object.randomSampleConfig != null) { - if (typeof object.randomSampleConfig !== "object") - throw TypeError(".google.cloud.aiplatform.v1beta1.SamplingStrategy.randomSampleConfig: object expected"); - message.randomSampleConfig = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.fromObject(object.randomSampleConfig); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies(); + switch (object.objective) { + case "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED": + case 0: + message.objective = 0; + break; + case "RAW_FEATURE_SKEW": + case 1: + message.objective = 1; + break; + case "RAW_FEATURE_DRIFT": + case 2: + message.objective = 2; + break; + case "FEATURE_ATTRIBUTION_SKEW": + case 3: + message.objective = 3; + break; + case "FEATURE_ATTRIBUTION_DRIFT": + case 4: + message.objective = 4; + break; + } + if (object.deployedModelId != null) + message.deployedModelId = String(object.deployedModelId); + if (object.anomalyCount != null) + message.anomalyCount = object.anomalyCount | 0; + if (object.featureStats) { + if (!Array.isArray(object.featureStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.featureStats: array expected"); + message.featureStats = []; + for (var i = 0; i < object.featureStats.length; ++i) { + if (typeof object.featureStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.featureStats: object expected"); + message.featureStats[i] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.fromObject(object.featureStats[i]); + } } return message; }; /** - * Creates a plain object from a SamplingStrategy message. Also converts values to other types if specified. + * Creates a plain object from a ModelMonitoringStatsAnomalies message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy} message SamplingStrategy + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies} message ModelMonitoringStatsAnomalies * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - SamplingStrategy.toObject = function toObject(message, options) { + ModelMonitoringStatsAnomalies.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.randomSampleConfig = null; - if (message.randomSampleConfig != null && message.hasOwnProperty("randomSampleConfig")) - object.randomSampleConfig = $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.toObject(message.randomSampleConfig, options); + if (options.arrays || options.defaults) + object.featureStats = []; + if (options.defaults) { + object.objective = options.enums === String ? "MODEL_DEPLOYMENT_MONITORING_OBJECTIVE_TYPE_UNSPECIFIED" : 0; + object.deployedModelId = ""; + object.anomalyCount = 0; + } + if (message.objective != null && message.hasOwnProperty("objective")) + object.objective = options.enums === String ? $root.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringObjectiveType[message.objective] : message.objective; + if (message.deployedModelId != null && message.hasOwnProperty("deployedModelId")) + object.deployedModelId = message.deployedModelId; + if (message.anomalyCount != null && message.hasOwnProperty("anomalyCount")) + object.anomalyCount = message.anomalyCount; + if (message.featureStats && message.featureStats.length) { + object.featureStats = []; + for (var j = 0; j < message.featureStats.length; ++j) + object.featureStats[j] = $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.toObject(message.featureStats[j], options); + } return object; }; /** - * Converts this SamplingStrategy to JSON. + * Converts this ModelMonitoringStatsAnomalies to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies * @instance * @returns {Object.} JSON object */ - SamplingStrategy.prototype.toJSON = function toJSON() { + ModelMonitoringStatsAnomalies.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - SamplingStrategy.RandomSampleConfig = (function() { + ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies = (function() { /** - * Properties of a RandomSampleConfig. - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy - * @interface IRandomSampleConfig - * @property {number|null} [sampleRate] RandomSampleConfig sampleRate + * Properties of a FeatureHistoricStatsAnomalies. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @interface IFeatureHistoricStatsAnomalies + * @property {string|null} [featureDisplayName] FeatureHistoricStatsAnomalies featureDisplayName + * @property {google.cloud.aiplatform.v1beta1.IThresholdConfig|null} [threshold] FeatureHistoricStatsAnomalies threshold + * @property {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null} [trainingStats] FeatureHistoricStatsAnomalies trainingStats + * @property {Array.|null} [predictionStats] FeatureHistoricStatsAnomalies predictionStats */ /** - * Constructs a new RandomSampleConfig. - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy - * @classdesc Represents a RandomSampleConfig. - * @implements IRandomSampleConfig + * Constructs a new FeatureHistoricStatsAnomalies. + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies + * @classdesc Represents a FeatureHistoricStatsAnomalies. + * @implements IFeatureHistoricStatsAnomalies * @constructor - * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set */ - function RandomSampleConfig(properties) { + function FeatureHistoricStatsAnomalies(properties) { + this.predictionStats = []; if (properties) for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) if (properties[keys[i]] != null) @@ -227841,75 +232962,117 @@ } /** - * RandomSampleConfig sampleRate. - * @member {number} sampleRate - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * FeatureHistoricStatsAnomalies featureDisplayName. + * @member {string} featureDisplayName + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @instance */ - RandomSampleConfig.prototype.sampleRate = 0; + FeatureHistoricStatsAnomalies.prototype.featureDisplayName = ""; /** - * Creates a new RandomSampleConfig instance using the specified properties. + * FeatureHistoricStatsAnomalies threshold. + * @member {google.cloud.aiplatform.v1beta1.IThresholdConfig|null|undefined} threshold + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.threshold = null; + + /** + * FeatureHistoricStatsAnomalies trainingStats. + * @member {google.cloud.aiplatform.v1beta1.IFeatureStatsAnomaly|null|undefined} trainingStats + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.trainingStats = null; + + /** + * FeatureHistoricStatsAnomalies predictionStats. + * @member {Array.} predictionStats + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies + * @instance + */ + FeatureHistoricStatsAnomalies.prototype.predictionStats = $util.emptyArray; + + /** + * Creates a new FeatureHistoricStatsAnomalies instance using the specified properties. * @function create - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig=} [properties] Properties to set - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig instance + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies instance */ - RandomSampleConfig.create = function create(properties) { - return new RandomSampleConfig(properties); + FeatureHistoricStatsAnomalies.create = function create(properties) { + return new FeatureHistoricStatsAnomalies(properties); }; /** - * Encodes the specified RandomSampleConfig message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * Encodes the specified FeatureHistoricStatsAnomalies message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. * @function encode - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RandomSampleConfig.encode = function encode(message, writer) { + FeatureHistoricStatsAnomalies.encode = function encode(message, writer) { if (!writer) writer = $Writer.create(); - if (message.sampleRate != null && Object.hasOwnProperty.call(message, "sampleRate")) - writer.uint32(/* id 1, wireType 1 =*/9).double(message.sampleRate); + if (message.featureDisplayName != null && Object.hasOwnProperty.call(message, "featureDisplayName")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.featureDisplayName); + if (message.threshold != null && Object.hasOwnProperty.call(message, "threshold")) + $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.encode(message.threshold, writer.uint32(/* id 3, wireType 2 =*/26).fork()).ldelim(); + if (message.trainingStats != null && Object.hasOwnProperty.call(message, "trainingStats")) + $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.trainingStats, writer.uint32(/* id 4, wireType 2 =*/34).fork()).ldelim(); + if (message.predictionStats != null && message.predictionStats.length) + for (var i = 0; i < message.predictionStats.length; ++i) + $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.encode(message.predictionStats[i], writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); return writer; }; /** - * Encodes the specified RandomSampleConfig message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig.verify|verify} messages. + * Encodes the specified FeatureHistoricStatsAnomalies message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.verify|verify} messages. * @function encodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy.IRandomSampleConfig} message RandomSampleConfig message or plain object to encode + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.IFeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies message or plain object to encode * @param {$protobuf.Writer} [writer] Writer to encode to * @returns {$protobuf.Writer} Writer */ - RandomSampleConfig.encodeDelimited = function encodeDelimited(message, writer) { + FeatureHistoricStatsAnomalies.encodeDelimited = function encodeDelimited(message, writer) { return this.encode(message, writer).ldelim(); }; /** - * Decodes a RandomSampleConfig message from the specified reader or buffer. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer. * @function decode - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from * @param {number} [length] Message length if known beforehand - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RandomSampleConfig.decode = function decode(reader, length) { + FeatureHistoricStatsAnomalies.decode = function decode(reader, length) { if (!(reader instanceof $Reader)) reader = $Reader.create(reader); - var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig(); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); while (reader.pos < end) { var tag = reader.uint32(); switch (tag >>> 3) { case 1: - message.sampleRate = reader.double(); + message.featureDisplayName = reader.string(); + break; + case 3: + message.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.decode(reader, reader.uint32()); + break; + case 4: + message.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32()); + break; + case 5: + if (!(message.predictionStats && message.predictionStats.length)) + message.predictionStats = []; + message.predictionStats.push($root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.decode(reader, reader.uint32())); break; default: reader.skipType(tag & 7); @@ -227920,90 +233083,143 @@ }; /** - * Decodes a RandomSampleConfig message from the specified reader or buffer, length delimited. + * Decodes a FeatureHistoricStatsAnomalies message from the specified reader or buffer, length delimited. * @function decodeDelimited - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies * @throws {Error} If the payload is not a reader or valid buffer * @throws {$protobuf.util.ProtocolError} If required fields are missing */ - RandomSampleConfig.decodeDelimited = function decodeDelimited(reader) { + FeatureHistoricStatsAnomalies.decodeDelimited = function decodeDelimited(reader) { if (!(reader instanceof $Reader)) reader = new $Reader(reader); return this.decode(reader, reader.uint32()); }; /** - * Verifies a RandomSampleConfig message. + * Verifies a FeatureHistoricStatsAnomalies message. * @function verify - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {Object.} message Plain object to verify * @returns {string|null} `null` if valid, otherwise the reason why it is not */ - RandomSampleConfig.verify = function verify(message) { + FeatureHistoricStatsAnomalies.verify = function verify(message) { if (typeof message !== "object" || message === null) return "object expected"; - if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) - if (typeof message.sampleRate !== "number") - return "sampleRate: number expected"; + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + if (!$util.isString(message.featureDisplayName)) + return "featureDisplayName: string expected"; + if (message.threshold != null && message.hasOwnProperty("threshold")) { + var error = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.verify(message.threshold); + if (error) + return "threshold." + error; + } + if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.trainingStats); + if (error) + return "trainingStats." + error; + } + if (message.predictionStats != null && message.hasOwnProperty("predictionStats")) { + if (!Array.isArray(message.predictionStats)) + return "predictionStats: array expected"; + for (var i = 0; i < message.predictionStats.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.verify(message.predictionStats[i]); + if (error) + return "predictionStats." + error; + } + } return null; }; /** - * Creates a RandomSampleConfig message from a plain object. Also converts values to their respective internal types. + * Creates a FeatureHistoricStatsAnomalies message from a plain object. Also converts values to their respective internal types. * @function fromObject - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static * @param {Object.} object Plain object - * @returns {google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} RandomSampleConfig + * @returns {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} FeatureHistoricStatsAnomalies */ - RandomSampleConfig.fromObject = function fromObject(object) { - if (object instanceof $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig) + FeatureHistoricStatsAnomalies.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies) return object; - var message = new $root.google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig(); - if (object.sampleRate != null) - message.sampleRate = Number(object.sampleRate); + var message = new $root.google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies(); + if (object.featureDisplayName != null) + message.featureDisplayName = String(object.featureDisplayName); + if (object.threshold != null) { + if (typeof object.threshold !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.threshold: object expected"); + message.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.fromObject(object.threshold); + } + if (object.trainingStats != null) { + if (typeof object.trainingStats !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.trainingStats: object expected"); + message.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.trainingStats); + } + if (object.predictionStats) { + if (!Array.isArray(object.predictionStats)) + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: array expected"); + message.predictionStats = []; + for (var i = 0; i < object.predictionStats.length; ++i) { + if (typeof object.predictionStats[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies.predictionStats: object expected"); + message.predictionStats[i] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.fromObject(object.predictionStats[i]); + } + } return message; }; /** - * Creates a plain object from a RandomSampleConfig message. Also converts values to other types if specified. + * Creates a plain object from a FeatureHistoricStatsAnomalies message. Also converts values to other types if specified. * @function toObject - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @static - * @param {google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig} message RandomSampleConfig + * @param {google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies} message FeatureHistoricStatsAnomalies * @param {$protobuf.IConversionOptions} [options] Conversion options * @returns {Object.} Plain object */ - RandomSampleConfig.toObject = function toObject(message, options) { + FeatureHistoricStatsAnomalies.toObject = function toObject(message, options) { if (!options) options = {}; var object = {}; - if (options.defaults) - object.sampleRate = 0; - if (message.sampleRate != null && message.hasOwnProperty("sampleRate")) - object.sampleRate = options.json && !isFinite(message.sampleRate) ? String(message.sampleRate) : message.sampleRate; + if (options.arrays || options.defaults) + object.predictionStats = []; + if (options.defaults) { + object.featureDisplayName = ""; + object.threshold = null; + object.trainingStats = null; + } + if (message.featureDisplayName != null && message.hasOwnProperty("featureDisplayName")) + object.featureDisplayName = message.featureDisplayName; + if (message.threshold != null && message.hasOwnProperty("threshold")) + object.threshold = $root.google.cloud.aiplatform.v1beta1.ThresholdConfig.toObject(message.threshold, options); + if (message.trainingStats != null && message.hasOwnProperty("trainingStats")) + object.trainingStats = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.trainingStats, options); + if (message.predictionStats && message.predictionStats.length) { + object.predictionStats = []; + for (var j = 0; j < message.predictionStats.length; ++j) + object.predictionStats[j] = $root.google.cloud.aiplatform.v1beta1.FeatureStatsAnomaly.toObject(message.predictionStats[j], options); + } return object; }; /** - * Converts this RandomSampleConfig to JSON. + * Converts this FeatureHistoricStatsAnomalies to JSON. * @function toJSON - * @memberof google.cloud.aiplatform.v1beta1.SamplingStrategy.RandomSampleConfig + * @memberof google.cloud.aiplatform.v1beta1.ModelMonitoringStatsAnomalies.FeatureHistoricStatsAnomalies * @instance * @returns {Object.} JSON object */ - RandomSampleConfig.prototype.toJSON = function toJSON() { + FeatureHistoricStatsAnomalies.prototype.toJSON = function toJSON() { return this.constructor.toObject(this, $protobuf.util.toJSONOptions); }; - return RandomSampleConfig; + return FeatureHistoricStatsAnomalies; })(); - return SamplingStrategy; + return ModelMonitoringStatsAnomalies; })(); v1beta1.LineageSubgraph = (function() { @@ -246737,6 +251953,39 @@ * @variation 2 */ + /** + * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#batchImportModelEvaluationSlices}. + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @typedef BatchImportModelEvaluationSlicesCallback + * @type {function} + * @param {Error|null} error Error, if any + * @param {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} [response] BatchImportModelEvaluationSlicesResponse + */ + + /** + * Calls BatchImportModelEvaluationSlices. + * @function batchImportModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object + * @param {google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlicesCallback} callback Node-style callback called with the error, if any, and BatchImportModelEvaluationSlicesResponse + * @returns {undefined} + * @variation 1 + */ + Object.defineProperty(ModelService.prototype.batchImportModelEvaluationSlices = function batchImportModelEvaluationSlices(request, callback) { + return this.rpcCall(batchImportModelEvaluationSlices, $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest, $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse, request, callback); + }, "name", { value: "BatchImportModelEvaluationSlices" }); + + /** + * Calls BatchImportModelEvaluationSlices. + * @function batchImportModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.ModelService + * @instance + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} request BatchImportModelEvaluationSlicesRequest message or plain object + * @returns {Promise} Promise + * @variation 2 + */ + /** * Callback as used by {@link google.cloud.aiplatform.v1beta1.ModelService#getModelEvaluation}. * @memberof google.cloud.aiplatform.v1beta1.ModelService @@ -251393,6 +256642,440 @@ return ImportModelEvaluationRequest; })(); + v1beta1.BatchImportModelEvaluationSlicesRequest = (function() { + + /** + * Properties of a BatchImportModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IBatchImportModelEvaluationSlicesRequest + * @property {string|null} [parent] BatchImportModelEvaluationSlicesRequest parent + * @property {Array.|null} [modelEvaluationSlices] BatchImportModelEvaluationSlicesRequest modelEvaluationSlices + */ + + /** + * Constructs a new BatchImportModelEvaluationSlicesRequest. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchImportModelEvaluationSlicesRequest. + * @implements IBatchImportModelEvaluationSlicesRequest + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + */ + function BatchImportModelEvaluationSlicesRequest(properties) { + this.modelEvaluationSlices = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BatchImportModelEvaluationSlicesRequest parent. + * @member {string} parent + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @instance + */ + BatchImportModelEvaluationSlicesRequest.prototype.parent = ""; + + /** + * BatchImportModelEvaluationSlicesRequest modelEvaluationSlices. + * @member {Array.} modelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @instance + */ + BatchImportModelEvaluationSlicesRequest.prototype.modelEvaluationSlices = $util.emptyArray; + + /** + * Creates a new BatchImportModelEvaluationSlicesRequest instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest instance + */ + BatchImportModelEvaluationSlicesRequest.create = function create(properties) { + return new BatchImportModelEvaluationSlicesRequest(properties); + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesRequest.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.parent != null && Object.hasOwnProperty.call(message, "parent")) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.parent); + if (message.modelEvaluationSlices != null && message.modelEvaluationSlices.length) + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) + $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.encode(message.modelEvaluationSlices[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + return writer; + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesRequest message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesRequest.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesRequest.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + message.parent = reader.string(); + break; + case 2: + if (!(message.modelEvaluationSlices && message.modelEvaluationSlices.length)) + message.modelEvaluationSlices = []; + message.modelEvaluationSlices.push($root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.decode(reader, reader.uint32())); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesRequest message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesRequest.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportModelEvaluationSlicesRequest message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportModelEvaluationSlicesRequest.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.parent != null && message.hasOwnProperty("parent")) + if (!$util.isString(message.parent)) + return "parent: string expected"; + if (message.modelEvaluationSlices != null && message.hasOwnProperty("modelEvaluationSlices")) { + if (!Array.isArray(message.modelEvaluationSlices)) + return "modelEvaluationSlices: array expected"; + for (var i = 0; i < message.modelEvaluationSlices.length; ++i) { + var error = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.verify(message.modelEvaluationSlices[i]); + if (error) + return "modelEvaluationSlices." + error; + } + } + return null; + }; + + /** + * Creates a BatchImportModelEvaluationSlicesRequest message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} BatchImportModelEvaluationSlicesRequest + */ + BatchImportModelEvaluationSlicesRequest.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest(); + if (object.parent != null) + message.parent = String(object.parent); + if (object.modelEvaluationSlices) { + if (!Array.isArray(object.modelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: array expected"); + message.modelEvaluationSlices = []; + for (var i = 0; i < object.modelEvaluationSlices.length; ++i) { + if (typeof object.modelEvaluationSlices[i] !== "object") + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest.modelEvaluationSlices: object expected"); + message.modelEvaluationSlices[i] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.fromObject(object.modelEvaluationSlices[i]); + } + } + return message; + }; + + /** + * Creates a plain object from a BatchImportModelEvaluationSlicesRequest message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest} message BatchImportModelEvaluationSlicesRequest + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchImportModelEvaluationSlicesRequest.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.modelEvaluationSlices = []; + if (options.defaults) + object.parent = ""; + if (message.parent != null && message.hasOwnProperty("parent")) + object.parent = message.parent; + if (message.modelEvaluationSlices && message.modelEvaluationSlices.length) { + object.modelEvaluationSlices = []; + for (var j = 0; j < message.modelEvaluationSlices.length; ++j) + object.modelEvaluationSlices[j] = $root.google.cloud.aiplatform.v1beta1.ModelEvaluationSlice.toObject(message.modelEvaluationSlices[j], options); + } + return object; + }; + + /** + * Converts this BatchImportModelEvaluationSlicesRequest to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest + * @instance + * @returns {Object.} JSON object + */ + BatchImportModelEvaluationSlicesRequest.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchImportModelEvaluationSlicesRequest; + })(); + + v1beta1.BatchImportModelEvaluationSlicesResponse = (function() { + + /** + * Properties of a BatchImportModelEvaluationSlicesResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @interface IBatchImportModelEvaluationSlicesResponse + * @property {Array.|null} [importedModelEvaluationSlices] BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices + */ + + /** + * Constructs a new BatchImportModelEvaluationSlicesResponse. + * @memberof google.cloud.aiplatform.v1beta1 + * @classdesc Represents a BatchImportModelEvaluationSlicesResponse. + * @implements IBatchImportModelEvaluationSlicesResponse + * @constructor + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + */ + function BatchImportModelEvaluationSlicesResponse(properties) { + this.importedModelEvaluationSlices = []; + if (properties) + for (var keys = Object.keys(properties), i = 0; i < keys.length; ++i) + if (properties[keys[i]] != null) + this[keys[i]] = properties[keys[i]]; + } + + /** + * BatchImportModelEvaluationSlicesResponse importedModelEvaluationSlices. + * @member {Array.} importedModelEvaluationSlices + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @instance + */ + BatchImportModelEvaluationSlicesResponse.prototype.importedModelEvaluationSlices = $util.emptyArray; + + /** + * Creates a new BatchImportModelEvaluationSlicesResponse instance using the specified properties. + * @function create + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse=} [properties] Properties to set + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse instance + */ + BatchImportModelEvaluationSlicesResponse.create = function create(properties) { + return new BatchImportModelEvaluationSlicesResponse(properties); + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @function encode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesResponse.encode = function encode(message, writer) { + if (!writer) + writer = $Writer.create(); + if (message.importedModelEvaluationSlices != null && message.importedModelEvaluationSlices.length) + for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) + writer.uint32(/* id 1, wireType 2 =*/10).string(message.importedModelEvaluationSlices[i]); + return writer; + }; + + /** + * Encodes the specified BatchImportModelEvaluationSlicesResponse message, length delimited. Does not implicitly {@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.verify|verify} messages. + * @function encodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse message or plain object to encode + * @param {$protobuf.Writer} [writer] Writer to encode to + * @returns {$protobuf.Writer} Writer + */ + BatchImportModelEvaluationSlicesResponse.encodeDelimited = function encodeDelimited(message, writer) { + return this.encode(message, writer).ldelim(); + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer. + * @function decode + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @param {number} [length] Message length if known beforehand + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesResponse.decode = function decode(reader, length) { + if (!(reader instanceof $Reader)) + reader = $Reader.create(reader); + var end = length === undefined ? reader.len : reader.pos + length, message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse(); + while (reader.pos < end) { + var tag = reader.uint32(); + switch (tag >>> 3) { + case 1: + if (!(message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length)) + message.importedModelEvaluationSlices = []; + message.importedModelEvaluationSlices.push(reader.string()); + break; + default: + reader.skipType(tag & 7); + break; + } + } + return message; + }; + + /** + * Decodes a BatchImportModelEvaluationSlicesResponse message from the specified reader or buffer, length delimited. + * @function decodeDelimited + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {$protobuf.Reader|Uint8Array} reader Reader or buffer to decode from + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + * @throws {Error} If the payload is not a reader or valid buffer + * @throws {$protobuf.util.ProtocolError} If required fields are missing + */ + BatchImportModelEvaluationSlicesResponse.decodeDelimited = function decodeDelimited(reader) { + if (!(reader instanceof $Reader)) + reader = new $Reader(reader); + return this.decode(reader, reader.uint32()); + }; + + /** + * Verifies a BatchImportModelEvaluationSlicesResponse message. + * @function verify + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {Object.} message Plain object to verify + * @returns {string|null} `null` if valid, otherwise the reason why it is not + */ + BatchImportModelEvaluationSlicesResponse.verify = function verify(message) { + if (typeof message !== "object" || message === null) + return "object expected"; + if (message.importedModelEvaluationSlices != null && message.hasOwnProperty("importedModelEvaluationSlices")) { + if (!Array.isArray(message.importedModelEvaluationSlices)) + return "importedModelEvaluationSlices: array expected"; + for (var i = 0; i < message.importedModelEvaluationSlices.length; ++i) + if (!$util.isString(message.importedModelEvaluationSlices[i])) + return "importedModelEvaluationSlices: string[] expected"; + } + return null; + }; + + /** + * Creates a BatchImportModelEvaluationSlicesResponse message from a plain object. Also converts values to their respective internal types. + * @function fromObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {Object.} object Plain object + * @returns {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} BatchImportModelEvaluationSlicesResponse + */ + BatchImportModelEvaluationSlicesResponse.fromObject = function fromObject(object) { + if (object instanceof $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse) + return object; + var message = new $root.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse(); + if (object.importedModelEvaluationSlices) { + if (!Array.isArray(object.importedModelEvaluationSlices)) + throw TypeError(".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse.importedModelEvaluationSlices: array expected"); + message.importedModelEvaluationSlices = []; + for (var i = 0; i < object.importedModelEvaluationSlices.length; ++i) + message.importedModelEvaluationSlices[i] = String(object.importedModelEvaluationSlices[i]); + } + return message; + }; + + /** + * Creates a plain object from a BatchImportModelEvaluationSlicesResponse message. Also converts values to other types if specified. + * @function toObject + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @static + * @param {google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse} message BatchImportModelEvaluationSlicesResponse + * @param {$protobuf.IConversionOptions} [options] Conversion options + * @returns {Object.} Plain object + */ + BatchImportModelEvaluationSlicesResponse.toObject = function toObject(message, options) { + if (!options) + options = {}; + var object = {}; + if (options.arrays || options.defaults) + object.importedModelEvaluationSlices = []; + if (message.importedModelEvaluationSlices && message.importedModelEvaluationSlices.length) { + object.importedModelEvaluationSlices = []; + for (var j = 0; j < message.importedModelEvaluationSlices.length; ++j) + object.importedModelEvaluationSlices[j] = message.importedModelEvaluationSlices[j]; + } + return object; + }; + + /** + * Converts this BatchImportModelEvaluationSlicesResponse to JSON. + * @function toJSON + * @memberof google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse + * @instance + * @returns {Object.} JSON object + */ + BatchImportModelEvaluationSlicesResponse.prototype.toJSON = function toJSON() { + return this.constructor.toObject(this, $protobuf.util.toJSONOptions); + }; + + return BatchImportModelEvaluationSlicesResponse; + })(); + v1beta1.GetModelEvaluationRequest = (function() { /** @@ -260081,6 +265764,7 @@ * @property {string|null} [datasetId] InputDataConfig datasetId * @property {string|null} [annotationsFilter] InputDataConfig annotationsFilter * @property {string|null} [annotationSchemaUri] InputDataConfig annotationSchemaUri + * @property {string|null} [savedQueryId] InputDataConfig savedQueryId */ /** @@ -260178,6 +265862,14 @@ */ InputDataConfig.prototype.annotationSchemaUri = ""; + /** + * InputDataConfig savedQueryId. + * @member {string} savedQueryId + * @memberof google.cloud.aiplatform.v1beta1.InputDataConfig + * @instance + */ + InputDataConfig.prototype.savedQueryId = ""; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -260239,6 +265931,8 @@ $root.google.cloud.aiplatform.v1beta1.TimestampSplit.encode(message.timestampSplit, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); if (message.annotationsFilter != null && Object.hasOwnProperty.call(message, "annotationsFilter")) writer.uint32(/* id 6, wireType 2 =*/50).string(message.annotationsFilter); + if (message.savedQueryId != null && Object.hasOwnProperty.call(message, "savedQueryId")) + writer.uint32(/* id 7, wireType 2 =*/58).string(message.savedQueryId); if (message.gcsDestination != null && Object.hasOwnProperty.call(message, "gcsDestination")) $root.google.cloud.aiplatform.v1beta1.GcsDestination.encode(message.gcsDestination, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim(); if (message.annotationSchemaUri != null && Object.hasOwnProperty.call(message, "annotationSchemaUri")) @@ -260311,6 +266005,9 @@ case 9: message.annotationSchemaUri = reader.string(); break; + case 7: + message.savedQueryId = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -260422,6 +266119,9 @@ if (message.annotationSchemaUri != null && message.hasOwnProperty("annotationSchemaUri")) if (!$util.isString(message.annotationSchemaUri)) return "annotationSchemaUri: string expected"; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + if (!$util.isString(message.savedQueryId)) + return "savedQueryId: string expected"; return null; }; @@ -260478,6 +266178,8 @@ message.annotationsFilter = String(object.annotationsFilter); if (object.annotationSchemaUri != null) message.annotationSchemaUri = String(object.annotationSchemaUri); + if (object.savedQueryId != null) + message.savedQueryId = String(object.savedQueryId); return message; }; @@ -260497,6 +266199,7 @@ if (options.defaults) { object.datasetId = ""; object.annotationsFilter = ""; + object.savedQueryId = ""; object.annotationSchemaUri = ""; } if (message.datasetId != null && message.hasOwnProperty("datasetId")) @@ -260523,6 +266226,8 @@ } if (message.annotationsFilter != null && message.hasOwnProperty("annotationsFilter")) object.annotationsFilter = message.annotationsFilter; + if (message.savedQueryId != null && message.hasOwnProperty("savedQueryId")) + object.savedQueryId = message.savedQueryId; if (message.gcsDestination != null && message.hasOwnProperty("gcsDestination")) { object.gcsDestination = $root.google.cloud.aiplatform.v1beta1.GcsDestination.toObject(message.gcsDestination, options); if (options.oneofs) diff --git a/protos/protos.json b/protos/protos.json index 94abc9e3..0fe64751 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -266,6 +266,13 @@ "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" } }, + "modelVersionId": { + "type": "string", + "id": 30, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "unmanagedContainerModel": { "type": "UnmanagedContainerModel", "id": 28 @@ -500,6 +507,13 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "successfulForecastPointCount": { + "type": "int64", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -523,6 +537,14 @@ "options": { "(google.api.field_behavior)": "OUTPUT_ONLY" } + }, + "neighbors": { + "rule": "repeated", + "type": "Neighbor", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -592,6 +614,24 @@ } } }, + "Neighbor": { + "fields": { + "neighborId": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "neighborDistance": { + "type": "double", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "ExplanationSpec": { "fields": { "parameters": { @@ -756,6 +796,10 @@ "metadata": { "type": "ExplanationMetadataOverride", "id": 2 + }, + "examplesOverride": { + "type": "ExamplesOverride", + "id": 3 } } }, @@ -782,6 +826,58 @@ } } }, + "ExamplesOverride": { + "fields": { + "neighborCount": { + "type": "int32", + "id": 1 + }, + "crowdingCount": { + "type": "int32", + "id": 2 + }, + "restrictions": { + "rule": "repeated", + "type": "ExamplesRestrictionsNamespace", + "id": 3 + }, + "returnEmbeddings": { + "type": "bool", + "id": 4 + }, + "dataFormat": { + "type": "DataFormat", + "id": 5 + } + }, + "nested": { + "DataFormat": { + "values": { + "DATA_FORMAT_UNSPECIFIED": 0, + "INSTANCES": 1, + "EMBEDDINGS": 2 + } + } + } + }, + "ExamplesRestrictionsNamespace": { + "fields": { + "namespaceName": { + "type": "string", + "id": 1 + }, + "allow": { + "rule": "repeated", + "type": "string", + "id": 2 + }, + "deny": { + "rule": "repeated", + "type": "string", + "id": 3 + } + } + }, "ExplanationMetadata": { "fields": { "inputs": { @@ -1305,6 +1401,32 @@ "type": "string", "id": 1 }, + "versionId": { + "type": "string", + "id": 28, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "versionAliases": { + "rule": "repeated", + "type": "string", + "id": 29 + }, + "versionCreateTime": { + "type": "google.protobuf.Timestamp", + "id": 31, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "versionUpdateTime": { + "type": "google.protobuf.Timestamp", + "id": 32, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "displayName": { "type": "string", "id": 2, @@ -1316,6 +1438,10 @@ "type": "string", "id": 3 }, + "versionDescription": { + "type": "string", + "id": 30 + }, "predictSchemata": { "type": "PredictSchemata", "id": 4 @@ -2475,6 +2601,24 @@ } ] }, + "ListSavedQueries": { + "requestType": "ListSavedQueriesRequest", + "responseType": "ListSavedQueriesResponse", + "options": { + "(google.api.http).get": "/v1/{parent=projects/*/locations/*/datasets/*}/savedQueries", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{parent=projects/*/locations/*/datasets/*}/savedQueries" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, "GetAnnotationSpec": { "requestType": "GetAnnotationSpecRequest", "responseType": "AnnotationSpec", @@ -2747,6 +2891,51 @@ } } }, + "ListSavedQueriesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + }, + "orderBy": { + "type": "string", + "id": 6 + } + } + }, + "ListSavedQueriesResponse": { + "fields": { + "savedQueries": { + "rule": "repeated", + "type": "SavedQuery", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "GetAnnotationSpecRequest": { "fields": { "name": { @@ -2842,6 +3031,78 @@ } } }, + "SavedQuery": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/SavedQuery", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "metadata": { + "type": "google.protobuf.Value", + "id": 12 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "annotationFilter": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "problemType": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "annotationSpecCount": { + "type": "int32", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "etag": { + "type": "string", + "id": 8 + }, + "supportAutomlTraining": { + "type": "bool", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "DeployedIndexRef": { "fields": { "indexEndpoint": { @@ -2986,6 +3247,13 @@ "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" } }, + "modelVersionId": { + "type": "string", + "id": 18, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "displayName": { "type": "string", "id": 3 @@ -8723,6 +8991,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "monitorWindow": { + "type": "google.protobuf.Duration", + "id": 2 } } }, @@ -8841,7 +9113,11 @@ "keyType": "string", "type": "ThresholdConfig", "id": 2 - } + }, + "defaultSkewThreshold": { + "type": "ThresholdConfig", + "id": 6 + } } }, "PredictionDriftDetectionConfig": { @@ -8855,6 +9131,10 @@ "keyType": "string", "type": "ThresholdConfig", "id": 2 + }, + "defaultDriftThreshold": { + "type": "ThresholdConfig", + "id": 5 } } }, @@ -11224,6 +11504,24 @@ } ] }, + "ListModelVersions": { + "requestType": "ListModelVersionsRequest", + "responseType": "ListModelVersionsResponse", + "options": { + "(google.api.http).get": "/v1/{name=projects/*/locations/*/models/*}:listVersions", + "(google.api.method_signature)": "name" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1/{name=projects/*/locations/*/models/*}:listVersions" + } + }, + { + "(google.api.method_signature)": "name" + } + ] + }, "UpdateModel": { "requestType": "UpdateModelRequest", "responseType": "Model", @@ -11270,6 +11568,52 @@ } ] }, + "DeleteModelVersion": { + "requestType": "DeleteModelVersionRequest", + "responseType": "google.longrunning.Operation", + "options": { + "(google.api.http).delete": "/v1/{name=projects/*/locations/*/models/*}:deleteVersion", + "(google.api.method_signature)": "name", + "(google.longrunning.operation_info).response_type": "google.protobuf.Empty", + "(google.longrunning.operation_info).metadata_type": "DeleteOperationMetadata" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "delete": "/v1/{name=projects/*/locations/*/models/*}:deleteVersion" + } + }, + { + "(google.api.method_signature)": "name" + }, + { + "(google.longrunning.operation_info)": { + "response_type": "google.protobuf.Empty", + "metadata_type": "DeleteOperationMetadata" + } + } + ] + }, + "MergeVersionAliases": { + "requestType": "MergeVersionAliasesRequest", + "responseType": "Model", + "options": { + "(google.api.http).post": "/v1/{name=projects/*/locations/*/models/*}:mergeVersionAliases", + "(google.api.http).body": "*", + "(google.api.method_signature)": "name,version_aliases" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{name=projects/*/locations/*/models/*}:mergeVersionAliases", + "body": "*" + } + }, + { + "(google.api.method_signature)": "name,version_aliases" + } + ] + }, "ExportModel": { "requestType": "ExportModelRequest", "responseType": "google.longrunning.Operation", @@ -11318,6 +11662,26 @@ } ] }, + "BatchImportModelEvaluationSlices": { + "requestType": "BatchImportModelEvaluationSlicesRequest", + "responseType": "BatchImportModelEvaluationSlicesResponse", + "options": { + "(google.api.http).post": "/v1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,model_evaluation_slices" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,model_evaluation_slices" + } + ] + }, "GetModelEvaluation": { "requestType": "GetModelEvaluationRequest", "responseType": "ModelEvaluation", @@ -11402,6 +11766,20 @@ "(google.api.resource_reference).type": "locations.googleapis.com/Location" } }, + "parentModel": { + "type": "string", + "id": 4, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "modelId": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "model": { "type": "Model", "id": 2, @@ -11427,6 +11805,13 @@ "options": { "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" } + }, + "modelVersionId": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } } } }, @@ -11487,6 +11872,47 @@ } } }, + "ListModelVersionsRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "pageSize": { + "type": "int32", + "id": 2 + }, + "pageToken": { + "type": "string", + "id": 3 + }, + "filter": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + } + } + }, + "ListModelVersionsResponse": { + "fields": { + "models": { + "rule": "repeated", + "type": "Model", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "UpdateModelRequest": { "fields": { "model": { @@ -11517,6 +11943,38 @@ } } }, + "DeleteModelVersionRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + } + } + }, + "MergeVersionAliasesRequest": { + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" + } + }, + "versionAliases": { + "rule": "repeated", + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, "ExportModelRequest": { "fields": { "name": { @@ -11611,6 +12069,38 @@ } } }, + "BatchImportModelEvaluationSlicesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluation" + } + }, + "modelEvaluationSlices": { + "rule": "repeated", + "type": "ModelEvaluationSlice", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BatchImportModelEvaluationSlicesResponse": { + "fields": { + "importedModelEvaluationSlices": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "GetModelEvaluationRequest": { "fields": { "name": { @@ -12605,6 +13095,20 @@ "type": "Model", "id": 7 }, + "modelId": { + "type": "string", + "id": 22, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, + "parentModel": { + "type": "string", + "id": 21, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } + }, "state": { "type": "PipelineState", "id": 9, @@ -12719,6 +13223,10 @@ "annotationSchemaUri": { "type": "string", "id": 9 + }, + "savedQueryId": { + "type": "string", + "id": 7 } } }, @@ -12931,6 +13439,13 @@ "(google.api.resource_reference).type": "aiplatform.googleapis.com/Model" } }, + "modelVersionId": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, "modelDisplayName": { "type": "string", "id": 4, @@ -17062,6 +17577,10 @@ "encryptionSpec": { "type": "EncryptionSpec", "id": 24 + }, + "modelMonitoringConfig": { + "type": "ModelMonitoringConfig", + "id": 26 } }, "nested": { @@ -18112,36 +18631,261 @@ } } }, - "UnmanagedContainerModel": { + "ModelMonitoringConfig": { "fields": { - "artifactUri": { - "type": "string", - "id": 1 + "objectiveConfigs": { + "rule": "repeated", + "type": "ModelMonitoringObjectiveConfig", + "id": 3 }, - "predictSchemata": { - "type": "PredictSchemata", + "alertConfig": { + "type": "ModelMonitoringAlertConfig", "id": 2 }, - "containerSpec": { - "type": "ModelContainerSpec", - "id": 3, - "options": { - "(google.api.field_behavior)": "INPUT_ONLY" - } + "analysisInstanceSchemaUri": { + "type": "string", + "id": 4 } } }, - "Model": { - "options": { - "(google.api.resource).type": "aiplatform.googleapis.com/Model", - "(google.api.resource).pattern": "projects/{project}/locations/{location}/models/{model}" - }, + "ModelMonitoringObjectiveConfig": { "fields": { - "name": { - "type": "string", + "trainingDataset": { + "type": "TrainingDataset", "id": 1 }, - "versionId": { + "trainingPredictionSkewDetectionConfig": { + "type": "TrainingPredictionSkewDetectionConfig", + "id": 2 + }, + "predictionDriftDetectionConfig": { + "type": "PredictionDriftDetectionConfig", + "id": 3 + }, + "explanationConfig": { + "type": "ExplanationConfig", + "id": 5 + } + }, + "nested": { + "TrainingDataset": { + "oneofs": { + "dataSource": { + "oneof": [ + "dataset", + "gcsSource", + "bigquerySource" + ] + } + }, + "fields": { + "dataset": { + "type": "string", + "id": 3, + "options": { + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" + } + }, + "gcsSource": { + "type": "GcsSource", + "id": 4 + }, + "bigquerySource": { + "type": "BigQuerySource", + "id": 5 + }, + "dataFormat": { + "type": "string", + "id": 2 + }, + "targetField": { + "type": "string", + "id": 6 + }, + "loggingSamplingStrategy": { + "type": "SamplingStrategy", + "id": 7 + } + } + }, + "TrainingPredictionSkewDetectionConfig": { + "fields": { + "skewThresholds": { + "keyType": "string", + "type": "ThresholdConfig", + "id": 1 + }, + "attributionScoreSkewThresholds": { + "keyType": "string", + "type": "ThresholdConfig", + "id": 2 + }, + "defaultSkewThreshold": { + "type": "ThresholdConfig", + "id": 6 + } + } + }, + "PredictionDriftDetectionConfig": { + "fields": { + "driftThresholds": { + "keyType": "string", + "type": "ThresholdConfig", + "id": 1 + }, + "attributionScoreDriftThresholds": { + "keyType": "string", + "type": "ThresholdConfig", + "id": 2 + }, + "defaultDriftThreshold": { + "type": "ThresholdConfig", + "id": 5 + } + } + }, + "ExplanationConfig": { + "fields": { + "enableFeatureAttributes": { + "type": "bool", + "id": 1 + }, + "explanationBaseline": { + "type": "ExplanationBaseline", + "id": 2 + } + }, + "nested": { + "ExplanationBaseline": { + "oneofs": { + "destination": { + "oneof": [ + "gcs", + "bigquery" + ] + } + }, + "fields": { + "gcs": { + "type": "GcsDestination", + "id": 2 + }, + "bigquery": { + "type": "BigQueryDestination", + "id": 3 + }, + "predictionFormat": { + "type": "PredictionFormat", + "id": 1 + } + }, + "nested": { + "PredictionFormat": { + "values": { + "PREDICTION_FORMAT_UNSPECIFIED": 0, + "JSONL": 2, + "BIGQUERY": 3 + } + } + } + } + } + } + } + }, + "ModelMonitoringAlertConfig": { + "oneofs": { + "alert": { + "oneof": [ + "emailAlertConfig" + ] + } + }, + "fields": { + "emailAlertConfig": { + "type": "EmailAlertConfig", + "id": 1 + }, + "enableLogging": { + "type": "bool", + "id": 2 + } + }, + "nested": { + "EmailAlertConfig": { + "fields": { + "userEmails": { + "rule": "repeated", + "type": "string", + "id": 1 + } + } + } + } + }, + "ThresholdConfig": { + "oneofs": { + "threshold": { + "oneof": [ + "value" + ] + } + }, + "fields": { + "value": { + "type": "double", + "id": 1 + } + } + }, + "SamplingStrategy": { + "fields": { + "randomSampleConfig": { + "type": "RandomSampleConfig", + "id": 1 + } + }, + "nested": { + "RandomSampleConfig": { + "fields": { + "sampleRate": { + "type": "double", + "id": 1 + } + } + } + } + }, + "UnmanagedContainerModel": { + "fields": { + "artifactUri": { + "type": "string", + "id": 1 + }, + "predictSchemata": { + "type": "PredictSchemata", + "id": 2 + }, + "containerSpec": { + "type": "ModelContainerSpec", + "id": 3, + "options": { + "(google.api.field_behavior)": "INPUT_ONLY" + } + } + } + }, + "Model": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/Model", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/models/{model}" + }, + "fields": { + "name": { + "type": "string", + "id": 1 + }, + "versionId": { "type": "string", "id": 28, "options": { @@ -18732,6 +19476,11 @@ "rule": "repeated", "type": "string", "id": 3 + }, + "env": { + "rule": "repeated", + "type": "EnvVar", + "id": 4 } } }, @@ -18763,6 +19512,11 @@ "rule": "repeated", "type": "string", "id": 4 + }, + "env": { + "rule": "repeated", + "type": "EnvVar", + "id": 5 } } }, @@ -19331,6 +20085,24 @@ } ] }, + "ListSavedQueries": { + "requestType": "ListSavedQueriesRequest", + "responseType": "ListSavedQueriesResponse", + "options": { + "(google.api.http).get": "/v1beta1/{parent=projects/*/locations/*/datasets/*}/savedQueries", + "(google.api.method_signature)": "parent" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "get": "/v1beta1/{parent=projects/*/locations/*/datasets/*}/savedQueries" + } + }, + { + "(google.api.method_signature)": "parent" + } + ] + }, "GetAnnotationSpec": { "requestType": "GetAnnotationSpecRequest", "responseType": "AnnotationSpec", @@ -19603,6 +20375,51 @@ } } }, + "ListSavedQueriesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" + } + }, + "filter": { + "type": "string", + "id": 2 + }, + "pageSize": { + "type": "int32", + "id": 3 + }, + "pageToken": { + "type": "string", + "id": 4 + }, + "readMask": { + "type": "google.protobuf.FieldMask", + "id": 5 + }, + "orderBy": { + "type": "string", + "id": 6 + } + } + }, + "ListSavedQueriesResponse": { + "fields": { + "savedQueries": { + "rule": "repeated", + "type": "SavedQuery", + "id": 1 + }, + "nextPageToken": { + "type": "string", + "id": 2 + } + } + }, "GetAnnotationSpecRequest": { "fields": { "name": { @@ -19690,14 +20507,86 @@ } } }, - "DeleteOperationMetadata": { - "fields": { - "genericMetadata": { - "type": "GenericOperationMetadata", - "id": 1 - } - } - }, + "DeleteOperationMetadata": { + "fields": { + "genericMetadata": { + "type": "GenericOperationMetadata", + "id": 1 + } + } + }, + "SavedQuery": { + "options": { + "(google.api.resource).type": "aiplatform.googleapis.com/SavedQuery", + "(google.api.resource).pattern": "projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}" + }, + "fields": { + "name": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "displayName": { + "type": "string", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "metadata": { + "type": "google.protobuf.Value", + "id": 12 + }, + "createTime": { + "type": "google.protobuf.Timestamp", + "id": 3, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "updateTime": { + "type": "google.protobuf.Timestamp", + "id": 4, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "annotationFilter": { + "type": "string", + "id": 5, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "problemType": { + "type": "string", + "id": 6, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + }, + "annotationSpecCount": { + "type": "int32", + "id": 10, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + }, + "etag": { + "type": "string", + "id": 8 + }, + "supportAutomlTraining": { + "type": "bool", + "id": 9, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "DeployedIndexRef": { "fields": { "indexEndpoint": { @@ -25640,6 +26529,10 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "monitorWindow": { + "type": "google.protobuf.Duration", + "id": 2 } } }, @@ -25687,206 +26580,6 @@ } } }, - "ModelMonitoringObjectiveConfig": { - "fields": { - "trainingDataset": { - "type": "TrainingDataset", - "id": 1 - }, - "trainingPredictionSkewDetectionConfig": { - "type": "TrainingPredictionSkewDetectionConfig", - "id": 2 - }, - "predictionDriftDetectionConfig": { - "type": "PredictionDriftDetectionConfig", - "id": 3 - }, - "explanationConfig": { - "type": "ExplanationConfig", - "id": 5 - } - }, - "nested": { - "TrainingDataset": { - "oneofs": { - "dataSource": { - "oneof": [ - "dataset", - "gcsSource", - "bigquerySource" - ] - } - }, - "fields": { - "dataset": { - "type": "string", - "id": 3, - "options": { - "(google.api.resource_reference).type": "aiplatform.googleapis.com/Dataset" - } - }, - "gcsSource": { - "type": "GcsSource", - "id": 4 - }, - "bigquerySource": { - "type": "BigQuerySource", - "id": 5 - }, - "dataFormat": { - "type": "string", - "id": 2 - }, - "targetField": { - "type": "string", - "id": 6 - }, - "loggingSamplingStrategy": { - "type": "SamplingStrategy", - "id": 7 - } - } - }, - "TrainingPredictionSkewDetectionConfig": { - "fields": { - "skewThresholds": { - "keyType": "string", - "type": "ThresholdConfig", - "id": 1 - }, - "attributionScoreSkewThresholds": { - "keyType": "string", - "type": "ThresholdConfig", - "id": 2 - } - } - }, - "PredictionDriftDetectionConfig": { - "fields": { - "driftThresholds": { - "keyType": "string", - "type": "ThresholdConfig", - "id": 1 - }, - "attributionScoreDriftThresholds": { - "keyType": "string", - "type": "ThresholdConfig", - "id": 2 - } - } - }, - "ExplanationConfig": { - "fields": { - "enableFeatureAttributes": { - "type": "bool", - "id": 1 - }, - "explanationBaseline": { - "type": "ExplanationBaseline", - "id": 2 - } - }, - "nested": { - "ExplanationBaseline": { - "oneofs": { - "destination": { - "oneof": [ - "gcs", - "bigquery" - ] - } - }, - "fields": { - "gcs": { - "type": "GcsDestination", - "id": 2 - }, - "bigquery": { - "type": "BigQueryDestination", - "id": 3 - }, - "predictionFormat": { - "type": "PredictionFormat", - "id": 1 - } - }, - "nested": { - "PredictionFormat": { - "values": { - "PREDICTION_FORMAT_UNSPECIFIED": 0, - "JSONL": 2, - "BIGQUERY": 3 - } - } - } - } - } - } - } - }, - "ModelMonitoringAlertConfig": { - "oneofs": { - "alert": { - "oneof": [ - "emailAlertConfig" - ] - } - }, - "fields": { - "emailAlertConfig": { - "type": "EmailAlertConfig", - "id": 1 - }, - "enableLogging": { - "type": "bool", - "id": 2 - } - }, - "nested": { - "EmailAlertConfig": { - "fields": { - "userEmails": { - "rule": "repeated", - "type": "string", - "id": 1 - } - } - } - } - }, - "ThresholdConfig": { - "oneofs": { - "threshold": { - "oneof": [ - "value" - ] - } - }, - "fields": { - "value": { - "type": "double", - "id": 1 - } - } - }, - "SamplingStrategy": { - "fields": { - "randomSampleConfig": { - "type": "RandomSampleConfig", - "id": 1 - } - }, - "nested": { - "RandomSampleConfig": { - "fields": { - "sampleRate": { - "type": "double", - "id": 1 - } - } - } - } - }, "LineageSubgraph": { "fields": { "artifacts": { @@ -28319,6 +29012,26 @@ } ] }, + "BatchImportModelEvaluationSlices": { + "requestType": "BatchImportModelEvaluationSlicesRequest", + "responseType": "BatchImportModelEvaluationSlicesResponse", + "options": { + "(google.api.http).post": "/v1beta1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport", + "(google.api.http).body": "*", + "(google.api.method_signature)": "parent,model_evaluation_slices" + }, + "parsedOptions": [ + { + "(google.api.http)": { + "post": "/v1beta1/{parent=projects/*/locations/*/models/*/evaluations/*}/slices:batchImport", + "body": "*" + } + }, + { + "(google.api.method_signature)": "parent,model_evaluation_slices" + } + ] + }, "GetModelEvaluation": { "requestType": "GetModelEvaluationRequest", "responseType": "ModelEvaluation", @@ -28729,6 +29442,38 @@ } } }, + "BatchImportModelEvaluationSlicesRequest": { + "fields": { + "parent": { + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "REQUIRED", + "(google.api.resource_reference).type": "aiplatform.googleapis.com/ModelEvaluation" + } + }, + "modelEvaluationSlices": { + "rule": "repeated", + "type": "ModelEvaluationSlice", + "id": 2, + "options": { + "(google.api.field_behavior)": "REQUIRED" + } + } + } + }, + "BatchImportModelEvaluationSlicesResponse": { + "fields": { + "importedModelEvaluationSlices": { + "rule": "repeated", + "type": "string", + "id": 1, + "options": { + "(google.api.field_behavior)": "OUTPUT_ONLY" + } + } + } + }, "GetModelEvaluationRequest": { "fields": { "name": { @@ -29851,6 +30596,10 @@ "annotationSchemaUri": { "type": "string", "id": 9 + }, + "savedQueryId": { + "type": "string", + "id": 7 } } }, diff --git a/samples/generated/v1/dataset_service.list_saved_queries.js b/samples/generated/v1/dataset_service.list_saved_queries.js new file mode 100644 index 00000000..60e18bd9 --- /dev/null +++ b/samples/generated/v1/dataset_service.list_saved_queries.js @@ -0,0 +1,83 @@ +// Copyright 2022 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1_generated_DatasetService_ListSavedQueries_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Dataset to list SavedQueries from. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + // const parent = 'abc123' + /** + * The standard list filter. + */ + // const filter = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + */ + // const pageToken = 'abc123' + /** + * Mask specifying which fields to read. + */ + // const readMask = {} + /** + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + */ + // const orderBy = 'abc123' + + // Imports the Aiplatform library + const {DatasetServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new DatasetServiceClient(); + + async function callListSavedQueries() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listSavedQueriesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListSavedQueries(); + // [END aiplatform_v1_generated_DatasetService_ListSavedQueries_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1/featurestore_service.update_featurestore.js b/samples/generated/v1/featurestore_service.update_featurestore.js index bfbb7bd7..8de8984c 100644 --- a/samples/generated/v1/featurestore_service.update_featurestore.js +++ b/samples/generated/v1/featurestore_service.update_featurestore.js @@ -43,6 +43,7 @@ function main(featurestore) { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` */ // const updateMask = {} diff --git a/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js b/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js new file mode 100644 index 00000000..d2e37c42 --- /dev/null +++ b/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js @@ -0,0 +1,65 @@ +// Copyright 2022 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, modelEvaluationSlices) { + // [START aiplatform_v1_generated_ModelService_BatchImportModelEvaluationSlices_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + */ + // const parent = 'abc123' + /** + * Required. Model evaluation slice resource to be imported. + */ + // const modelEvaluationSlices = 1234 + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callBatchImportModelEvaluationSlices() { + // Construct request + const request = { + parent, + modelEvaluationSlices, + }; + + // Run request + const response = await aiplatformClient.batchImportModelEvaluationSlices(request); + console.log(response); + } + + callBatchImportModelEvaluationSlices(); + // [END aiplatform_v1_generated_ModelService_BatchImportModelEvaluationSlices_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1/model_service.delete_model_version.js b/samples/generated/v1/model_service.delete_model_version.js new file mode 100644 index 00000000..d8281c9c --- /dev/null +++ b/samples/generated/v1/model_service.delete_model_version.js @@ -0,0 +1,61 @@ +// Copyright 2022 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_ModelService_DeleteModelVersion_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the model version to be deleted, with a version ID explicitly + * included. + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + */ + // const name = 'abc123' + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callDeleteModelVersion() { + // Construct request + const request = { + name, + }; + + // Run request + const [operation] = await aiplatformClient.deleteModelVersion(request); + const [response] = await operation.promise(); + console.log(response); + } + + callDeleteModelVersion(); + // [END aiplatform_v1_generated_ModelService_DeleteModelVersion_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1/model_service.export_model.js b/samples/generated/v1/model_service.export_model.js index d3eba9c6..ade52c6c 100644 --- a/samples/generated/v1/model_service.export_model.js +++ b/samples/generated/v1/model_service.export_model.js @@ -27,6 +27,8 @@ function main(name, outputConfig) { */ /** * Required. The resource name of the Model to export. + * The resource name may contain version id or version alias to specify the + * version, if no version is specified, the default version will be exported. */ // const name = 'abc123' /** diff --git a/samples/generated/v1/model_service.get_model.js b/samples/generated/v1/model_service.get_model.js index 8a459546..5d380bb6 100644 --- a/samples/generated/v1/model_service.get_model.js +++ b/samples/generated/v1/model_service.get_model.js @@ -28,6 +28,15 @@ function main(name) { /** * Required. The name of the Model resource. * Format: `projects/{project}/locations/{location}/models/{model}` + * In order to retrieve a specific version of the model, also provide + * the version ID or version alias. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * If no version ID or alias is specified, the "default" version will be + * returned. The "default" version alias is created for the first version of + * the model, and can be moved to other versions later on. There will be + * exactly one default version. */ // const name = 'abc123' diff --git a/samples/generated/v1/model_service.list_model_versions.js b/samples/generated/v1/model_service.list_model_versions.js new file mode 100644 index 00000000..0faa6953 --- /dev/null +++ b/samples/generated/v1/model_service.list_model_versions.js @@ -0,0 +1,86 @@ +// Copyright 2022 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name) { + // [START aiplatform_v1_generated_ModelService_ListModelVersions_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the model to list versions for. + */ + // const name = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + * Typically obtained via + * ListModelVersionsResponse.next_page_token google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token of the previous + * ModelService.ListModelversions call. + */ + // const pageToken = 'abc123' + /** + * An expression for filtering the results of the request. For field names + * both snake_case and camelCase are supported. + * * `labels` supports general map functions that is: + * * `labels.key=value` - key:value equality + * * `labels.key:* or labels:key - key existence + * * A key including a space must be quoted. `labels."a key"`. + * Some examples: + * * `labels.myKey="myValue"` + */ + // const filter = 'abc123' + /** + * Mask specifying which fields to read. + */ + // const readMask = {} + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callListModelVersions() { + // Construct request + const request = { + name, + }; + + // Run request + const iterable = await aiplatformClient.listModelVersionsAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListModelVersions(); + // [END aiplatform_v1_generated_ModelService_ListModelVersions_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1/model_service.merge_version_aliases.js b/samples/generated/v1/model_service.merge_version_aliases.js new file mode 100644 index 00000000..e9ebcf65 --- /dev/null +++ b/samples/generated/v1/model_service.merge_version_aliases.js @@ -0,0 +1,75 @@ +// Copyright 2022 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(name, versionAliases) { + // [START aiplatform_v1_generated_ModelService_MergeVersionAliases_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the model version to merge aliases, with a version ID + * explicitly included. + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + */ + // const name = 'abc123' + /** + * Required. The set of version aliases to merge. + * The alias should be at most 128 characters, and match + * `[a-z][a-z0-9-]{0,126}[a-z-0-9]`. + * Add the `-` prefix to an alias means removing that alias from the version. + * `-` is NOT counted in the 128 characters. Example: `-golden` means removing + * the `golden` alias from the version. + * There is NO ordering in aliases, which means + * 1) The aliases returned from GetModel API might not have the exactly same + * order from this MergeVersionAliases API. 2) Adding and deleting the same + * alias in the request is not recommended, and the 2 operations will be + * cancelled out. + */ + // const versionAliases = 'abc123' + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callMergeVersionAliases() { + // Construct request + const request = { + name, + versionAliases, + }; + + // Run request + const response = await aiplatformClient.mergeVersionAliases(request); + console.log(response); + } + + callMergeVersionAliases(); + // [END aiplatform_v1_generated_ModelService_MergeVersionAliases_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1/model_service.upload_model.js b/samples/generated/v1/model_service.upload_model.js index 4be50ef0..677da742 100644 --- a/samples/generated/v1/model_service.upload_model.js +++ b/samples/generated/v1/model_service.upload_model.js @@ -30,6 +30,18 @@ function main(parent, model) { * Format: `projects/{project}/locations/{location}` */ // const parent = 'abc123' + /** + * Optional. The resource name of the model into which to upload the version. Only + * specify this field when uploading a new version. + */ + // const parentModel = 'abc123' + /** + * Optional. The ID to use for the uploaded Model, which will become the final + * component of the model resource name. + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. + */ + // const modelId = 'abc123' /** * Required. The Model to create. */ diff --git a/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json b/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json index cc39a280..bf7662d9 100644 --- a/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -391,6 +391,66 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_DatasetService_ListSavedQueries_async", + "title": "DatasetService listSavedQueries Sample", + "origin": "API_DEFINITION", + "description": " Lists SavedQueries in a Dataset.", + "canonical": true, + "file": "dataset_service.list_saved_queries.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListSavedQueries", + "fullName": "google.cloud.aiplatform.v1.DatasetService.ListSavedQueries", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "read_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1.ListSavedQueriesResponse", + "client": { + "shortName": "DatasetServiceClient", + "fullName": "google.cloud.aiplatform.v1.DatasetServiceClient" + }, + "method": { + "shortName": "ListSavedQueries", + "fullName": "google.cloud.aiplatform.v1.DatasetService.ListSavedQueries", + "service": { + "shortName": "DatasetService", + "fullName": "google.cloud.aiplatform.v1.DatasetService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_DatasetService_GetAnnotationSpec_async", "title": "DatasetService getAnnotationSpec Sample", @@ -1078,7 +1138,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 68, "type": "FULL" } ], @@ -5294,7 +5354,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 69, "type": "FULL" } ], @@ -5307,6 +5367,14 @@ "name": "parent", "type": "TYPE_STRING" }, + { + "name": "parent_model", + "type": "TYPE_STRING" + }, + { + "name": "model_id", + "type": "TYPE_STRING" + }, { "name": "model", "type": ".google.cloud.aiplatform.v1.Model" @@ -5338,7 +5406,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 60, "type": "FULL" } ], @@ -5427,6 +5495,62 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_ModelService_ListModelVersions_async", + "title": "DatasetService listModelVersions Sample", + "origin": "API_DEFINITION", + "description": " Lists versions of the specified model.", + "canonical": true, + "file": "model_service.list_model_versions.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 78, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListModelVersions", + "fullName": "google.cloud.aiplatform.v1.ModelService.ListModelVersions", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "read_mask", + "type": ".google.protobuf.FieldMask" + } + ], + "resultType": ".google.cloud.aiplatform.v1.ListModelVersionsResponse", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" + }, + "method": { + "shortName": "ListModelVersions", + "fullName": "google.cloud.aiplatform.v1.ModelService.ListModelVersions", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_ModelService_UpdateModel_async", "title": "DatasetService updateModel Sample", @@ -5511,6 +5635,90 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_ModelService_DeleteModelVersion_async", + "title": "DatasetService deleteModelVersion Sample", + "origin": "API_DEFINITION", + "description": " Deletes a Model version. Model version can only be deleted if there are no [DeployedModels][] created from it. Deleting the only version in the Model is not allowed. Use [DeleteModel][google.cloud.aiplatform.v1.ModelService.DeleteModel] for deleting the Model instead.", + "canonical": true, + "file": "model_service.delete_model_version.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 53, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "DeleteModelVersion", + "fullName": "google.cloud.aiplatform.v1.ModelService.DeleteModelVersion", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.longrunning.Operation", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" + }, + "method": { + "shortName": "DeleteModelVersion", + "fullName": "google.cloud.aiplatform.v1.ModelService.DeleteModelVersion", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1.ModelService" + } + } + } + }, + { + "regionTag": "aiplatform_v1_generated_ModelService_MergeVersionAliases_async", + "title": "DatasetService mergeVersionAliases Sample", + "origin": "API_DEFINITION", + "description": " Merges a set of aliases for a Model version.", + "canonical": true, + "file": "model_service.merge_version_aliases.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 67, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "MergeVersionAliases", + "fullName": "google.cloud.aiplatform.v1.ModelService.MergeVersionAliases", + "async": true, + "parameters": [ + { + "name": "name", + "type": "TYPE_STRING" + }, + { + "name": "version_aliases", + "type": "TYPE_STRING[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1.Model", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" + }, + "method": { + "shortName": "MergeVersionAliases", + "fullName": "google.cloud.aiplatform.v1.ModelService.MergeVersionAliases", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_ModelService_ExportModel_async", "title": "DatasetService exportModel Sample", @@ -5522,7 +5730,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 58, "type": "FULL" } ], @@ -5599,6 +5807,50 @@ } } }, + { + "regionTag": "aiplatform_v1_generated_ModelService_BatchImportModelEvaluationSlices_async", + "title": "DatasetService batchImportModelEvaluationSlices Sample", + "origin": "API_DEFINITION", + "description": " Imports a list of externally generated ModelEvaluationSlice.", + "canonical": true, + "file": "model_service.batch_import_model_evaluation_slices.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchImportModelEvaluationSlices", + "fullName": "google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "model_evaluation_slices", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1.ModelServiceClient" + }, + "method": { + "shortName": "BatchImportModelEvaluationSlices", + "fullName": "google.cloud.aiplatform.v1.ModelService.BatchImportModelEvaluationSlices", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1_generated_ModelService_GetModelEvaluation_async", "title": "DatasetService getModelEvaluation Sample", diff --git a/samples/generated/v1beta1/dataset_service.list_saved_queries.js b/samples/generated/v1beta1/dataset_service.list_saved_queries.js new file mode 100644 index 00000000..bf596263 --- /dev/null +++ b/samples/generated/v1beta1/dataset_service.list_saved_queries.js @@ -0,0 +1,83 @@ +// Copyright 2022 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent) { + // [START aiplatform_v1beta1_generated_DatasetService_ListSavedQueries_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The resource name of the Dataset to list SavedQueries from. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + */ + // const parent = 'abc123' + /** + * The standard list filter. + */ + // const filter = 'abc123' + /** + * The standard list page size. + */ + // const pageSize = 1234 + /** + * The standard list page token. + */ + // const pageToken = 'abc123' + /** + * Mask specifying which fields to read. + */ + // const readMask = {} + /** + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + */ + // const orderBy = 'abc123' + + // Imports the Aiplatform library + const {DatasetServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new DatasetServiceClient(); + + async function callListSavedQueries() { + // Construct request + const request = { + parent, + }; + + // Run request + const iterable = await aiplatformClient.listSavedQueriesAsync(request); + for await (const response of iterable) { + console.log(response); + } + } + + callListSavedQueries(); + // [END aiplatform_v1beta1_generated_DatasetService_ListSavedQueries_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1beta1/featurestore_service.update_featurestore.js b/samples/generated/v1beta1/featurestore_service.update_featurestore.js index 87d58777..6b2bf9c4 100644 --- a/samples/generated/v1beta1/featurestore_service.update_featurestore.js +++ b/samples/generated/v1beta1/featurestore_service.update_featurestore.js @@ -43,6 +43,7 @@ function main(featurestore) { * Updatable fields: * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` */ // const updateMask = {} diff --git a/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js b/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js new file mode 100644 index 00000000..8aacdc80 --- /dev/null +++ b/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js @@ -0,0 +1,65 @@ +// Copyright 2022 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. +// +// ** This file is automatically generated by gapic-generator-typescript. ** +// ** https://github.com/googleapis/gapic-generator-typescript ** +// ** All changes to this file may be overwritten. ** + + + +'use strict'; + +function main(parent, modelEvaluationSlices) { + // [START aiplatform_v1beta1_generated_ModelService_BatchImportModelEvaluationSlices_async] + /** + * TODO(developer): Uncomment these variables before running the sample. + */ + /** + * Required. The name of the parent ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + */ + // const parent = 'abc123' + /** + * Required. Model evaluation slice resource to be imported. + */ + // const modelEvaluationSlices = 1234 + + // Imports the Aiplatform library + const {ModelServiceClient} = require('@google-cloud/aiplatform').v1beta1; + + // Instantiates a client + const aiplatformClient = new ModelServiceClient(); + + async function callBatchImportModelEvaluationSlices() { + // Construct request + const request = { + parent, + modelEvaluationSlices, + }; + + // Run request + const response = await aiplatformClient.batchImportModelEvaluationSlices(request); + console.log(response); + } + + callBatchImportModelEvaluationSlices(); + // [END aiplatform_v1beta1_generated_ModelService_BatchImportModelEvaluationSlices_async] +} + +process.on('unhandledRejection', err => { + console.error(err.message); + process.exitCode = 1; +}); +main(...process.argv.slice(2)); diff --git a/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index cfd82e44..ca9d8d3d 100644 --- a/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -391,6 +391,66 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_DatasetService_ListSavedQueries_async", + "title": "DatasetService listSavedQueries Sample", + "origin": "API_DEFINITION", + "description": " Lists SavedQueries in a Dataset.", + "canonical": true, + "file": "dataset_service.list_saved_queries.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 75, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "ListSavedQueries", + "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "filter", + "type": "TYPE_STRING" + }, + { + "name": "page_size", + "type": "TYPE_INT32" + }, + { + "name": "page_token", + "type": "TYPE_STRING" + }, + { + "name": "read_mask", + "type": ".google.protobuf.FieldMask" + }, + { + "name": "order_by", + "type": "TYPE_STRING" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.ListSavedQueriesResponse", + "client": { + "shortName": "DatasetServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.DatasetServiceClient" + }, + "method": { + "shortName": "ListSavedQueries", + "fullName": "google.cloud.aiplatform.v1beta1.DatasetService.ListSavedQueries", + "service": { + "shortName": "DatasetService", + "fullName": "google.cloud.aiplatform.v1beta1.DatasetService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_DatasetService_GetAnnotationSpec_async", "title": "DatasetService getAnnotationSpec Sample", @@ -1074,7 +1134,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 68, "type": "FULL" } ], @@ -5783,6 +5843,50 @@ } } }, + { + "regionTag": "aiplatform_v1beta1_generated_ModelService_BatchImportModelEvaluationSlices_async", + "title": "DatasetService batchImportModelEvaluationSlices Sample", + "origin": "API_DEFINITION", + "description": " Imports a list of externally generated ModelEvaluationSlice.", + "canonical": true, + "file": "model_service.batch_import_model_evaluation_slices.js", + "language": "JAVASCRIPT", + "segments": [ + { + "start": 25, + "end": 57, + "type": "FULL" + } + ], + "clientMethod": { + "shortName": "BatchImportModelEvaluationSlices", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices", + "async": true, + "parameters": [ + { + "name": "parent", + "type": "TYPE_STRING" + }, + { + "name": "model_evaluation_slices", + "type": "TYPE_MESSAGE[]" + } + ], + "resultType": ".google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse", + "client": { + "shortName": "ModelServiceClient", + "fullName": "google.cloud.aiplatform.v1beta1.ModelServiceClient" + }, + "method": { + "shortName": "BatchImportModelEvaluationSlices", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService.BatchImportModelEvaluationSlices", + "service": { + "shortName": "ModelService", + "fullName": "google.cloud.aiplatform.v1beta1.ModelService" + } + } + } + }, { "regionTag": "aiplatform_v1beta1_generated_ModelService_GetModelEvaluation_async", "title": "DatasetService getModelEvaluation Sample", diff --git a/src/v1/dataset_service_client.ts b/src/v1/dataset_service_client.ts index ef9ca7be..1bbe4e93 100644 --- a/src/v1/dataset_service_client.ts +++ b/src/v1/dataset_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -64,6 +69,8 @@ export class DatasetServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; datasetServiceStub?: Promise<{[name: string]: Function}>; @@ -73,7 +80,7 @@ export class DatasetServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -96,11 +103,10 @@ export class DatasetServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -144,6 +150,9 @@ export class DatasetServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -243,6 +252,9 @@ export class DatasetServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -283,6 +295,11 @@ export class DatasetServiceClient { 'nextPageToken', 'dataItems' ), + listSavedQueries: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'savedQueries' + ), listAnnotations: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -291,16 +308,957 @@ export class DatasetServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createDatasetResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.Dataset' @@ -408,6 +1366,7 @@ export class DatasetServiceClient { 'importData', 'exportData', 'listDataItems', + 'listSavedQueries', 'getAnnotationSpec', 'listAnnotations', ]; @@ -1816,6 +2775,222 @@ export class DatasetServiceClient { callSettings ) as AsyncIterable; } + /** + * Lists SavedQueries in a Dataset. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Dataset to list SavedQueries from. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [SavedQuery]{@link google.cloud.aiplatform.v1.SavedQuery}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listSavedQueriesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listSavedQueries( + request?: protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ISavedQuery[], + protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest | null, + protos.google.cloud.aiplatform.v1.IListSavedQueriesResponse + ] + >; + listSavedQueries( + request: protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest, + | protos.google.cloud.aiplatform.v1.IListSavedQueriesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ISavedQuery + > + ): void; + listSavedQueries( + request: protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest, + | protos.google.cloud.aiplatform.v1.IListSavedQueriesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ISavedQuery + > + ): void; + listSavedQueries( + request?: protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest, + | protos.google.cloud.aiplatform.v1.IListSavedQueriesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ISavedQuery + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest, + | protos.google.cloud.aiplatform.v1.IListSavedQueriesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.ISavedQuery + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.ISavedQuery[], + protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest | null, + protos.google.cloud.aiplatform.v1.IListSavedQueriesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listSavedQueries(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Dataset to list SavedQueries from. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [SavedQuery]{@link google.cloud.aiplatform.v1.SavedQuery} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listSavedQueriesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listSavedQueriesStream( + request?: protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listSavedQueries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listSavedQueries.createStream( + this.innerApiCalls.listSavedQueries as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listSavedQueries`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Dataset to list SavedQueries from. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [SavedQuery]{@link google.cloud.aiplatform.v1.SavedQuery}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/dataset_service.list_saved_queries.js + * region_tag:aiplatform_v1_generated_DatasetService_ListSavedQueries_async + */ + listSavedQueriesAsync( + request?: protos.google.cloud.aiplatform.v1.IListSavedQueriesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listSavedQueries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listSavedQueries.asyncIterate( + this.innerApiCalls['listSavedQueries'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } /** * Lists Annotations belongs to a dataitem * @@ -2032,6 +3207,403 @@ export class DatasetServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3611,6 +5183,77 @@ export class DatasetServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -4190,6 +5833,8 @@ export class DatasetServiceClient { return this.datasetServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/dataset_service_client_config.json b/src/v1/dataset_service_client_config.json index 2b8e5d85..69bc6d22 100644 --- a/src/v1/dataset_service_client_config.json +++ b/src/v1/dataset_service_client_config.json @@ -52,6 +52,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListSavedQueries": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetAnnotationSpec": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/src/v1/dataset_service_proto_list.json b/src/v1/dataset_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/dataset_service_proto_list.json +++ b/src/v1/dataset_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/endpoint_service_client.ts b/src/v1/endpoint_service_client.ts index 73f9b703..af07dba1 100644 --- a/src/v1/endpoint_service_client.ts +++ b/src/v1/endpoint_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class EndpointServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; endpointServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class EndpointServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class EndpointServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class EndpointServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -242,6 +251,9 @@ export class EndpointServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -280,16 +292,957 @@ export class EndpointServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createEndpointResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.Endpoint' @@ -1538,6 +2491,403 @@ export class EndpointServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3117,6 +4467,77 @@ export class EndpointServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -3696,6 +5117,8 @@ export class EndpointServiceClient { return this.endpointServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/endpoint_service_proto_list.json b/src/v1/endpoint_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/endpoint_service_proto_list.json +++ b/src/v1/endpoint_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/featurestore_online_serving_service_client.ts b/src/v1/featurestore_online_serving_service_client.ts index ce8fec9e..1b14310a 100644 --- a/src/v1/featurestore_online_serving_service_client.ts +++ b/src/v1/featurestore_online_serving_service_client.ts @@ -23,7 +23,12 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, GoogleError, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {PassThrough} from 'stream'; @@ -35,7 +40,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './featurestore_online_serving_service_client_config.json'; - +import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -60,7 +65,10 @@ export class FeaturestoreOnlineServingServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; + operationsClient: gax.OperationsClient; featurestoreOnlineServingServiceStub?: Promise<{[name: string]: Function}>; /** @@ -68,7 +76,7 @@ export class FeaturestoreOnlineServingServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -91,11 +99,10 @@ export class FeaturestoreOnlineServingServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -140,6 +147,9 @@ export class FeaturestoreOnlineServingServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -236,6 +246,9 @@ export class FeaturestoreOnlineServingServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -271,6 +284,962 @@ export class FeaturestoreOnlineServingServiceClient { ), }; + const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + // This API contains "long-running operations", which return a + // an Operation object that allows for tracking of the operation, + // rather than holding a request open. + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } + this.operationsClient = this._gaxModule + .lro(lroOptions) + .operationsClient(opts); + + this.descriptors.longrunning = {}; + // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( 'google.cloud.aiplatform.v1.FeaturestoreOnlineServingService', @@ -567,6 +1536,403 @@ export class FeaturestoreOnlineServingServiceClient { return this.innerApiCalls.streamingReadFeatureValues(request, options); } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2110,6 +3476,77 @@ export class FeaturestoreOnlineServingServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -2689,6 +4126,9 @@ export class FeaturestoreOnlineServingServiceClient { return this.featurestoreOnlineServingServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/src/v1/featurestore_online_serving_service_proto_list.json b/src/v1/featurestore_online_serving_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/featurestore_online_serving_service_proto_list.json +++ b/src/v1/featurestore_online_serving_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/featurestore_service_client.ts b/src/v1/featurestore_service_client.ts index e320e0fb..e3279bb2 100644 --- a/src/v1/featurestore_service_client.ts +++ b/src/v1/featurestore_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class FeaturestoreServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; featurestoreServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class FeaturestoreServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class FeaturestoreServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class FeaturestoreServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -245,6 +254,9 @@ export class FeaturestoreServiceClient { projectPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -298,16 +310,957 @@ export class FeaturestoreServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createFeaturestoreResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.Featurestore' @@ -1259,6 +2212,7 @@ export class FeaturestoreServiceClient { * * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4145,6 +5099,403 @@ export class FeaturestoreServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -5747,6 +7098,77 @@ export class FeaturestoreServiceClient { return this.pathTemplates.projectPathTemplate.match(projectName).project; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -6326,6 +7748,8 @@ export class FeaturestoreServiceClient { return this.featurestoreServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/featurestore_service_proto_list.json b/src/v1/featurestore_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/featurestore_service_proto_list.json +++ b/src/v1/featurestore_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/gapic_metadata.json b/src/v1/gapic_metadata.json index 8c7e4346..aea6ae2b 100644 --- a/src/v1/gapic_metadata.json +++ b/src/v1/gapic_metadata.json @@ -59,6 +59,13 @@ "listDataItemsAsync" ] }, + "ListSavedQueries": { + "methods": [ + "listSavedQueries", + "listSavedQueriesStream", + "listSavedQueriesAsync" + ] + }, "ListAnnotations": { "methods": [ "listAnnotations", @@ -120,6 +127,13 @@ "listDataItemsAsync" ] }, + "ListSavedQueries": { + "methods": [ + "listSavedQueries", + "listSavedQueriesStream", + "listSavedQueriesAsync" + ] + }, "ListAnnotations": { "methods": [ "listAnnotations", @@ -1359,11 +1373,21 @@ "updateModel" ] }, + "MergeVersionAliases": { + "methods": [ + "mergeVersionAliases" + ] + }, "ImportModelEvaluation": { "methods": [ "importModelEvaluation" ] }, + "BatchImportModelEvaluationSlices": { + "methods": [ + "batchImportModelEvaluationSlices" + ] + }, "GetModelEvaluation": { "methods": [ "getModelEvaluation" @@ -1384,6 +1408,11 @@ "deleteModel" ] }, + "DeleteModelVersion": { + "methods": [ + "deleteModelVersion" + ] + }, "ExportModel": { "methods": [ "exportModel" @@ -1396,6 +1425,13 @@ "listModelsAsync" ] }, + "ListModelVersions": { + "methods": [ + "listModelVersions", + "listModelVersionsStream", + "listModelVersionsAsync" + ] + }, "ListModelEvaluations": { "methods": [ "listModelEvaluations", @@ -1425,11 +1461,21 @@ "updateModel" ] }, + "MergeVersionAliases": { + "methods": [ + "mergeVersionAliases" + ] + }, "ImportModelEvaluation": { "methods": [ "importModelEvaluation" ] }, + "BatchImportModelEvaluationSlices": { + "methods": [ + "batchImportModelEvaluationSlices" + ] + }, "GetModelEvaluation": { "methods": [ "getModelEvaluation" @@ -1450,6 +1496,11 @@ "deleteModel" ] }, + "DeleteModelVersion": { + "methods": [ + "deleteModelVersion" + ] + }, "ExportModel": { "methods": [ "exportModel" @@ -1462,6 +1513,13 @@ "listModelsAsync" ] }, + "ListModelVersions": { + "methods": [ + "listModelVersions", + "listModelVersionsStream", + "listModelVersionsAsync" + ] + }, "ListModelEvaluations": { "methods": [ "listModelEvaluations", diff --git a/src/v1/index_endpoint_service_client.ts b/src/v1/index_endpoint_service_client.ts index c78914f2..01f428ea 100644 --- a/src/v1/index_endpoint_service_client.ts +++ b/src/v1/index_endpoint_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class IndexEndpointServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; indexEndpointServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class IndexEndpointServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class IndexEndpointServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class IndexEndpointServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -242,6 +251,9 @@ export class IndexEndpointServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -280,16 +292,957 @@ export class IndexEndpointServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createIndexEndpointResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.IndexEndpoint' @@ -1651,6 +2604,403 @@ export class IndexEndpointServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3230,6 +4580,77 @@ export class IndexEndpointServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -3809,6 +5230,8 @@ export class IndexEndpointServiceClient { return this.indexEndpointServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/index_endpoint_service_proto_list.json b/src/v1/index_endpoint_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/index_endpoint_service_proto_list.json +++ b/src/v1/index_endpoint_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/index_service_client.ts b/src/v1/index_service_client.ts index 554be9c6..bdab80c6 100644 --- a/src/v1/index_service_client.ts +++ b/src/v1/index_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class IndexServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; indexServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class IndexServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class IndexServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class IndexServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -242,6 +251,9 @@ export class IndexServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -280,16 +292,957 @@ export class IndexServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createIndexResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.Index' @@ -1182,6 +2135,403 @@ export class IndexServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2761,6 +4111,77 @@ export class IndexServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -3340,6 +4761,8 @@ export class IndexServiceClient { return this.indexServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/index_service_proto_list.json b/src/v1/index_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/index_service_proto_list.json +++ b/src/v1/index_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/job_service_client.ts b/src/v1/job_service_client.ts index 6550ce2a..83ee6aa3 100644 --- a/src/v1/job_service_client.ts +++ b/src/v1/job_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class JobServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; jobServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class JobServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class JobServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class JobServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -242,6 +251,9 @@ export class JobServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -306,16 +318,957 @@ export class JobServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const deleteCustomJobResponse = protoFilesRoot.lookup( '.google.protobuf.Empty' @@ -4620,6 +5573,403 @@ export class JobServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -6199,6 +7549,77 @@ export class JobServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -6778,6 +8199,8 @@ export class JobServiceClient { return this.jobServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/job_service_proto_list.json b/src/v1/job_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/job_service_proto_list.json +++ b/src/v1/job_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/metadata_service_client.ts b/src/v1/metadata_service_client.ts index a431d9a0..9b94cf37 100644 --- a/src/v1/metadata_service_client.ts +++ b/src/v1/metadata_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class MetadataServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; metadataServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class MetadataServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class MetadataServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class MetadataServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -245,6 +254,9 @@ export class MetadataServiceClient { projectPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -303,16 +315,957 @@ export class MetadataServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createMetadataStoreResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.MetadataStore' @@ -4921,6 +5874,403 @@ export class MetadataServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -6523,6 +7873,77 @@ export class MetadataServiceClient { return this.pathTemplates.projectPathTemplate.match(projectName).project; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -7102,6 +8523,8 @@ export class MetadataServiceClient { return this.metadataServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/metadata_service_proto_list.json b/src/v1/metadata_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/metadata_service_proto_list.json +++ b/src/v1/metadata_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/migration_service_client.ts b/src/v1/migration_service_client.ts index b3ea345a..52a6cc1f 100644 --- a/src/v1/migration_service_client.ts +++ b/src/v1/migration_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -64,6 +69,8 @@ export class MigrationServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; migrationServiceStub?: Promise<{[name: string]: Function}>; @@ -73,7 +80,7 @@ export class MigrationServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -96,11 +103,10 @@ export class MigrationServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -144,6 +150,9 @@ export class MigrationServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -243,6 +252,9 @@ export class MigrationServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -281,16 +293,957 @@ export class MigrationServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const batchMigrateResourcesResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse' @@ -839,6 +1792,403 @@ export class MigrationServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2418,6 +3768,77 @@ export class MigrationServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -2997,6 +4418,8 @@ export class MigrationServiceClient { return this.migrationServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/migration_service_proto_list.json b/src/v1/migration_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/migration_service_proto_list.json +++ b/src/v1/migration_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/model_service_client.ts b/src/v1/model_service_client.ts index f077ecda..417fb98b 100644 --- a/src/v1/model_service_client.ts +++ b/src/v1/model_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class ModelServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; modelServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class ModelServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class ModelServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class ModelServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -242,6 +251,9 @@ export class ModelServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -277,6 +289,11 @@ export class ModelServiceClient { 'nextPageToken', 'models' ), + listModelVersions: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'models' + ), listModelEvaluations: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -290,16 +307,957 @@ export class ModelServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const uploadModelResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.UploadModelResponse' @@ -313,6 +1271,12 @@ export class ModelServiceClient { const deleteModelMetadata = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.DeleteOperationMetadata' ) as gax.protobuf.Type; + const deleteModelVersionResponse = protoFilesRoot.lookup( + '.google.protobuf.Empty' + ) as gax.protobuf.Type; + const deleteModelVersionMetadata = protoFilesRoot.lookup( + '.google.cloud.aiplatform.v1.DeleteOperationMetadata' + ) as gax.protobuf.Type; const exportModelResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.ExportModelResponse' ) as gax.protobuf.Type; @@ -331,6 +1295,11 @@ export class ModelServiceClient { deleteModelResponse.decode.bind(deleteModelResponse), deleteModelMetadata.decode.bind(deleteModelMetadata) ), + deleteModelVersion: new this._gaxModule.LongrunningDescriptor( + this.operationsClient, + deleteModelVersionResponse.decode.bind(deleteModelVersionResponse), + deleteModelVersionMetadata.decode.bind(deleteModelVersionMetadata) + ), exportModel: new this._gaxModule.LongrunningDescriptor( this.operationsClient, exportModelResponse.decode.bind(exportModelResponse), @@ -391,10 +1360,14 @@ export class ModelServiceClient { 'uploadModel', 'getModel', 'listModels', + 'listModelVersions', 'updateModel', 'deleteModel', + 'deleteModelVersion', + 'mergeVersionAliases', 'exportModel', 'importModelEvaluation', + 'batchImportModelEvaluationSlices', 'getModelEvaluation', 'listModelEvaluations', 'getModelEvaluationSlice', @@ -492,6 +1465,16 @@ export class ModelServiceClient { * @param {string} request.name * Required. The name of the Model resource. * Format: `projects/{project}/locations/{location}/models/{model}` + * + * In order to retrieve a specific version of the model, also provide + * the version ID or version alias. + * Example: `projects/{project}/locations/{location}/models/{model}@2` + * or + * `projects/{project}/locations/{location}/models/{model}@golden` + * If no version ID or alias is specified, the "default" version will be + * returned. The "default" version alias is created for the first version of + * the model, and can be moved to other versions later on. There will be + * exactly one default version. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -673,6 +1656,113 @@ export class ModelServiceClient { this.initialize(); return this.innerApiCalls.updateModel(request, options, callback); } + /** + * Merges a set of aliases for a Model version. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the model version to merge aliases, with a version ID + * explicitly included. + * + * Example: `projects/{project}/locations/{location}/models/{model}@1234` + * @param {string[]} request.versionAliases + * Required. The set of version aliases to merge. + * The alias should be at most 128 characters, and match + * `{@link a-z0-9-|a-z}{0,126}[a-z-0-9]`. + * Add the `-` prefix to an alias means removing that alias from the version. + * `-` is NOT counted in the 128 characters. Example: `-golden` means removing + * the `golden` alias from the version. + * + * There is NO ordering in aliases, which means + * 1) The aliases returned from GetModel API might not have the exactly same + * order from this MergeVersionAliases API. 2) Adding and deleting the same + * alias in the request is not recommended, and the 2 operations will be + * cancelled out. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Model]{@link google.cloud.aiplatform.v1.Model}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/model_service.merge_version_aliases.js + * region_tag:aiplatform_v1_generated_ModelService_MergeVersionAliases_async + */ + mergeVersionAliases( + request?: protos.google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IModel, + protos.google.cloud.aiplatform.v1.IMergeVersionAliasesRequest | undefined, + {} | undefined + ] + >; + mergeVersionAliases( + request: protos.google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IModel, + | protos.google.cloud.aiplatform.v1.IMergeVersionAliasesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + mergeVersionAliases( + request: protos.google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IModel, + | protos.google.cloud.aiplatform.v1.IMergeVersionAliasesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + mergeVersionAliases( + request?: protos.google.cloud.aiplatform.v1.IMergeVersionAliasesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IModel, + | protos.google.cloud.aiplatform.v1.IMergeVersionAliasesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IModel, + | protos.google.cloud.aiplatform.v1.IMergeVersionAliasesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IModel, + protos.google.cloud.aiplatform.v1.IMergeVersionAliasesRequest | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.mergeVersionAliases(request, options, callback); + } /** * Imports an externally generated ModelEvaluation. * @@ -773,6 +1863,111 @@ export class ModelServiceClient { this.initialize(); return this.innerApiCalls.importModelEvaluation(request, options, callback); } + /** + * Imports a list of externally generated ModelEvaluationSlice. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @param {number[]} request.modelEvaluationSlices + * Required. Model evaluation slice resource to be imported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [BatchImportModelEvaluationSlicesResponse]{@link google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1/model_service.batch_import_model_evaluation_slices.js + * region_tag:aiplatform_v1_generated_ModelService_BatchImportModelEvaluationSlices_async + */ + batchImportModelEvaluationSlices( + request?: protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, + ( + | protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest + | undefined + ), + {} | undefined + ] + >; + batchImportModelEvaluationSlices( + request: protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, + | protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchImportModelEvaluationSlices( + request: protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, + | protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchImportModelEvaluationSlices( + request?: protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, + | protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, + | protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse, + ( + | protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.batchImportModelEvaluationSlices( + request, + options, + callback + ); + } /** * Gets a ModelEvaluation. * @@ -978,6 +2173,15 @@ export class ModelServiceClient { * @param {string} request.parent * Required. The resource name of the Location into which to upload the Model. * Format: `projects/{project}/locations/{location}` + * @param {string} [request.parentModel] + * Optional. The resource name of the model into which to upload the version. Only + * specify this field when uploading a new version. + * @param {string} [request.modelId] + * Optional. The ID to use for the uploaded Model, which will become the final + * component of the model resource name. + * + * This value may be up to 63 characters, and valid characters are + * `[a-z0-9_-]`. The first character cannot be a number or hyphen. * @param {google.cloud.aiplatform.v1.Model} request.model * Required. The Model to create. * @param {object} [options] @@ -1253,16 +2457,19 @@ export class ModelServiceClient { >; } /** - * Exports a trained, exportable Model to a location specified by the - * user. A Model is considered to be exportable if it has at least one - * {@link google.cloud.aiplatform.v1.Model.supported_export_formats|supported export format}. + * Deletes a Model version. + * + * Model version can only be deleted if there are no {@link |DeployedModels} + * created from it. Deleting the only version in the Model is not allowed. Use + * {@link google.cloud.aiplatform.v1.ModelService.DeleteModel|DeleteModel} for deleting the Model instead. * * @param {Object} request * The request object that will be sent. * @param {string} request.name - * Required. The resource name of the Model to export. - * @param {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} request.outputConfig - * Required. The desired output location and configuration. + * Required. The name of the model version to be deleted, with a version ID explicitly + * included. + * + * Example: `projects/{project}/locations/{location}/models/{model}@1234` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -1272,61 +2479,61 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example include:samples/generated/v1/model_service.export_model.js - * region_tag:aiplatform_v1_generated_ModelService_ExportModel_async + * @example include:samples/generated/v1/model_service.delete_model_version.js + * region_tag:aiplatform_v1_generated_ModelService_DeleteModelVersion_async */ - exportModel( - request?: protos.google.cloud.aiplatform.v1.IExportModelRequest, + deleteModelVersion( + request?: protos.google.cloud.aiplatform.v1.IDeleteModelVersionRequest, options?: CallOptions ): Promise< [ LROperation< - protos.google.cloud.aiplatform.v1.IExportModelResponse, - protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined ] >; - exportModel( - request: protos.google.cloud.aiplatform.v1.IExportModelRequest, + deleteModelVersion( + request: protos.google.cloud.aiplatform.v1.IDeleteModelVersionRequest, options: CallOptions, callback: Callback< LROperation< - protos.google.cloud.aiplatform.v1.IExportModelResponse, - protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - exportModel( - request: protos.google.cloud.aiplatform.v1.IExportModelRequest, + deleteModelVersion( + request: protos.google.cloud.aiplatform.v1.IDeleteModelVersionRequest, callback: Callback< LROperation< - protos.google.cloud.aiplatform.v1.IExportModelResponse, - protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined > ): void; - exportModel( - request?: protos.google.cloud.aiplatform.v1.IExportModelRequest, + deleteModelVersion( + request?: protos.google.cloud.aiplatform.v1.IDeleteModelVersionRequest, optionsOrCallback?: | CallOptions | Callback< LROperation< - protos.google.cloud.aiplatform.v1.IExportModelResponse, - protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined >, callback?: Callback< LROperation< - protos.google.cloud.aiplatform.v1.IExportModelResponse, - protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | null | undefined, {} | null | undefined @@ -1334,8 +2541,8 @@ export class ModelServiceClient { ): Promise< [ LROperation< - protos.google.cloud.aiplatform.v1.IExportModelResponse, - protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >, protos.google.longrunning.IOperation | undefined, {} | undefined @@ -1357,10 +2564,10 @@ export class ModelServiceClient { name: request.name || '', }); this.initialize(); - return this.innerApiCalls.exportModel(request, options, callback); + return this.innerApiCalls.deleteModelVersion(request, options, callback); } /** - * Check the status of the long running operation returned by `exportModel()`. + * Check the status of the long running operation returned by `deleteModelVersion()`. * @param {String} name * The operation name that will be passed. * @returns {Promise} - The promise which resolves to an object. @@ -1368,15 +2575,15 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example include:samples/generated/v1/model_service.export_model.js - * region_tag:aiplatform_v1_generated_ModelService_ExportModel_async + * @example include:samples/generated/v1/model_service.delete_model_version.js + * region_tag:aiplatform_v1_generated_ModelService_DeleteModelVersion_async */ - async checkExportModelProgress( + async checkDeleteModelVersionProgress( name: string ): Promise< LROperation< - protos.google.cloud.aiplatform.v1.ExportModelResponse, - protos.google.cloud.aiplatform.v1.ExportModelOperationMetadata + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata > > { const request = new operationsProtos.google.longrunning.GetOperationRequest( @@ -1385,49 +2592,192 @@ export class ModelServiceClient { const [operation] = await this.operationsClient.getOperation(request); const decodeOperation = new gax.Operation( operation, - this.descriptors.longrunning.exportModel, + this.descriptors.longrunning.deleteModelVersion, gax.createDefaultBackoffSettings() ); return decodeOperation as LROperation< - protos.google.cloud.aiplatform.v1.ExportModelResponse, - protos.google.cloud.aiplatform.v1.ExportModelOperationMetadata + protos.google.protobuf.Empty, + protos.google.cloud.aiplatform.v1.DeleteOperationMetadata >; } /** - * Lists Models in a Location. + * Exports a trained, exportable Model to a location specified by the + * user. A Model is considered to be exportable if it has at least one + * {@link google.cloud.aiplatform.v1.Model.supported_export_formats|supported export format}. * * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the Location to list the Models from. - * Format: `projects/{project}/locations/{location}` - * @param {string} request.filter - * An expression for filtering the results of the request. For field names - * both snake_case and camelCase are supported. - * - * * `model` supports = and !=. `model` represents the Model ID, - * i.e. the last segment of the Model's {@link google.cloud.aiplatform.v1.Model.name|resource name}. - * * `display_name` supports = and != - * * `labels` supports general map functions that is: - * * `labels.key=value` - key:value equality - * * `labels.key:* or labels:key - key existence - * * A key including a space must be quoted. `labels."a key"`. - * - * Some examples: - * * `model=1234` - * * `displayName="myDisplayName"` - * * `labels.myKey="myValue"` - * @param {number} request.pageSize - * The standard list page size. - * @param {string} request.pageToken - * The standard list page token. - * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListModelsResponse.next_page_token|ListModelsResponse.next_page_token} of the previous - * {@link google.cloud.aiplatform.v1.ModelService.ListModels|ModelService.ListModels} call. - * @param {google.protobuf.FieldMask} request.readMask - * Mask specifying which fields to read. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order. + * @param {string} request.name + * Required. The resource name of the Model to export. + * The resource name may contain version id or version alias to specify the + * version, if no version is specified, the default version will be exported. + * @param {google.cloud.aiplatform.v1.ExportModelRequest.OutputConfig} request.outputConfig + * Required. The desired output location and configuration. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/model_service.export_model.js + * region_tag:aiplatform_v1_generated_ModelService_ExportModel_async + */ + exportModel( + request?: protos.google.cloud.aiplatform.v1.IExportModelRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IExportModelResponse, + protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + exportModel( + request: protos.google.cloud.aiplatform.v1.IExportModelRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IExportModelResponse, + protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + exportModel( + request: protos.google.cloud.aiplatform.v1.IExportModelRequest, + callback: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IExportModelResponse, + protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + exportModel( + request?: protos.google.cloud.aiplatform.v1.IExportModelRequest, + optionsOrCallback?: + | CallOptions + | Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IExportModelResponse, + protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + >, + callback?: Callback< + LROperation< + protos.google.cloud.aiplatform.v1.IExportModelResponse, + protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): Promise< + [ + LROperation< + protos.google.cloud.aiplatform.v1.IExportModelResponse, + protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + name: request.name || '', + }); + this.initialize(); + return this.innerApiCalls.exportModel(request, options, callback); + } + /** + * Check the status of the long running operation returned by `exportModel()`. + * @param {String} name + * The operation name that will be passed. + * @returns {Promise} - The promise which resolves to an object. + * The decoded operation object has result and metadata field to get information from. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v1/model_service.export_model.js + * region_tag:aiplatform_v1_generated_ModelService_ExportModel_async + */ + async checkExportModelProgress( + name: string + ): Promise< + LROperation< + protos.google.cloud.aiplatform.v1.ExportModelResponse, + protos.google.cloud.aiplatform.v1.ExportModelOperationMetadata + > + > { + const request = new operationsProtos.google.longrunning.GetOperationRequest( + {name} + ); + const [operation] = await this.operationsClient.getOperation(request); + const decodeOperation = new gax.Operation( + operation, + this.descriptors.longrunning.exportModel, + gax.createDefaultBackoffSettings() + ); + return decodeOperation as LROperation< + protos.google.cloud.aiplatform.v1.ExportModelResponse, + protos.google.cloud.aiplatform.v1.ExportModelOperationMetadata + >; + } + /** + * Lists Models in a Location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the Models from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * An expression for filtering the results of the request. For field names + * both snake_case and camelCase are supported. + * + * * `model` supports = and !=. `model` represents the Model ID, + * i.e. the last segment of the Model's {@link google.cloud.aiplatform.v1.Model.name|resource name}. + * * `display_name` supports = and != + * * `labels` supports general map functions that is: + * * `labels.key=value` - key:value equality + * * `labels.key:* or labels:key - key existence + * * A key including a space must be quoted. `labels."a key"`. + * + * Some examples: + * * `model=1234` + * * `displayName="myDisplayName"` + * * `labels.myKey="myValue"` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListModelsResponse.next_page_token|ListModelsResponse.next_page_token} of the previous + * {@link google.cloud.aiplatform.v1.ModelService.ListModels|ModelService.ListModels} call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. * Use "desc" after a field name for descending. * Supported fields: * * `display_name` @@ -1470,32 +2820,299 @@ export class ModelServiceClient { listModels( request: protos.google.cloud.aiplatform.v1.IListModelsRequest, callback: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListModelsRequest, - protos.google.cloud.aiplatform.v1.IListModelsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.IListModelsRequest, + protos.google.cloud.aiplatform.v1.IListModelsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.IModel + > + ): void; + listModels( + request?: protos.google.cloud.aiplatform.v1.IListModelsRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1.IListModelsRequest, + | protos.google.cloud.aiplatform.v1.IListModelsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IModel + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListModelsRequest, + protos.google.cloud.aiplatform.v1.IListModelsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.IModel + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IModel[], + protos.google.cloud.aiplatform.v1.IListModelsRequest | null, + protos.google.cloud.aiplatform.v1.IListModelsResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listModels(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the Models from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * An expression for filtering the results of the request. For field names + * both snake_case and camelCase are supported. + * + * * `model` supports = and !=. `model` represents the Model ID, + * i.e. the last segment of the Model's {@link google.cloud.aiplatform.v1.Model.name|resource name}. + * * `display_name` supports = and != + * * `labels` supports general map functions that is: + * * `labels.key=value` - key:value equality + * * `labels.key:* or labels:key - key existence + * * A key including a space must be quoted. `labels."a key"`. + * + * Some examples: + * * `model=1234` + * * `displayName="myDisplayName"` + * * `labels.myKey="myValue"` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListModelsResponse.next_page_token|ListModelsResponse.next_page_token} of the previous + * {@link google.cloud.aiplatform.v1.ModelService.ListModels|ModelService.ListModels} call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * Supported fields: + * * `display_name` + * * `create_time` + * * `update_time` + * + * Example: `display_name, create_time desc`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [Model]{@link google.cloud.aiplatform.v1.Model} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listModelsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listModelsStream( + request?: protos.google.cloud.aiplatform.v1.IListModelsRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listModels']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listModels.createStream( + this.innerApiCalls.listModels as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listModels`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Location to list the Models from. + * Format: `projects/{project}/locations/{location}` + * @param {string} request.filter + * An expression for filtering the results of the request. For field names + * both snake_case and camelCase are supported. + * + * * `model` supports = and !=. `model` represents the Model ID, + * i.e. the last segment of the Model's {@link google.cloud.aiplatform.v1.Model.name|resource name}. + * * `display_name` supports = and != + * * `labels` supports general map functions that is: + * * `labels.key=value` - key:value equality + * * `labels.key:* or labels:key - key existence + * * A key including a space must be quoted. `labels."a key"`. + * + * Some examples: + * * `model=1234` + * * `displayName="myDisplayName"` + * * `labels.myKey="myValue"` + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListModelsResponse.next_page_token|ListModelsResponse.next_page_token} of the previous + * {@link google.cloud.aiplatform.v1.ModelService.ListModels|ModelService.ListModels} call. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * Supported fields: + * * `display_name` + * * `create_time` + * * `update_time` + * + * Example: `display_name, create_time desc`. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Model]{@link google.cloud.aiplatform.v1.Model}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1/model_service.list_models.js + * region_tag:aiplatform_v1_generated_ModelService_ListModels_async + */ + listModelsAsync( + request?: protos.google.cloud.aiplatform.v1.IListModelsRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listModels']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listModels.asyncIterate( + this.innerApiCalls['listModels'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } + /** + * Lists versions of the specified model. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The name of the model to list versions for. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token|ListModelVersionsResponse.next_page_token} of the previous + * {@link |ModelService.ListModelversions} call. + * @param {string} request.filter + * An expression for filtering the results of the request. For field names + * both snake_case and camelCase are supported. + * + * * `labels` supports general map functions that is: + * * `labels.key=value` - key:value equality + * * `labels.key:* or labels:key - key existence + * * A key including a space must be quoted. `labels."a key"`. + * + * Some examples: + * * `labels.myKey="myValue"` + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Model]{@link google.cloud.aiplatform.v1.Model}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listModelVersionsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listModelVersions( + request?: protos.google.cloud.aiplatform.v1.IListModelVersionsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1.IModel[], + protos.google.cloud.aiplatform.v1.IListModelVersionsRequest | null, + protos.google.cloud.aiplatform.v1.IListModelVersionsResponse + ] + >; + listModelVersions( + request: protos.google.cloud.aiplatform.v1.IListModelVersionsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListModelVersionsRequest, + | protos.google.cloud.aiplatform.v1.IListModelVersionsResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1.IModel + > + ): void; + listModelVersions( + request: protos.google.cloud.aiplatform.v1.IListModelVersionsRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1.IListModelVersionsRequest, + | protos.google.cloud.aiplatform.v1.IListModelVersionsResponse + | null + | undefined, protos.google.cloud.aiplatform.v1.IModel > ): void; - listModels( - request?: protos.google.cloud.aiplatform.v1.IListModelsRequest, + listModelVersions( + request?: protos.google.cloud.aiplatform.v1.IListModelVersionsRequest, optionsOrCallback?: | CallOptions | PaginationCallback< - protos.google.cloud.aiplatform.v1.IListModelsRequest, - | protos.google.cloud.aiplatform.v1.IListModelsResponse + protos.google.cloud.aiplatform.v1.IListModelVersionsRequest, + | protos.google.cloud.aiplatform.v1.IListModelVersionsResponse | null | undefined, protos.google.cloud.aiplatform.v1.IModel >, callback?: PaginationCallback< - protos.google.cloud.aiplatform.v1.IListModelsRequest, - protos.google.cloud.aiplatform.v1.IListModelsResponse | null | undefined, + protos.google.cloud.aiplatform.v1.IListModelVersionsRequest, + | protos.google.cloud.aiplatform.v1.IListModelVersionsResponse + | null + | undefined, protos.google.cloud.aiplatform.v1.IModel > ): Promise< [ protos.google.cloud.aiplatform.v1.IModel[], - protos.google.cloud.aiplatform.v1.IListModelsRequest | null, - protos.google.cloud.aiplatform.v1.IListModelsResponse + protos.google.cloud.aiplatform.v1.IListModelVersionsRequest | null, + protos.google.cloud.aiplatform.v1.IListModelVersionsResponse ] > | void { request = request || {}; @@ -1511,67 +3128,52 @@ export class ModelServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + name: request.name || '', }); this.initialize(); - return this.innerApiCalls.listModels(request, options, callback); + return this.innerApiCalls.listModelVersions(request, options, callback); } /** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the Location to list the Models from. - * Format: `projects/{project}/locations/{location}` + * @param {string} request.name + * Required. The name of the model to list versions for. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token|ListModelVersionsResponse.next_page_token} of the previous + * {@link |ModelService.ListModelversions} call. * @param {string} request.filter * An expression for filtering the results of the request. For field names * both snake_case and camelCase are supported. * - * * `model` supports = and !=. `model` represents the Model ID, - * i.e. the last segment of the Model's {@link google.cloud.aiplatform.v1.Model.name|resource name}. - * * `display_name` supports = and != * * `labels` supports general map functions that is: * * `labels.key=value` - key:value equality * * `labels.key:* or labels:key - key existence * * A key including a space must be quoted. `labels."a key"`. * * Some examples: - * * `model=1234` - * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` - * @param {number} request.pageSize - * The standard list page size. - * @param {string} request.pageToken - * The standard list page token. - * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListModelsResponse.next_page_token|ListModelsResponse.next_page_token} of the previous - * {@link google.cloud.aiplatform.v1.ModelService.ListModels|ModelService.ListModels} call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: - * * `display_name` - * * `create_time` - * * `update_time` - * - * Example: `display_name, create_time desc`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Stream} * An object stream which emits an object representing [Model]{@link google.cloud.aiplatform.v1.Model} on 'data' event. * The client library will perform auto-pagination by default: it will call the API as many * times as needed. Note that it can affect your quota. - * We recommend using `listModelsAsync()` + * We recommend using `listModelVersionsAsync()` * method described below for async iteration which you can stop as needed. * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ - listModelsStream( - request?: protos.google.cloud.aiplatform.v1.IListModelsRequest, + listModelVersionsStream( + request?: protos.google.cloud.aiplatform.v1.IListModelVersionsRequest, options?: CallOptions ): Transform { request = request || {}; @@ -1580,61 +3182,46 @@ export class ModelServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + name: request.name || '', }); - const defaultCallSettings = this._defaults['listModels']; + const defaultCallSettings = this._defaults['listModelVersions']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listModels.createStream( - this.innerApiCalls.listModels as gax.GaxCall, + return this.descriptors.page.listModelVersions.createStream( + this.innerApiCalls.listModelVersions as gax.GaxCall, request, callSettings ); } /** - * Equivalent to `listModels`, but returns an iterable object. + * Equivalent to `listModelVersions`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the Location to list the Models from. - * Format: `projects/{project}/locations/{location}` + * @param {string} request.name + * Required. The name of the model to list versions for. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * Typically obtained via + * {@link google.cloud.aiplatform.v1.ListModelVersionsResponse.next_page_token|ListModelVersionsResponse.next_page_token} of the previous + * {@link |ModelService.ListModelversions} call. * @param {string} request.filter * An expression for filtering the results of the request. For field names * both snake_case and camelCase are supported. * - * * `model` supports = and !=. `model` represents the Model ID, - * i.e. the last segment of the Model's {@link google.cloud.aiplatform.v1.Model.name|resource name}. - * * `display_name` supports = and != * * `labels` supports general map functions that is: * * `labels.key=value` - key:value equality * * `labels.key:* or labels:key - key existence * * A key including a space must be quoted. `labels."a key"`. * * Some examples: - * * `model=1234` - * * `displayName="myDisplayName"` * * `labels.myKey="myValue"` - * @param {number} request.pageSize - * The standard list page size. - * @param {string} request.pageToken - * The standard list page token. - * Typically obtained via - * {@link google.cloud.aiplatform.v1.ListModelsResponse.next_page_token|ListModelsResponse.next_page_token} of the previous - * {@link google.cloud.aiplatform.v1.ModelService.ListModels|ModelService.ListModels} call. * @param {google.protobuf.FieldMask} request.readMask * Mask specifying which fields to read. - * @param {string} request.orderBy - * A comma-separated list of fields to order by, sorted in ascending order. - * Use "desc" after a field name for descending. - * Supported fields: - * * `display_name` - * * `create_time` - * * `update_time` - * - * Example: `display_name, create_time desc`. * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Object} @@ -1645,11 +3232,11 @@ export class ModelServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example include:samples/generated/v1/model_service.list_models.js - * region_tag:aiplatform_v1_generated_ModelService_ListModels_async + * @example include:samples/generated/v1/model_service.list_model_versions.js + * region_tag:aiplatform_v1_generated_ModelService_ListModelVersions_async */ - listModelsAsync( - request?: protos.google.cloud.aiplatform.v1.IListModelsRequest, + listModelVersionsAsync( + request?: protos.google.cloud.aiplatform.v1.IListModelVersionsRequest, options?: CallOptions ): AsyncIterable { request = request || {}; @@ -1658,13 +3245,13 @@ export class ModelServiceClient { options.otherArgs.headers = options.otherArgs.headers || {}; options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ - parent: request.parent || '', + name: request.name || '', }); - const defaultCallSettings = this._defaults['listModels']; + const defaultCallSettings = this._defaults['listModelVersions']; const callSettings = defaultCallSettings.merge(options); this.initialize(); - return this.descriptors.page.listModels.asyncIterate( - this.innerApiCalls['listModels'] as GaxCall, + return this.descriptors.page.listModelVersions.asyncIterate( + this.innerApiCalls['listModelVersions'] as GaxCall, request as unknown as RequestType, callSettings ) as AsyncIterable; @@ -2108,6 +3695,403 @@ export class ModelServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3687,6 +5671,77 @@ export class ModelServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -4266,6 +6321,8 @@ export class ModelServiceClient { return this.modelServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/model_service_client_config.json b/src/v1/model_service_client_config.json index 8ecf5e9a..c067ea14 100644 --- a/src/v1/model_service_client_config.json +++ b/src/v1/model_service_client_config.json @@ -32,6 +32,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListModelVersions": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "UpdateModel": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -40,6 +44,14 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "DeleteModelVersion": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, + "MergeVersionAliases": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "ExportModel": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" @@ -48,6 +60,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "BatchImportModelEvaluationSlices": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetModelEvaluation": { "retry_codes_name": "non_idempotent", "retry_params_name": "default" diff --git a/src/v1/model_service_proto_list.json b/src/v1/model_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/model_service_proto_list.json +++ b/src/v1/model_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/pipeline_service_client.ts b/src/v1/pipeline_service_client.ts index cae429fb..e99666ff 100644 --- a/src/v1/pipeline_service_client.ts +++ b/src/v1/pipeline_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -65,6 +70,8 @@ export class PipelineServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; pipelineServiceStub?: Promise<{[name: string]: Function}>; @@ -74,7 +81,7 @@ export class PipelineServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -97,11 +104,10 @@ export class PipelineServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -145,6 +151,9 @@ export class PipelineServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -244,6 +253,9 @@ export class PipelineServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -287,16 +299,957 @@ export class PipelineServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const deleteTrainingPipelineResponse = protoFilesRoot.lookup( '.google.protobuf.Empty' @@ -1965,6 +2918,403 @@ export class PipelineServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3544,6 +4894,77 @@ export class PipelineServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -4123,6 +5544,8 @@ export class PipelineServiceClient { return this.pipelineServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/pipeline_service_proto_list.json b/src/v1/pipeline_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/pipeline_service_proto_list.json +++ b/src/v1/pipeline_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/prediction_service_client.ts b/src/v1/prediction_service_client.ts index be67445a..c2ca857e 100644 --- a/src/v1/prediction_service_client.ts +++ b/src/v1/prediction_service_client.ts @@ -18,7 +18,17 @@ /* global window */ import * as gax from 'google-gax'; -import {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import { + Callback, + CallOptions, + Descriptors, + ClientOptions, + GrpcClientOptions, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, +} from 'google-gax'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -28,7 +38,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './prediction_service_client_config.json'; - +import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -53,7 +63,10 @@ export class PredictionServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; + operationsClient: gax.OperationsClient; predictionServiceStub?: Promise<{[name: string]: Function}>; /** @@ -61,7 +74,7 @@ export class PredictionServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -84,11 +97,10 @@ export class PredictionServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -132,6 +144,9 @@ export class PredictionServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -228,6 +243,9 @@ export class PredictionServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -254,6 +272,962 @@ export class PredictionServiceClient { ), }; + const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + // This API contains "long-running operations", which return a + // an Operation object that allows for tracking of the operation, + // rather than holding a request open. + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } + this.operationsClient = this._gaxModule + .lro(lroOptions) + .operationsClient(opts); + + this.descriptors.longrunning = {}; + // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( 'google.cloud.aiplatform.v1.PredictionService', @@ -716,6 +1690,403 @@ export class PredictionServiceClient { return this.innerApiCalls.explain(request, options, callback); } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2259,6 +3630,77 @@ export class PredictionServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -2838,6 +4280,9 @@ export class PredictionServiceClient { return this.predictionServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/src/v1/prediction_service_proto_list.json b/src/v1/prediction_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/prediction_service_proto_list.json +++ b/src/v1/prediction_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/specialist_pool_service_client.ts b/src/v1/specialist_pool_service_client.ts index 47be82a9..96057c41 100644 --- a/src/v1/specialist_pool_service_client.ts +++ b/src/v1/specialist_pool_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -68,6 +73,8 @@ export class SpecialistPoolServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; specialistPoolServiceStub?: Promise<{[name: string]: Function}>; @@ -77,7 +84,7 @@ export class SpecialistPoolServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -100,11 +107,10 @@ export class SpecialistPoolServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -149,6 +155,9 @@ export class SpecialistPoolServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -248,6 +257,9 @@ export class SpecialistPoolServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -286,16 +298,957 @@ export class SpecialistPoolServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createSpecialistPoolResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.SpecialistPool' @@ -1197,6 +2150,403 @@ export class SpecialistPoolServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2776,6 +4126,77 @@ export class SpecialistPoolServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -3355,6 +4776,8 @@ export class SpecialistPoolServiceClient { return this.specialistPoolServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/specialist_pool_service_proto_list.json b/src/v1/specialist_pool_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/specialist_pool_service_proto_list.json +++ b/src/v1/specialist_pool_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/tensorboard_service_client.ts b/src/v1/tensorboard_service_client.ts index 646a42dd..98c3cf66 100644 --- a/src/v1/tensorboard_service_client.ts +++ b/src/v1/tensorboard_service_client.ts @@ -23,10 +23,15 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, GoogleError, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -65,6 +70,8 @@ export class TensorboardServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; tensorboardServiceStub?: Promise<{[name: string]: Function}>; @@ -74,7 +81,7 @@ export class TensorboardServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -97,11 +104,10 @@ export class TensorboardServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -145,6 +151,9 @@ export class TensorboardServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -247,6 +256,9 @@ export class TensorboardServiceClient { projectPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -314,16 +326,957 @@ export class TensorboardServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createTensorboardResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.Tensorboard' @@ -4395,6 +5348,403 @@ export class TensorboardServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -5997,6 +7347,77 @@ export class TensorboardServiceClient { return this.pathTemplates.projectPathTemplate.match(projectName).project; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -6576,6 +7997,8 @@ export class TensorboardServiceClient { return this.tensorboardServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/tensorboard_service_proto_list.json b/src/v1/tensorboard_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/tensorboard_service_proto_list.json +++ b/src/v1/tensorboard_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1/vizier_service_client.ts b/src/v1/vizier_service_client.ts index 6e60bbb6..1c7b7eb1 100644 --- a/src/v1/vizier_service_client.ts +++ b/src/v1/vizier_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -67,6 +72,8 @@ export class VizierServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; vizierServiceStub?: Promise<{[name: string]: Function}>; @@ -76,7 +83,7 @@ export class VizierServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -99,11 +106,10 @@ export class VizierServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -147,6 +153,9 @@ export class VizierServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -246,6 +255,9 @@ export class VizierServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -289,16 +301,957 @@ export class VizierServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [{get: '/v1/{name=projects/*/locations/*}'}], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + additional_bindings: [ + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:cancel'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/operations/*}'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*}/operations'}, + {get: '/v1/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/v1/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/v1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const suggestTrialsResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1.SuggestTrialsResponse' @@ -2149,6 +3102,403 @@ export class VizierServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3728,6 +5078,77 @@ export class VizierServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -4307,6 +5728,8 @@ export class VizierServiceClient { return this.vizierServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1/vizier_service_proto_list.json b/src/v1/vizier_service_proto_list.json index 68335b13..d82a7a8b 100644 --- a/src/v1/vizier_service_proto_list.json +++ b/src/v1/vizier_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_classification.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_object_detection.proto", "../../protos/google/cloud/aiplatform/v1/schema/predict/instance/image_segmentation.proto", diff --git a/src/v1beta1/dataset_service_client.ts b/src/v1beta1/dataset_service_client.ts index 9cab8f53..63603c66 100644 --- a/src/v1beta1/dataset_service_client.ts +++ b/src/v1beta1/dataset_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -64,6 +69,8 @@ export class DatasetServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; datasetServiceStub?: Promise<{[name: string]: Function}>; @@ -73,7 +80,7 @@ export class DatasetServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -96,11 +103,10 @@ export class DatasetServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -144,6 +150,9 @@ export class DatasetServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -243,6 +252,9 @@ export class DatasetServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -283,6 +295,11 @@ export class DatasetServiceClient { 'nextPageToken', 'dataItems' ), + listSavedQueries: new this._gaxModule.PageDescriptor( + 'pageToken', + 'nextPageToken', + 'savedQueries' + ), listAnnotations: new this._gaxModule.PageDescriptor( 'pageToken', 'nextPageToken', @@ -291,16 +308,1022 @@ export class DatasetServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createDatasetResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.Dataset' @@ -408,6 +1431,7 @@ export class DatasetServiceClient { 'importData', 'exportData', 'listDataItems', + 'listSavedQueries', 'getAnnotationSpec', 'listAnnotations', ]; @@ -1828,6 +2852,222 @@ export class DatasetServiceClient { callSettings ) as AsyncIterable; } + /** + * Lists SavedQueries in a Dataset. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Dataset to list SavedQueries from. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [SavedQuery]{@link google.cloud.aiplatform.v1beta1.SavedQuery}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listSavedQueriesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listSavedQueries( + request?: protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.ISavedQuery[], + protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse + ] + >; + listSavedQueries( + request: protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, + | protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ISavedQuery + > + ): void; + listSavedQueries( + request: protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, + callback: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, + | protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ISavedQuery + > + ): void; + listSavedQueries( + request?: protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, + optionsOrCallback?: + | CallOptions + | PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, + | protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ISavedQuery + >, + callback?: PaginationCallback< + protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, + | protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse + | null + | undefined, + protos.google.cloud.aiplatform.v1beta1.ISavedQuery + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.ISavedQuery[], + protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest | null, + protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesResponse + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.listSavedQueries(request, options, callback); + } + + /** + * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Dataset to list SavedQueries from. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Stream} + * An object stream which emits an object representing [SavedQuery]{@link google.cloud.aiplatform.v1beta1.SavedQuery} on 'data' event. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed. Note that it can affect your quota. + * We recommend using `listSavedQueriesAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ + listSavedQueriesStream( + request?: protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, + options?: CallOptions + ): Transform { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listSavedQueries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listSavedQueries.createStream( + this.innerApiCalls.listSavedQueries as gax.GaxCall, + request, + callSettings + ); + } + + /** + * Equivalent to `listSavedQueries`, but returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the Dataset to list SavedQueries from. + * Format: + * `projects/{project}/locations/{location}/datasets/{dataset}` + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {google.protobuf.FieldMask} request.readMask + * Mask specifying which fields to read. + * @param {string} request.orderBy + * A comma-separated list of fields to order by, sorted in ascending order. + * Use "desc" after a field name for descending. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [SavedQuery]{@link google.cloud.aiplatform.v1beta1.SavedQuery}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example include:samples/generated/v1beta1/dataset_service.list_saved_queries.js + * region_tag:aiplatform_v1beta1_generated_DatasetService_ListSavedQueries_async + */ + listSavedQueriesAsync( + request?: protos.google.cloud.aiplatform.v1beta1.IListSavedQueriesRequest, + options?: CallOptions + ): AsyncIterable { + request = request || {}; + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + const defaultCallSettings = this._defaults['listSavedQueries']; + const callSettings = defaultCallSettings.merge(options); + this.initialize(); + return this.descriptors.page.listSavedQueries.asyncIterate( + this.innerApiCalls['listSavedQueries'] as GaxCall, + request as unknown as RequestType, + callSettings + ) as AsyncIterable; + } /** * Lists Annotations belongs to a dataitem * @@ -2044,6 +3284,403 @@ export class DatasetServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3623,6 +5260,77 @@ export class DatasetServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -4202,6 +5910,8 @@ export class DatasetServiceClient { return this.datasetServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/dataset_service_client_config.json b/src/v1beta1/dataset_service_client_config.json index 64c47562..6ddf573c 100644 --- a/src/v1beta1/dataset_service_client_config.json +++ b/src/v1beta1/dataset_service_client_config.json @@ -60,6 +60,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "ListSavedQueries": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetAnnotationSpec": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", diff --git a/src/v1beta1/dataset_service_proto_list.json b/src/v1beta1/dataset_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/dataset_service_proto_list.json +++ b/src/v1beta1/dataset_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/endpoint_service_client.ts b/src/v1beta1/endpoint_service_client.ts index d60f6e93..bba29d57 100644 --- a/src/v1beta1/endpoint_service_client.ts +++ b/src/v1beta1/endpoint_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class EndpointServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; endpointServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class EndpointServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class EndpointServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class EndpointServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -242,6 +251,9 @@ export class EndpointServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -280,16 +292,1022 @@ export class EndpointServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createEndpointResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.Endpoint' @@ -1517,6 +2535,403 @@ export class EndpointServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3096,6 +4511,77 @@ export class EndpointServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -3675,6 +5161,8 @@ export class EndpointServiceClient { return this.endpointServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/endpoint_service_proto_list.json b/src/v1beta1/endpoint_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/endpoint_service_proto_list.json +++ b/src/v1beta1/endpoint_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/featurestore_online_serving_service_client.ts b/src/v1beta1/featurestore_online_serving_service_client.ts index 4dc5a016..66421743 100644 --- a/src/v1beta1/featurestore_online_serving_service_client.ts +++ b/src/v1beta1/featurestore_online_serving_service_client.ts @@ -23,7 +23,12 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, GoogleError, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {PassThrough} from 'stream'; @@ -35,7 +40,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './featurestore_online_serving_service_client_config.json'; - +import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -60,7 +65,10 @@ export class FeaturestoreOnlineServingServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; + operationsClient: gax.OperationsClient; featurestoreOnlineServingServiceStub?: Promise<{[name: string]: Function}>; /** @@ -68,7 +76,7 @@ export class FeaturestoreOnlineServingServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -91,11 +99,10 @@ export class FeaturestoreOnlineServingServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -140,6 +147,9 @@ export class FeaturestoreOnlineServingServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -236,6 +246,9 @@ export class FeaturestoreOnlineServingServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -271,6 +284,1027 @@ export class FeaturestoreOnlineServingServiceClient { ), }; + const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + // This API contains "long-running operations", which return a + // an Operation object that allows for tracking of the operation, + // rather than holding a request open. + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } + this.operationsClient = this._gaxModule + .lro(lroOptions) + .operationsClient(opts); + + this.descriptors.longrunning = {}; + // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( 'google.cloud.aiplatform.v1beta1.FeaturestoreOnlineServingService', @@ -573,6 +1607,403 @@ export class FeaturestoreOnlineServingServiceClient { return this.innerApiCalls.streamingReadFeatureValues(request, options); } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2116,6 +3547,77 @@ export class FeaturestoreOnlineServingServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -2695,6 +4197,9 @@ export class FeaturestoreOnlineServingServiceClient { return this.featurestoreOnlineServingServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/src/v1beta1/featurestore_online_serving_service_proto_list.json b/src/v1beta1/featurestore_online_serving_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/featurestore_online_serving_service_proto_list.json +++ b/src/v1beta1/featurestore_online_serving_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/featurestore_service_client.ts b/src/v1beta1/featurestore_service_client.ts index 3df16a51..f3a33e7f 100644 --- a/src/v1beta1/featurestore_service_client.ts +++ b/src/v1beta1/featurestore_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class FeaturestoreServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; featurestoreServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class FeaturestoreServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class FeaturestoreServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class FeaturestoreServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -245,6 +254,9 @@ export class FeaturestoreServiceClient { projectPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -298,16 +310,1022 @@ export class FeaturestoreServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createFeaturestoreResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.Featurestore' @@ -1278,6 +2296,7 @@ export class FeaturestoreServiceClient { * * * `labels` * * `online_serving_config.fixed_node_count` + * * `online_serving_config.scaling` * @param {object} [options] * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. * @returns {Promise} - The promise which resolves to an array. @@ -4164,6 +5183,403 @@ export class FeaturestoreServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -5766,6 +7182,77 @@ export class FeaturestoreServiceClient { return this.pathTemplates.projectPathTemplate.match(projectName).project; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -6345,6 +7832,8 @@ export class FeaturestoreServiceClient { return this.featurestoreServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/featurestore_service_proto_list.json b/src/v1beta1/featurestore_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/featurestore_service_proto_list.json +++ b/src/v1beta1/featurestore_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/gapic_metadata.json b/src/v1beta1/gapic_metadata.json index a8aca391..bce80313 100644 --- a/src/v1beta1/gapic_metadata.json +++ b/src/v1beta1/gapic_metadata.json @@ -59,6 +59,13 @@ "listDataItemsAsync" ] }, + "ListSavedQueries": { + "methods": [ + "listSavedQueries", + "listSavedQueriesStream", + "listSavedQueriesAsync" + ] + }, "ListAnnotations": { "methods": [ "listAnnotations", @@ -120,6 +127,13 @@ "listDataItemsAsync" ] }, + "ListSavedQueries": { + "methods": [ + "listSavedQueries", + "listSavedQueriesStream", + "listSavedQueriesAsync" + ] + }, "ListAnnotations": { "methods": [ "listAnnotations", @@ -1369,6 +1383,11 @@ "importModelEvaluation" ] }, + "BatchImportModelEvaluationSlices": { + "methods": [ + "batchImportModelEvaluationSlices" + ] + }, "GetModelEvaluation": { "methods": [ "getModelEvaluation" @@ -1457,6 +1476,11 @@ "importModelEvaluation" ] }, + "BatchImportModelEvaluationSlices": { + "methods": [ + "batchImportModelEvaluationSlices" + ] + }, "GetModelEvaluation": { "methods": [ "getModelEvaluation" diff --git a/src/v1beta1/index_endpoint_service_client.ts b/src/v1beta1/index_endpoint_service_client.ts index 91ba84d9..d025bb8f 100644 --- a/src/v1beta1/index_endpoint_service_client.ts +++ b/src/v1beta1/index_endpoint_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class IndexEndpointServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; indexEndpointServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class IndexEndpointServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class IndexEndpointServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class IndexEndpointServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -242,6 +251,9 @@ export class IndexEndpointServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -280,16 +292,1022 @@ export class IndexEndpointServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createIndexEndpointResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.IndexEndpoint' @@ -1664,6 +2682,403 @@ export class IndexEndpointServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3243,6 +4658,77 @@ export class IndexEndpointServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -3822,6 +5308,8 @@ export class IndexEndpointServiceClient { return this.indexEndpointServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/index_endpoint_service_proto_list.json b/src/v1beta1/index_endpoint_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/index_endpoint_service_proto_list.json +++ b/src/v1beta1/index_endpoint_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/index_service_client.ts b/src/v1beta1/index_service_client.ts index 7c0ca807..fc33910f 100644 --- a/src/v1beta1/index_service_client.ts +++ b/src/v1beta1/index_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class IndexServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; indexServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class IndexServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class IndexServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class IndexServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -242,6 +251,9 @@ export class IndexServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -280,16 +292,1022 @@ export class IndexServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createIndexResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.Index' @@ -1196,6 +2214,403 @@ export class IndexServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2775,6 +4190,77 @@ export class IndexServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -3354,6 +4840,8 @@ export class IndexServiceClient { return this.indexServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/index_service_proto_list.json b/src/v1beta1/index_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/index_service_proto_list.json +++ b/src/v1beta1/index_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/job_service_client.ts b/src/v1beta1/job_service_client.ts index 2b94bb42..629ce28a 100644 --- a/src/v1beta1/job_service_client.ts +++ b/src/v1beta1/job_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class JobServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; jobServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class JobServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class JobServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class JobServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -242,6 +251,9 @@ export class JobServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -306,16 +318,1022 @@ export class JobServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const deleteCustomJobResponse = protoFilesRoot.lookup( '.google.protobuf.Empty' @@ -4644,6 +5662,403 @@ export class JobServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -6223,6 +7638,77 @@ export class JobServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -6802,6 +8288,8 @@ export class JobServiceClient { return this.jobServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/job_service_proto_list.json b/src/v1beta1/job_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/job_service_proto_list.json +++ b/src/v1beta1/job_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/metadata_service_client.ts b/src/v1beta1/metadata_service_client.ts index 51510f62..b531772f 100644 --- a/src/v1beta1/metadata_service_client.ts +++ b/src/v1beta1/metadata_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class MetadataServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; metadataServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class MetadataServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class MetadataServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class MetadataServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -245,6 +254,9 @@ export class MetadataServiceClient { projectPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -303,16 +315,1022 @@ export class MetadataServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createMetadataStoreResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.MetadataStore' @@ -4975,6 +5993,403 @@ export class MetadataServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -6577,6 +7992,77 @@ export class MetadataServiceClient { return this.pathTemplates.projectPathTemplate.match(projectName).project; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -7156,6 +8642,8 @@ export class MetadataServiceClient { return this.metadataServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/metadata_service_proto_list.json b/src/v1beta1/metadata_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/metadata_service_proto_list.json +++ b/src/v1beta1/metadata_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/migration_service_client.ts b/src/v1beta1/migration_service_client.ts index 2d961a48..97d76ea7 100644 --- a/src/v1beta1/migration_service_client.ts +++ b/src/v1beta1/migration_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -64,6 +69,8 @@ export class MigrationServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; migrationServiceStub?: Promise<{[name: string]: Function}>; @@ -73,7 +80,7 @@ export class MigrationServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -96,11 +103,10 @@ export class MigrationServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -144,6 +150,9 @@ export class MigrationServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -243,6 +252,9 @@ export class MigrationServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -281,16 +293,1022 @@ export class MigrationServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const batchMigrateResourcesResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse' @@ -840,6 +1858,403 @@ export class MigrationServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2419,6 +3834,77 @@ export class MigrationServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -2998,6 +4484,8 @@ export class MigrationServiceClient { return this.migrationServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/migration_service_proto_list.json b/src/v1beta1/migration_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/migration_service_proto_list.json +++ b/src/v1beta1/migration_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/model_service_client.ts b/src/v1beta1/model_service_client.ts index 7003e0c7..a430191d 100644 --- a/src/v1beta1/model_service_client.ts +++ b/src/v1beta1/model_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -63,6 +68,8 @@ export class ModelServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; modelServiceStub?: Promise<{[name: string]: Function}>; @@ -72,7 +79,7 @@ export class ModelServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -95,11 +102,10 @@ export class ModelServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -143,6 +149,9 @@ export class ModelServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -242,6 +251,9 @@ export class ModelServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -295,16 +307,1022 @@ export class ModelServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const uploadModelResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.UploadModelResponse' @@ -430,6 +1448,7 @@ export class ModelServiceClient { 'mergeVersionAliases', 'exportModel', 'importModelEvaluation', + 'batchImportModelEvaluationSlices', 'getModelEvaluation', 'listModelEvaluations', 'getModelEvaluationSlice', @@ -945,6 +1964,111 @@ export class ModelServiceClient { this.initialize(); return this.innerApiCalls.importModelEvaluation(request, options, callback); } + /** + * Imports a list of externally generated ModelEvaluationSlice. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the parent ModelEvaluation resource. + * Format: + * `projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}` + * @param {number[]} request.modelEvaluationSlices + * Required. Model evaluation slice resource to be imported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [BatchImportModelEvaluationSlicesResponse]{@link google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js + * region_tag:aiplatform_v1beta1_generated_ModelService_BatchImportModelEvaluationSlices_async + */ + batchImportModelEvaluationSlices( + request?: protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, + ( + | protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest + | undefined + ), + {} | undefined + ] + >; + batchImportModelEvaluationSlices( + request: protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, + | protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchImportModelEvaluationSlices( + request: protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, + callback: Callback< + protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, + | protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchImportModelEvaluationSlices( + request?: protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest, + optionsOrCallback?: + | CallOptions + | Callback< + protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, + | protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, + | protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest + | null + | undefined, + {} | null | undefined + > + ): Promise< + [ + protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse, + ( + | protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesRequest + | undefined + ), + {} | undefined + ] + > | void { + request = request || {}; + let options: CallOptions; + if (typeof optionsOrCallback === 'function' && callback === undefined) { + callback = optionsOrCallback; + options = {}; + } else { + options = optionsOrCallback as CallOptions; + } + options = options || {}; + options.otherArgs = options.otherArgs || {}; + options.otherArgs.headers = options.otherArgs.headers || {}; + options.otherArgs.headers['x-goog-request-params'] = + gax.routingHeader.fromParams({ + parent: request.parent || '', + }); + this.initialize(); + return this.innerApiCalls.batchImportModelEvaluationSlices( + request, + options, + callback + ); + } /** * Gets a ModelEvaluation. * @@ -2801,6 +3925,403 @@ export class ModelServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -4380,6 +5901,77 @@ export class ModelServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -4959,6 +6551,8 @@ export class ModelServiceClient { return this.modelServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/model_service_client_config.json b/src/v1beta1/model_service_client_config.json index 5d0c4612..e467c45b 100644 --- a/src/v1beta1/model_service_client_config.json +++ b/src/v1beta1/model_service_client_config.json @@ -70,6 +70,10 @@ "retry_codes_name": "non_idempotent", "retry_params_name": "default" }, + "BatchImportModelEvaluationSlices": { + "retry_codes_name": "non_idempotent", + "retry_params_name": "default" + }, "GetModelEvaluation": { "timeout_millis": 5000, "retry_codes_name": "non_idempotent", diff --git a/src/v1beta1/model_service_proto_list.json b/src/v1beta1/model_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/model_service_proto_list.json +++ b/src/v1beta1/model_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/pipeline_service_client.ts b/src/v1beta1/pipeline_service_client.ts index fafe4982..5a992392 100644 --- a/src/v1beta1/pipeline_service_client.ts +++ b/src/v1beta1/pipeline_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -65,6 +70,8 @@ export class PipelineServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; pipelineServiceStub?: Promise<{[name: string]: Function}>; @@ -74,7 +81,7 @@ export class PipelineServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -97,11 +104,10 @@ export class PipelineServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -145,6 +151,9 @@ export class PipelineServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -244,6 +253,9 @@ export class PipelineServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -287,16 +299,1022 @@ export class PipelineServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const deleteTrainingPipelineResponse = protoFilesRoot.lookup( '.google.protobuf.Empty' @@ -1983,6 +3001,403 @@ export class PipelineServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3562,6 +4977,77 @@ export class PipelineServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -4141,6 +5627,8 @@ export class PipelineServiceClient { return this.pipelineServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/pipeline_service_proto_list.json b/src/v1beta1/pipeline_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/pipeline_service_proto_list.json +++ b/src/v1beta1/pipeline_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/prediction_service_client.ts b/src/v1beta1/prediction_service_client.ts index 6c87482b..b2eff5fa 100644 --- a/src/v1beta1/prediction_service_client.ts +++ b/src/v1beta1/prediction_service_client.ts @@ -18,7 +18,17 @@ /* global window */ import * as gax from 'google-gax'; -import {Callback, CallOptions, Descriptors, ClientOptions} from 'google-gax'; +import { + Callback, + CallOptions, + Descriptors, + ClientOptions, + GrpcClientOptions, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, +} from 'google-gax'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -28,7 +38,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './prediction_service_client_config.json'; - +import {operationsProtos} from 'google-gax'; const version = require('../../../package.json').version; /** @@ -53,7 +63,10 @@ export class PredictionServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; + operationsClient: gax.OperationsClient; predictionServiceStub?: Promise<{[name: string]: Function}>; /** @@ -61,7 +74,7 @@ export class PredictionServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -84,11 +97,10 @@ export class PredictionServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -132,6 +144,9 @@ export class PredictionServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -228,6 +243,9 @@ export class PredictionServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -254,6 +272,1027 @@ export class PredictionServiceClient { ), }; + const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); + // This API contains "long-running operations", which return a + // an Operation object that allows for tracking of the operation, + // rather than holding a request open. + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } + this.operationsClient = this._gaxModule + .lro(lroOptions) + .operationsClient(opts); + + this.descriptors.longrunning = {}; + // Put together the default options sent with requests. this._defaults = this._gaxGrpc.constructSettings( 'google.cloud.aiplatform.v1beta1.PredictionService', @@ -727,6 +1766,403 @@ export class PredictionServiceClient { return this.innerApiCalls.explain(request, options, callback); } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2270,6 +3706,77 @@ export class PredictionServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -2849,6 +4356,9 @@ export class PredictionServiceClient { return this.predictionServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); + this.operationsClient.close(); }); } return Promise.resolve(); diff --git a/src/v1beta1/prediction_service_proto_list.json b/src/v1beta1/prediction_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/prediction_service_proto_list.json +++ b/src/v1beta1/prediction_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/specialist_pool_service_client.ts b/src/v1beta1/specialist_pool_service_client.ts index 86d77a7b..f5c46bff 100644 --- a/src/v1beta1/specialist_pool_service_client.ts +++ b/src/v1beta1/specialist_pool_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -68,6 +73,8 @@ export class SpecialistPoolServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; specialistPoolServiceStub?: Promise<{[name: string]: Function}>; @@ -77,7 +84,7 @@ export class SpecialistPoolServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -100,11 +107,10 @@ export class SpecialistPoolServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -149,6 +155,9 @@ export class SpecialistPoolServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -248,6 +257,9 @@ export class SpecialistPoolServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -286,16 +298,1022 @@ export class SpecialistPoolServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createSpecialistPoolResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.SpecialistPool' @@ -1203,6 +2221,403 @@ export class SpecialistPoolServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -2782,6 +4197,77 @@ export class SpecialistPoolServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -3361,6 +4847,8 @@ export class SpecialistPoolServiceClient { return this.specialistPoolServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/specialist_pool_service_proto_list.json b/src/v1beta1/specialist_pool_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/specialist_pool_service_proto_list.json +++ b/src/v1beta1/specialist_pool_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/tensorboard_service_client.ts b/src/v1beta1/tensorboard_service_client.ts index 61a4f5c9..28474a7a 100644 --- a/src/v1beta1/tensorboard_service_client.ts +++ b/src/v1beta1/tensorboard_service_client.ts @@ -23,10 +23,15 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, GoogleError, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -65,6 +70,8 @@ export class TensorboardServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; tensorboardServiceStub?: Promise<{[name: string]: Function}>; @@ -74,7 +81,7 @@ export class TensorboardServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -97,11 +104,10 @@ export class TensorboardServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -145,6 +151,9 @@ export class TensorboardServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -247,6 +256,9 @@ export class TensorboardServiceClient { projectPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -314,16 +326,1022 @@ export class TensorboardServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const createTensorboardResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.Tensorboard' @@ -4399,6 +5417,403 @@ export class TensorboardServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -6001,6 +7416,77 @@ export class TensorboardServiceClient { return this.pathTemplates.projectPathTemplate.match(projectName).project; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -6580,6 +8066,8 @@ export class TensorboardServiceClient { return this.tensorboardServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/tensorboard_service_proto_list.json b/src/v1beta1/tensorboard_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/tensorboard_service_proto_list.json +++ b/src/v1beta1/tensorboard_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/src/v1beta1/vizier_service_client.ts b/src/v1beta1/vizier_service_client.ts index 37781f14..2cd63cee 100644 --- a/src/v1beta1/vizier_service_client.ts +++ b/src/v1beta1/vizier_service_client.ts @@ -23,9 +23,14 @@ import { CallOptions, Descriptors, ClientOptions, + GrpcClientOptions, LROperation, PaginationCallback, GaxCall, + IamClient, + IamProtos, + LocationsClient, + LocationProtos, } from 'google-gax'; import {Transform} from 'stream'; @@ -67,6 +72,8 @@ export class VizierServiceClient { }; warn: (code: string, message: string, warnType?: string) => void; innerApiCalls: {[name: string]: Function}; + iamClient: IamClient; + locationsClient: LocationsClient; pathTemplates: {[name: string]: gax.PathTemplate}; operationsClient: gax.OperationsClient; vizierServiceStub?: Promise<{[name: string]: Function}>; @@ -76,7 +83,7 @@ export class VizierServiceClient { * * @param {object} [options] - The configuration object. * The options accepted by the constructor are described in detail - * in [this document](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#creating-the-client-instance). + * in [this document](https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#creating-the-client-instance). * The common options are: * @param {object} [options.credentials] - Credentials object. * @param {string} [options.credentials.client_email] @@ -99,11 +106,10 @@ export class VizierServiceClient { * API remote host. * @param {gax.ClientConfig} [options.clientConfig] - Client configuration override. * Follows the structure of {@link gapicConfig}. - * @param {boolean} [options.fallback] - Use HTTP fallback mode. - * In fallback mode, a special browser-compatible transport implementation is used - * instead of gRPC transport. In browser context (if the `window` object is defined) - * the fallback mode is enabled automatically; set `options.fallback` to `false` - * if you need to override this behavior. + * @param {boolean | "rest"} [options.fallback] - Use HTTP fallback mode. + * Pass "rest" to use HTTP/1.1 REST API instead of gRPC. + * For more information, please check the + * {@link https://github.com/googleapis/gax-nodejs/blob/main/client-libraries.md#http11-rest-api-mode documentation}. */ constructor(opts?: ClientOptions) { // Ensure that options include all the required fields. @@ -147,6 +153,9 @@ export class VizierServiceClient { if (servicePath === staticMembers.servicePath) { this.auth.defaultScopes = staticMembers.scopes; } + this.iamClient = new IamClient(this._gaxGrpc, opts); + + this.locationsClient = new LocationsClient(this._gaxGrpc, opts); // Determine the client header string. const clientHeader = [`gax/${this._gaxModule.version}`, `gapic/${version}`]; @@ -246,6 +255,9 @@ export class VizierServiceClient { pipelineJobPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/pipelineJobs/{pipeline_job}' ), + savedQueryPathTemplate: new this._gaxModule.PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}/savedQueries/{saved_query}' + ), specialistPoolPathTemplate: new this._gaxModule.PathTemplate( 'projects/{project}/locations/{location}/specialistPools/{specialist_pool}' ), @@ -289,16 +301,1022 @@ export class VizierServiceClient { }; const protoFilesRoot = this._gaxModule.protobuf.Root.fromJSON(jsonProtos); - // This API contains "long-running operations", which return a // an Operation object that allows for tracking of the operation, // rather than holding a request open. - + const lroOptions: GrpcClientOptions = { + auth: this.auth, + grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, + }; + if (opts.fallback === 'rest') { + lroOptions.protoJson = protoFilesRoot; + lroOptions.httpRules = [ + { + selector: 'google.cloud.location.Locations.GetLocation', + get: '/ui/{name=projects/*/locations/*}', + additional_bindings: [ + {get: '/v1beta1/{name=projects/*/locations/*}'}, + ], + }, + { + selector: 'google.cloud.location.Locations.ListLocations', + get: '/ui/{name=projects/*}/locations', + additional_bindings: [{get: '/v1beta1/{name=projects/*}/locations'}], + }, + { + selector: 'google.iam.v1.IAMPolicy.GetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:getIamPolicy', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:getIamPolicy', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.SetIamPolicy', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:setIamPolicy', + body: '*', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:setIamPolicy', + body: '*', + }, + ], + }, + { + selector: 'google.iam.v1.IAMPolicy.TestIamPermissions', + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + body: '*', + additional_bindings: [ + { + post: '/v1beta1/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*}:testIamPermissions', + }, + { + post: '/ui/{resource=projects/*/locations/*/featurestores/*/entityTypes/*}:testIamPermissions', + }, + ], + }, + { + selector: 'google.longrunning.Operations.CancelOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:cancel', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:cancel', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:cancel', + }, + ], + }, + { + selector: 'google.longrunning.Operations.DeleteOperation', + delete: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {delete: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + delete: + '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {delete: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + delete: + '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.GetOperation', + get: '/ui/{name=projects/*/locations/*/operations/*}', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDeploymentJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/models/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*/operations/*}'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + {get: '/v1beta1/{name=projects/*/locations/*/operations/*}'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}', + }, + ], + }, + { + selector: 'google.longrunning.Operations.ListOperations', + get: '/ui/{name=projects/*/locations/*}/operations', + additional_bindings: [ + {get: '/ui/{name=projects/*/locations/*/datasets/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/edgeDevices/*}/operations'}, + {get: '/ui/{name=projects/*/locations/*/endpoints/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/customJobs/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/indexes/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + {get: '/ui/{name=projects/*/locations/*/studies/*}/operations'}, + { + get: '/ui/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/endpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/customJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexes/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/migratableResources/*}/operations', + }, + {get: '/v1beta1/{name=projects/*/locations/*/models/*}/operations'}, + { + get: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/specialistPools/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*}/operations', + }, + { + get: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*}/operations', + }, + ], + }, + { + selector: 'google.longrunning.Operations.WaitOperation', + post: '/ui/{name=projects/*/locations/*/operations/*}:wait', + additional_bindings: [ + { + post: '/ui/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/ui/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + {post: '/v1beta1/{name=projects/*/locations/*/operations/*}:wait'}, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/savedQueries/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/annotationSpecs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/datasets/*/dataItems/*/annotations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/deploymentResourcePools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/edgeDevices/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/endpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/featurestores/*/entityTypes/*/features/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/customJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/dataLabelingJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/hyperparameterTuningJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexes/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/indexEndpoints/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/modelDeploymentMonitoringJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/migratableResources/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/models/*/evaluations/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/studies/*/trials/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/trainingPipelines/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/pipelineJobs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/specialistPools/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/operations/*}:wait', + }, + { + post: '/v1beta1/{name=projects/*/locations/*/tensorboards/*/experiments/*/runs/*/timeSeries/*/operations/*}:wait', + }, + ], + }, + ]; + } this.operationsClient = this._gaxModule - .lro({ - auth: this.auth, - grpc: 'grpc' in this._gaxGrpc ? this._gaxGrpc.grpc : undefined, - }) + .lro(lroOptions) .operationsClient(opts); const suggestTrialsResponse = protoFilesRoot.lookup( '.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse' @@ -2225,6 +3243,403 @@ export class VizierServiceClient { callSettings ) as AsyncIterable; } + /** + * Gets the access control policy for a resource. Returns an empty policy + * if the resource exists and does not have a policy set. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {Object} [request.options] + * OPTIONAL: A `GetPolicyOptions` object for specifying options to + * `GetIamPolicy`. This field is only used by Cloud IAM. + * + * This object should have the same structure as [GetPolicyOptions]{@link google.iam.v1.GetPolicyOptions} + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [Policy]{@link google.iam.v1.Policy}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Policy]{@link google.iam.v1.Policy}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + getIamPolicy( + request: IamProtos.google.iam.v1.GetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.GetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.getIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + */ + setIamPolicy( + request: IamProtos.google.iam.v1.SetIamPolicyRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.Policy, + IamProtos.google.iam.v1.SetIamPolicyRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.setIamPolicy(request, options, callback); + } + + /** + * Returns permissions that a caller has on the specified resource. If the + * resource does not exist, this will return an empty set of + * permissions, not a NOT_FOUND error. + * + * Note: This operation is designed to be used for building + * permission-aware UIs and command-line tools, not for authorization + * checking. This operation may "fail open" without warning. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.resource + * REQUIRED: The resource for which the policy detail is being requested. + * See the operation documentation for the appropriate value for this field. + * @param {string[]} request.permissions + * The set of permissions to check for the `resource`. Permissions with + * wildcards (such as '*' or 'storage.*') are not allowed. For more + * information see + * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). + * @param {Object} [options] + * Optional parameters. You can override the default settings for this call, e.g, timeout, + * retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html} for the details. + * @param {function(?Error, ?Object)} [callback] + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [TestIamPermissionsResponse]{@link google.iam.v1.TestIamPermissionsResponse}. + * The promise has a method named "cancel" which cancels the ongoing API call. + * + */ + testIamPermissions( + request: IamProtos.google.iam.v1.TestIamPermissionsRequest, + options?: + | gax.CallOptions + | Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + >, + callback?: Callback< + IamProtos.google.iam.v1.TestIamPermissionsResponse, + IamProtos.google.iam.v1.TestIamPermissionsRequest | null | undefined, + {} | null | undefined + > + ): Promise { + return this.iamClient.testIamPermissions(request, options, callback); + } + + /** + * Gets information about a location. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Resource name for the location. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Location]{@link google.cloud.location.Location}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example + * ``` + * const [response] = await client.getLocation(request); + * ``` + */ + getLocation( + request: LocationProtos.google.cloud.location.IGetLocationRequest, + options?: + | gax.CallOptions + | Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + >, + callback?: Callback< + LocationProtos.google.cloud.location.ILocation, + | LocationProtos.google.cloud.location.IGetLocationRequest + | null + | undefined, + {} | null | undefined + > + ): Promise { + return this.locationsClient.getLocation(request, options, callback); + } + + /** + * Lists information about the supported locations for this service. Returns an iterable object. + * + * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * The resource that owns the locations collection, if applicable. + * @param {string} request.filter + * The standard list filter. + * @param {number} request.pageSize + * The standard list page size. + * @param {string} request.pageToken + * The standard list page token. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Object} + * An iterable Object that allows [async iteration](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols). + * When you iterate the returned iterable, each element will be an object representing + * [Location]{@link google.cloud.location.Location}. The API will be called under the hood as needed, once per the page, + * so you can stop the iteration when you don't need more results. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + * @example + * ``` + * const iterable = client.listLocationsAsync(request); + * for await (const response of iterable) { + * // process response + * } + * ``` + */ + listLocationsAsync( + request: LocationProtos.google.cloud.location.IListLocationsRequest, + options?: CallOptions + ): AsyncIterable { + return this.locationsClient.listLocationsAsync(request, options); + } + + /** + * Gets the latest state of a long-running operation. Clients can use this + * method to poll the operation result at intervals as recommended by the API + * service. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error, ?Object)=} callback + * The function which will be called with the result of the API call. + * + * The second parameter to the callback is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. + * @return {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * [google.longrunning.Operation]{@link + * external:"google.longrunning.Operation"}. The promise has a method named + * "cancel" which cancels the ongoing API call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * const name = ''; + * const [response] = await client.getOperation({name}); + * // doThingsWith(response) + * ``` + */ + getOperation( + request: protos.google.longrunning.GetOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.longrunning.Operation, + protos.google.longrunning.GetOperationRequest, + {} | null | undefined + > + ): Promise<[protos.google.longrunning.Operation]> { + return this.operationsClient.getOperation(request, options, callback); + } + /** + * Lists operations that match the specified filter in the request. If the + * server doesn't support this method, it returns `UNIMPLEMENTED`. Returns an iterable object. + * + * For-await-of syntax is used with the iterable to recursively get response element on-demand. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation collection. + * @param {string} request.filter - The standard list filter. + * @param {number=} request.pageSize - + * The maximum number of resources contained in the underlying API + * response. If page streaming is performed per-resource, this + * parameter does not affect the return value. If page streaming is + * performed per-page, this determines the maximum number of + * resources in a page. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @returns {Object} + * An iterable Object that conforms to @link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Iteration_protocols. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * for await (const response of client.listOperationsAsync(request)); + * // doThingsWith(response) + * ``` + */ + listOperationsAsync( + request: protos.google.longrunning.ListOperationsRequest, + options?: gax.CallOptions + ): AsyncIterable { + return this.operationsClient.listOperationsAsync(request, options); + } + /** + * Starts asynchronous cancellation on a long-running operation. The server + * makes a best effort to cancel the operation, but success is not + * guaranteed. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. Clients can use + * {@link Operations.GetOperation} or + * other methods to check whether the cancellation succeeded or whether the + * operation completed despite cancellation. On successful cancellation, + * the operation is not deleted; instead, it becomes an operation with + * an {@link Operation.error} value with a {@link google.rpc.Status.code} of + * 1, corresponding to `Code.CANCELLED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be cancelled. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.cancelOperation({name: ''}); + * ``` + */ + cancelOperation( + request: protos.google.longrunning.CancelOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.CancelOperationRequest, + {} | undefined | null + >, + callback?: Callback< + protos.google.longrunning.CancelOperationRequest, + protos.google.protobuf.Empty, + {} | undefined | null + > + ): Promise { + return this.operationsClient.cancelOperation(request, options, callback); + } + + /** + * Deletes a long-running operation. This method indicates that the client is + * no longer interested in the operation result. It does not cancel the + * operation. If the server doesn't support this method, it returns + * `google.rpc.Code.UNIMPLEMENTED`. + * + * @param {Object} request - The request object that will be sent. + * @param {string} request.name - The name of the operation resource to be deleted. + * @param {Object=} options + * Optional parameters. You can override the default settings for this call, + * e.g, timeout, retries, paginations, etc. See [gax.CallOptions]{@link + * https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the + * details. + * @param {function(?Error)=} callback + * The function which will be called with the result of the API call. + * @return {Promise} - The promise which resolves when API call finishes. + * The promise has a method named "cancel" which cancels the ongoing API + * call. + * + * @example + * ``` + * const client = longrunning.operationsClient(); + * await client.deleteOperation({name: ''}); + * ``` + */ + deleteOperation( + request: protos.google.longrunning.DeleteOperationRequest, + options?: + | gax.CallOptions + | Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + >, + callback?: Callback< + protos.google.protobuf.Empty, + protos.google.longrunning.DeleteOperationRequest, + {} | null | undefined + > + ): Promise { + return this.operationsClient.deleteOperation(request, options, callback); + } + // -------------------- // -- Path templates -- // -------------------- @@ -3804,6 +5219,77 @@ export class VizierServiceClient { .pipeline_job; } + /** + * Return a fully-qualified savedQuery resource name string. + * + * @param {string} project + * @param {string} location + * @param {string} dataset + * @param {string} saved_query + * @returns {string} Resource name string. + */ + savedQueryPath( + project: string, + location: string, + dataset: string, + savedQuery: string + ) { + return this.pathTemplates.savedQueryPathTemplate.render({ + project: project, + location: location, + dataset: dataset, + saved_query: savedQuery, + }); + } + + /** + * Parse the project from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the project. + */ + matchProjectFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .project; + } + + /** + * Parse the location from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the location. + */ + matchLocationFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .location; + } + + /** + * Parse the dataset from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the dataset. + */ + matchDatasetFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .dataset; + } + + /** + * Parse the saved_query from SavedQuery resource. + * + * @param {string} savedQueryName + * A fully-qualified path representing SavedQuery resource. + * @returns {string} A string representing the saved_query. + */ + matchSavedQueryFromSavedQueryName(savedQueryName: string) { + return this.pathTemplates.savedQueryPathTemplate.match(savedQueryName) + .saved_query; + } + /** * Return a fully-qualified specialistPool resource name string. * @@ -4383,6 +5869,8 @@ export class VizierServiceClient { return this.vizierServiceStub.then(stub => { this._terminated = true; stub.close(); + this.iamClient.close(); + this.locationsClient.close(); this.operationsClient.close(); }); } diff --git a/src/v1beta1/vizier_service_proto_list.json b/src/v1beta1/vizier_service_proto_list.json index 41d2bf4f..9700a2ec 100644 --- a/src/v1beta1/vizier_service_proto_list.json +++ b/src/v1beta1/vizier_service_proto_list.json @@ -57,6 +57,7 @@ "../../protos/google/cloud/aiplatform/v1beta1/pipeline_service.proto", "../../protos/google/cloud/aiplatform/v1beta1/pipeline_state.proto", "../../protos/google/cloud/aiplatform/v1beta1/prediction_service.proto", + "../../protos/google/cloud/aiplatform/v1beta1/saved_query.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_payload.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/annotation_spec_color.proto", "../../protos/google/cloud/aiplatform/v1beta1/schema/data_item_payload.proto", diff --git a/test/gapic_dataset_service_v1.ts b/test/gapic_dataset_service_v1.ts index 16aa53eb..bfb3d958 100644 --- a/test/gapic_dataset_service_v1.ts +++ b/test/gapic_dataset_service_v1.ts @@ -25,7 +25,13 @@ import * as datasetserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -1956,6 +1962,311 @@ describe('v1.DatasetServiceClient', () => { }); }); + describe('listSavedQueries', () => { + it('invokes listSavedQueries without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + ]; + client.innerApiCalls.listSavedQueries = stubSimpleCall(expectedResponse); + const [response] = await client.listSavedQueries(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listSavedQueries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listSavedQueries without error using callback', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + ]; + client.innerApiCalls.listSavedQueries = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listSavedQueries( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.ISavedQuery[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listSavedQueries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listSavedQueries with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listSavedQueries = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listSavedQueries(request), expectedError); + assert( + (client.innerApiCalls.listSavedQueries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listSavedQueriesStream without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + ]; + client.descriptors.page.listSavedQueries.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listSavedQueriesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.SavedQuery[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.SavedQuery) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listSavedQueries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listSavedQueries, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listSavedQueries.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listSavedQueriesStream with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listSavedQueries.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listSavedQueriesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.SavedQuery[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.SavedQuery) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listSavedQueries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listSavedQueries, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listSavedQueries.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listSavedQueries without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.SavedQuery() + ), + ]; + client.descriptors.page.listSavedQueries.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.ISavedQuery[] = []; + const iterable = client.listSavedQueriesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listSavedQueries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listSavedQueries.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listSavedQueries with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listSavedQueries.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listSavedQueriesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.ISavedQuery[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listSavedQueries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listSavedQueries.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('listAnnotations', () => { it('invokes listAnnotations without error', async () => { const client = new datasetserviceModule.v1.DatasetServiceClient({ @@ -1990,49 +2301,915 @@ describe('v1.DatasetServiceClient', () => { const [response] = await client.listAnnotations(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAnnotations as SinonStub) + (client.innerApiCalls.listAnnotations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAnnotations without error using callback', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Annotation() + ), + ]; + client.innerApiCalls.listAnnotations = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAnnotations( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IAnnotation[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAnnotations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAnnotations with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listAnnotations = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAnnotations(request), expectedError); + assert( + (client.innerApiCalls.listAnnotations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAnnotationsStream without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Annotation() + ), + ]; + client.descriptors.page.listAnnotations.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAnnotationsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.Annotation[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.Annotation) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAnnotations.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAnnotations, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listAnnotations.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listAnnotationsStream with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listAnnotations.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listAnnotationsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.Annotation[] = []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.Annotation) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAnnotations.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAnnotations, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listAnnotations.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listAnnotations without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Annotation() + ), + ]; + client.descriptors.page.listAnnotations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.IAnnotation[] = []; + const iterable = client.listAnnotationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAnnotations.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listAnnotations.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listAnnotations with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listAnnotations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAnnotationsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.IAnnotation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAnnotations.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listAnnotations.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes listAnnotations without error using callback', async () => { + it('invokes cancelOperation without error using callback', async () => { const client = new datasetserviceModule.v1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.Annotation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.Annotation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.Annotation() - ), - ]; - client.innerApiCalls.listAnnotations = - stubSimpleCallWithCallback(expectedResponse); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAnnotations( + client.operationsClient.cancelOperation( request, + undefined, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IAnnotation[] | null + result?: protos.google.protobuf.Empty | null ) => { if (err) { reject(err); @@ -2044,220 +3221,175 @@ describe('v1.DatasetServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAnnotations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); }); - - it('invokes listAnnotations with error', async () => { + it('invokes cancelOperation with error', async () => { const client = new datasetserviceModule.v1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.listAnnotations = stubSimpleCall( + client.operationsClient.cancelOperation = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAnnotations(request), expectedError); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); assert( - (client.innerApiCalls.listAnnotations as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes listAnnotationsStream without error', async () => { + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { const client = new datasetserviceModule.v1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.Annotation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.Annotation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.Annotation() - ), - ]; - client.descriptors.page.listAnnotations.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listAnnotationsStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.Annotation[] = []; - stream.on( - 'data', - (response: protos.google.cloud.aiplatform.v1.Annotation) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); assert( - (client.descriptors.page.listAnnotations.createStream as SinonStub) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAnnotations, request) - ); - assert.strictEqual( - ( - client.descriptors.page.listAnnotations.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(request) ); }); - - it('invokes listAnnotationsStream with error', async () => { + it('invokes deleteOperation without error using callback', async () => { const client = new datasetserviceModule.v1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedError = new Error('expected'); - client.descriptors.page.listAnnotations.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listAnnotationsStream(request); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.Annotation[] = []; - stream.on( - 'data', - (response: protos.google.cloud.aiplatform.v1.Annotation) => { - responses.push(response); + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } } ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); }); - await assert.rejects(promise, expectedError); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); assert( - (client.descriptors.page.listAnnotations.createStream as SinonStub) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAnnotations, request) - ); - assert.strictEqual( - ( - client.descriptors.page.listAnnotations.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(request) ); }); - - it('uses async iteration with listAnnotations without error', async () => { + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { const client = new datasetserviceModule.v1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.ListOperationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.Annotation() + new operationsProtos.google.longrunning.ListOperationsResponse() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.Annotation() + new operationsProtos.google.longrunning.ListOperationsResponse() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.Annotation() + new operationsProtos.google.longrunning.ListOperationsResponse() ), ]; - client.descriptors.page.listAnnotations.asyncIterate = + client.operationsClient.descriptor.listOperations.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1.IAnnotation[] = []; - const iterable = client.listAnnotationsAsync(request); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAnnotations.asyncIterate as SinonStub + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listAnnotations.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); - - it('uses async iteration with listAnnotations with error', async () => { + it('uses async iteration with listOperations with error', async () => { const client = new datasetserviceModule.v1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.ListOperationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAnnotations.asyncIterate = + client.operationsClient.descriptor.listOperations.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAnnotationsAsync(request); + const iterable = client.operationsClient.listOperationsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1.IAnnotation[] = []; + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listAnnotations.asyncIterate as SinonStub + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listAnnotations.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); }); @@ -4085,6 +5217,82 @@ describe('v1.DatasetServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_dataset_service_v1beta1.ts b/test/gapic_dataset_service_v1beta1.ts index 22176f61..76b435c5 100644 --- a/test/gapic_dataset_service_v1beta1.ts +++ b/test/gapic_dataset_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as datasetserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -2005,6 +2011,315 @@ describe('v1beta1.DatasetServiceClient', () => { }); }); + describe('listSavedQueries', () => { + it('invokes listSavedQueries without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + ]; + client.innerApiCalls.listSavedQueries = stubSimpleCall(expectedResponse); + const [response] = await client.listSavedQueries(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listSavedQueries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listSavedQueries without error using callback', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + ]; + client.innerApiCalls.listSavedQueries = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listSavedQueries( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.ISavedQuery[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listSavedQueries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listSavedQueries with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listSavedQueries = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listSavedQueries(request), expectedError); + assert( + (client.innerApiCalls.listSavedQueries as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listSavedQueriesStream without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + ]; + client.descriptors.page.listSavedQueries.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listSavedQueriesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.SavedQuery[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.SavedQuery) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listSavedQueries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listSavedQueries, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listSavedQueries.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listSavedQueriesStream with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listSavedQueries.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listSavedQueriesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.SavedQuery[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.SavedQuery) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listSavedQueries.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listSavedQueries, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listSavedQueries.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listSavedQueries without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.SavedQuery() + ), + ]; + client.descriptors.page.listSavedQueries.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1beta1.ISavedQuery[] = + []; + const iterable = client.listSavedQueriesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listSavedQueries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listSavedQueries.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listSavedQueries with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListSavedQueriesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listSavedQueries.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listSavedQueriesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1beta1.ISavedQuery[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listSavedQueries.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listSavedQueries.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('listAnnotations', () => { it('invokes listAnnotations without error', async () => { const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ @@ -2039,49 +2354,919 @@ describe('v1beta1.DatasetServiceClient', () => { const [response] = await client.listAnnotations(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listAnnotations as SinonStub) + (client.innerApiCalls.listAnnotations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAnnotations without error using callback', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Annotation() + ), + ]; + client.innerApiCalls.listAnnotations = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listAnnotations( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IAnnotation[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listAnnotations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listAnnotations with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listAnnotations = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listAnnotations(request), expectedError); + assert( + (client.innerApiCalls.listAnnotations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listAnnotationsStream without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Annotation() + ), + ]; + client.descriptors.page.listAnnotations.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listAnnotationsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.Annotation[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.Annotation) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listAnnotations.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAnnotations, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listAnnotations.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listAnnotationsStream with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listAnnotations.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listAnnotationsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1beta1.Annotation[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1beta1.Annotation) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listAnnotations.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listAnnotations, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listAnnotations.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listAnnotations without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Annotation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.Annotation() + ), + ]; + client.descriptors.page.listAnnotations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1beta1.IAnnotation[] = + []; + const iterable = client.listAnnotationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listAnnotations.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listAnnotations.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listAnnotations with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listAnnotations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listAnnotationsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1beta1.IAnnotation[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listAnnotations.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listAnnotations.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes listAnnotations without error using callback', async () => { + it('invokes cancelOperation without error using callback', async () => { const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Annotation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Annotation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Annotation() - ), - ]; - client.innerApiCalls.listAnnotations = - stubSimpleCallWithCallback(expectedResponse); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - client.listAnnotations( + client.operationsClient.cancelOperation( request, + undefined, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IAnnotation[] | null + result?: protos.google.protobuf.Empty | null ) => { if (err) { reject(err); @@ -2093,207 +3278,163 @@ describe('v1beta1.DatasetServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listAnnotations as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); }); - - it('invokes listAnnotations with error', async () => { + it('invokes cancelOperation with error', async () => { const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.listAnnotations = stubSimpleCall( + client.operationsClient.cancelOperation = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listAnnotations(request), expectedError); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); assert( - (client.innerApiCalls.listAnnotations as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes listAnnotationsStream without error', async () => { + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Annotation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Annotation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Annotation() - ), - ]; - client.descriptors.page.listAnnotations.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listAnnotationsStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.Annotation[] = - []; - stream.on( - 'data', - (response: protos.google.cloud.aiplatform.v1beta1.Annotation) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); assert( - (client.descriptors.page.listAnnotations.createStream as SinonStub) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAnnotations, request) - ); - assert.strictEqual( - ( - client.descriptors.page.listAnnotations.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(request) ); }); - - it('invokes listAnnotationsStream with error', async () => { + it('invokes deleteOperation without error using callback', async () => { const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedError = new Error('expected'); - client.descriptors.page.listAnnotations.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listAnnotationsStream(request); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1beta1.Annotation[] = - []; - stream.on( - 'data', - (response: protos.google.cloud.aiplatform.v1beta1.Annotation) => { - responses.push(response); + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } } ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); }); - await assert.rejects(promise, expectedError); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); assert( - (client.descriptors.page.listAnnotations.createStream as SinonStub) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listAnnotations, request) - ); - assert.strictEqual( - ( - client.descriptors.page.listAnnotations.createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(request) ); }); - - it('uses async iteration with listAnnotations without error', async () => { + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.ListOperationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Annotation() + new operationsProtos.google.longrunning.ListOperationsResponse() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Annotation() + new operationsProtos.google.longrunning.ListOperationsResponse() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.Annotation() + new operationsProtos.google.longrunning.ListOperationsResponse() ), ]; - client.descriptors.page.listAnnotations.asyncIterate = + client.operationsClient.descriptor.listOperations.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1beta1.IAnnotation[] = + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = []; - const iterable = client.listAnnotationsAsync(request); + const iterable = client.operationsClient.listOperationsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listAnnotations.asyncIterate as SinonStub + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listAnnotations.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); - - it('uses async iteration with listAnnotations with error', async () => { + it('uses async iteration with listOperations with error', async () => { const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ListAnnotationsRequest() + new operationsProtos.google.longrunning.ListOperationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listAnnotations.asyncIterate = + client.operationsClient.descriptor.listOperations.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listAnnotationsAsync(request); + const iterable = client.operationsClient.listOperationsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1beta1.IAnnotation[] = + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -2301,16 +3442,11 @@ describe('v1beta1.DatasetServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listAnnotations.asyncIterate as SinonStub + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listAnnotations.asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); }); @@ -4138,6 +5274,82 @@ describe('v1beta1.DatasetServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_endpoint_service_v1.ts b/test/gapic_endpoint_service_v1.ts index 3e7b5671..f00b1fd0 100644 --- a/test/gapic_endpoint_service_v1.ts +++ b/test/gapic_endpoint_service_v1.ts @@ -25,7 +25,13 @@ import * as endpointserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -1550,6 +1556,827 @@ describe('v1.EndpointServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -3375,6 +4202,82 @@ describe('v1.EndpointServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_endpoint_service_v1beta1.ts b/test/gapic_endpoint_service_v1beta1.ts index 29ed2a5d..380c2cd7 100644 --- a/test/gapic_endpoint_service_v1beta1.ts +++ b/test/gapic_endpoint_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as endpointserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -1575,6 +1581,827 @@ describe('v1beta1.EndpointServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -3400,6 +4227,82 @@ describe('v1beta1.EndpointServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_featurestore_online_serving_service_v1.ts b/test/gapic_featurestore_online_serving_service_v1.ts index 62141ec9..35229ec0 100644 --- a/test/gapic_featurestore_online_serving_service_v1.ts +++ b/test/gapic_featurestore_online_serving_service_v1.ts @@ -25,7 +25,13 @@ import * as featurestoreonlineservingserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -72,6 +78,29 @@ function stubServerStreamingCall( return sinon.stub().returns(mockStream); } +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + describe('v1.FeaturestoreOnlineServingServiceClient', () => { it('has servicePath', () => { const servicePath = @@ -189,12 +218,926 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { } }); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + + describe('readFeatureValues', () => { + it('invokes readFeatureValues without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedHeaderRequestParams = 'entity_type='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse() + ); + client.innerApiCalls.readFeatureValues = stubSimpleCall(expectedResponse); + const [response] = await client.readFeatureValues(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.readFeatureValues as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes readFeatureValues without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedHeaderRequestParams = 'entity_type='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse() + ); + client.innerApiCalls.readFeatureValues = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.readFeatureValues( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IReadFeatureValuesResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.readFeatureValues as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes readFeatureValues with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedHeaderRequestParams = 'entity_type='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.readFeatureValues = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.readFeatureValues(request), expectedError); + assert( + (client.innerApiCalls.readFeatureValues as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes readFeatureValues with closed client', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.readFeatureValues(request), expectedError); + }); + }); + + describe('streamingReadFeatureValues', () => { + it('invokes streamingReadFeatureValues without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedHeaderRequestParams = 'entity_type='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse() + ); + client.innerApiCalls.streamingReadFeatureValues = + stubServerStreamingCall(expectedResponse); + const stream = client.streamingReadFeatureValues(request); + const promise = new Promise((resolve, reject) => { + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse + ) => { + resolve(response); + } + ); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.streamingReadFeatureValues as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions) + ); + }); + + it('invokes streamingReadFeatureValues with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedHeaderRequestParams = 'entity_type='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.streamingReadFeatureValues = stubServerStreamingCall( + undefined, + expectedError + ); + const stream = client.streamingReadFeatureValues(request); + const promise = new Promise((resolve, reject) => { + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse + ) => { + resolve(response); + } + ); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.innerApiCalls.streamingReadFeatureValues as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions) + ); + }); + + it('invokes streamingReadFeatureValues with closed client', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + const stream = client.streamingReadFeatureValues(request); + const promise = new Promise((resolve, reject) => { + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse + ) => { + resolve(response); + } + ); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); }); - - describe('readFeatureValues', () => { - it('invokes readFeatureValues without error', async () => { + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { const client = new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( { @@ -204,31 +1147,22 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.readFeatureValues = stubSimpleCall(expectedResponse); - const [response] = await client.readFeatureValues(request); - assert.deepStrictEqual(response, expectedResponse); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); assert( - (client.innerApiCalls.readFeatureValues as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes readFeatureValues without error using callback', async () => { + it('invokes cancelOperation without error using callback', async () => { const client = new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( { @@ -236,30 +1170,22 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { projectId: 'bogus', } ); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.readFeatureValues = - stubSimpleCallWithCallback(expectedResponse); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - client.readFeatureValues( + client.operationsClient.cancelOperation( request, + undefined, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IReadFeatureValuesResponse | null + result?: protos.google.protobuf.Empty | null ) => { if (err) { reject(err); @@ -271,14 +1197,9 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.readFeatureValues as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); }); - - it('invokes readFeatureValues with error', async () => { + it('invokes cancelOperation with error', async () => { const client = new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( { @@ -286,33 +1207,26 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { projectId: 'bogus', } ); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.readFeatureValues = stubSimpleCall( + client.operationsClient.cancelOperation = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.readFeatureValues(request), expectedError); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); assert( - (client.innerApiCalls.readFeatureValues as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes readFeatureValues with closed client', async () => { + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { const client = new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( { @@ -322,17 +1236,22 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) ); - request.entityType = ''; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.readFeatureValues(request), expectedError); }); - }); - - describe('streamingReadFeatureValues', () => { - it('invokes streamingReadFeatureValues without error', async () => { + it('invokes deleteOperation without error using callback', async () => { const client = new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( { @@ -340,48 +1259,36 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { projectId: 'bogus', } ); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.streamingReadFeatureValues = - stubServerStreamingCall(expectedResponse); - const stream = client.streamingReadFeatureValues(request); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - stream.on( - 'data', + client.operationsClient.deleteOperation( + request, + undefined, ( - response: protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse + err?: Error | null, + result?: protos.google.protobuf.Empty | null ) => { - resolve(response); + if (err) { + reject(err); + } else { + resolve(result); + } } ); - stream.on('error', (err: Error) => { - reject(err); - }); }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.streamingReadFeatureValues as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions) - ); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); }); - - it('invokes streamingReadFeatureValues with error', async () => { + it('invokes deleteOperation with error', async () => { const client = new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( { @@ -389,47 +1296,26 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { projectId: 'bogus', } ); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.streamingReadFeatureValues = stubServerStreamingCall( + client.operationsClient.deleteOperation = stubSimpleCall( undefined, expectedError ); - const stream = client.streamingReadFeatureValues(request); - const promise = new Promise((resolve, reject) => { - stream.on( - 'data', - ( - response: protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse - ) => { - resolve(response); - } - ); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - await assert.rejects(promise, expectedError); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); assert( - (client.innerApiCalls.streamingReadFeatureValues as SinonStub) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions) + .calledWith(request) ); }); - - it('invokes streamingReadFeatureValues with closed client', async () => { + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { const client = new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( { @@ -437,28 +1323,67 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { projectId: 'bogus', } ); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest() + new operationsProtos.google.longrunning.ListOperationsRequest() ); - request.entityType = ''; - const expectedError = new Error('The client has already been closed.'); - client.close(); - const stream = client.streamingReadFeatureValues(request); - const promise = new Promise((resolve, reject) => { - stream.on( - 'data', - ( - response: protos.google.cloud.aiplatform.v1.ReadFeatureValuesResponse - ) => { - resolve(response); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', } ); - stream.on('error', (err: Error) => { - reject(err); - }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } }); - await assert.rejects(promise, expectedError); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); }); }); @@ -2309,6 +3234,85 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_featurestore_online_serving_service_v1beta1.ts b/test/gapic_featurestore_online_serving_service_v1beta1.ts index c6ea0660..ef234a01 100644 --- a/test/gapic_featurestore_online_serving_service_v1beta1.ts +++ b/test/gapic_featurestore_online_serving_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as featurestoreonlineservingserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -72,6 +78,29 @@ function stubServerStreamingCall( return sinon.stub().returns(mockStream); } +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { it('has servicePath', () => { const servicePath = @@ -189,12 +218,926 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { } }); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); + const result = await promise; + assert.strictEqual(result, fakeProjectId); + }); + + describe('readFeatureValues', () => { + it('invokes readFeatureValues without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedHeaderRequestParams = 'entity_type='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse() + ); + client.innerApiCalls.readFeatureValues = stubSimpleCall(expectedResponse); + const [response] = await client.readFeatureValues(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.readFeatureValues as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes readFeatureValues without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedHeaderRequestParams = 'entity_type='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse() + ); + client.innerApiCalls.readFeatureValues = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.readFeatureValues( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.readFeatureValues as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes readFeatureValues with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedHeaderRequestParams = 'entity_type='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.readFeatureValues = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.readFeatureValues(request), expectedError); + assert( + (client.innerApiCalls.readFeatureValues as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes readFeatureValues with closed client', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.readFeatureValues(request), expectedError); + }); + }); + + describe('streamingReadFeatureValues', () => { + it('invokes streamingReadFeatureValues without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedHeaderRequestParams = 'entity_type='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse() + ); + client.innerApiCalls.streamingReadFeatureValues = + stubServerStreamingCall(expectedResponse); + const stream = client.streamingReadFeatureValues(request); + const promise = new Promise((resolve, reject) => { + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + ) => { + resolve(response); + } + ); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.streamingReadFeatureValues as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions) + ); + }); + + it('invokes streamingReadFeatureValues with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedHeaderRequestParams = 'entity_type='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.streamingReadFeatureValues = stubServerStreamingCall( + undefined, + expectedError + ); + const stream = client.streamingReadFeatureValues(request); + const promise = new Promise((resolve, reject) => { + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + ) => { + resolve(response); + } + ); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.innerApiCalls.streamingReadFeatureValues as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions) + ); + }); + + it('invokes streamingReadFeatureValues with closed client', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest() + ); + request.entityType = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + const stream = client.streamingReadFeatureValues(request); + const promise = new Promise((resolve, reject) => { + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + ) => { + resolve(response); + } + ); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); }); - - describe('readFeatureValues', () => { - it('invokes readFeatureValues without error', async () => { + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { const client = new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( { @@ -204,31 +1147,22 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.readFeatureValues = stubSimpleCall(expectedResponse); - const [response] = await client.readFeatureValues(request); - assert.deepStrictEqual(response, expectedResponse); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); assert( - (client.innerApiCalls.readFeatureValues as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes readFeatureValues without error using callback', async () => { + it('invokes cancelOperation without error using callback', async () => { const client = new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( { @@ -236,30 +1170,22 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { projectId: 'bogus', } ); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.readFeatureValues = - stubSimpleCallWithCallback(expectedResponse); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - client.readFeatureValues( + client.operationsClient.cancelOperation( request, + undefined, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IReadFeatureValuesResponse | null + result?: protos.google.protobuf.Empty | null ) => { if (err) { reject(err); @@ -271,14 +1197,9 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.readFeatureValues as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); }); - - it('invokes readFeatureValues with error', async () => { + it('invokes cancelOperation with error', async () => { const client = new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( { @@ -286,33 +1207,26 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { projectId: 'bogus', } ); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.readFeatureValues = stubSimpleCall( + client.operationsClient.cancelOperation = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.readFeatureValues(request), expectedError); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); assert( - (client.innerApiCalls.readFeatureValues as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes readFeatureValues with closed client', async () => { + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { const client = new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( { @@ -322,17 +1236,22 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { ); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) ); - request.entityType = ''; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.readFeatureValues(request), expectedError); }); - }); - - describe('streamingReadFeatureValues', () => { - it('invokes streamingReadFeatureValues without error', async () => { + it('invokes deleteOperation without error using callback', async () => { const client = new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( { @@ -340,48 +1259,36 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { projectId: 'bogus', } ); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.streamingReadFeatureValues = - stubServerStreamingCall(expectedResponse); - const stream = client.streamingReadFeatureValues(request); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - stream.on( - 'data', + client.operationsClient.deleteOperation( + request, + undefined, ( - response: protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse + err?: Error | null, + result?: protos.google.protobuf.Empty | null ) => { - resolve(response); + if (err) { + reject(err); + } else { + resolve(result); + } } ); - stream.on('error', (err: Error) => { - reject(err); - }); }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.streamingReadFeatureValues as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions) - ); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); }); - - it('invokes streamingReadFeatureValues with error', async () => { + it('invokes deleteOperation with error', async () => { const client = new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( { @@ -389,47 +1296,26 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { projectId: 'bogus', } ); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.streamingReadFeatureValues = stubServerStreamingCall( + client.operationsClient.deleteOperation = stubSimpleCall( undefined, expectedError ); - const stream = client.streamingReadFeatureValues(request); - const promise = new Promise((resolve, reject) => { - stream.on( - 'data', - ( - response: protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - ) => { - resolve(response); - } - ); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - await assert.rejects(promise, expectedError); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); assert( - (client.innerApiCalls.streamingReadFeatureValues as SinonStub) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions) + .calledWith(request) ); }); - - it('invokes streamingReadFeatureValues with closed client', async () => { + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { const client = new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( { @@ -437,28 +1323,67 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { projectId: 'bogus', } ); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest() + new operationsProtos.google.longrunning.ListOperationsRequest() ); - request.entityType = ''; - const expectedError = new Error('The client has already been closed.'); - client.close(); - const stream = client.streamingReadFeatureValues(request); - const promise = new Promise((resolve, reject) => { - stream.on( - 'data', - ( - response: protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesResponse - ) => { - resolve(response); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', } ); - stream.on('error', (err: Error) => { - reject(err); - }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } }); - await assert.rejects(promise, expectedError); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); }); }); @@ -2309,6 +3234,85 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_featurestore_service_v1.ts b/test/gapic_featurestore_service_v1.ts index d009a50d..b489313b 100644 --- a/test/gapic_featurestore_service_v1.ts +++ b/test/gapic_featurestore_service_v1.ts @@ -25,7 +25,13 @@ import * as featurestoreserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -4422,6 +4428,877 @@ describe('v1.FeaturestoreServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -6337,6 +7214,84 @@ describe('v1.FeaturestoreServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_featurestore_service_v1beta1.ts b/test/gapic_featurestore_service_v1beta1.ts index c7a271f2..967fa317 100644 --- a/test/gapic_featurestore_service_v1beta1.ts +++ b/test/gapic_featurestore_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as featurestoreserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -4374,6 +4380,852 @@ describe('v1beta1.FeaturestoreServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -6263,6 +7115,83 @@ describe('v1beta1.FeaturestoreServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_index_endpoint_service_v1.ts b/test/gapic_index_endpoint_service_v1.ts index 9cced472..34098aec 100644 --- a/test/gapic_index_endpoint_service_v1.ts +++ b/test/gapic_index_endpoint_service_v1.ts @@ -25,7 +25,13 @@ import * as indexendpointserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -1829,6 +1835,852 @@ describe('v1.IndexEndpointServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -3679,6 +4531,83 @@ describe('v1.IndexEndpointServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_index_endpoint_service_v1beta1.ts b/test/gapic_index_endpoint_service_v1beta1.ts index 6654d8ee..98154ac0 100644 --- a/test/gapic_index_endpoint_service_v1beta1.ts +++ b/test/gapic_index_endpoint_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as indexendpointserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -1829,6 +1835,852 @@ describe('v1beta1.IndexEndpointServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -3679,6 +4531,83 @@ describe('v1beta1.IndexEndpointServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_index_service_v1.ts b/test/gapic_index_service_v1.ts index 010d32e3..9a62ed08 100644 --- a/test/gapic_index_service_v1.ts +++ b/test/gapic_index_service_v1.ts @@ -25,7 +25,13 @@ import * as indexserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -1221,6 +1227,827 @@ describe('v1.IndexServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -3046,6 +3873,82 @@ describe('v1.IndexServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_index_service_v1beta1.ts b/test/gapic_index_service_v1beta1.ts index d46beec7..5c981d3d 100644 --- a/test/gapic_index_service_v1beta1.ts +++ b/test/gapic_index_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as indexserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -1247,6 +1253,827 @@ describe('v1beta1.IndexServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -3072,6 +3899,82 @@ describe('v1beta1.IndexServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_job_service_v1.ts b/test/gapic_job_service_v1.ts index 751d81a4..a342d0b8 100644 --- a/test/gapic_job_service_v1.ts +++ b/test/gapic_job_service_v1.ts @@ -25,7 +25,13 @@ import * as jobserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -5502,6 +5508,827 @@ describe('v1.JobServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -7327,6 +8154,82 @@ describe('v1.JobServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_job_service_v1beta1.ts b/test/gapic_job_service_v1beta1.ts index 707e8c4a..7b383cc7 100644 --- a/test/gapic_job_service_v1beta1.ts +++ b/test/gapic_job_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as jobserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -5515,6 +5521,827 @@ describe('v1beta1.JobServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -7340,6 +8167,82 @@ describe('v1beta1.JobServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_metadata_service_v1.ts b/test/gapic_metadata_service_v1.ts index 3a2475aa..48bfd892 100644 --- a/test/gapic_metadata_service_v1.ts +++ b/test/gapic_metadata_service_v1.ts @@ -25,7 +25,13 @@ import * as metadataserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -5589,6 +5595,827 @@ describe('v1.MetadataServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -7452,6 +8279,82 @@ describe('v1.MetadataServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_metadata_service_v1beta1.ts b/test/gapic_metadata_service_v1beta1.ts index 9f38568b..92608e05 100644 --- a/test/gapic_metadata_service_v1beta1.ts +++ b/test/gapic_metadata_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as metadataserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -5649,6 +5655,827 @@ describe('v1beta1.MetadataServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -7512,6 +8339,82 @@ describe('v1beta1.MetadataServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_migration_service_v1.ts b/test/gapic_migration_service_v1.ts index 89fd8710..f7c5e9e8 100644 --- a/test/gapic_migration_service_v1.ts +++ b/test/gapic_migration_service_v1.ts @@ -25,7 +25,13 @@ import * as migrationserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -765,6 +771,827 @@ describe('v1.MigrationServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -2590,6 +3417,82 @@ describe('v1.MigrationServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_migration_service_v1beta1.ts b/test/gapic_migration_service_v1beta1.ts index 5545de96..86c97a40 100644 --- a/test/gapic_migration_service_v1beta1.ts +++ b/test/gapic_migration_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as migrationserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -769,6 +775,827 @@ describe('v1beta1.MigrationServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -2594,6 +3421,82 @@ describe('v1beta1.MigrationServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_model_service_v1.ts b/test/gapic_model_service_v1.ts index 3cf6a02b..9cefd404 100644 --- a/test/gapic_model_service_v1.ts +++ b/test/gapic_model_service_v1.ts @@ -25,7 +25,13 @@ import * as modelserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -493,6 +499,133 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('mergeVersionAliases', () => { + it('invokes mergeVersionAliases without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.MergeVersionAliasesRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Model() + ); + client.innerApiCalls.mergeVersionAliases = + stubSimpleCall(expectedResponse); + const [response] = await client.mergeVersionAliases(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.mergeVersionAliases as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes mergeVersionAliases without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.MergeVersionAliasesRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.Model() + ); + client.innerApiCalls.mergeVersionAliases = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.mergeVersionAliases( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IModel | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.mergeVersionAliases as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes mergeVersionAliases with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.MergeVersionAliasesRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.mergeVersionAliases = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.mergeVersionAliases(request), expectedError); + assert( + (client.innerApiCalls.mergeVersionAliases as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes mergeVersionAliases with closed client', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.MergeVersionAliasesRequest() + ); + request.name = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.mergeVersionAliases(request), expectedError); + }); + }); + describe('importModelEvaluation', () => { it('invokes importModelEvaluation without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ @@ -626,6 +759,139 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('batchImportModelEvaluationSlices', () => { + it('invokes batchImportModelEvaluationSlices without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse() + ); + client.innerApiCalls.batchImportModelEvaluationSlices = + stubSimpleCall(expectedResponse); + const [response] = await client.batchImportModelEvaluationSlices(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchImportModelEvaluationSlices as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes batchImportModelEvaluationSlices without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesResponse() + ); + client.innerApiCalls.batchImportModelEvaluationSlices = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.batchImportModelEvaluationSlices( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IBatchImportModelEvaluationSlicesResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchImportModelEvaluationSlices as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes batchImportModelEvaluationSlices with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.batchImportModelEvaluationSlices = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.batchImportModelEvaluationSlices(request), + expectedError + ); + assert( + (client.innerApiCalls.batchImportModelEvaluationSlices as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes batchImportModelEvaluationSlices with closed client', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.BatchImportModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.batchImportModelEvaluationSlices(request), + expectedError + ); + }); + }); + describe('getModelEvaluation', () => { it('invokes getModelEvaluation without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ @@ -1266,15 +1532,15 @@ describe('v1.ModelServiceClient', () => { }); }); - describe('exportModel', () => { - it('invokes exportModel without error', async () => { + describe('deleteModelVersion', () => { + it('invokes deleteModelVersion without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ExportModelRequest() + new protos.google.cloud.aiplatform.v1.DeleteModelVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1288,25 +1554,26 @@ describe('v1.ModelServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.exportModel = stubLongRunningCall(expectedResponse); - const [operation] = await client.exportModel(request); + client.innerApiCalls.deleteModelVersion = + stubLongRunningCall(expectedResponse); + const [operation] = await client.deleteModelVersion(request); const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.exportModel as SinonStub) + (client.innerApiCalls.deleteModelVersion as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes exportModel without error using callback', async () => { + it('invokes deleteModelVersion without error using callback', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ExportModelRequest() + new protos.google.cloud.aiplatform.v1.DeleteModelVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1320,16 +1587,16 @@ describe('v1.ModelServiceClient', () => { const expectedResponse = generateSampleMessage( new protos.google.longrunning.Operation() ); - client.innerApiCalls.exportModel = + client.innerApiCalls.deleteModelVersion = stubLongRunningCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.exportModel( + client.deleteModelVersion( request, ( err?: Error | null, result?: LROperation< - protos.google.cloud.aiplatform.v1.IExportModelResponse, - protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata > | null ) => { if (err) { @@ -1341,26 +1608,26 @@ describe('v1.ModelServiceClient', () => { ); }); const operation = (await promise) as LROperation< - protos.google.cloud.aiplatform.v1.IExportModelResponse, - protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + protos.google.protobuf.IEmpty, + protos.google.cloud.aiplatform.v1.IDeleteOperationMetadata >; const [response] = await operation.promise(); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.exportModel as SinonStub) + (client.innerApiCalls.deleteModelVersion as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes exportModel with call error', async () => { + it('invokes deleteModelVersion with call error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ExportModelRequest() + new protos.google.cloud.aiplatform.v1.DeleteModelVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1372,26 +1639,26 @@ describe('v1.ModelServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.exportModel = stubLongRunningCall( + client.innerApiCalls.deleteModelVersion = stubLongRunningCall( undefined, expectedError ); - await assert.rejects(client.exportModel(request), expectedError); + await assert.rejects(client.deleteModelVersion(request), expectedError); assert( - (client.innerApiCalls.exportModel as SinonStub) + (client.innerApiCalls.deleteModelVersion as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes exportModel with LRO error', async () => { + it('invokes deleteModelVersion with LRO error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ExportModelRequest() + new protos.google.cloud.aiplatform.v1.DeleteModelVersionRequest() ); request.name = ''; const expectedHeaderRequestParams = 'name='; @@ -1403,21 +1670,21 @@ describe('v1.ModelServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.exportModel = stubLongRunningCall( + client.innerApiCalls.deleteModelVersion = stubLongRunningCall( undefined, undefined, expectedError ); - const [operation] = await client.exportModel(request); + const [operation] = await client.deleteModelVersion(request); await assert.rejects(operation.promise(), expectedError); assert( - (client.innerApiCalls.exportModel as SinonStub) + (client.innerApiCalls.deleteModelVersion as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes checkExportModelProgress without error', async () => { + it('invokes checkDeleteModelVersionProgress without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1431,7 +1698,7 @@ describe('v1.ModelServiceClient', () => { expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; client.operationsClient.getOperation = stubSimpleCall(expectedResponse); - const decodedOperation = await client.checkExportModelProgress( + const decodedOperation = await client.checkDeleteModelVersionProgress( expectedResponse.name ); assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); @@ -1439,7 +1706,7 @@ describe('v1.ModelServiceClient', () => { assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - it('invokes checkExportModelProgress with error', async () => { + it('invokes checkDeleteModelVersionProgress with error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', @@ -1451,12 +1718,205 @@ describe('v1.ModelServiceClient', () => { undefined, expectedError ); - await assert.rejects(client.checkExportModelProgress(''), expectedError); + await assert.rejects( + client.checkDeleteModelVersionProgress(''), + expectedError + ); assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); }); - describe('listModels', () => { + describe('exportModel', () => { + it('invokes exportModel without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ExportModelRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.exportModel = stubLongRunningCall(expectedResponse); + const [operation] = await client.exportModel(request); + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.exportModel as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes exportModel without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ExportModelRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.longrunning.Operation() + ); + client.innerApiCalls.exportModel = + stubLongRunningCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.exportModel( + request, + ( + err?: Error | null, + result?: LROperation< + protos.google.cloud.aiplatform.v1.IExportModelResponse, + protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + > | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const operation = (await promise) as LROperation< + protos.google.cloud.aiplatform.v1.IExportModelResponse, + protos.google.cloud.aiplatform.v1.IExportModelOperationMetadata + >; + const [response] = await operation.promise(); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.exportModel as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes exportModel with call error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ExportModelRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.exportModel = stubLongRunningCall( + undefined, + expectedError + ); + await assert.rejects(client.exportModel(request), expectedError); + assert( + (client.innerApiCalls.exportModel as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes exportModel with LRO error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ExportModelRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.exportModel = stubLongRunningCall( + undefined, + undefined, + expectedError + ); + const [operation] = await client.exportModel(request); + await assert.rejects(operation.promise(), expectedError); + assert( + (client.innerApiCalls.exportModel as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes checkExportModelProgress without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + expectedResponse.name = 'test'; + expectedResponse.response = {type_url: 'url', value: Buffer.from('')}; + expectedResponse.metadata = {type_url: 'url', value: Buffer.from('')}; + + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const decodedOperation = await client.checkExportModelProgress( + expectedResponse.name + ); + assert.deepStrictEqual(decodedOperation.name, expectedResponse.name); + assert(decodedOperation.metadata); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + + it('invokes checkExportModelProgress with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const expectedError = new Error('expected'); + + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.checkExportModelProgress(''), expectedError); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + }); + + describe('listModels', () => { it('invokes listModels without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -1741,18 +2201,18 @@ describe('v1.ModelServiceClient', () => { }); }); - describe('listModelEvaluations', () => { - it('invokes listModelEvaluations without error', async () => { + describe('listModelVersions', () => { + it('invokes listModelVersions without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -1761,38 +2221,31 @@ describe('v1.ModelServiceClient', () => { }, }; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), ]; - client.innerApiCalls.listModelEvaluations = - stubSimpleCall(expectedResponse); - const [response] = await client.listModelEvaluations(request); + client.innerApiCalls.listModelVersions = stubSimpleCall(expectedResponse); + const [response] = await client.listModelVersions(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listModelEvaluations as SinonStub) + (client.innerApiCalls.listModelVersions as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listModelEvaluations without error using callback', async () => { + it('invokes listModelVersions without error using callback', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -1801,24 +2254,18 @@ describe('v1.ModelServiceClient', () => { }, }; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), ]; - client.innerApiCalls.listModelEvaluations = + client.innerApiCalls.listModelVersions = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listModelEvaluations( + client.listModelVersions( request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IModelEvaluation[] | null + result?: protos.google.cloud.aiplatform.v1.IModel[] | null ) => { if (err) { reject(err); @@ -1831,23 +2278,23 @@ describe('v1.ModelServiceClient', () => { const response = await promise; assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listModelEvaluations as SinonStub) + (client.innerApiCalls.listModelVersions as SinonStub) .getCall(0) .calledWith(request, expectedOptions /*, callback defined above */) ); }); - it('invokes listModelEvaluations with error', async () => { + it('invokes listModelVersions with error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedOptions = { otherArgs: { headers: { @@ -1856,49 +2303,42 @@ describe('v1.ModelServiceClient', () => { }, }; const expectedError = new Error('expected'); - client.innerApiCalls.listModelEvaluations = stubSimpleCall( + client.innerApiCalls.listModelVersions = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.listModelEvaluations(request), expectedError); + await assert.rejects(client.listModelVersions(request), expectedError); assert( - (client.innerApiCalls.listModelEvaluations as SinonStub) + (client.innerApiCalls.listModelVersions as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listModelEvaluationsStream without error', async () => { + it('invokes listModelVersionsStream without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), ]; - client.descriptors.page.listModelEvaluations.createStream = + client.descriptors.page.listModelVersions.createStream = stubPageStreamingCall(expectedResponse); - const stream = client.listModelEvaluationsStream(request); + const stream = client.listModelVersionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.ModelEvaluation[] = - []; + const responses: protos.google.cloud.aiplatform.v1.Model[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.ModelEvaluation) => { + (response: protos.google.cloud.aiplatform.v1.Model) => { responses.push(response); } ); @@ -1912,39 +2352,38 @@ describe('v1.ModelServiceClient', () => { const responses = await promise; assert.deepStrictEqual(responses, expectedResponse); assert( - (client.descriptors.page.listModelEvaluations.createStream as SinonStub) + (client.descriptors.page.listModelVersions.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listModelEvaluations, request) + .calledWith(client.innerApiCalls.listModelVersions, request) ); assert.strictEqual( ( - client.descriptors.page.listModelEvaluations.createStream as SinonStub + client.descriptors.page.listModelVersions.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('invokes listModelEvaluationsStream with error', async () => { + it('invokes listModelVersionsStream with error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('expected'); - client.descriptors.page.listModelEvaluations.createStream = + client.descriptors.page.listModelVersions.createStream = stubPageStreamingCall(undefined, expectedError); - const stream = client.listModelEvaluationsStream(request); + const stream = client.listModelVersionsStream(request); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.ModelEvaluation[] = - []; + const responses: protos.google.cloud.aiplatform.v1.Model[] = []; stream.on( 'data', - (response: protos.google.cloud.aiplatform.v1.ModelEvaluation) => { + (response: protos.google.cloud.aiplatform.v1.Model) => { responses.push(response); } ); @@ -1957,109 +2396,101 @@ describe('v1.ModelServiceClient', () => { }); await assert.rejects(promise, expectedError); assert( - (client.descriptors.page.listModelEvaluations.createStream as SinonStub) + (client.descriptors.page.listModelVersions.createStream as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listModelEvaluations, request) + .calledWith(client.innerApiCalls.listModelVersions, request) ); assert.strictEqual( ( - client.descriptors.page.listModelEvaluations.createStream as SinonStub + client.descriptors.page.listModelVersions.createStream as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listModelEvaluations without error', async () => { + it('uses async iteration with listModelVersions without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluation() - ), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), + generateSampleMessage(new protos.google.cloud.aiplatform.v1.Model()), ]; - client.descriptors.page.listModelEvaluations.asyncIterate = + client.descriptors.page.listModelVersions.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1.IModelEvaluation[] = - []; - const iterable = client.listModelEvaluationsAsync(request); + const responses: protos.google.cloud.aiplatform.v1.IModel[] = []; + const iterable = client.listModelVersionsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listModelEvaluations.asyncIterate as SinonStub + client.descriptors.page.listModelVersions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listModelEvaluations.asyncIterate as SinonStub + client.descriptors.page.listModelVersions.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); - it('uses async iteration with listModelEvaluations with error', async () => { + it('uses async iteration with listModelVersions with error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + new protos.google.cloud.aiplatform.v1.ListModelVersionsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; + request.name = ''; + const expectedHeaderRequestParams = 'name='; const expectedError = new Error('expected'); - client.descriptors.page.listModelEvaluations.asyncIterate = + client.descriptors.page.listModelVersions.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listModelEvaluationsAsync(request); + const iterable = client.listModelVersionsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1.IModelEvaluation[] = - []; + const responses: protos.google.cloud.aiplatform.v1.IModel[] = []; for await (const resource of iterable) { responses.push(resource!); } }); assert.deepStrictEqual( ( - client.descriptors.page.listModelEvaluations.asyncIterate as SinonStub + client.descriptors.page.listModelVersions.asyncIterate as SinonStub ).getCall(0).args[1], request ); assert.strictEqual( ( - client.descriptors.page.listModelEvaluations.asyncIterate as SinonStub + client.descriptors.page.listModelVersions.asyncIterate as SinonStub ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], expectedHeaderRequestParams ); }); }); - describe('listModelEvaluationSlices', () => { - it('invokes listModelEvaluationSlices without error', async () => { + describe('listModelEvaluations', () => { + it('invokes listModelEvaluations without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -2072,34 +2503,34 @@ describe('v1.ModelServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + new protos.google.cloud.aiplatform.v1.ModelEvaluation() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + new protos.google.cloud.aiplatform.v1.ModelEvaluation() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + new protos.google.cloud.aiplatform.v1.ModelEvaluation() ), ]; - client.innerApiCalls.listModelEvaluationSlices = + client.innerApiCalls.listModelEvaluations = stubSimpleCall(expectedResponse); - const [response] = await client.listModelEvaluationSlices(request); + const [response] = await client.listModelEvaluations(request); assert.deepStrictEqual(response, expectedResponse); assert( - (client.innerApiCalls.listModelEvaluationSlices as SinonStub) + (client.innerApiCalls.listModelEvaluations as SinonStub) .getCall(0) .calledWith(request, expectedOptions, undefined) ); }); - it('invokes listModelEvaluationSlices without error using callback', async () => { + it('invokes listModelEvaluations without error using callback', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() ); request.parent = ''; const expectedHeaderRequestParams = 'parent='; @@ -2112,25 +2543,1224 @@ describe('v1.ModelServiceClient', () => { }; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + new protos.google.cloud.aiplatform.v1.ModelEvaluation() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + new protos.google.cloud.aiplatform.v1.ModelEvaluation() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + new protos.google.cloud.aiplatform.v1.ModelEvaluation() ), ]; - client.innerApiCalls.listModelEvaluationSlices = + client.innerApiCalls.listModelEvaluations = stubSimpleCallWithCallback(expectedResponse); const promise = new Promise((resolve, reject) => { - client.listModelEvaluationSlices( + client.listModelEvaluations( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IModelEvaluation[] | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listModelEvaluations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listModelEvaluations with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listModelEvaluations = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.listModelEvaluations(request), expectedError); + assert( + (client.innerApiCalls.listModelEvaluations as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listModelEvaluationsStream without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluation() + ), + ]; + client.descriptors.page.listModelEvaluations.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listModelEvaluationsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.ModelEvaluation[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.ModelEvaluation) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + (client.descriptors.page.listModelEvaluations.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listModelEvaluations, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listModelEvaluations.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listModelEvaluationsStream with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listModelEvaluations.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listModelEvaluationsStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.ModelEvaluation[] = + []; + stream.on( + 'data', + (response: protos.google.cloud.aiplatform.v1.ModelEvaluation) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + (client.descriptors.page.listModelEvaluations.createStream as SinonStub) + .getCall(0) + .calledWith(client.innerApiCalls.listModelEvaluations, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listModelEvaluations.createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listModelEvaluations without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluation() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluation() + ), + ]; + client.descriptors.page.listModelEvaluations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.IModelEvaluation[] = + []; + const iterable = client.listModelEvaluationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listModelEvaluations.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listModelEvaluations.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listModelEvaluations with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationsRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listModelEvaluations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listModelEvaluationsAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.IModelEvaluation[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listModelEvaluations.asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listModelEvaluations.asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + + describe('listModelEvaluationSlices', () => { + it('invokes listModelEvaluationSlices without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + ]; + client.innerApiCalls.listModelEvaluationSlices = + stubSimpleCall(expectedResponse); + const [response] = await client.listModelEvaluationSlices(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listModelEvaluationSlices as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listModelEvaluationSlices without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + ]; + client.innerApiCalls.listModelEvaluationSlices = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.listModelEvaluationSlices( + request, + ( + err?: Error | null, + result?: + | protos.google.cloud.aiplatform.v1.IModelEvaluationSlice[] + | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.listModelEvaluationSlices as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes listModelEvaluationSlices with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.listModelEvaluationSlices = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.listModelEvaluationSlices(request), + expectedError + ); + assert( + (client.innerApiCalls.listModelEvaluationSlices as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes listModelEvaluationSlicesStream without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + ]; + client.descriptors.page.listModelEvaluationSlices.createStream = + stubPageStreamingCall(expectedResponse); + const stream = client.listModelEvaluationSlicesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.ModelEvaluationSlice[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1.ModelEvaluationSlice + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + const responses = await promise; + assert.deepStrictEqual(responses, expectedResponse); + assert( + ( + client.descriptors.page.listModelEvaluationSlices + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listModelEvaluationSlices, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listModelEvaluationSlices + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('invokes listModelEvaluationSlicesStream with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listModelEvaluationSlices.createStream = + stubPageStreamingCall(undefined, expectedError); + const stream = client.listModelEvaluationSlicesStream(request); + const promise = new Promise((resolve, reject) => { + const responses: protos.google.cloud.aiplatform.v1.ModelEvaluationSlice[] = + []; + stream.on( + 'data', + ( + response: protos.google.cloud.aiplatform.v1.ModelEvaluationSlice + ) => { + responses.push(response); + } + ); + stream.on('end', () => { + resolve(responses); + }); + stream.on('error', (err: Error) => { + reject(err); + }); + }); + await assert.rejects(promise, expectedError); + assert( + ( + client.descriptors.page.listModelEvaluationSlices + .createStream as SinonStub + ) + .getCall(0) + .calledWith(client.innerApiCalls.listModelEvaluationSlices, request) + ); + assert.strictEqual( + ( + client.descriptors.page.listModelEvaluationSlices + .createStream as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listModelEvaluationSlices without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedResponse = [ + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + ), + ]; + client.descriptors.page.listModelEvaluationSlices.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: protos.google.cloud.aiplatform.v1.IModelEvaluationSlice[] = + []; + const iterable = client.listModelEvaluationSlicesAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.descriptors.page.listModelEvaluationSlices + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listModelEvaluationSlices + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + + it('uses async iteration with listModelEvaluationSlices with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedError = new Error('expected'); + client.descriptors.page.listModelEvaluationSlices.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listModelEvaluationSlicesAsync(request); + await assert.rejects(async () => { + const responses: protos.google.cloud.aiplatform.v1.IModelEvaluationSlice[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.descriptors.page.listModelEvaluationSlices + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.descriptors.page.listModelEvaluationSlices + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( request, + undefined, ( err?: Error | null, - result?: - | protos.google.cloud.aiplatform.v1.IModelEvaluationSlice[] - | null + result?: protos.google.protobuf.Empty | null ) => { if (err) { reject(err); @@ -2142,224 +3772,163 @@ describe('v1.ModelServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.listModelEvaluationSlices as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); }); - - it('invokes listModelEvaluationSlices with error', async () => { + it('invokes cancelOperation with error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.listModelEvaluationSlices = stubSimpleCall( + client.operationsClient.cancelOperation = stubSimpleCall( undefined, expectedError ); - await assert.rejects( - client.listModelEvaluationSlices(request), - expectedError - ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); assert( - (client.innerApiCalls.listModelEvaluationSlices as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes listModelEvaluationSlicesStream without error', async () => { + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedResponse = [ - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() - ), - generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() - ), - ]; - client.descriptors.page.listModelEvaluationSlices.createStream = - stubPageStreamingCall(expectedResponse); - const stream = client.listModelEvaluationSlicesStream(request); - const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.ModelEvaluationSlice[] = - []; - stream.on( - 'data', - ( - response: protos.google.cloud.aiplatform.v1.ModelEvaluationSlice - ) => { - responses.push(response); - } - ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); - }); - const responses = await promise; - assert.deepStrictEqual(responses, expectedResponse); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); assert( - ( - client.descriptors.page.listModelEvaluationSlices - .createStream as SinonStub - ) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listModelEvaluationSlices, request) - ); - assert.strictEqual( - ( - client.descriptors.page.listModelEvaluationSlices - .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(request) ); }); - - it('invokes listModelEvaluationSlicesStream with error', async () => { + it('invokes deleteOperation without error using callback', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; - const expectedError = new Error('expected'); - client.descriptors.page.listModelEvaluationSlices.createStream = - stubPageStreamingCall(undefined, expectedError); - const stream = client.listModelEvaluationSlicesStream(request); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - const responses: protos.google.cloud.aiplatform.v1.ModelEvaluationSlice[] = - []; - stream.on( - 'data', + client.operationsClient.deleteOperation( + request, + undefined, ( - response: protos.google.cloud.aiplatform.v1.ModelEvaluationSlice + err?: Error | null, + result?: protos.google.protobuf.Empty | null ) => { - responses.push(response); + if (err) { + reject(err); + } else { + resolve(result); + } } ); - stream.on('end', () => { - resolve(responses); - }); - stream.on('error', (err: Error) => { - reject(err); - }); }); - await assert.rejects(promise, expectedError); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); assert( - ( - client.descriptors.page.listModelEvaluationSlices - .createStream as SinonStub - ) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(client.innerApiCalls.listModelEvaluationSlices, request) - ); - assert.strictEqual( - ( - client.descriptors.page.listModelEvaluationSlices - .createStream as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams + .calledWith(request) ); }); - - it('uses async iteration with listModelEvaluationSlices without error', async () => { + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + new operationsProtos.google.longrunning.ListOperationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedResponse = [ generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + new operationsProtos.google.longrunning.ListOperationsResponse() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + new operationsProtos.google.longrunning.ListOperationsResponse() ), generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ModelEvaluationSlice() + new operationsProtos.google.longrunning.ListOperationsResponse() ), ]; - client.descriptors.page.listModelEvaluationSlices.asyncIterate = + client.operationsClient.descriptor.listOperations.asyncIterate = stubAsyncIterationCall(expectedResponse); - const responses: protos.google.cloud.aiplatform.v1.IModelEvaluationSlice[] = + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = []; - const iterable = client.listModelEvaluationSlicesAsync(request); + const iterable = client.operationsClient.listOperationsAsync(request); for await (const resource of iterable) { responses.push(resource!); } assert.deepStrictEqual(responses, expectedResponse); assert.deepStrictEqual( ( - client.descriptors.page.listModelEvaluationSlices + client.operationsClient.descriptor.listOperations .asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listModelEvaluationSlices - .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); - - it('uses async iteration with listModelEvaluationSlices with error', async () => { + it('uses async iteration with listOperations with error', async () => { const client = new modelserviceModule.v1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ListModelEvaluationSlicesRequest() + new operationsProtos.google.longrunning.ListOperationsRequest() ); - request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('expected'); - client.descriptors.page.listModelEvaluationSlices.asyncIterate = + client.operationsClient.descriptor.listOperations.asyncIterate = stubAsyncIterationCall(undefined, expectedError); - const iterable = client.listModelEvaluationSlicesAsync(request); + const iterable = client.operationsClient.listOperationsAsync(request); await assert.rejects(async () => { - const responses: protos.google.cloud.aiplatform.v1.IModelEvaluationSlice[] = + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = []; for await (const resource of iterable) { responses.push(resource!); @@ -2367,18 +3936,11 @@ describe('v1.ModelServiceClient', () => { }); assert.deepStrictEqual( ( - client.descriptors.page.listModelEvaluationSlices + client.operationsClient.descriptor.listOperations .asyncIterate as SinonStub ).getCall(0).args[1], request ); - assert.strictEqual( - ( - client.descriptors.page.listModelEvaluationSlices - .asyncIterate as SinonStub - ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], - expectedHeaderRequestParams - ); }); }); @@ -4206,6 +5768,82 @@ describe('v1.ModelServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_model_service_v1beta1.ts b/test/gapic_model_service_v1beta1.ts index e05a8d16..863d2b82 100644 --- a/test/gapic_model_service_v1beta1.ts +++ b/test/gapic_model_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as modelserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -755,6 +761,139 @@ describe('v1beta1.ModelServiceClient', () => { }); }); + describe('batchImportModelEvaluationSlices', () => { + it('invokes batchImportModelEvaluationSlices without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse() + ); + client.innerApiCalls.batchImportModelEvaluationSlices = + stubSimpleCall(expectedResponse); + const [response] = await client.batchImportModelEvaluationSlices(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchImportModelEvaluationSlices as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes batchImportModelEvaluationSlices without error using callback', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesResponse() + ); + client.innerApiCalls.batchImportModelEvaluationSlices = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.batchImportModelEvaluationSlices( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IBatchImportModelEvaluationSlicesResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.batchImportModelEvaluationSlices as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes batchImportModelEvaluationSlices with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedHeaderRequestParams = 'parent='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.batchImportModelEvaluationSlices = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.batchImportModelEvaluationSlices(request), + expectedError + ); + assert( + (client.innerApiCalls.batchImportModelEvaluationSlices as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes batchImportModelEvaluationSlices with closed client', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.BatchImportModelEvaluationSlicesRequest() + ); + request.parent = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects( + client.batchImportModelEvaluationSlices(request), + expectedError + ); + }); + }); + describe('getModelEvaluation', () => { it('invokes getModelEvaluation without error', async () => { const client = new modelserviceModule.v1beta1.ModelServiceClient({ @@ -3237,122 +3376,943 @@ describe('v1beta1.ModelServiceClient', () => { ); }); }); - - describe('Path templates', () => { - describe('annotation', () => { - const fakePath = '/rendered/path/annotation'; - const expectedParameters = { - project: 'projectValue', - location: 'locationValue', - dataset: 'datasetValue', - data_item: 'dataItemValue', - annotation: 'annotationValue', + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { const client = new modelserviceModule.v1beta1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.annotationPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.annotationPathTemplate.match = sinon + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon .stub() - .returns(expectedParameters); - - it('annotationPath', () => { - const result = client.annotationPath( - 'projectValue', - 'locationValue', - 'datasetValue', - 'dataItemValue', - 'annotationValue' - ); - assert.strictEqual(result, fakePath); - assert( - (client.pathTemplates.annotationPathTemplate.render as SinonStub) - .getCall(-1) - .calledWith(expectedParameters) - ); - }); - - it('matchProjectFromAnnotationName', () => { - const result = client.matchProjectFromAnnotationName(fakePath); - assert.strictEqual(result, 'projectValue'); - assert( - (client.pathTemplates.annotationPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchLocationFromAnnotationName', () => { - const result = client.matchLocationFromAnnotationName(fakePath); - assert.strictEqual(result, 'locationValue'); - assert( - (client.pathTemplates.annotationPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchDatasetFromAnnotationName', () => { - const result = client.matchDatasetFromAnnotationName(fakePath); - assert.strictEqual(result, 'datasetValue'); - assert( - (client.pathTemplates.annotationPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchDataItemFromAnnotationName', () => { - const result = client.matchDataItemFromAnnotationName(fakePath); - assert.strictEqual(result, 'dataItemValue'); - assert( - (client.pathTemplates.annotationPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) - ); - }); - - it('matchAnnotationFromAnnotationName', () => { - const result = client.matchAnnotationFromAnnotationName(fakePath); - assert.strictEqual(result, 'annotationValue'); - assert( - (client.pathTemplates.annotationPathTemplate.match as SinonStub) - .getCall(-1) - .calledWith(fakePath) + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } ); }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); }); - - describe('annotationSpec', () => { - const fakePath = '/rendered/path/annotationSpec'; - const expectedParameters = { - project: 'projectValue', - location: 'locationValue', - dataset: 'datasetValue', - annotation_spec: 'annotationSpecValue', - }; + it('invokes getIamPolicy with error', async () => { const client = new modelserviceModule.v1beta1.ModelServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); - client.pathTemplates.annotationSpecPathTemplate.render = sinon - .stub() - .returns(fakePath); - client.pathTemplates.annotationSpecPathTemplate.match = sinon - .stub() - .returns(expectedParameters); - - it('annotationSpecPath', () => { - const result = client.annotationSpecPath( - 'projectValue', - 'locationValue', - 'datasetValue', - 'annotationSpecValue' + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); + + describe('Path templates', () => { + describe('annotation', () => { + const fakePath = '/rendered/path/annotation'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + data_item: 'dataItemValue', + annotation: 'annotationValue', + }; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationPath', () => { + const result = client.annotationPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'dataItemValue', + 'annotationValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.annotationPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromAnnotationName', () => { + const result = client.matchProjectFromAnnotationName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromAnnotationName', () => { + const result = client.matchLocationFromAnnotationName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromAnnotationName', () => { + const result = client.matchDatasetFromAnnotationName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDataItemFromAnnotationName', () => { + const result = client.matchDataItemFromAnnotationName(fakePath); + assert.strictEqual(result, 'dataItemValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchAnnotationFromAnnotationName', () => { + const result = client.matchAnnotationFromAnnotationName(fakePath); + assert.strictEqual(result, 'annotationValue'); + assert( + (client.pathTemplates.annotationPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + + describe('annotationSpec', () => { + const fakePath = '/rendered/path/annotationSpec'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + annotation_spec: 'annotationSpecValue', + }; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.annotationSpecPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.annotationSpecPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('annotationSpecPath', () => { + const result = client.annotationSpecPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'annotationSpecValue' ); assert.strictEqual(result, fakePath); assert( @@ -5062,6 +6022,82 @@ describe('v1beta1.ModelServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_pipeline_service_v1.ts b/test/gapic_pipeline_service_v1.ts index 9ca17ef8..c2b94e21 100644 --- a/test/gapic_pipeline_service_v1.ts +++ b/test/gapic_pipeline_service_v1.ts @@ -25,7 +25,13 @@ import * as pipelineserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -2035,6 +2041,827 @@ describe('v1.PipelineServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -3860,6 +4687,82 @@ describe('v1.PipelineServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_pipeline_service_v1beta1.ts b/test/gapic_pipeline_service_v1beta1.ts index 2a81bec6..ebfc50a5 100644 --- a/test/gapic_pipeline_service_v1beta1.ts +++ b/test/gapic_pipeline_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as pipelineserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -2045,6 +2051,827 @@ describe('v1beta1.PipelineServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -3870,6 +4697,82 @@ describe('v1beta1.PipelineServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_prediction_service_v1.ts b/test/gapic_prediction_service_v1.ts index c91f3d04..935326ff 100644 --- a/test/gapic_prediction_service_v1.ts +++ b/test/gapic_prediction_service_v1.ts @@ -23,7 +23,13 @@ import {SinonStub} from 'sinon'; import {describe, it} from 'mocha'; import * as predictionserviceModule from '../src'; -import {protobuf} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -49,6 +55,29 @@ function stubSimpleCallWithCallback( : sinon.stub().callsArgWith(2, null, response); } +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + describe('v1.PredictionServiceClient', () => { it('has servicePath', () => { const servicePath = @@ -207,7 +236,873 @@ describe('v1.PredictionServiceClient', () => { request, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IPredictResponse | null + result?: protos.google.cloud.aiplatform.v1.IPredictResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.predict as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes predict with error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.PredictRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.predict = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.predict(request), expectedError); + assert( + (client.innerApiCalls.predict as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes predict with closed client', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.PredictRequest() + ); + request.endpoint = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.predict(request), expectedError); + }); + }); + + describe('rawPredict', () => { + it('invokes rawPredict without error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RawPredictRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.api.HttpBody() + ); + client.innerApiCalls.rawPredict = stubSimpleCall(expectedResponse); + const [response] = await client.rawPredict(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.rawPredict as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes rawPredict without error using callback', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RawPredictRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.api.HttpBody() + ); + client.innerApiCalls.rawPredict = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.rawPredict( + request, + (err?: Error | null, result?: protos.google.api.IHttpBody | null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.rawPredict as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes rawPredict with error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RawPredictRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.rawPredict = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.rawPredict(request), expectedError); + assert( + (client.innerApiCalls.rawPredict as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes rawPredict with closed client', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.RawPredictRequest() + ); + request.endpoint = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.rawPredict(request), expectedError); + }); + }); + + describe('explain', () => { + it('invokes explain without error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ExplainRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ExplainResponse() + ); + client.innerApiCalls.explain = stubSimpleCall(expectedResponse); + const [response] = await client.explain(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.explain as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes explain without error using callback', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ExplainRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ExplainResponse() + ); + client.innerApiCalls.explain = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.explain( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1.IExplainResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.explain as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes explain with error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ExplainRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.explain = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.explain(request), expectedError); + assert( + (client.innerApiCalls.explain as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes explain with closed client', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1.ExplainRequest() + ); + request.endpoint = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.explain(request), expectedError); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null ) => { if (err) { reject(err); @@ -219,116 +1114,76 @@ describe('v1.PredictionServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.predict as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); }); - - it('invokes predict with error', async () => { + it('invokes getOperation with error', async () => { const client = new predictionserviceModule.v1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.PredictRequest() + new operationsProtos.google.longrunning.GetOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.predict = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.predict(request), expectedError); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); assert( - (client.innerApiCalls.predict as SinonStub) + (client.operationsClient.getOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes predict with closed client', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.PredictRequest() + .calledWith(request) ); - request.endpoint = ''; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.predict(request), expectedError); }); }); - - describe('rawPredict', () => { - it('invokes rawPredict without error', async () => { + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { const client = new predictionserviceModule.v1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.RawPredictRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.api.HttpBody() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.rawPredict = stubSimpleCall(expectedResponse); - const [response] = await client.rawPredict(request); - assert.deepStrictEqual(response, expectedResponse); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); assert( - (client.innerApiCalls.rawPredict as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes rawPredict without error using callback', async () => { + it('invokes cancelOperation without error using callback', async () => { const client = new predictionserviceModule.v1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.RawPredictRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.api.HttpBody() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.rawPredict = - stubSimpleCallWithCallback(expectedResponse); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - client.rawPredict( + client.operationsClient.cancelOperation( request, - (err?: Error | null, result?: protos.google.api.IHttpBody | null) => { + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { if (err) { reject(err); } else { @@ -339,121 +1194,75 @@ describe('v1.PredictionServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.rawPredict as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); }); - - it('invokes rawPredict with error', async () => { + it('invokes cancelOperation with error', async () => { const client = new predictionserviceModule.v1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.RawPredictRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.rawPredict = stubSimpleCall( + client.operationsClient.cancelOperation = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.rawPredict(request), expectedError); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); assert( - (client.innerApiCalls.rawPredict as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes rawPredict with closed client', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.RawPredictRequest() + .calledWith(request) ); - request.endpoint = ''; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.rawPredict(request), expectedError); }); }); - - describe('explain', () => { - it('invokes explain without error', async () => { + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { const client = new predictionserviceModule.v1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ExplainRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ExplainResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.explain = stubSimpleCall(expectedResponse); - const [response] = await client.explain(request); - assert.deepStrictEqual(response, expectedResponse); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); assert( - (client.innerApiCalls.explain as SinonStub) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes explain without error using callback', async () => { + it('invokes deleteOperation without error using callback', async () => { const client = new predictionserviceModule.v1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ExplainRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ExplainResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.explain = - stubSimpleCallWithCallback(expectedResponse); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - client.explain( + client.operationsClient.deleteOperation( request, + undefined, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1.IExplainResponse | null + result?: protos.google.protobuf.Empty | null ) => { if (err) { reject(err); @@ -465,54 +1274,95 @@ describe('v1.PredictionServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.explain as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); }); - - it('invokes explain with error', async () => { + it('invokes deleteOperation with error', async () => { const client = new predictionserviceModule.v1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ExplainRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.explain = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.explain(request), expectedError); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); assert( - (client.innerApiCalls.explain as SinonStub) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes explain with closed client', async () => { + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { const client = new predictionserviceModule.v1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1.ExplainRequest() + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request ); - request.endpoint = ''; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.explain(request), expectedError); }); }); @@ -2291,6 +3141,82 @@ describe('v1.PredictionServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_prediction_service_v1beta1.ts b/test/gapic_prediction_service_v1beta1.ts index dc034a44..ca8e6529 100644 --- a/test/gapic_prediction_service_v1beta1.ts +++ b/test/gapic_prediction_service_v1beta1.ts @@ -23,7 +23,13 @@ import {SinonStub} from 'sinon'; import {describe, it} from 'mocha'; import * as predictionserviceModule from '../src'; -import {protobuf} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -49,6 +55,29 @@ function stubSimpleCallWithCallback( : sinon.stub().callsArgWith(2, null, response); } +function stubAsyncIterationCall( + responses?: ResponseType[], + error?: Error +) { + let counter = 0; + const asyncIterable = { + [Symbol.asyncIterator]() { + return { + async next() { + if (error) { + return Promise.reject(error); + } + if (counter >= responses!.length) { + return Promise.resolve({done: true, value: undefined}); + } + return Promise.resolve({done: false, value: responses![counter++]}); + }, + }; + }, + }; + return sinon.stub().returns(asyncIterable); +} + describe('v1beta1.PredictionServiceClient', () => { it('has servicePath', () => { const servicePath = @@ -228,55 +257,920 @@ describe('v1beta1.PredictionServiceClient', () => { .calledWith(request, expectedOptions /*, callback defined above */) ); }); - - it('invokes predict with error', async () => { + + it('invokes predict with error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.PredictRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.predict = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.predict(request), expectedError); + assert( + (client.innerApiCalls.predict as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes predict with closed client', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.PredictRequest() + ); + request.endpoint = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.predict(request), expectedError); + }); + }); + + describe('rawPredict', () => { + it('invokes rawPredict without error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.api.HttpBody() + ); + client.innerApiCalls.rawPredict = stubSimpleCall(expectedResponse); + const [response] = await client.rawPredict(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.rawPredict as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes rawPredict without error using callback', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.api.HttpBody() + ); + client.innerApiCalls.rawPredict = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.rawPredict( + request, + (err?: Error | null, result?: protos.google.api.IHttpBody | null) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.rawPredict as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes rawPredict with error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.rawPredict = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(client.rawPredict(request), expectedError); + assert( + (client.innerApiCalls.rawPredict as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes rawPredict with closed client', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() + ); + request.endpoint = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.rawPredict(request), expectedError); + }); + }); + + describe('explain', () => { + it('invokes explain without error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ExplainResponse() + ); + client.innerApiCalls.explain = stubSimpleCall(expectedResponse); + const [response] = await client.explain(request); + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.explain as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes explain without error using callback', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ExplainResponse() + ); + client.innerApiCalls.explain = + stubSimpleCallWithCallback(expectedResponse); + const promise = new Promise((resolve, reject) => { + client.explain( + request, + ( + err?: Error | null, + result?: protos.google.cloud.aiplatform.v1beta1.IExplainResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert( + (client.innerApiCalls.explain as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions /*, callback defined above */) + ); + }); + + it('invokes explain with error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() + ); + request.endpoint = ''; + const expectedHeaderRequestParams = 'endpoint='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.innerApiCalls.explain = stubSimpleCall(undefined, expectedError); + await assert.rejects(client.explain(request), expectedError); + assert( + (client.innerApiCalls.explain as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + + it('invokes explain with closed client', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() + ); + request.endpoint = ''; + const expectedError = new Error('The client has already been closed.'); + client.close(); + await assert.rejects(client.explain(request), expectedError); + }); + }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.PredictRequest() + new operationsProtos.google.longrunning.GetOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.predict = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.predict(request), expectedError); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); assert( - (client.innerApiCalls.predict as SinonStub) + (client.operationsClient.getOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes predict with closed client', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.PredictRequest() + .calledWith(request) ); - request.endpoint = ''; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.predict(request), expectedError); }); }); - - describe('rawPredict', () => { - it('invokes rawPredict without error', async () => { + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -284,58 +1178,44 @@ describe('v1beta1.PredictionServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.api.HttpBody() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.rawPredict = stubSimpleCall(expectedResponse); - const [response] = await client.rawPredict(request); - assert.deepStrictEqual(response, expectedResponse); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); assert( - (client.innerApiCalls.rawPredict as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes rawPredict without error using callback', async () => { + it('invokes cancelOperation without error using callback', async () => { const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.api.HttpBody() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.rawPredict = - stubSimpleCallWithCallback(expectedResponse); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - client.rawPredict( + client.operationsClient.cancelOperation( request, - (err?: Error | null, result?: protos.google.api.IHttpBody | null) => { + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { if (err) { reject(err); } else { @@ -346,64 +1226,34 @@ describe('v1beta1.PredictionServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.rawPredict as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); }); - - it('invokes rawPredict with error', async () => { + it('invokes cancelOperation with error', async () => { const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() + new operationsProtos.google.longrunning.CancelOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.rawPredict = stubSimpleCall( + client.operationsClient.cancelOperation = stubSimpleCall( undefined, expectedError ); - await assert.rejects(client.rawPredict(request), expectedError); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); assert( - (client.innerApiCalls.rawPredict as SinonStub) + (client.operationsClient.cancelOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) - ); - }); - - it('invokes rawPredict with closed client', async () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.initialize(); - const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() + .calledWith(request) ); - request.endpoint = ''; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.rawPredict(request), expectedError); }); }); - - describe('explain', () => { - it('invokes explain without error', async () => { + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -411,60 +1261,43 @@ describe('v1beta1.PredictionServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ExplainResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.explain = stubSimpleCall(expectedResponse); - const [response] = await client.explain(request); - assert.deepStrictEqual(response, expectedResponse); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); assert( - (client.innerApiCalls.explain as SinonStub) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes explain without error using callback', async () => { + it('invokes deleteOperation without error using callback', async () => { const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedResponse = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ExplainResponse() + new protos.google.protobuf.Empty() ); - client.innerApiCalls.explain = - stubSimpleCallWithCallback(expectedResponse); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); const promise = new Promise((resolve, reject) => { - client.explain( + client.operationsClient.deleteOperation( request, + undefined, ( err?: Error | null, - result?: protos.google.cloud.aiplatform.v1beta1.IExplainResponse | null + result?: protos.google.protobuf.Empty | null ) => { if (err) { reject(err); @@ -476,43 +1309,71 @@ describe('v1beta1.PredictionServiceClient', () => { }); const response = await promise; assert.deepStrictEqual(response, expectedResponse); - assert( - (client.innerApiCalls.explain as SinonStub) - .getCall(0) - .calledWith(request, expectedOptions /*, callback defined above */) - ); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); }); - - it('invokes explain with error', async () => { + it('invokes deleteOperation with error', async () => { const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, projectId: 'bogus', }); - client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() + new operationsProtos.google.longrunning.DeleteOperationRequest() ); - request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; - const expectedOptions = { - otherArgs: { - headers: { - 'x-goog-request-params': expectedHeaderRequestParams, - }, - }, - }; const expectedError = new Error('expected'); - client.innerApiCalls.explain = stubSimpleCall(undefined, expectedError); - await assert.rejects(client.explain(request), expectedError); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); assert( - (client.innerApiCalls.explain as SinonStub) + (client.operationsClient.deleteOperation as SinonStub) .getCall(0) - .calledWith(request, expectedOptions, undefined) + .calledWith(request) ); }); - - it('invokes explain with closed client', async () => { + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ credentials: {client_email: 'bogus', private_key: 'bogus'}, @@ -520,12 +1381,26 @@ describe('v1beta1.PredictionServiceClient', () => { }); client.initialize(); const request = generateSampleMessage( - new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request ); - request.endpoint = ''; - const expectedError = new Error('The client has already been closed.'); - client.close(); - await assert.rejects(client.explain(request), expectedError); }); }); @@ -2328,6 +3203,83 @@ describe('v1beta1.PredictionServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_specialist_pool_service_v1.ts b/test/gapic_specialist_pool_service_v1.ts index f836bc08..df810754 100644 --- a/test/gapic_specialist_pool_service_v1.ts +++ b/test/gapic_specialist_pool_service_v1.ts @@ -25,7 +25,13 @@ import * as specialistpoolserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -1299,6 +1305,852 @@ describe('v1.SpecialistPoolServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -3149,6 +4001,83 @@ describe('v1.SpecialistPoolServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_specialist_pool_service_v1beta1.ts b/test/gapic_specialist_pool_service_v1beta1.ts index 2f3996c0..6883b0c3 100644 --- a/test/gapic_specialist_pool_service_v1beta1.ts +++ b/test/gapic_specialist_pool_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as specialistpoolserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -1304,6 +1310,852 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -3154,6 +4006,83 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_tensorboard_service_v1.ts b/test/gapic_tensorboard_service_v1.ts index b432dce1..bd2ad89f 100644 --- a/test/gapic_tensorboard_service_v1.ts +++ b/test/gapic_tensorboard_service_v1.ts @@ -25,7 +25,13 @@ import * as tensorboardserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -5285,6 +5291,827 @@ describe('v1.TensorboardServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -7148,6 +7975,82 @@ describe('v1.TensorboardServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_tensorboard_service_v1beta1.ts b/test/gapic_tensorboard_service_v1beta1.ts index 90317033..1285b33c 100644 --- a/test/gapic_tensorboard_service_v1beta1.ts +++ b/test/gapic_tensorboard_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as tensorboardserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -5443,6 +5449,852 @@ describe('v1beta1.TensorboardServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -7332,6 +8184,83 @@ describe('v1beta1.TensorboardServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_vizier_service_v1.ts b/test/gapic_vizier_service_v1.ts index f023d74f..f5727b45 100644 --- a/test/gapic_vizier_service_v1.ts +++ b/test/gapic_vizier_service_v1.ts @@ -25,7 +25,13 @@ import * as vizierserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -2579,6 +2585,827 @@ describe('v1.VizierServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -4404,6 +5231,82 @@ describe('v1.VizierServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = { diff --git a/test/gapic_vizier_service_v1beta1.ts b/test/gapic_vizier_service_v1beta1.ts index 8db8bdc5..f7aacfbe 100644 --- a/test/gapic_vizier_service_v1beta1.ts +++ b/test/gapic_vizier_service_v1beta1.ts @@ -25,7 +25,13 @@ import * as vizierserviceModule from '../src'; import {PassThrough} from 'stream'; -import {protobuf, LROperation, operationsProtos} from 'google-gax'; +import { + protobuf, + LROperation, + operationsProtos, + IamProtos, + LocationProtos, +} from 'google-gax'; function generateSampleMessage(instance: T) { const filledObject = ( @@ -2629,6 +2635,827 @@ describe('v1beta1.VizierServiceClient', () => { ); }); }); + describe('getIamPolicy', () => { + it('invokes getIamPolicy without error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.getIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getIamPolicy without error using callback', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.getIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.getIamPolicy as SinonStub).getCall(0)); + }); + it('invokes getIamPolicy with error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.GetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.getIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.getIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.getIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('setIamPolicy', () => { + it('invokes setIamPolicy without error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = stubSimpleCall(expectedResponse); + const response = await client.setIamPolicy(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes setIamPolicy without error using callback', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.Policy() + ); + client.iamClient.setIamPolicy = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.setIamPolicy( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.Policy | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.setIamPolicy as SinonStub).getCall(0)); + }); + it('invokes setIamPolicy with error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.SetIamPolicyRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.setIamPolicy = stubSimpleCall(undefined, expectedError); + await assert.rejects( + client.setIamPolicy(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.setIamPolicy as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('testIamPermissions', () => { + it('invokes testIamPermissions without error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = stubSimpleCall(expectedResponse); + const response = await client.testIamPermissions( + request, + expectedOptions + ); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes testIamPermissions without error using callback', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsResponse() + ); + client.iamClient.testIamPermissions = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.testIamPermissions( + request, + expectedOptions, + ( + err?: Error | null, + result?: IamProtos.google.iam.v1.TestIamPermissionsResponse | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.iamClient.testIamPermissions as SinonStub).getCall(0)); + }); + it('invokes testIamPermissions with error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new IamProtos.google.iam.v1.TestIamPermissionsRequest() + ); + request.resource = ''; + const expectedHeaderRequestParams = 'resource='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.iamClient.testIamPermissions = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.testIamPermissions(request, expectedOptions), + expectedError + ); + assert( + (client.iamClient.testIamPermissions as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('getLocation', () => { + it('invokes getLocation without error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = stubSimpleCall(expectedResponse); + const response = await client.getLocation(request, expectedOptions); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + it('invokes getLocation without error using callback', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedResponse = generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ); + client.locationsClient.getLocation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.getLocation( + request, + expectedOptions, + ( + err?: Error | null, + result?: LocationProtos.google.cloud.location.ILocation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.locationsClient.getLocation as SinonStub).getCall(0)); + }); + it('invokes getLocation with error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.GetLocationRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedOptions = { + otherArgs: { + headers: { + 'x-goog-request-params': expectedHeaderRequestParams, + }, + }, + }; + const expectedError = new Error('expected'); + client.locationsClient.getLocation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects( + client.getLocation(request, expectedOptions), + expectedError + ); + assert( + (client.locationsClient.getLocation as SinonStub) + .getCall(0) + .calledWith(request, expectedOptions, undefined) + ); + }); + }); + describe('listLocationsAsync', () => { + it('uses async iteration with listLocations without error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedResponse = [ + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + generateSampleMessage( + new LocationProtos.google.cloud.location.Location() + ), + ]; + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + const iterable = client.listLocationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + it('uses async iteration with listLocations with error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new LocationProtos.google.cloud.location.ListLocationsRequest() + ); + request.name = ''; + const expectedHeaderRequestParams = 'name='; + const expectedError = new Error('expected'); + client.locationsClient.descriptors.page.listLocations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.listLocationsAsync(request); + await assert.rejects(async () => { + const responses: LocationProtos.google.cloud.location.ILocation[] = []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + assert.strictEqual( + ( + client.locationsClient.descriptors.page.listLocations + .asyncIterate as SinonStub + ).getCall(0).args[2].otherArgs.headers['x-goog-request-params'], + expectedHeaderRequestParams + ); + }); + }); + describe('getOperation', () => { + it('invokes getOperation without error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = stubSimpleCall(expectedResponse); + const response = await client.getOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes getOperation without error using callback', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new operationsProtos.google.longrunning.Operation() + ); + client.operationsClient.getOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.getOperation( + request, + undefined, + ( + err?: Error | null, + result?: operationsProtos.google.longrunning.Operation | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.getOperation as SinonStub).getCall(0)); + }); + it('invokes getOperation with error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.GetOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.getOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.getOperation(request); + }, expectedError); + assert( + (client.operationsClient.getOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('cancelOperation', () => { + it('invokes cancelOperation without error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = + stubSimpleCall(expectedResponse); + const response = await client.cancelOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes cancelOperation without error using callback', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.cancelOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.cancelOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.cancelOperation as SinonStub).getCall(0)); + }); + it('invokes cancelOperation with error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.CancelOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.cancelOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.cancelOperation(request); + }, expectedError); + assert( + (client.operationsClient.cancelOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('deleteOperation', () => { + it('invokes deleteOperation without error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = + stubSimpleCall(expectedResponse); + const response = await client.deleteOperation(request); + assert.deepStrictEqual(response, [expectedResponse]); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + it('invokes deleteOperation without error using callback', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedResponse = generateSampleMessage( + new protos.google.protobuf.Empty() + ); + client.operationsClient.deleteOperation = sinon + .stub() + .callsArgWith(2, null, expectedResponse); + const promise = new Promise((resolve, reject) => { + client.operationsClient.deleteOperation( + request, + undefined, + ( + err?: Error | null, + result?: protos.google.protobuf.Empty | null + ) => { + if (err) { + reject(err); + } else { + resolve(result); + } + } + ); + }); + const response = await promise; + assert.deepStrictEqual(response, expectedResponse); + assert((client.operationsClient.deleteOperation as SinonStub).getCall(0)); + }); + it('invokes deleteOperation with error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.DeleteOperationRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.deleteOperation = stubSimpleCall( + undefined, + expectedError + ); + await assert.rejects(async () => { + await client.deleteOperation(request); + }, expectedError); + assert( + (client.operationsClient.deleteOperation as SinonStub) + .getCall(0) + .calledWith(request) + ); + }); + }); + describe('listOperationsAsync', () => { + it('uses async iteration with listOperations without error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedResponse = [ + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsResponse() + ), + ]; + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(expectedResponse); + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + const iterable = client.operationsClient.listOperationsAsync(request); + for await (const resource of iterable) { + responses.push(resource!); + } + assert.deepStrictEqual(responses, expectedResponse); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + it('uses async iteration with listOperations with error', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + const request = generateSampleMessage( + new operationsProtos.google.longrunning.ListOperationsRequest() + ); + const expectedError = new Error('expected'); + client.operationsClient.descriptor.listOperations.asyncIterate = + stubAsyncIterationCall(undefined, expectedError); + const iterable = client.operationsClient.listOperationsAsync(request); + await assert.rejects(async () => { + const responses: operationsProtos.google.longrunning.ListOperationsResponse[] = + []; + for await (const resource of iterable) { + responses.push(resource!); + } + }); + assert.deepStrictEqual( + ( + client.operationsClient.descriptor.listOperations + .asyncIterate as SinonStub + ).getCall(0).args[1], + request + ); + }); + }); describe('Path templates', () => { describe('annotation', () => { @@ -4454,6 +5281,82 @@ describe('v1beta1.VizierServiceClient', () => { }); }); + describe('savedQuery', () => { + const fakePath = '/rendered/path/savedQuery'; + const expectedParameters = { + project: 'projectValue', + location: 'locationValue', + dataset: 'datasetValue', + saved_query: 'savedQueryValue', + }; + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + client.pathTemplates.savedQueryPathTemplate.render = sinon + .stub() + .returns(fakePath); + client.pathTemplates.savedQueryPathTemplate.match = sinon + .stub() + .returns(expectedParameters); + + it('savedQueryPath', () => { + const result = client.savedQueryPath( + 'projectValue', + 'locationValue', + 'datasetValue', + 'savedQueryValue' + ); + assert.strictEqual(result, fakePath); + assert( + (client.pathTemplates.savedQueryPathTemplate.render as SinonStub) + .getCall(-1) + .calledWith(expectedParameters) + ); + }); + + it('matchProjectFromSavedQueryName', () => { + const result = client.matchProjectFromSavedQueryName(fakePath); + assert.strictEqual(result, 'projectValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchLocationFromSavedQueryName', () => { + const result = client.matchLocationFromSavedQueryName(fakePath); + assert.strictEqual(result, 'locationValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchDatasetFromSavedQueryName', () => { + const result = client.matchDatasetFromSavedQueryName(fakePath); + assert.strictEqual(result, 'datasetValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + + it('matchSavedQueryFromSavedQueryName', () => { + const result = client.matchSavedQueryFromSavedQueryName(fakePath); + assert.strictEqual(result, 'savedQueryValue'); + assert( + (client.pathTemplates.savedQueryPathTemplate.match as SinonStub) + .getCall(-1) + .calledWith(fakePath) + ); + }); + }); + describe('specialistPool', () => { const fakePath = '/rendered/path/specialistPool'; const expectedParameters = {